Skip to content

fix(workflows): emit <file> for .php entries in Mage-OS testsuite#372

Merged
mage-os-ci merged 1 commit into
mage-os:mainfrom
rhoerr:fix/full-integration-tests-file-vs-directory
May 17, 2026
Merged

fix(workflows): emit <file> for .php entries in Mage-OS testsuite#372
mage-os-ci merged 1 commit into
mage-os:mainfrom
rhoerr:fix/full-integration-tests-file-vs-directory

Conversation

@rhoerr
Copy link
Copy Markdown
Contributor

@rhoerr rhoerr commented May 17, 2026

Summary

  • The matrix sharder injects an entry per shard into the generated Mage-OS Suite testsuite. STANDALONE_TESTS shards are single .php files (e.g. ./testsuite/Magento/Catalog/Model/CategoryTest.php), but the loop unconditionally wrapped every entry in <directory>...</directory>.
  • PHPUnit 12 added strict is_dir() validation on <directory> paths, so the file-as-directory entries now fail the suite definition.
  • Branch on the .php suffix to emit <file> for those entries and keep <directory> for everything else. Also trim any whitespace the JSON formatting may leave around each entry before the check.

Test plan

  • CI: Full Integration Tests workflow runs without PHPUnit configuration errors on the standalone-test shards (e.g. MassScheduleTest.php, CategoryTest.php).
  • Inspect the workflow Debug: output for NEW_TESTSUITE_ENTRY and confirm .php shards appear as <file> and directory shards remain <directory>.

🤖 Generated with Claude Code

PHPUnit 12 validates is_dir() strictly, so wrapping standalone test
files (e.g. STANDALONE_TESTS entries ending in .php) in <directory>
fails. Branch on the .php suffix to emit <file> instead, and trim
whitespace introduced by JSON formatting before checking.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@rhoerr rhoerr requested a review from a team as a code owner May 17, 2026 01:53
@mage-os-ci mage-os-ci merged commit 6cacbc6 into mage-os:main May 17, 2026
1 check 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.

2 participants