Skip to content

ci: skip the x86 E2E gate when the PR is already merged - #7281

Open
zhangzujian wants to merge 1 commit into
kubeovn:masterfrom
zhangzujian:fix/e2e-gate-skip-merged-pr
Open

ci: skip the x86 E2E gate when the PR is already merged#7281
zhangzujian wants to merge 1 commit into
kubeovn:masterfrom
zhangzujian:fix/e2e-gate-skip-merged-pr

Conversation

@zhangzujian

Copy link
Copy Markdown
Member

The unprivileged pull_request Build x86 Image for #7280 completed after the PR was merged:

https://github.com/kubeovn/kube-ovn/actions/runs/32360797816/job/96399743984

workflow_run.pull_requests was empty, the fallback listed state=open PRs for zhangzujian:fix/e2e-pr-check-run-input, and jq failed with:

workflow HEAD must resolve to exactly one open pull request

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

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>
@zhangzujian
zhangzujian requested a review from oilbeater as a code owner August 20, 2026 10:58
@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. ci github_actions Pull requests that update GitHub Actions code labels Aug 20, 2026
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 32361530045

Coverage decreased (-0.003%) to 32.748%

Details

  • Coverage decreased (-0.003%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 2 coverage regressions across 1 file.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

2 previously-covered lines in 1 file lost coverage.

File Lines Losing Coverage Coverage
pkg/ovs/ovn-nb-bfd.go 2 61.61%

Coverage Stats

Coverage Status
Relevant Lines: 64588
Covered Lines: 21151
Line Coverage: 32.75%
Coverage Strength: 0.38 hits per line

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci github_actions Pull requests that update GitHub Actions code size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants