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

[202405] ImageValidation: Determine profile from inf MODULE_TYPE #1124

Merged

Conversation

Javagedes
Copy link
Contributor

Description

In previous iterations, the profile was determined by parsing the makefile, looking for MODULE_TYPE. As each OS / tool chain may use a different makefile type, this was not a reliable method. This updates the plugin to read the INF for the compiled efi file to determine the MODULE_TYPE and thus the profile.

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

Validated on qemuq35 that the module type was successfully parsed.

Integration Instructions

N/A

In previous iterations, the profile was determined by parsing the
makefile, looking for MODULE_TYPE. As each OS / tool chain may use a
different makefile type, this was not a reliable method. This updates
the plugin to read the INF for the compiled efi file to determine the
MODULE_TYPE and thus the profile.
@github-actions github-actions bot added the impact:non-functional Does not have a functional impact label Aug 27, 2024
@Javagedes Javagedes changed the title ImageValidation: Determine profile from inf MODULE_TYPE [202405] ImageValidation: Determine profile from inf MODULE_TYPE Aug 27, 2024
@Javagedes Javagedes requested review from makubacki and apop5 August 27, 2024 15:48
@codecov-commenter
Copy link

codecov-commenter commented Aug 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 1.59%. Comparing base (f481172) to head (c6de1df).
Report is 1 commits behind head on release/202405.

Additional details and impacted files
@@               Coverage Diff               @@
##           release/202405    #1124   +/-   ##
===============================================
  Coverage            1.59%    1.59%           
===============================================
  Files                1448     1448           
  Lines              362487   362487           
  Branches             5632     5632           
===============================================
  Hits                 5776     5776           
  Misses             356604   356604           
  Partials              107      107           
Flag Coverage Δ
MdeModulePkg 0.68% <ø> (ø)
MdePkg 5.42% <ø> (ø)
NetworkPkg 0.55% <ø> (ø)
PolicyServicePkg 30.41% <ø> (ø)
UefiCpuPkg 4.73% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@Javagedes Javagedes merged commit 0a17aa9 into microsoft:release/202405 Aug 27, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact:non-functional Does not have a functional impact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants