Skip to content

OvmfPkg: Pass command-line args to PR Eval #11219

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

Merged

Conversation

makubacki
Copy link
Member

Description

Allow PR eval to operate with the same input variable values as the build command would.

Because BLD_*_SMM_REQUIRE and BLD_*_STANDALONE_MM_ENABLE were not being passed to PR Eval, bbee92c was merged and broke the mainline because the MM build was not run during the PR gate.

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

How This Was Tested

Local PR eval run before and after the change. After, PR eval detects the package needs to be built:

image

Integration Instructions

N/A

@leiflindholm
Copy link
Member

Presumably this PR can't pass CI either, so feel free to push manually.

Copy link
Contributor

@Javagedes Javagedes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per offline conversation, but for tracking purposes here - please ignore both - and -- args and also handle when the passed in variable is BLD_<target>_ (such as BLD_RELEASE_, not just BLD_*_

@makubacki makubacki force-pushed the ovmfpkg_pass_args_to_pr_eval branch from 8bb3f67 to 82b08cd Compare June 23, 2025 18:04
@makubacki
Copy link
Member Author

Per offline conversation, but for tracking purposes here - please ignore both - and -- args and also handle when the passed in variable is BLD_<target>_ (such as BLD_RELEASE_, not just BLD_*_

Updated

@makubacki
Copy link
Member Author

There is an internal edk2-pytool-library change I'd like to follow up on further before this PR is merged. tianocore/edk2-pytool-library#750.

@leiflindholm
Copy link
Member

There is an internal edk2-pytool-library change I'd like to follow up on further before this PR is merged. tianocore/edk2-pytool-library#750.

OK, but given all merging is blocked until this goes in, could we fast-track that?

@makubacki
Copy link
Member Author

makubacki commented Jun 24, 2025

There is an internal edk2-pytool-library change I'd like to follow up on further before this PR is merged. tianocore/edk2-pytool-library#750.

OK, but given all merging is blocked until this goes in, could we fast-track that?

This PR is to help more accurately detect changes that should trigger the OvmfPkg build in pull request checks in the future (future being asap), but didn't bbee92c ultimately break mainline and needs to be reverted (if there's not a better resolution)?

@leiflindholm
Copy link
Member

This PR is to help more accurately detect changes that should trigger the OvmfPkg build in pull request checks in the future (future being asap), but didn't bbee92c ultimately break mainline and needs to be reverted (if there's not a better resolution)?

Ah, I wasn't sure on cause and effect. If so, yes. I'll submit one. But then someone with repo write permissions will need to manually push that revert.

@leiflindholm
Copy link
Member

Raised #11225.

@leiflindholm
Copy link
Member

leiflindholm commented Jun 24, 2025

Ah, I wasn't sure on cause and effect. If so, yes. I'll submit one. But then someone with repo write permissions will need to manually push that revert.

And of course they don't because the revert PR passes CI. I've set the push label on #11225 and it is now merged.

So the only race condition for this PR is we want it merged before the next attempt at #11210 gets its push label set.

@makubacki
Copy link
Member Author

Ah, I wasn't sure on cause and effect. If so, yes. I'll submit one. But then someone with repo write permissions will need to manually push that revert.

And of course they don't because the revert PR passes CI. I've set the push label on #11225 and it is now merged.

So the only race condition for this PR is we want it merged before the next attempt at #11210 gets its push label set.

Sounds good. We're prioritizing concluding the discussion for this PR.

@YangGangUEFI
Copy link
Contributor

It seems that #10975 also has a similar problem?

@leiflindholm
Copy link
Member

It seems that #10975 also has a similar problem?

Yeah :(
Thanks for raising #11229

Allow PR eval to operate with the same input variable values as the
build command would.

Signed-off-by: Michael Kubacki <[email protected]>
@ardbiesheuvel ardbiesheuvel force-pushed the ovmfpkg_pass_args_to_pr_eval branch from 82b08cd to 0e95a76 Compare July 8, 2025 03:43
@ardbiesheuvel ardbiesheuvel added the push Auto push patch series in PR if all checks pass label Jul 8, 2025
@ardbiesheuvel ardbiesheuvel merged commit 33e58db into tianocore:master Jul 8, 2025
128 of 129 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
push Auto push patch series in PR if all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants