GithubHelp home page GithubHelp logo

mage-os / mageos-magento2 Goto Github PK

View Code? Open in Web Editor NEW
190.0 13.0 36.0 599.98 MB

Work in progress.

License: Open Software License 3.0

JavaScript 5.35% PHP 83.25% CSS 0.57% VCL 0.02% HTML 8.21% Less 2.60%
adobecommerce ecommerce mage-os magento magento2

mageos-magento2's Introduction

Open Source Helpers Gitter Crowdin
Adobe logo

Magento Open Source

Welcome to the Magento Open Source project! Magento Open Source software delivers basic eCommerce capabilities to build a unique online store from the ground up.

However, for those who need a full-featured eCommerce solution, we recommend Adobe Commerce, which includes our optimized cloud architecture and hosting as well as AI-powered merchandising and analytics.

Get started

Get help

Contribute

Our Community is large and diverse, and our project is enormous. As a contributor, you have countless opportunities to impact product development and delivery by introducing new features or improving existing ones, enhancing test coverage, updating documentation for developers and end-users, catching and fixing code bugs, suggesting points for optimization, and sharing your great ideas.

Maintainers

We encourage experts from the Community to help us with GitHub routines such as accepting, merging, or rejecting pull requests and reviewing issues. Adobe has granted the Community Maintainers permission to accept, merge, and reject pull requests, as well as review issues. Thanks to invaluable input from the Community Maintainers team, we can significantly improve contribution quality and accelerate the time to deliver your updates to production.

Leaders

Adobe highly appreciates contributions that help us to improve the code, clarify the documentation, and increase test coverage. Check out our Community leaders, superstars, and superheroes on the leaderboard.

Labeling

We use labels in the GitHub issues and pull requests to help the participants retrieve additional information such as progress, component assignments, or release lines.

Security

Security is one of the highest priorities at Adobe. To learn more about reporting security concerns, visit the Adobe Bug Bounty Program.

Stay up-to-date on the latest security news and patches by signing up for Security Alert Notifications.

Licensing

Each Magento source file included in this distribution is licensed under OSL 3.0 or the terms and conditions of the applicable ordering document between Licensee/Customer and Adobe (or Magento).

Open Software License (OSL 3.0) – Please see LICENSE.txt for the full text of the OSL 3.0 license.

Subject to Licensee's/Customer's payment of fees and compliance with the terms and conditions of the applicable ordering document between Licensee/Customer and Adobe (or Magento), the terms and conditions of the applicable ordering between Licensee/Customer and Adobe (or Magento) supersede the OSL 3.0 license for each source file.

Communications

We are dedicated to our Community and encourage your contributions and welcome feedback through events, our DevBlog, Twitter and YouTube channels, and other Community resources.

To connect with people from the Community and Adobe engineering, join us in Slack. We have a channel for every project. To join a particular channel, send us a request at [email protected], or sign up.

If you are a new Community member, check out the following channels:

  • general is an open chat for introductions and Magento 2 questions
  • github is a support channel for GitHub issues, pull requests, and processes
  • public-backlog for discussions of the backlog

mageos-magento2's People

Contributors

adifucan avatar alzota avatar arkadiych avatar cpartica avatar danmooney2 avatar dhorytskyi avatar eddielau avatar engcom-charlie avatar glo71317 avatar irenelagno avatar ishakhsuvarov avatar joanhe avatar lbajsarowicz avatar magento-engcom-team avatar magento-mts-svc avatar mazhalai avatar naydav avatar okolesnyk avatar rganin avatar serhii-balko avatar shiftedreality avatar sidolov avatar sivaschenko avatar slavvka avatar slopukhov avatar tomreece avatar veronikayarats avatar viktym avatar vladimirzaets avatar zakdma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mageos-magento2's Issues

[Integration Tests] TestModuleWysiwygConfig failed

Description

Integration Tests for TestModuleWysiwygConfig are failed: https://github.com/vpodorozh/mageos-magento2/actions/runs/7801306178/job/21276171975#step:6:64

Fatal error: Uncaught Magento\Framework\Exception\FileSystemException: The "/var/www/html/app/code/Magento/TestModuleWysiwygConfig/etc/adminhtml/di.xml" file doesn't exist. in /var/www/html/lib/internal/Magento/Framework/Filesystem/File/Read.php:76

Expected behavior

tests are passed

Benefits

No response

Additional information

No response

Release note

No response

Remove adobe data-collection code and modal

Both the adobe data-collection modal and the code to collect the data should be removed.

Preconditions and environment

  • Mage-OS 1.0.0 preview

Steps to reproduce

Install the 1.0.0 preview and log into the backend as an admin user.

Expected result

I see the admin dashboard.

Actual result

I see the data-collection agreement modal dialog.

Bildschirmfoto 2023-10-08 um 08 02 43

[Integration Tests] Magento\Security\Model\ResourceModel\UserExpirationTest::testUserExpirationSave failed

Description

Magento\Security\Model\ResourceModel\UserExpirationTest::testUserExpirationSave failed: https://github.com/vpodorozh/mageos-magento2/actions/runs/7801306178/job/21276130305#step:6:35

1) Magento\Security\Model\ResourceModel\UserExpirationTest::testUserExpirationSave with data set "non_default_non_english_textual" ('uk_UA')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'2024-02-16 06:57:[19](https://github.com/vpodorozh/mageos-magento2/actions/runs/7801306178/job/21276130305#step:6:20)'
+'[20](https://github.com/vpodorozh/mageos-magento2/actions/runs/7801306178/job/21276130305#step:6:21)[24](https://github.com/vpodorozh/mageos-magento2/actions/runs/7801306178/job/21276130305#step:6:25)-02-06 06:57:19'

/var/www/html/dev/tests/integration/testsuite/Magento/Security/Model/ResourceModel/UserExpirationTest.php:62

Expected behavior

tests are passed

Benefits

No response

Additional information

No response

Release note

No response

Integration Tests - make services&versions to be user inputs

Description

While manual execution of full integration tests workflow - services and their versions are taken from supported-services.json file that is placed in root of the repo.

However, sometimes it is required to execute tests on other versions/services.

Expected behavior

It is possible to manually define service:version, while running full integration tests workflow, for each of these positions:

  • php
  • composer
  • database
  • search
  • message_queue
  • cache
  • http_cache

If value is not defined - default value from supported-services.json should be taken.

Benefits

No response

Additional information

No response

Release note

No response

Add some linters

Introduce a bunch of linters to fail fast in PRs when there are simple syntax issues.

[Integration Tests] Catalog Bundle products tests are failed

Description

Catalog Bundle products tests are failed.
ref:

1) Magento\Bundle\Model\ProductTest::testIsSalable with data set "selectionQty: 5 qty: 0 isInStock: 0 manageStock: 1 backorders: 0" (5, 0, 0, true, 0, false)
Failed asserting that true matches expected false.
.....
22) Magento\Bundle\Model\ProductTest::testIsSalable with data set "selectionQty: 15 qty: 10 isInStock: 1 manageStock: 1 backorders: 0" (15, 10, 1, true, 0, false)
Failed asserting that true matches expected false.
.....
1) Magento\Bundle\Model\Product\IsSaleableTest::testIsSaleableOnBundleWithNotEnoughQtyOfSelection
Bundle product supposed to be non saleable if there are not enough qty of selections on required options
Failed asserting that true is false.

/var/www/html/dev/tests/integration/testsuite/Magento/Bundle/Model/Product/IsSaleableTest.php:229

Expected behavior

tests are passed

Benefits

No response

Additional information

No response

Release note

No response

[Integration Tests] Magento\CatalogInventory\Observer\SaveInventoryDataObserverTest are failed

Description

Magento\CatalogInventory\Observer\SaveInventoryDataObserverTest::testAutoChangingIsInStockForNewConfigurable are failed: https://github.com/vpodorozh/mageos-magento2/actions/runs/7801306178/job/21276136734#step:6:31

1) Magento\CatalogInventory\Observer\SaveInventoryDataObserverTest::testAutoChangingIsInStockForNewConfigurable
Failed asserting that true is false.

/var/www/html/dev/tests/integration/testsuite/Magento/CatalogInventory/Observer/SaveInventoryDataObserverTest.php:115

Expected behavior

tests are passed

Benefits

No response

Additional information

No response

Release note

No response

n98-magerun2 cli tool can not be used due to version mismatch

Summary

Due to the fact that Mage-OS is reporting version 1.0.1 (ref: Magento\Framework\App\ProductMetadata:::getVersion), n98 magerun will not work.

It may be a problem if mage-OS starts reporting that it is before latest magento 2. - 1 < 2 /:

08:24 $ ./n98-magerun2.phar db:dump --compression=gzip ../db_dumps/base_install.sql

You are running an incompatible version of n98-magerun2!
Your shop version has to be >2.3.0


Current Magento Version     : 1.0.1
Current n98-magerun2 Version: 7.1.0


Please download an older version of n98-magerun2.

Visit: https://files.magerun.net/old_versions.php

    Magento 2.2.x => n98-magerun2 v3.2.0
    Magento 2.1.x => n98-magerun2 v3.2.0
    Magento 2.0.x => n98-magerun2 v2.3.3


✘-1 /vagrant/sites/ntotank/bin [mageos L|● 46✚ 77…6]

Examples

08:24 $ ./n98-magerun2.phar db:dump --compression=gzip ../db_dumps/base_install.sql

You are running an incompatible version of n98-magerun2!
Your shop version has to be >2.3.0

Current Magento Version : 1.0.1
Current n98-magerun2 Version: 7.1.0

Please download an older version of n98-magerun2.

Visit: https://files.magerun.net/old_versions.php

Magento 2.2.x => n98-magerun2 v3.2.0
Magento 2.1.x => n98-magerun2 v3.2.0
Magento 2.0.x => n98-magerun2 v2.3.3

✘-1 /vagrant/sites/ntotank/bin [mageos L|● 46✚ 77…6]

Proposed solution

Reconsider versioning, or change the getVersion routine to accommodate the potential that 1 < 2

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Pre-build for tests execution

Description

Problem

Mage-OS operates multiple packages, and some of them are located in separate repositories (e.g. mage-os/zend-db and etc...).
Once the bug/changes are required to be added to those repositories - they won't be included in tests run (integration/unit/functional) as the main development repository is locked to released versions of these packages, but not develop versions.

Solution

One of the ideas to solve this problem - run special build process that would pack mage-os dev version with all development/current versions of all packages.
This would mean that all changes added into main branches of package repositories of Mage-OS, but have not been released in tag/version yet, will anyway be included & installed in test build for running various types of tests.

Expected behavior

TBD

Benefits

No response

Additional information

No response

Release note

No response

Faster category tree PR integration test regression

Preconditions and environment

  • Mage-OS 1.0.0 preview (with #25 merged)

Steps to reproduce

Run one of the tests

  • \Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest::testImportDelete
  • \Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest::testImportAddUpdateCounts

Expected result

Passing test

Actual result

The test fails with

Caused By: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento_integration_tests.catalog_category_product_index_store0' doesn't exist, query was: SELECT DISTINCT  `catalog_category_product_index_store0`.`category_id` FROM `catalog_category_product_index_store0` WHERE (product_id IN (1))

Full stack trace:

PHPUnit\Framework\Exception: Unable to apply fixture: Magento/Catalog/_files/product_simple.php
#0 /var/www/html/dev/tests/integration/testsuite/Magento/AdvancedPricingImportExport/Model/Import/AdvancedPricingTest.php(173): Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest->testImportDelete()

Caused By: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento_integration_tests.catalog_category_product_index_store0' doesn't exist, query was: SELECT DISTINCT  `catalog_category_product_index_store0`.`category_id` FROM `catalog_category_product_index_store0` WHERE (product_id IN (1))
#0 /var/www/html/vendor/mage-os/framework/DB/Adapter/Pdo/Mysql.php(686): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT DISTINCT...', Array)
#1 /var/www/html/dev/tests/integration/tmp/sandbox-0-445c798e8bd2453347ee5923ade5ab8a82f19f6201ce19d91083a66df809b525/generated/code/Magento/TestFramework/Db/Adapter/Mysql/Interceptor.php(122): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array)
#2 /var/www/html/vendor/mage-os/zend-db/library/Zend/Db/Adapter/Abstract.php(794): Magento\TestFramework\Db\Adapter\Mysql\Interceptor->query(Object(Magento\Framework\DB\Select), Array)
#3 /var/www/html/dev/tests/integration/tmp/sandbox-0-445c798e8bd2453347ee5923ade5ab8a82f19f6201ce19d91083a66df809b525/generated/code/Magento/TestFramework/Db/Adapter/Mysql/Interceptor.php(1148): Zend_Db_Adapter_Abstract->fetchCol(Object(Magento\Framework\DB\Select), Array)
#4 /var/www/html/vendor/mage-os/module-catalog/Model/Indexer/Product/Category/Action/Rows.php(307): Magento\TestFramework\Db\Adapter\Mysql\Interceptor->fetchCol(Object(Magento\Framework\DB\Select))
#5 /var/www/html/vendor/mage-os/module-catalog/Model/Indexer/Product/Category/Action/Rows.php(115): Magento\Catalog\Model\Indexer\Product\Category\Action\Rows->getCategoryIdsFromIndex(Array)
#6 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(58): Magento\Catalog\Model\Indexer\Product\Category\Action\Rows->execute(Array)
#7 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(138): Magento\Catalog\Model\Indexer\Product\Category\Action\Rows\Interceptor->___callParent('execute', Array)
#8 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(153): Magento\Catalog\Model\Indexer\Product\Category\Action\Rows\Interceptor->Magento\Framework\Interception\{closure}(Array)
#9 /var/www/html/dev/tests/integration/tmp/sandbox-0-445c798e8bd2453347ee5923ade5ab8a82f19f6201ce19d91083a66df809b525/generated/code/Magento/Catalog/Model/Indexer/Product/Category/Action/Rows/Interceptor.php(23): Magento\Catalog\Model\Indexer\Product\Category\Action\Rows\Interceptor->___callPlugins('execute', Array, Array)
#10 /var/www/html/vendor/mage-os/module-catalog/Model/Indexer/Category/Product.php(167): Magento\Catalog\Model\Indexer\Product\Category\Action\Rows\Interceptor->execute(Array)
#11 /var/www/html/vendor/mage-os/module-catalog/Model/Indexer/Category/Product.php(144): Magento\Catalog\Model\Indexer\Category\Product->executeAction(Array)
#12 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(58): Magento\Catalog\Model\Indexer\Category\Product->executeRow('1')
#13 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(138): Magento\Catalog\Model\Indexer\Product\Category\Interceptor->___callParent('executeRow', Array)
#14 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(153): Magento\Catalog\Model\Indexer\Product\Category\Interceptor->Magento\Framework\Interception\{closure}('1')
#15 /var/www/html/dev/tests/integration/tmp/sandbox-0-445c798e8bd2453347ee5923ade5ab8a82f19f6201ce19d91083a66df809b525/generated/code/Magento/Catalog/Model/Indexer/Product/Category/Interceptor.php(50): Magento\Catalog\Model\Indexer\Product\Category\Interceptor->___callPlugins('executeRow', Array, Array)
#16 /var/www/html/vendor/mage-os/module-indexer/Model/Indexer.php(523): Magento\Catalog\Model\Indexer\Product\Category\Interceptor->executeRow('1')
#17 /var/www/html/vendor/mage-os/module-indexer/Model/Indexer/DependencyDecorator.php(277): Magento\Indexer\Model\Indexer->reindexRow('1')
#18 /var/www/html/vendor/mage-os/module-catalog/Model/CategoryLinkManagement.php(111): Magento\Indexer\Model\Indexer\DependencyDecorator->reindexRow('1')
#19 /var/www/html/dev/tests/integration/testsuite/Magento/Catalog/_files/product_simple.php(208): Magento\Catalog\Model\CategoryLinkManagement->assignProductToCategories('simple', Array)
#20 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Fixture/LegacyDataFixture.php(38): require('/var/www/html/d...')
#21 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Annotation/DataFixtureSetup.php(56): Magento\TestFramework\Fixture\LegacyDataFixture->apply(Array)
#22 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Annotation/AbstractDataFixture.php(124): Magento\TestFramework\Annotation\DataFixtureSetup->apply(Array)
#23 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Annotation/DataFixture.php(69): Magento\TestFramework\Annotation\AbstractDataFixture->_applyFixtures(Array, Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#24 [internal function]: Magento\TestFramework\Annotation\DataFixture->startTransaction(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#25 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/EventManager.php(49): call_user_func_array(Array, Array)
#26 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php(111): Magento\TestFramework\EventManager->fireEvent('startTransactio...', Array)
#27 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php(81): Magento\TestFramework\Event\Transaction->_startTransaction(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#28 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php(46): Magento\TestFramework\Event\Transaction->_processTransactionRequests('startTest', Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#29 [internal function]: Magento\TestFramework\Event\Transaction->startTest(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#30 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/EventManager.php(49): call_user_func_array(Array, Array)
#31 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/PhpUnit.php(127): Magento\TestFramework\EventManager->fireEvent('startTest', Array)
#32 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php(440): Magento\TestFramework\Event\PhpUnit->startTest(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#33 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php(663): PHPUnit\Framework\TestResult->startTest(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#34 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestCase.php(968): PHPUnit\Framework\TestResult->run(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#35 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php(684): PHPUnit\Framework\TestCase->run(Object(PHPUnit\Framework\TestResult))
#36 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php(684): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#37 /var/www/html/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(651): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#38 /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php(144): PHPUnit\TextUI\TestRunner->run(Object(PHPUnit\Framework\TestSuite), Array, Array, true)
#39 /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php(97): PHPUnit\TextUI\Command->run(Array, true)
#40 /var/www/html/vendor/phpunit/phpunit/phpunit(107): PHPUnit\TextUI\Command::main()
#41 {main}

Caused By: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento_integration_tests.catalog_category_product_index_store0' doesn't exist, query was: SELECT DISTINCT  `catalog_category_product_index_store0`.`category_id` FROM `catalog_category_product_index_store0` WHERE (product_id IN (1))
#0 /var/www/html/vendor/mage-os/framework/DB/Statement/Pdo/Mysql.php(91): Magento\Framework\DB\Statement\Pdo\Mysql->tryExecute(Object(Closure))
#1 /var/www/html/vendor/mage-os/zend-db/library/Zend/Db/Statement.php(313): Magento\Framework\DB\Statement\Pdo\Mysql->_execute(Array)
#2 /var/www/html/vendor/mage-os/zend-db/library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /var/www/html/vendor/mage-os/zend-db/library/Zend/Db/Adapter/Pdo/Abstract.php(242): Zend_Db_Adapter_Abstract->query('SELECT DISTINCT...', Array)
#4 /var/www/html/vendor/mage-os/framework/DB/Adapter/Pdo/Mysql.php(616): Zend_Db_Adapter_Pdo_Abstract->query('SELECT DISTINCT...', Array)
#5 /var/www/html/vendor/mage-os/framework/DB/Adapter/Pdo/Mysql.php(686): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT DISTINCT...', Array)
#6 /var/www/html/dev/tests/integration/tmp/sandbox-0-445c798e8bd2453347ee5923ade5ab8a82f19f6201ce19d91083a66df809b525/generated/code/Magento/TestFramework/Db/Adapter/Mysql/Interceptor.php(122): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array)
#7 /var/www/html/vendor/mage-os/zend-db/library/Zend/Db/Adapter/Abstract.php(794): Magento\TestFramework\Db\Adapter\Mysql\Interceptor->query(Object(Magento\Framework\DB\Select), Array)
#8 /var/www/html/dev/tests/integration/tmp/sandbox-0-445c798e8bd2453347ee5923ade5ab8a82f19f6201ce19d91083a66df809b525/generated/code/Magento/TestFramework/Db/Adapter/Mysql/Interceptor.php(1148): Zend_Db_Adapter_Abstract->fetchCol(Object(Magento\Framework\DB\Select), Array)
#9 /var/www/html/vendor/mage-os/module-catalog/Model/Indexer/Product/Category/Action/Rows.php(307): Magento\TestFramework\Db\Adapter\Mysql\Interceptor->fetchCol(Object(Magento\Framework\DB\Select))
#10 /var/www/html/vendor/mage-os/module-catalog/Model/Indexer/Product/Category/Action/Rows.php(115): Magento\Catalog\Model\Indexer\Product\Category\Action\Rows->getCategoryIdsFromIndex(Array)
#11 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(58): Magento\Catalog\Model\Indexer\Product\Category\Action\Rows->execute(Array)
#12 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(138): Magento\Catalog\Model\Indexer\Product\Category\Action\Rows\Interceptor->___callParent('execute', Array)
#13 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(153): Magento\Catalog\Model\Indexer\Product\Category\Action\Rows\Interceptor->Magento\Framework\Interception\{closure}(Array)
#14 /var/www/html/dev/tests/integration/tmp/sandbox-0-445c798e8bd2453347ee5923ade5ab8a82f19f6201ce19d91083a66df809b525/generated/code/Magento/Catalog/Model/Indexer/Product/Category/Action/Rows/Interceptor.php(23): Magento\Catalog\Model\Indexer\Product\Category\Action\Rows\Interceptor->___callPlugins('execute', Array, Array)
#15 /var/www/html/vendor/mage-os/module-catalog/Model/Indexer/Category/Product.php(167): Magento\Catalog\Model\Indexer\Product\Category\Action\Rows\Interceptor->execute(Array)
#16 /var/www/html/vendor/mage-os/module-catalog/Model/Indexer/Category/Product.php(144): Magento\Catalog\Model\Indexer\Category\Product->executeAction(Array)
#17 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(58): Magento\Catalog\Model\Indexer\Category\Product->executeRow('1')
#18 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(138): Magento\Catalog\Model\Indexer\Product\Category\Interceptor->___callParent('executeRow', Array)
#19 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(153): Magento\Catalog\Model\Indexer\Product\Category\Interceptor->Magento\Framework\Interception\{closure}('1')
#20 /var/www/html/dev/tests/integration/tmp/sandbox-0-445c798e8bd2453347ee5923ade5ab8a82f19f6201ce19d91083a66df809b525/generated/code/Magento/Catalog/Model/Indexer/Product/Category/Interceptor.php(50): Magento\Catalog\Model\Indexer\Product\Category\Interceptor->___callPlugins('executeRow', Array, Array)
#21 /var/www/html/vendor/mage-os/module-indexer/Model/Indexer.php(523): Magento\Catalog\Model\Indexer\Product\Category\Interceptor->executeRow('1')
#22 /var/www/html/vendor/mage-os/module-indexer/Model/Indexer/DependencyDecorator.php(277): Magento\Indexer\Model\Indexer->reindexRow('1')
#23 /var/www/html/vendor/mage-os/module-catalog/Model/CategoryLinkManagement.php(111): Magento\Indexer\Model\Indexer\DependencyDecorator->reindexRow('1')
#24 /var/www/html/dev/tests/integration/testsuite/Magento/Catalog/_files/product_simple.php(208): Magento\Catalog\Model\CategoryLinkManagement->assignProductToCategories('simple', Array)
#25 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Fixture/LegacyDataFixture.php(38): require('/var/www/html/d...')
#26 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Annotation/DataFixtureSetup.php(56): Magento\TestFramework\Fixture\LegacyDataFixture->apply(Array)
#27 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Annotation/AbstractDataFixture.php(124): Magento\TestFramework\Annotation\DataFixtureSetup->apply(Array)
#28 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Annotation/DataFixture.php(69): Magento\TestFramework\Annotation\AbstractDataFixture->_applyFixtures(Array, Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#29 [internal function]: Magento\TestFramework\Annotation\DataFixture->startTransaction(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#30 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/EventManager.php(49): call_user_func_array(Array, Array)
#31 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php(111): Magento\TestFramework\EventManager->fireEvent('startTransactio...', Array)
#32 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php(81): Magento\TestFramework\Event\Transaction->_startTransaction(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#33 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php(46): Magento\TestFramework\Event\Transaction->_processTransactionRequests('startTest', Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#34 [internal function]: Magento\TestFramework\Event\Transaction->startTest(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#35 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/EventManager.php(49): call_user_func_array(Array, Array)
#36 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/PhpUnit.php(127): Magento\TestFramework\EventManager->fireEvent('startTest', Array)
#37 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php(440): Magento\TestFramework\Event\PhpUnit->startTest(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#38 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php(663): PHPUnit\Framework\TestResult->startTest(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#39 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestCase.php(968): PHPUnit\Framework\TestResult->run(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#40 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php(684): PHPUnit\Framework\TestCase->run(Object(PHPUnit\Framework\TestResult))
#41 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php(684): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#42 /var/www/html/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(651): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#43 /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php(144): PHPUnit\TextUI\TestRunner->run(Object(PHPUnit\Framework\TestSuite), Array, Array, true)
#44 /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php(97): PHPUnit\TextUI\Command->run(Array, true)
#45 /var/www/html/vendor/phpunit/phpunit/phpunit(107): PHPUnit\TextUI\Command::main()
#46 {main}

Caused By: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento_integration_tests.catalog_category_product_index_store0' doesn't exist
#0 /var/www/html/vendor/mage-os/framework/DB/Statement/Pdo/Mysql.php(90): PDOStatement->execute()
#1 /var/www/html/vendor/mage-os/framework/DB/Statement/Pdo/Mysql.php(106): Magento\Framework\DB\Statement\Pdo\Mysql->Magento\Framework\DB\Statement\Pdo\{closure}()
#2 /var/www/html/vendor/mage-os/framework/DB/Statement/Pdo/Mysql.php(91): Magento\Framework\DB\Statement\Pdo\Mysql->tryExecute(Object(Closure))
#3 /var/www/html/vendor/mage-os/zend-db/library/Zend/Db/Statement.php(313): Magento\Framework\DB\Statement\Pdo\Mysql->_execute(Array)
#4 /var/www/html/vendor/mage-os/zend-db/library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#5 /var/www/html/vendor/mage-os/zend-db/library/Zend/Db/Adapter/Pdo/Abstract.php(242): Zend_Db_Adapter_Abstract->query('SELECT DISTINCT...', Array)
#6 /var/www/html/vendor/mage-os/framework/DB/Adapter/Pdo/Mysql.php(616): Zend_Db_Adapter_Pdo_Abstract->query('SELECT DISTINCT...', Array)
#7 /var/www/html/vendor/mage-os/framework/DB/Adapter/Pdo/Mysql.php(686): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT DISTINCT...', Array)
#8 /var/www/html/dev/tests/integration/tmp/sandbox-0-445c798e8bd2453347ee5923ade5ab8a82f19f6201ce19d91083a66df809b525/generated/code/Magento/TestFramework/Db/Adapter/Mysql/Interceptor.php(122): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array)
#9 /var/www/html/vendor/mage-os/zend-db/library/Zend/Db/Adapter/Abstract.php(794): Magento\TestFramework\Db\Adapter\Mysql\Interceptor->query(Object(Magento\Framework\DB\Select), Array)
#10 /var/www/html/dev/tests/integration/tmp/sandbox-0-445c798e8bd2453347ee5923ade5ab8a82f19f6201ce19d91083a66df809b525/generated/code/Magento/TestFramework/Db/Adapter/Mysql/Interceptor.php(1148): Zend_Db_Adapter_Abstract->fetchCol(Object(Magento\Framework\DB\Select), Array)
#11 /var/www/html/vendor/mage-os/module-catalog/Model/Indexer/Product/Category/Action/Rows.php(307): Magento\TestFramework\Db\Adapter\Mysql\Interceptor->fetchCol(Object(Magento\Framework\DB\Select))
#12 /var/www/html/vendor/mage-os/module-catalog/Model/Indexer/Product/Category/Action/Rows.php(115): Magento\Catalog\Model\Indexer\Product\Category\Action\Rows->getCategoryIdsFromIndex(Array)
#13 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(58): Magento\Catalog\Model\Indexer\Product\Category\Action\Rows->execute(Array)
#14 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(138): Magento\Catalog\Model\Indexer\Product\Category\Action\Rows\Interceptor->___callParent('execute', Array)
#15 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(153): Magento\Catalog\Model\Indexer\Product\Category\Action\Rows\Interceptor->Magento\Framework\Interception\{closure}(Array)
#16 /var/www/html/dev/tests/integration/tmp/sandbox-0-445c798e8bd2453347ee5923ade5ab8a82f19f6201ce19d91083a66df809b525/generated/code/Magento/Catalog/Model/Indexer/Product/Category/Action/Rows/Interceptor.php(23): Magento\Catalog\Model\Indexer\Product\Category\Action\Rows\Interceptor->___callPlugins('execute', Array, Array)
#17 /var/www/html/vendor/mage-os/module-catalog/Model/Indexer/Category/Product.php(167): Magento\Catalog\Model\Indexer\Product\Category\Action\Rows\Interceptor->execute(Array)
#18 /var/www/html/vendor/mage-os/module-catalog/Model/Indexer/Category/Product.php(144): Magento\Catalog\Model\Indexer\Category\Product->executeAction(Array)
#19 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(58): Magento\Catalog\Model\Indexer\Category\Product->executeRow('1')
#20 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(138): Magento\Catalog\Model\Indexer\Product\Category\Interceptor->___callParent('executeRow', Array)
#21 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(153): Magento\Catalog\Model\Indexer\Product\Category\Interceptor->Magento\Framework\Interception\{closure}('1')
#22 /var/www/html/dev/tests/integration/tmp/sandbox-0-445c798e8bd2453347ee5923ade5ab8a82f19f6201ce19d91083a66df809b525/generated/code/Magento/Catalog/Model/Indexer/Product/Category/Interceptor.php(50): Magento\Catalog\Model\Indexer\Product\Category\Interceptor->___callPlugins('executeRow', Array, Array)
#23 /var/www/html/vendor/mage-os/module-indexer/Model/Indexer.php(523): Magento\Catalog\Model\Indexer\Product\Category\Interceptor->executeRow('1')
#24 /var/www/html/vendor/mage-os/module-indexer/Model/Indexer/DependencyDecorator.php(277): Magento\Indexer\Model\Indexer->reindexRow('1')
#25 /var/www/html/vendor/mage-os/module-catalog/Model/CategoryLinkManagement.php(111): Magento\Indexer\Model\Indexer\DependencyDecorator->reindexRow('1')
#26 /var/www/html/dev/tests/integration/testsuite/Magento/Catalog/_files/product_simple.php(208): Magento\Catalog\Model\CategoryLinkManagement->assignProductToCategories('simple', Array)
#27 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Fixture/LegacyDataFixture.php(38): require('/var/www/html/d...')
#28 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Annotation/DataFixtureSetup.php(56): Magento\TestFramework\Fixture\LegacyDataFixture->apply(Array)
#29 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Annotation/AbstractDataFixture.php(124): Magento\TestFramework\Annotation\DataFixtureSetup->apply(Array)
#30 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Annotation/DataFixture.php(69): Magento\TestFramework\Annotation\AbstractDataFixture->_applyFixtures(Array, Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#31 [internal function]: Magento\TestFramework\Annotation\DataFixture->startTransaction(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#32 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/EventManager.php(49): call_user_func_array(Array, Array)
#33 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php(111): Magento\TestFramework\EventManager->fireEvent('startTransactio...', Array)
#34 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php(81): Magento\TestFramework\Event\Transaction->_startTransaction(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#35 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php(46): Magento\TestFramework\Event\Transaction->_processTransactionRequests('startTest', Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#36 [internal function]: Magento\TestFramework\Event\Transaction->startTest(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#37 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/EventManager.php(49): call_user_func_array(Array, Array)
#38 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/PhpUnit.php(127): Magento\TestFramework\EventManager->fireEvent('startTest', Array)
#39 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php(440): Magento\TestFramework\Event\PhpUnit->startTest(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#40 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php(663): PHPUnit\Framework\TestResult->startTest(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#41 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestCase.php(968): PHPUnit\Framework\TestResult->run(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#42 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php(684): PHPUnit\Framework\TestCase->run(Object(PHPUnit\Framework\TestResult))
#43 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php(684): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#44 /var/www/html/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(651): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#45 /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php(144): PHPUnit\TextUI\TestRunner->run(Object(PHPUnit\Framework\TestSuite), Array, Array, true)
#46 /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php(97): PHPUnit\TextUI\Command->run(Array, true)
#47 /var/www/html/vendor/phpunit/phpunit/phpunit(107): PHPUnit\TextUI\Command::main()
#48 {main}

/var/www/html/dev/tests/integration/framework/Magento/TestFramework/Annotation/ExceptionHandler.php:75
/var/www/html/dev/tests/integration/framework/Magento/TestFramework/Annotation/AbstractDataFixture.php:127
/var/www/html/dev/tests/integration/framework/Magento/TestFramework/Annotation/DataFixture.php:69
/var/www/html/dev/tests/integration/framework/Magento/TestFramework/EventManager.php:49
/var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php:111
/var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php:81
/var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php:46
/var/www/html/dev/tests/integration/framework/Magento/TestFramework/EventManager.php:49
/var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/PhpUnit.php:127

 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php:117
 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php:81
 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php:46
 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/EventManager.php:49
 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/PhpUnit.php:127
 
Unable to revert fixture: Magento/AdvancedPricingImportExport/_files/create_products.php
#0 /var/www/html/dev/tests/integration/testsuite/Magento/AdvancedPricingImportExport/Model/Import/AdvancedPricingTest.php(229): Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest->testImportReplace()

Caused By: The "AdvancedPricingSimple 1" product couldn't be removed.
#0 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(58): Magento\Catalog\Model\ProductRepository->delete(Object(Magento\Catalog\Model\Product\Interceptor))
#1 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(138): Magento\Catalog\Model\ProductRepository\Interceptor->___callParent('delete', Array)
#2 /var/www/html/vendor/mage-os/module-catalog/Plugin/RemoveImagesFromGalleryAfterRemovingProduct.php(57): Magento\Catalog\Model\ProductRepository\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Catalog\Model\Product\Interceptor))
#3 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(135): Magento\Catalog\Plugin\RemoveImagesFromGalleryAfterRemovingProduct->aroundDelete(Object(Magento\Catalog\Model\ProductRepository\Interceptor), Object(Closure), Object(Magento\Catalog\Model\Product\Interceptor))
#4 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(153): Magento\Catalog\Model\ProductRepository\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Catalog\Model\Product\Interceptor))
#5 /var/www/html/generated/code/Magento/Catalog/Model/ProductRepository/Interceptor.php(50): Magento\Catalog\Model\ProductRepository\Interceptor->___callPlugins('delete', Array, NULL)
#6 /var/www/html/vendor/mage-os/module-catalog/Model/ProductRepository.php(681): Magento\Catalog\Model\ProductRepository\Interceptor->delete(Object(Magento\Catalog\Model\Product\Interceptor))
#7 /var/www/html/generated/code/Magento/Catalog/Model/ProductRepository/Interceptor.php(59): Magento\Catalog\Model\ProductRepository->deleteById('AdvancedPricing...')
#8 /var/www/html/dev/tests/integration/testsuite/Magento/AdvancedPricingImportExport/_files/create_products_rollback.php(24): Magento\Catalog\Model\ProductRepository\Interceptor->deleteById('AdvancedPricing...')
#9 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Fixture/LegacyDataFixture.php(54): require('/var/www/html/d...')
#10 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Annotation/DataFixtureSetup.php(82): Magento\TestFramework\Fixture\LegacyDataFixture->revert(Object(Magento\Framework\DataObject))
#11 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Annotation/AbstractDataFixture.php(154): Magento\TestFramework\Annotation\DataFixtureSetup->revert(Array)
#12 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Annotation/DataFixture.php(80): Magento\TestFramework\Annotation\AbstractDataFixture->_revertFixtures()
#13 [internal function]: Magento\TestFramework\Annotation\DataFixture->rollbackTransaction()
#14 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/EventManager.php(49): call_user_func_array(Array, Array)
#15 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php(132): Magento\TestFramework\EventManager->fireEvent('rollbackTransac...')
#16 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php(78): Magento\TestFramework\Event\Transaction->_rollbackTransaction()
#17 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php(56): Magento\TestFramework\Event\Transaction->_processTransactionRequests('endTest', Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#18 [internal function]: Magento\TestFramework\Event\Transaction->endTest(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#19 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/EventManager.php(49): call_user_func_array(Array, Array)
#20 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/PhpUnit.php(139): Magento\TestFramework\EventManager->fireEvent('endTest', Array, true)
#21 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php(452): Magento\TestFramework\Event\PhpUnit->endTest(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest), 0.03174825)
#22 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php(980): PHPUnit\Framework\TestResult->endTest(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest), 0.03174825)
#23 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestCase.php(968): PHPUnit\Framework\TestResult->run(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#24 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php(684): PHPUnit\Framework\TestCase->run(Object(PHPUnit\Framework\TestResult))
#25 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php(684): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#26 /var/www/html/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(651): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#27 /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php(144): PHPUnit\TextUI\TestRunner->run(Object(PHPUnit\Framework\TestSuite), Array, Array, true)
#28 /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php(97): PHPUnit\TextUI\Command->run(Array, true)
#29 /var/www/html/vendor/phpunit/phpunit/phpunit(107): PHPUnit\TextUI\Command::main()
#30 {main}

Caused By: Rolled back transaction has not been completed correctly.
#0 /var/www/html/dev/tests/integration/tmp/sandbox-0-445c798e8bd2453347ee5923ade5ab8a82f19f6201ce19d91083a66df809b525/generated/code/Magento/TestFramework/Db/Adapter/Mysql/Interceptor.php(50): Magento\Framework\DB\Adapter\Pdo\Mysql->beginTransaction()
#1 /var/www/html/vendor/mage-os/framework/Model/ResourceModel/AbstractResource.php(66): Magento\TestFramework\Db\Adapter\Mysql\Interceptor->beginTransaction()
#2 /var/www/html/generated/code/Magento/Catalog/Model/ResourceModel/Product/Interceptor.php(527): Magento\Framework\Model\ResourceModel\AbstractResource->beginTransaction()
#3 /var/www/html/vendor/mage-os/module-catalog-search/Model/Indexer/Fulltext/Plugin/Product.php(57): Magento\Catalog\Model\ResourceModel\Product\Interceptor->beginTransaction()
#4 /var/www/html/vendor/mage-os/module-catalog-search/Model/Indexer/Fulltext/Plugin/Product.php(42): Magento\CatalogSearch\Model\Indexer\Fulltext\Plugin\Product->addCommitCallback(Object(Magento\Catalog\Model\ResourceModel\Product\Interceptor), Object(Closure), Object(Magento\Catalog\Model\Product\Interceptor))
#5 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(135): Magento\CatalogSearch\Model\Indexer\Fulltext\Plugin\Product->aroundDelete(Object(Magento\Catalog\Model\ResourceModel\Product\Interceptor), Object(Closure), Object(Magento\Catalog\Model\Product\Interceptor))
#6 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(153): Magento\Catalog\Model\ResourceModel\Product\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Catalog\Model\Product\Interceptor))
#7 /var/www/html/generated/code/Magento/Catalog/Model/ResourceModel/Product/Interceptor.php(86): Magento\Catalog\Model\ResourceModel\Product\Interceptor->___callPlugins('delete', Array, Array)
#8 /var/www/html/vendor/mage-os/module-catalog/Model/ProductRepository.php(660): Magento\Catalog\Model\ResourceModel\Product\Interceptor->delete(Object(Magento\Catalog\Model\Product\Interceptor))
#9 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(58): Magento\Catalog\Model\ProductRepository->delete(Object(Magento\Catalog\Model\Product\Interceptor))
#10 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(138): Magento\Catalog\Model\ProductRepository\Interceptor->___callParent('delete', Array)
#11 /var/www/html/vendor/mage-os/module-catalog/Plugin/RemoveImagesFromGalleryAfterRemovingProduct.php(57): Magento\Catalog\Model\ProductRepository\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Catalog\Model\Product\Interceptor))
#12 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(135): Magento\Catalog\Plugin\RemoveImagesFromGalleryAfterRemovingProduct->aroundDelete(Object(Magento\Catalog\Model\ProductRepository\Interceptor), Object(Closure), Object(Magento\Catalog\Model\Product\Interceptor))
#13 /var/www/html/vendor/mage-os/framework/Interception/Interceptor.php(153): Magento\Catalog\Model\ProductRepository\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Catalog\Model\Product\Interceptor))
#14 /var/www/html/generated/code/Magento/Catalog/Model/ProductRepository/Interceptor.php(50): Magento\Catalog\Model\ProductRepository\Interceptor->___callPlugins('delete', Array, NULL)
#15 /var/www/html/vendor/mage-os/module-catalog/Model/ProductRepository.php(681): Magento\Catalog\Model\ProductRepository\Interceptor->delete(Object(Magento\Catalog\Model\Product\Interceptor))
#16 /var/www/html/generated/code/Magento/Catalog/Model/ProductRepository/Interceptor.php(59): Magento\Catalog\Model\ProductRepository->deleteById('AdvancedPricing...')
#17 /var/www/html/dev/tests/integration/testsuite/Magento/AdvancedPricingImportExport/_files/create_products_rollback.php(24): Magento\Catalog\Model\ProductRepository\Interceptor->deleteById('AdvancedPricing...')
#18 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Fixture/LegacyDataFixture.php(54): require('/var/www/html/d...')
#19 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Annotation/DataFixtureSetup.php(82): Magento\TestFramework\Fixture\LegacyDataFixture->revert(Object(Magento\Framework\DataObject))
#20 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Annotation/AbstractDataFixture.php(154): Magento\TestFramework\Annotation\DataFixtureSetup->revert(Array)
#21 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Annotation/DataFixture.php(80): Magento\TestFramework\Annotation\AbstractDataFixture->_revertFixtures()
#22 [internal function]: Magento\TestFramework\Annotation\DataFixture->rollbackTransaction()
#23 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/EventManager.php(49): call_user_func_array(Array, Array)
#24 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php(132): Magento\TestFramework\EventManager->fireEvent('rollbackTransac...')
#25 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php(78): Magento\TestFramework\Event\Transaction->_rollbackTransaction()
#26 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php(56): Magento\TestFramework\Event\Transaction->_processTransactionRequests('endTest', Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#27 [internal function]: Magento\TestFramework\Event\Transaction->endTest(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#28 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/EventManager.php(49): call_user_func_array(Array, Array)
#29 /var/www/html/dev/tests/integration/framework/Magento/TestFramework/Event/PhpUnit.php(139): Magento\TestFramework\EventManager->fireEvent('endTest', Array, true)
#30 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php(452): Magento\TestFramework\Event\PhpUnit->endTest(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest), 0.03174825)
#31 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php(980): PHPUnit\Framework\TestResult->endTest(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest), 0.03174825)
#32 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestCase.php(968): PHPUnit\Framework\TestResult->run(Object(Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricingTest))
#33 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php(684): PHPUnit\Framework\TestCase->run(Object(PHPUnit\Framework\TestResult))
#34 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php(684): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#35 /var/www/html/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(651): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#36 /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php(144): PHPUnit\TextUI\TestRunner->run(Object(PHPUnit\Framework\TestSuite), Array, Array, true)
#37 /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php(97): PHPUnit\TextUI\Command->run(Array, true)
#38 /var/www/html/vendor/phpunit/phpunit/phpunit(107): PHPUnit\TextUI\Command::main()
#39 {main}

Additional information

The second test fails with

Magento\Framework\DB\Adapter\TableNotFoundException : SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento_integration_tests.catalog_category_product_index_store0' doesn't exist, query was: SELECT DISTINCT  `catalog_category_product_index_store0`.`category_id` FROM `catalog_category_product_index_store0` WHERE (product_id IN (25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88))

Looking at the stack trace this is triggered by a call to \Magento\Catalog\Model\Indexer\Category\Product::executeAction.

$this->rowsActionFactory->create()->execute($ids);

Magento repository is used for packages instead of Mage-OS

Preconditions and environment

  • Mage-OS version: ANY when using gitlab repo installation
  • Reproduced on both - released version and also develop version (github repo)
  • Reproduced ONLY for packages that are managed in separate repository (e.g. https://github.com/mage-os/mageos-magento-zend-db )

Steps to reproduce

  1. Install Mage-OS
  2. Check composer.lock
  3. Look for "name": "magento/zend-db",

Expected result

The repository URL and reference are pointing to the Mage-OS composer repo or GitHub repo.

{
            "name": "magento/zend-db",
            "version": "1.16.1",
            "source": {
                "type": "git",
                "url": "https://mirror.mage-os.org/packages/magento/magento-zend-db.zip",
                "reference": "475addb06c0a417b2fd18effe5966bd3aa929b7b"
            },
            ...
}

Actual result

The repository URL and reference are pointing to the Magento composer repo or GitHub repo.

{
            "name": "magento/zend-db",
            "version": "1.16.1",
            "source": {
                "type": "git",
                "url": "https://github.com/magento/magento-zend-db.git",
                "reference": "475addb06c0a417b2fd18effe5966bd3aa929b7b"
            },
            ...
}

Additional information

No response

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

[Integration Tests] Magento\GraphQl\App\GraphQlCheckoutMutationsStateTest are failed

Description

Magento\GraphQl\App\GraphQlCheckoutMutationsStateTest are failed: https://github.com/vpodorozh/mageos-magento2/actions/runs/7801306178/job/21276114871#step:6:122

1) Magento\GraphQl\App\GraphQlCheckoutMutationsStateTest::testPlaceOrder
2 objects changed state since constructed. Details: array (
  'Magento\\Elasticsearch7\\Model\\Client\\Elasticsearch' => 
  array (
    'objectClassBefore' => 'Magento\\Elasticsearch7\\Model\\Client\\Elasticsearch',
    'properties' => 
......
......
......
  ),
)
Failed asserting that an array is empty.

/var/www/html/dev/tests/integration/testsuite/Magento/GraphQl/App/State/GraphQlStateDiff.php:[19](https://github.com/vpodorozh/mageos-magento2/actions/runs/7801306178/job/21276114871#step:6:20)0
/var/www/html/dev/tests/integration/testsuite/Magento/GraphQl/App/State/GraphQlStateDiff.php:131
/var/www/html/dev/tests/integration/testsuite/Magento/GraphQl/App/GraphQlCheckoutMutationsStateTest.php:3[26](https://github.com/vpodorozh/mageos-magento2/actions/runs/7801306178/job/21276114871#step:6:27)

Expected behavior

tests are passed

Benefits

No response

Additional information

No response

Release note

No response

Update ComposerInformation for Mage-OS vendor name

The class Magento\Framework\Composer\ComposerInformation needs to be updated so it checks for the vendor name mage-os instead of magento.

Preconditions and environment

  • Mage-OS 1.0.0 preview

Steps to reproduce

Log into the admin and inspect the footer.

Expected result

I expect to see the Mage-OS ver. 1.0.0.

Actual result

I see Mage-OS ver. UNKNOWN.

Additional information

There are a number of regular expressions that need to be updated so they match the vendor-name mage-os:

  • \Magento\Framework\Composer\ComposerInformation::getRequiredPhpVersion
  • \Magento\Framework\Composer\ComposerInformation::isSystemPackage
  • \Magento\Framework\Composer\ComposerInformation::isMagentoRoot

Also, the tests in dev/tests/integration/testsuite/Magento/Framework/Composer/ComposerInformationTest.php need to be adjusted accordingly.

_updateAttribute function started to behave incorrectly when trying to update an attribute which is on a website scope.

Preconditions and environment

  • Magento 2.4.7 and all others including MCLOUD-10032 patch.
  • You should have at least one website and several stores attached to it.
  • You should have an attribute that should have a Website Scope.

Steps to reproduce

Let's assume that we have a website called test_website and 3 stores attached to it: be_store (with id 1), at_store (with id 2), uk_store (with id 3). Also, we have an attribute called show_discount which is a simple Yes/No in Catalog Input Type for Store Owner, and also it should be on a Website scope. To reproduce a bug, we should do the next:

  1. Load a product using the repository and specify any store ID of a website. (let it be the be_store with id 1 from the example).
$product = $this->productRepository->get('some-product-sku', false, 1);
  1. Now I want to update my show_discount attribute value from 0 to 1 by using the next code piece:
$product->addAttributeUpdate('show_discount', 1, $product->getStoreId());

Expected result

Because the attribute is managed on the Website scope, it should be updated for all store views attached to a website test_website, meaning that for all be_store, at_store, and uk_store stores, an attribute show_discount will be enabled. And have corresponding values in catalog_product_entity_int table.

Actual result

The attribute value was changed only for the be_store without taking into account the fact that the attribute is managed on the Website scope.

Additional information

Because of the change to the function, it started to behave incorrectly:

protected function _updateAttribute($object, $attribute, $valueId, $value)

Instead of processing attributes using:

protected function _saveAttributeValue($object, $attribute, $value)

And applying changes for attributes to Website in case it is on the website scope:
https://github.com/mage-os/mageos-magento2/blob/b6cc3c5c12c1b255bbf18e0c69b57d3e53fb9f73/app/code/Magento/Catalog/Model/ResourceModel/AbstractResource.php#L235C22-L235C22

We change it only for the one store, ignoring this crucial functionality
https://github.com/mage-os/mageos-magento2/blob/b6cc3c5c12c1b255bbf18e0c69b57d3e53fb9f73/app/code/Magento/Catalog/Model/ResourceModel/AbstractResource.php#L337C13-L337C14

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Write a Github Action that runs the integration tests of Magento 2 as described here https://developer.adobe.com/commerce/testing/guide/integration/

We should do this for two separate things:

These actions should be added here: https://github.com/graycoreio/github-actions-magento2

  1. The current version in v2.4-develop
  2. The v2.4.5-p1 release

A similar action would be: https://github.com/graycoreio/github-actions-magento2/blob/main/coding-standard/action.yml

I would expect to see a failure (or a success in Github) that looks like:

Image

[Integration Tests] Magento\Catalog\Block tests are failed

Description

Magento\Catalog\Block tests are failed: https://github.com/vpodorozh/mageos-magento2/actions/runs/7801306178/job/21276167070#step:6:66

1) Magento\Catalog\Block\Product\ListProduct\SortingTest::testProductListOutOfStockSortOrderWithElasticsearch with data set "default_order_price_desc" ('price', 'DESC', array('simple3', 'simple2', 'simple1', 'configurable'))
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
-    0 => 'simple3'
-    1 => 'simple2'
-    2 => 'simple1'
-    3 => 'configurable'
+    0 => 'configurable'
+    1 => 'simple3'
+    2 => 'simple2'
+    3 => 'simple1'
 )

/var/www/html/dev/tests/integration/testsuite/Magento/Catalog/Block/Product/ListProduct/SortingTest.php:[33](https://github.com/vpodorozh/mageos-magento2/actions/runs/7801306178/job/21276167070#step:6:34)8
/var/www/html/dev/tests/integration/testsuite/Magento/Catalog/Block/Product/ListProduct/SortingTest.php:464
/var/www/html/dev/tests/integration/testsuite/Magento/Catalog/Block/Product/ListProduct/SortingTest.php:401

Expected behavior

tests are passed

Benefits

No response

Additional information

No response

Release note

No response

Install Magento Sample Data

Preconditions and environment

  • Mage-OS 2.4.6-p2
  • Repositories in composer.json are mageos + magento marketplace
    "repositories": {
        "mage-os-mirror": {
            "type": "composer",
            "url": "https://mirror.mage-os.org/",
            "only": [
                "magento/*",
                "paypal/*",
                "vendorA/*",
                "vendorB/module-b"
            ]
        },
        "magento-marketplace": {
            "type": "composer",
            "url": "https://repo.magento.com",
            "only": [
                "vendorC/module-d",
                "vendorE/*"
            ]
        }
    },

Steps to reproduce

php bin/magento sampledata:deploy

Expected result

Install sample Data

Actual result


pierre@xxxx:~/projets/xxxx/mageos$  php bin/magento sampledata:deploy
Info from https://repo.packagist.org: #StandWithUkraine
./composer.json has been updated
Running composer update mage-os/module-bundle-sample-data mage-os/module-catalog-sample-data mage-os/module-sales-sample-data mage-os/module-customer-sample-data mage-os/module-cms-sample-data mage-os/module-widget-sample-data mage-os/module-theme-sample-data mage-os/module-wishlist-sample-data mage-os/module-downloadable-sample-data mage-os/module-review-sample-data mage-os/module-tax-sample-data mage-os/module-configurable-sample-data mage-os/module-product-links-sample-data mage-os/module-msrp-sample-data mage-os/module-grouped-product-sample-data mage-os/module-catalog-rule-sample-data mage-os/module-sales-rule-sample-data mage-os/module-swatches-sample-data mage-os/module-offline-shipping-sample-data
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires mage-os/module-bundle-sample-data, it could not be found in any version, there may be a typo in the package name.
  Problem 2
    - Root composer.json requires mage-os/module-catalog-rule-sample-data, it could not be found in any version, there may be a typo in the package name.
  Problem 3
    - Root composer.json requires mage-os/module-catalog-sample-data, it could not be found in any version, there may be a typo in the package name.
  Problem 4
    - Root composer.json requires mage-os/module-cms-sample-data, it could not be found in any version, there may be a typo in the package name.
  Problem 5
    - Root composer.json requires mage-os/module-configurable-sample-data, it could not be found in any version, there may be a typo in the package name.
  Problem 6
    - Root composer.json requires mage-os/module-customer-sample-data, it could not be found in any version, there may be a typo in the package name.
  Problem 7
    - Root composer.json requires mage-os/module-downloadable-sample-data, it could not be found in any version, there may be a typo in the package name.

Additional information

No response

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.