Fixed
Project:
Drupal core
Version:
main
Component:
recipe system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2026 at 23:41 UTC
Updated:
7 Nov 2026 at 09:42 UTC
Jump to comment: Most recent
This test failed twice in different but similar ways on a recent MR:
https://git.drupalcode.org/project/drupal/-/jobs/13046921
Symfony\Component\Finder\Exception\AccessDeniedException: RecursiveDirectoryIterator::__construct(/tmp/package_manager_testing_roottest85909388): Failed to open directory: No such file or directory
https://git.drupalcode.org/project/drupal/-/jobs/13047677
Symfony\Component\Finder\Exception\AccessDeniedException: RecursiveDirectoryIterator::__construct(/tmp/.!!slQ): Failed to open directory: No such file or directory
The MR gives both tests a unique directory under the OS temporary directory. tearDown() removes it
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
acbramley commentedComment #3
joelpittetSaw this too:
https://git.drupalcode.org/issue/drupal-3018025/-/jobs/13308935
Comment #5
joelpittetGenerated with the help of an LLM.
The test runs
Finderover the whole OS temporary directory. Finder usesdepth(1), so it opens every subdirectory there. Other tests delete their directories in/tmpduring the scan.RecursiveDirectoryIteratorthen throwsAccessDeniedException. The CI logs show this forpackage_manager_testing_root*and a hidden directory.The test removed its symlink only after the assertions passed. A failed run left the link behind, and later runs failed on
assertCount(1).testComposerRecipeDirectory()had the same problem with the fixed path/tmp/test.The MR gives both tests a unique directory under the OS temporary directory.
tearDown()removes it.Local stress test, with four processes creating and deleting directories in
TMPDIR:run-tests.shwith --concurrency 8 --repeat 16passed 16 of 16.Comment #6
smustgrave commentedHad to apply the diff to fully read it but I say lets give this approach a shot.
Comment #7
catchOne comment nit on the MR.
Comment #8
joelpittetNit addressed, back to RTBC because no code changes.
Comment #10
catchCommitted/pushed to main, thanks!
This test only appears to be in main, so leaving this there.