Skip to content

test: make FrameworkCodeTest tolerate files removed during the scan - #10798

Merged
paulbalandan merged 1 commit into
codeigniter4:4.8from
paulbalandan:autoreview-concurrent-files
Nov 20, 2026
Merged

paulbalandan merged 1 commit into
codeigniter4:4.8from
paulbalandan:autoreview-concurrent-files

Conversation

@paulbalandan

Copy link
Copy Markdown
Member

Description
FrameworkCodeTest::testDeprecationsAreProperlyVersioned() failed in the random parallel run with RecursiveDirectoryIterator::__construct(.../app/Commands): Failed to open directory. Other tests create and delete files under app/ while getSourceFiles() scans it, so a directory or file can vanish mid-scan.

The iterators now use CATCH_GET_CHILD, and files that no longer resolve or read are skipped.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@carson-codeigniter4 carson-codeigniter4 Bot added 4.8 PRs that target the `4.8` branch. bug Verified issues on the current code behavior or pull requests that will fix them testing Pull requests that changes tests only labels Nov 19, 2026
@paulbalandan paulbalandan changed the title fix: make FrameworkCodeTest tolerate files removed during the scan test: make FrameworkCodeTest tolerate files removed during the scan Nov 19, 2026
@carson-codeigniter4 carson-codeigniter4 Bot removed the bug Verified issues on the current code behavior or pull requests that will fix them label Nov 19, 2026
@paulbalandan
paulbalandan force-pushed the autoreview-concurrent-files branch from 5b47c11 to f4bdcbf Compare November 20, 2026 13:09
@paulbalandan
paulbalandan merged commit 0531321 into codeigniter4:4.8 Nov 20, 2026
49 checks passed
@paulbalandan
paulbalandan deleted the autoreview-concurrent-files branch November 20, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.8 PRs that target the `4.8` branch. testing Pull requests that changes tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants