fix(workflows): also exclude *AbstractTest.php suffix from Mage-OS suite#374
Merged
mage-os-ci merged 3 commits intoMay 17, 2026
Conversation
PHPUnit 12 treats discovered Abstract*Test.php files as runner warnings, which the integration job interprets as exit code 1 even when all concrete tests pass. Generate <exclude> entries for any Abstract*Test.php inside the included shards. Also fix unescaped backticks in the trailing echo so bash no longer logs "integrationIgnore: command not found".
Prior commit only matched Abstract*Test.php prefix; upstream Magento also ships abstract bases with the suffix form (PaypalExpressAbstractTest, EntityAbstractTest, EavAbstractTest, etc.), which still trip PHPUnit 12 runner warnings and turn shards red.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends the abstract-test exclusion in
full-integration-tests.yamlto also match the suffix form*AbstractTest.php. The prior commit only handled theAbstract*Test.phpprefix form.Why
PHPUnit 12 treats abstract test classes discovered via
<directory>as runner warnings, which the integration job interprets as exit code 1 — turning shards red even when all concrete tests pass.Upstream Magento ships 6 abstract base classes with the suffix form that the previous glob missed:
dev/tests/integration/testsuite/Magento/PaypalGraphQl/PaypalExpressAbstractTest.phpdev/tests/integration/testsuite/Magento/PaypalGraphQl/PaypalPayflowProAbstractTest.phpdev/tests/integration/testsuite/Magento/ImportExport/Model/Import/EntityAbstractTest.phpdev/tests/integration/testsuite/Magento/ImportExport/Model/Export/EntityAbstractTest.phpdev/tests/integration/testsuite/Magento/ImportExport/Model/Import/Entity/EntityAbstractTest.phpdev/tests/integration/testsuite/Magento/ImportExport/Model/Import/Entity/EavAbstractTest.phpThese were the root cause of 14 of the 21 red shards in mage-os/mageos-magento2 run 25980469684 (release/3.x full integration suite).
Change
Test plan
release/3.xofmageos-magento2after merge and confirm the 14 abstract-warning shards turn green.