ci: skip the x86 E2E gate when the PR is already merged - #7281
Open
zhangzujian wants to merge 1 commit into
Open
ci: skip the x86 E2E gate when the PR is already merged#7281zhangzujian wants to merge 1 commit into
zhangzujian wants to merge 1 commit into
Conversation
A pull_request Build x86 Image can finish after the PR is squash-merged. The gate then listed open PRs for that HEAD, got zero matches, and jq errored instead of skipping. Treat zero matching open PRs as skip, and only fail when more than one open PR still points at the workflow HEAD. Signed-off-by: Zujian Zhang <zhangzujian.7@gmail.com>
Coverage Report for CI Build 32361530045Coverage decreased (-0.003%) to 32.748%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions2 previously-covered lines in 1 file lost coverage.
Coverage Stats
💛 - Coveralls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The unprivileged
pull_requestBuild x86 Image for #7280 completed after the PR was merged:https://github.com/kubeovn/kube-ovn/actions/runs/32360797816/job/96399743984
workflow_run.pull_requestswas empty, the fallback listedstate=openPRs forzhangzujian:fix/e2e-pr-check-run-input, and jq failed with:Zero matching open PRs means the source PR is already gone; skip the gate. Still fail when more than one open PR matches the same HEAD.
Signed-off-by: Zujian Zhang zhangzujian.7@gmail.com