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

table parsers: Use closest package path relative path #461

Merged

Conversation

Javagedes
Copy link
Contributor

@Javagedes Javagedes commented Dec 5, 2023

INF paths in the DSC and FDF can be defined as an absolute path, relative to the workspace, or relative to any package path. To ensure consistency with paths, this change converts any provided path to be relative to the closest package path. This simplifies queries that typically use the path column for filtering, or join commands.

That is to say, if there are two package paths: Common/, Common/Special/, a path can be relative to either of these packages paths. So both Special/Files/MyFile.c and Files/MyFile.c are acceptable. However when inserting into the database, we now ensure that the closest package path relative path is used. In the above example, that means Files/MyFile.c.

Updates the INF path provided in the FDF (INF <path>) to be relative
to the closest package path, rather than the path provided. This is to
prevent bugs in queries where we are comparing the INF path set by the
generic INF parser (which uses the closest relative package path) to
the INF path provided in the INF.
@Javagedes Javagedes changed the title Fv table get closest packagepath table parsers: Use closest package path relative path Dec 5, 2023
Copy link

codecov bot commented Dec 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cadd3f2) 81.19% compared to head (03bc0dc) 81.20%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #461      +/-   ##
==========================================
+ Coverage   81.19%   81.20%   +0.01%     
==========================================
  Files          57       57              
  Lines        7358     7362       +4     
==========================================
+ Hits         5974     5978       +4     
  Misses       1384     1384              

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

@Javagedes Javagedes requested a review from makubacki December 6, 2023 00:09
@Javagedes Javagedes merged commit cdf6d13 into tianocore:master Dec 6, 2023
12 checks passed
@Javagedes Javagedes added this to the 0.19.8 milestone Dec 6, 2023
@Javagedes Javagedes added the enhancement New feature or request label Dec 6, 2023
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.

3 participants