Skip to content

Ensure to build the last commit of the expected branch for protected targets #728

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

glehmann
Copy link
Member

We don't check that the commit is in the remote branch, in order to avoid building from a commit in a PR that has been merged but is not the merged commit.

@glehmann glehmann requested review from stormi and ydirson June 18, 2025 08:50
…targets

We don't check that the commit is in the remote branch, in order to
avoid building from a commit in a PR that has been merged but is not
the merged commit.

Signed-off-by: Gaëtan Lehmann <[email protected]>
@glehmann glehmann force-pushed the gln/build-last-commit-protected-uzyx branch from 4b4c53c to f59897a Compare June 19, 2025 11:41
@glehmann glehmann requested a review from stormi June 19, 2025 12:26
expected_branch is not None
and not is_remote_branch_commit(dirpath, hash, expected_branch)
):
raise Exception(f"The current commit is not the last commit in the remote branch {expected_branch}.\n"
Copy link
Member

Choose a reason for hiding this comment

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

I have doubts about the heuristics. We could try with this one, but I think there must be an option to force-build. Especially with fasttrack, where there are cases when we may have to build from a branch because master has too many changes and we want to push an update out with just a tiny XSA fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants