Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration tests/ fix failed tests #61

Merged
merged 28 commits into from
Jan 25, 2024
Merged

Integration tests/ fix failed tests #61

merged 28 commits into from
Jan 25, 2024

Conversation

vpodorozh
Copy link
Contributor

@vpodorozh vpodorozh commented Dec 2, 2023

Description (*)

Pull Request must contain fixes and changes to failed/error integration tests and/or functionality they cover.

Related Pull Requests

Current state:

tests total: 13311
failing: 37 ( https://github.com/vpodorozh/mageos-magento2/actions/runs/7476706132 )
tests in unclear status: ~0

Integration Tests Execution results on various Magento versions:

https://docs.google.com/spreadsheets/d/1bGJZ1PBY6HS4hyhJyWVX0SnEOcbESnew40Myo2Bkmn4/edit?usp=sharing

Issues to be Solved/Fixed:

Contribution

  1. Pick up point that is not solved yet and you wanna work on
  2. Solve it and create PR into vpodorozh:integration-tests/fix-tests (this PR branch)
  3. Ping me in Mage-OS Discord and I'll review your PR asap. my discord vladyslavpodorozhnyi

…tStockTest::testProductStockStatusShouldBeUpdatedOnSchedule

          Zend_Db_Exception: Table "catalog_category_product_index_store0_replica" does not exist

Partially reverting fix from Vinai:
`Create category-product index table for store 0 (#47)

 This fixes a regression introduced by pull request
 #25
…de/Magento/CatalogInventory/Model/StockManagement.php:110

Test: dev/tests/integration/testsuite/Magento/Downloadable/Block/Sales/Order/Email/Items/Order/DownloadableTest.php
Failed due to visibility filter in whishlist collection. Products were not added to root category and not reindexed. So visibility filter ued to exclude them from wishlist items collection: app/code/Magento/Wishlist/Model/ResourceModel/Item/Collection.php:390
@vpodorozh vpodorozh requested a review from a team as a code owner December 2, 2023 14:33
@vpodorozh vpodorozh marked this pull request as draft December 2, 2023 14:34
Include and use changed workflow to have more unitary tests executions
…zend-db#1

Error that was fixed:
Unable to revert fixture: Magento/Framework/Backup/_files/trigger.php
#0 /var/www/html/dev/tests/integration/testsuite/Magento/Framework/Backup/DbTest.php(42): Magento\Framework\Backup\DbTest->testBackupAndRollbackIncludesCustomTriggers()
...
Magento\Framework\Image\Adapter\InterfaceTest::testRotate with data set #4 ('/var/www/html/dev/tests/integ...st.png', 45, array(157, 35), 'IMAGEMAGICK')
ImagickException: unrecognized color `srgb255,255,255' @ warning/color.c/GetColorCompliance/1064
Magento\Framework\Image\Adapter\InterfaceTest::testCreatePngFromString with data set #1 (array(5, 12), array(0, 0, 0), array(0, 20), array(255, 255, 255), 'IMAGEMAGICK')
ImagickException: unable to read font `' @ error/annotate.c/RenderFreetype/1636
Magento\Dhl\Model\CarrierTest::testRequestToShip with data set #0 ('GB', 'EU', 'US')
Failed asserting that two DOM documents are equal.

-      <SoftwareName>Magento</SoftwareName>
+      <SoftwareName>Mage-OS</SoftwareName>
@vpodorozh vpodorozh marked this pull request as ready for review December 8, 2023 22:41
@vpodorozh vpodorozh marked this pull request as draft December 8, 2023 22:42
vpodorozh and others added 9 commits December 9, 2023 00:13
Magento\Framework\Image\Adapter\InterfaceTest::testCreatePngFromString with data set #1 (array(5, 12), array(0, 0, 0), array(0, 20), array(255, 255, 255), 'IMAGEMAGICK')
PHPUnit\Framework\Exception: Deprecated: Implicit conversion from float 11.34375 to int loses precision in /var/www/html/lib/internal/Magento/Framework/Image/Adapter/ImageMagick.php:505.
Magento\Framework\Image\Adapter\InterfaceTest::testCreatePngFromString with data set #1 (array(5, 12), array(0, 0, 0), array(0, 20), array(255, 255, 255), 'IMAGEMAGICK')
PHPUnit\Framework\Exception: Deprecated: Implicit conversion from float 11.34375 to int loses precision in /var/www/html/lib/internal/Magento/Framework/Image/Adapter/ImageMagick.php:505.
Magento\Framework\Image\Adapter\InterfaceTest::testRotate with data set #4 ('/var/www/html/dev/tests/integ...st.png', 45, array(157, 35), 'IMAGEMAGICK')
ImagickException: unrecognized color `srgb255,255,255' @ warning/color.c/GetColorCompliance/1064
…nput-over-test-directory

Add optional param to run tests over specific directory only.
ihor-sviziev and others added 6 commits January 10, 2024 10:45
… resolving):

