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

WindowsVsToolChain: Filter vs vars on specific vc #1310

Open
wants to merge 1 commit into
base: dev/202502
Choose a base branch
from

Conversation

Javagedes
Copy link
Contributor

@Javagedes Javagedes commented Mar 19, 2025

Description

Filters the extra vs vars gathered via QueryVcVariables() to specifically be the ones associated with the vc version set in the same plugin. This is to prevent version of the compiler differing from the version of any included .c / .h files that are made available through the vs vars such as LIB, INCLUDE, etc.

Additionally, now logs a warning when the plugin detects multiple versions of the compiler in the environment.

Example of log:

image
  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?
  • Backport to release branch?

How This Was Tested

Validated the WindowsVsToolChain plugin correctly detects and logs when multiple versions of a particular vs toolchain are installed, and that the compiler version match the version of the include paths returned with the vc vars.

Integration Instructions

Consumers of MU_BASECORE must ensure their version of edk2-pytool-extensions is 0.23.1 or greater.

Filters the extra vs vars gathered via QueryVcVariables() to
specifically be the ones associated with the vc version set in the same
plugin. This is to prevent version of the compiler differing from the
version of any included .c / .h files that are made available through
the vs vars such as LIB, INCLUDe, etc.

Additionally now logs a warning when the plugin detects multiple
versions of the compiler in the environment.
@Javagedes Javagedes requested review from makubacki and apop5 March 19, 2025 23:42
@github-actions github-actions bot added language:python Pull requests that update Python code impact:breaking-change Requires integration attention impact:non-functional Does not have a functional impact labels Mar 19, 2025
@Javagedes Javagedes linked an issue Mar 19, 2025 that may be closed by this pull request
1 task
@codecov-commenter
Copy link

codecov-commenter commented Mar 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (dev/202502@68d85db). Learn more about missing BASE report.

Additional details and impacted files
@@              Coverage Diff              @@
##             dev/202502    #1310   +/-   ##
=============================================
  Coverage              ?    1.59%           
=============================================
  Files                 ?     1408           
  Lines                 ?   364660           
  Branches              ?     4570           
=============================================
  Hits                  ?     5799           
  Misses                ?   358788           
  Partials              ?       73           
Flag Coverage Δ
MdeModulePkg 0.64% <ø> (?)
MdePkg 5.54% <ø> (?)
NetworkPkg 0.55% <ø> (?)
PolicyServicePkg 30.42% <ø> (?)
UefiCpuPkg 4.86% <ø> (?)

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.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact:breaking-change Requires integration attention impact:non-functional Does not have a functional impact language:python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: WindowsVsToolChain Plugin VC version mismatch
3 participants