-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix(general): escape default ignored directories #6738
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
Conversation
Hey @tpvasconcelos, could you please merge the latest changes from the main branch into your branch again? Thanks! |
This comment was marked as duplicate.
This comment was marked as duplicate.
1 similar comment
@MaryArmaly done! |
@tpvasconcelos Please rebase and wait for CI to run again. Sorry for the delay, I will try to follow up when you rebase |
Done ✅ |
@tpvasconcelos There are errors in the CI - can you please fix them? |
I saw the issue and the solution and it LGTM. just need to make sure the CI passes 😄 |
@tjwald the error seems to come from a flaky test that should not be directly affected by these changes. I'm not sure what the expected value for this test duration is (apart from it having to be <1s) but for this run it was 1.01s Have you seen this before?
|
All checks have passed. |
* Escape `ignored_directories` * Implement windows compatability in `re_dir` * refactor `EXCLUDED_PATHS` * Add test for `re_dir` * Add test: `TestBaseRunner::tests_re_dir_test_pattern` * typo --------- Co-authored-by: pazbec <paz8097@gmail.com>
This reverts commit cea46be.
Reverted due to this issue. |
User description
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Description
See #6737 for more details and context:
Checklist:
Generated description
Below is a concise technical summary of the changes proposed in this PR:
Enhances the directory exclusion mechanism by introducing a new
re_dir
function that creates regex patterns for matching paths containing specified directories at any level. Updates theIGNORED_DIRECTORIES_ENV
andEXCLUDED_PATHS
to use these new regex patterns, ensuring more accurate exclusion of directories like.git
andvenv
. Adds comprehensive unit tests to validate the new functionality.re_dir
function and its regex patterns.Modified files (1)
Latest Contributors(2)
re_dir
function to create regex patterns for directory exclusion and updates existing exclusion lists.Modified files (2)
Latest Contributors(2)