error msg:
1) Magento\Catalog\Block\Adminhtml\Category\Checkboxes\TreeTest::testGetTreeJson
Error: Call to a member function getConnectionName() on null

/var/www/html/lib/internal/Magento/Framework/App/ResourceConnection.php:110
/var/www/html/app/code/Magento/Catalog/Model/ResourceModel/Category/Collection.php:570
...

ref: https://github.com/vpodorozh/mageos-magento2/actions/runs/7472531139/job/20334972566#step:6:39
Fix failed integration tests in \Magento\Customer
Fix failed tests: \Magento\Version\Controller\Index\IndexTest
@ihor-sviziev
Copy link
Contributor

ihor-sviziev commented Jan 15, 2024

just checked TestModuleOverrideConfig failure https://github.com/vpodorozh/mageos-magento2/actions/runs/7476706132/job/20347768985#step:6:60

It looks like it was added in eceb5d9, and it depends on some overrides.xml file, that isn't triggered when running tests from specific folder. Do anyone know what is the overrides.xml file designed for and how to integrate it properly?

Might be related extdn/github-actions-m2#56, @damienwebdev maybe you know something about it?

@ihor-sviziev
Copy link
Contributor

Hi @vpodorozh,
Could you pls try re-running tests on the latest version? I noticed that some failures aren't reproducing on the 2.4-develop branch, e.g. I suggest reverting some of my changes https://github.com/vpodorozh/mageos-magento2/pull/9.

@vpodorozh
Copy link
Contributor Author

vpodorozh commented Jan 21, 2024

Hi @vpodorozh, Could you pls try re-running tests on the latest version? I noticed that some failures aren't reproducing on the 2.4-develop branch, e.g. I suggest reverting some of my changes vpodorozh#9.

Actually only one thing was fixed in latest 2.4-develop - related to spaces in page generation.
Just merged your revert.

And Magento have added a one more new bug - https://github.com/vpodorozh/mageos-magento2/actions/runs/7596143665/job/20689518571#step:6:34

For detailed test results on various Magento versions (Mage-OS, Magento + latest updated) - lookup here: https://docs.google.com/spreadsheets/d/1bGJZ1PBY6HS4hyhJyWVX0SnEOcbESnew40Myo2Bkmn4/edit?usp=sharing

@vpodorozh vpodorozh marked this pull request as ready for review January 24, 2024 09:28
composer.json Show resolved Hide resolved
Copy link
Contributor

@Vinai Vinai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please change those two small things I commented on?

UPDATE: both comments resolved

@vpodorozh
Copy link
Contributor Author

Could you please change those two small things I commented on?

UPDATE: both comments resolved

Great @Vinai . I;ve also double-checked the fix from zend-db - works fine.
So we can merge this PR.

@Vinai Vinai merged commit fb84973 into mage-os:2.4-develop Jan 25, 2024
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants