Skip to content

v4.1.x: CI: Fix a bug in the cherry pick checker #8948

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
merged 1 commit into from
May 11, 2021

Conversation

StevenGood154
Copy link
Contributor

@StevenGood154 StevenGood154 commented May 11, 2021

The check_cherry_pick() function in .github/workflows/git-commit-checks.py
would incorrectly allow some cherry-pick messages reffering to commits that
do not exist in the base repository, specifially when the commit exists only
on a pull request that has not been merged. This has been resolved; the
workflow will exit with a failure unless the referenced commit exists in
the base repository.

Note that this approach only works because all commits are introduced to
the open-mpi/ompi through pull requests from forks.

Signed-off-by: Steven Good [email protected]
Signed-off-by: Brett Wiseman [email protected]
Signed-off-by: Christine Van Kirk [email protected]

(cherry picked from commit a641680)

The check_cherry_pick() function in .github/workflows/git-commit-checks.py
would incorrectly allow some cherry-pick messages reffering to commits that
do not exist in the base repository, specifially when the commit exists only
on a pull request that has not been merged. This has been resolved; the
workflow will exit with a failure unless the referenced commit exists in
the base repository.

Note that this approach only works because all commits are introduced to
the open-mpi/ompi through pull requests from forks.

Signed-off-by: Steven Good <[email protected]>
Signed-off-by: Brett Wiseman <[email protected]>
Signed-off-by: Christine Van Kirk <[email protected]>

(cherry picked from commit a641680)
@ompiteam-bot
Copy link

Can one of the admins verify this patch?

@jsquyres jsquyres changed the title CI: Fix a bug in the cherry pick checker v4.1.x: CI: Fix a bug in the cherry pick checker May 11, 2021
@jsquyres jsquyres self-requested a review May 11, 2021 01:07
@jsquyres jsquyres added this to the v4.1.x milestone May 11, 2021
@jsquyres
Copy link
Member

This PR correctly failed the git commit checker CI test because it's a cherry pick for a commit on master in a PR that is not yet merged (i.e., #8947). Woo hoo! 🎉

@jsquyres
Copy link
Member

ok to test

@jsquyres jsquyres merged commit 6b3b63e into open-mpi:v4.1.x May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants