Skip to content

cicd/bug: query live labels in hold gate instead of (stale) event payload - #2200

Merged
ahg-g merged 5 commits into
llm-d:mainfrom
elevran:worktree-fix-hold-gate-rerun
Jul 29, 2026
Merged

cicd/bug: query live labels in hold gate instead of (stale) event payload#2200
ahg-g merged 5 commits into
llm-d:mainfrom
elevran:worktree-fix-hold-gate-rerun

Conversation

@elevran

@elevran elevran commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

What type of PR is this?
/kind bug

What this PR does / why we need it:

The Hold gate workflow checked github.event.pull_request.labels.*.name, which is frozen at the time the run was triggered. Re-running a failed hold-gate job (via the Actions UI) replays that stale payload instead of refetching current labels, so the check keeps failing even after the hold/do-not-merge/hold label is removed. Only a brand-new triggering event (e.g. a new commit) would produce a fresh payload and let it pass.

Instead of using the labels from the (stale) payload, this PR queries current labels via gh pr view inside the step, so reruns reflect the PR's actual current state.

Which issue(s) this PR fixes:

Fixes #2199

Release note (write NONE if no user-facing change):

NONE

@elevran
elevran requested a review from a team as a code owner July 27, 2026 10:48
@elevran
elevran requested review from liu-cong and vMaroon July 27, 2026 10:48
@github-actions github-actions Bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. kind/bug Categorizes issue or PR as related to a bug. and removed kind/bug Categorizes issue or PR as related to a bug. labels Jul 27, 2026
@elevran elevran changed the title fix(ci): query live labels in hold gate instead of stale event payload cicd/bug: query live labels in hold gate instead of (stale) event payload Jul 27, 2026
@github-actions github-actions Bot added kind/bug Categorizes issue or PR as related to a bug. and removed kind/bug Categorizes issue or PR as related to a bug. labels Jul 27, 2026
elevran added 5 commits July 29, 2026 12:19
github.event.pull_request.labels is frozen at trigger time, so a manual
rerun of a failed hold-gate job kept failing after the hold label was
removed. Fetch current labels via the GitHub API instead.

Fixes llm-d#2199

Signed-off-by: Etai Lev Ran <elevran@gmail.com>
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
@elevran
elevran force-pushed the worktree-fix-hold-gate-rerun branch from f84c8ca to f1ccc47 Compare July 29, 2026 12:11
@ahg-g
ahg-g merged commit 85e1ee2 into llm-d:main Jul 29, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Categorizes issue or PR as related to a bug. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hold gate reruns replay stale label state, blocking merge after hold is removed

2 participants