Skip to content
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

gitignore_parser.py: Handle non-subpaths in rule file check #644

Merged

Conversation

makubacki
Copy link
Member

In IgnoreRule.match(), simply return False if the given absolute path is not a subpath of the base path instead of not handling the exception and breaking the overall build.

@makubacki makubacki self-assigned this Sep 30, 2024
Copy link

codecov bot commented Sep 30, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 81.31%. Comparing base (ce85203) to head (53346c2).
Report is 111 commits behind head on master.

Files with missing lines Patch % Lines
edk2toollib/gitignore_parser.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #644      +/-   ##
==========================================
- Coverage   81.43%   81.31%   -0.13%     
==========================================
  Files          56       45      -11     
  Lines        7514     7491      -23     
==========================================
- Hits         6119     6091      -28     
- Misses       1395     1400       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@makubacki makubacki requested a review from Javagedes September 30, 2024 14:06
@Javagedes Javagedes added the enhancement New feature or request label Oct 1, 2024
@Javagedes Javagedes added this to the v0.21.11 milestone Oct 1, 2024
In IgnoreRule.match(), simply return False if the given absolute
path is not a subpath of the base path instead of not handling
the exception and breaking the overall build.

Signed-off-by: Michael Kubacki <[email protected]>
@Javagedes Javagedes force-pushed the git_ignore_parser_handle_diverging_paths branch from 190ad48 to 53346c2 Compare October 1, 2024 16:40
@Javagedes Javagedes merged commit 78b103e into tianocore:master Oct 1, 2024
12 checks passed
@Javagedes Javagedes modified the milestones: v0.21.11, v0.21.12 Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants