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

Switch to use edk2-pytool-library UefiVariableSupportLib #500

Merged

Conversation

apop5
Copy link
Contributor

@apop5 apop5 commented Jun 7, 2024

Description

There are multiple copies of VariableSupportLib floating across repos, mostly only supporting Windows.

Functionality has been consolidated into edk2-pytool-library version 0.21.7. Support for Linux has been added.

Switch MfciPolicy.py, DecodeUefiLog.py and UefiVarAudit.py to use consolidated version from edk2-pytool-library.

Removed local copies of VariableSupportLib.py

  • Impacts functionality?
    • Functionality - Does the change ultimately impact how firmware functions?
    • Examples: Add a new library, publish a new PPI, update an algorithm, ...
  • Impacts security?
    • Security - Does the change have a direct security impact on an application,
      flow, or firmware?
    • Examples: Crypto algorithm change, buffer overflow fix, parameter
      validation improvement, ...
  • Breaking change?
    • Breaking change - Will anyone consuming this change experience a break
      in build or boot behavior?
    • Examples: Add a new library class, move a module to a different repo, call
      a function in a new library class in a pre-existing module, ...
  • Includes tests?
    • Tests - Does the change include any explicit test code?
    • Examples: Unit tests, integration tests, robot tests, ...
  • Includes documentation?
    • Documentation - Does the change contain explicit documentation additions
      outside direct code modifications (and comments)?
    • Examples: Update readme file, add feature readme file, link to documentation
      on an a separate Web page, ...

How This Was Tested

Integration Instructions

N/A

@github-actions github-actions bot added the language:python Pull requests that update Python code label Jun 7, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jun 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.01%. Comparing base (87399cb) to head (43ed480).

Additional details and impacted files
@@               Coverage Diff               @@
##           release/202311     #500   +/-   ##
===============================================
  Coverage           11.01%   11.01%           
===============================================
  Files                 144      144           
  Lines               22079    22079           
  Branches             2356     2356           
===============================================
  Hits                 2432     2432           
  Misses              19615    19615           
  Partials               32       32           
Flag Coverage Δ
AdvLoggerPkg 3.59% <ø> (ø)
MfciPkg 39.37% <ø> (ø)

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.

@apop5 apop5 changed the title Bump edk2-pytool-library to 0.21.7. Switch functions using local Uefi… Switch to use edk2-pytool-library UefiVariableSupportLib Jul 29, 2024
…pytool-library versions. Remove Local UefiVariableSupportLib instances.
@apop5 apop5 force-pushed the personal/apop5/switchvariablesupport branch from 5bf6bc2 to 38551c6 Compare August 2, 2024 22:14
@apop5 apop5 marked this pull request as ready for review August 2, 2024 22:14
@apop5 apop5 requested a review from kuqin12 August 3, 2024 02:19
@apop5 apop5 merged commit b9c3359 into microsoft:release/202311 Aug 7, 2024
28 checks passed
apop5 added a commit to apop5/mu_plus that referenced this pull request Aug 27, 2024
microsoft#500)

There are multiple copies of VariableSupportLib floating across repos,
mostly only supporting Windows.

Functionality has been consolidated into edk2-pytool-library version
0.21.7. Support for Linux has been added.

Switch MfciPolicy.py, DecodeUefiLog.py and UefiVarAudit.py to use
consolidated version from edk2-pytool-library.

Removed local copies of VariableSupportLib.py

- [x] Impacts functionality?
- **Functionality** - Does the change ultimately impact how firmware
functions?
- Examples: Add a new library, publish a new PPI, update an algorithm,
...
- [ ] Impacts security?
- **Security** - Does the change have a direct security impact on an
application,
    flow, or firmware?
  - Examples: Crypto algorithm change, buffer overflow fix, parameter
    validation improvement, ...
- [ ] Breaking change?
- **Breaking change** - Will anyone consuming this change experience a
break
    in build or boot behavior?
- Examples: Add a new library class, move a module to a different repo,
call
    a function in a new library class in a pre-existing module, ...
- [ ] Includes tests?
  - **Tests** - Does the change include any explicit test code?
  - Examples: Unit tests, integration tests, robot tests, ...
- [ ] Includes documentation?
- **Documentation** - Does the change contain explicit documentation
additions
    outside direct code modifications (and comments)?
- Examples: Update readme file, add feature readme file, link to
documentation
    on an a separate Web page, ...

N/A
apop5 added a commit that referenced this pull request Aug 27, 2024
#500)

There are multiple copies of VariableSupportLib floating across repos,
mostly only supporting Windows.

Functionality has been consolidated into edk2-pytool-library version
0.21.7. Support for Linux has been added.

Switch MfciPolicy.py, DecodeUefiLog.py and UefiVarAudit.py to use
consolidated version from edk2-pytool-library.

Removed local copies of VariableSupportLib.py

- [x] Impacts functionality?
- **Functionality** - Does the change ultimately impact how firmware
functions?
- Examples: Add a new library, publish a new PPI, update an algorithm,
...
- [ ] Impacts security?
- **Security** - Does the change have a direct security impact on an
application,
    flow, or firmware?
  - Examples: Crypto algorithm change, buffer overflow fix, parameter
    validation improvement, ...
- [ ] Breaking change?
- **Breaking change** - Will anyone consuming this change experience a
break
    in build or boot behavior?
- Examples: Add a new library class, move a module to a different repo,
call
    a function in a new library class in a pre-existing module, ...
- [ ] Includes tests?
  - **Tests** - Does the change include any explicit test code?
  - Examples: Unit tests, integration tests, robot tests, ...
- [ ] Includes documentation?
- **Documentation** - Does the change contain explicit documentation
additions
    outside direct code modifications (and comments)?
- Examples: Update readme file, add feature readme file, link to
documentation
    on an a separate Web page, ...

N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language:python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants