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
[Finder] Exclude relative to content root if prefixed / #54754
base: 7.1
Are you sure you want to change the base?
Conversation
] | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code format checker wanted me to unindent this ]
, even though it is indented in the current 7.1 branch code.
I suppose that the current code in the 7.1 branch does not pass the code format checker - strange.
]), $finder->in(self::$tmpDir)->getIterator()); | ||
} | ||
|
||
public function testExcludeTopLevelOnly() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the new test case. The top-level foo
has been excluded, but top/foo
and top/foo/file.tmp
are still included, which is what we want the new feature to do.
https://ci.appveyor.com/project/fabpot/symfony/builds/49703585
|
Fixes symfony#28158 Fixes symfony#47431 Related: symfony#26396 Related: symfony#9158 Related: symfony#28410
https://github.com/symfony/symfony/actions/runs/8861398010/job/24333227688?pr=54754
Integration (8.2) failed when "Display versions" got a segmentation fault! I don't think that the changes in this PR caused that. |
Unit Tests (8.4) fail with various things, I suppose that PHP 8.4 support is coming, and hasn't been finished yet. |
https://ci.appveyor.com/project/fabpot/symfony/builds/49703627
Is that a known unit test failure? |
Thanks for digging into the tests! I'll try to take a closer look at your PR in the week ahead. |
I had some test enhancements ready to be used against code for this. So this PR to the 7.1 branch has:
top/foo/file.tmp
multi-level directory tree to the set of directories and files used by the Finder unit tests. That demonstrates the current behaviour, so we can ensure that the new feature does not introduce regressions. These tests pass with the existing 7.1 branch code./
will then only exclude that folder name at the root (top) level of the tree./
#54752I probably have more unit test cases to add, let's see what CI thinks so far...