fix(ci): ensure the release-gate-failure label exists before filing audit issue (#10389) - #10966
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Git-on-my-level
left a comment
There was a problem hiding this comment.
Thanks for tightening this up. I reviewed the current head after the earlier Cubic feedback: the new label_output handling now only tolerates the explicit "already exists" case and fails loudly for other gh label create errors, so the audit issue is no longer silently dropped on permission/API/rate-limit failures.
I also checked the workflow permissions around both record_break_glass jobs (issues: write) and ran the static backend production admission contract script against the PR head; it passes. A small shell-behavior check for the added conditional also behaved as intended for success, already-exists, and fatal-error cases.
Because this touches release/deploy workflow behavior, I’m leaving this as a positive signal rather than formal approval and tagging it for maintainer workflow review before merge.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
2f44b69 to
59b4d43
Compare
…udit issue (BasedHardware#10389) Both break-glass audit jobs ran gh issue create --label release-gate-failure with no guarantee the label exists in the repo. GitHub rejects issue creation with an unknown label, so the audit issue was never filed (the prod Cloud Run bypass in BasedHardware#10301 was preserved manually). Ensure the label exists first with an idempotent gh label create, then file the issue — the audit trail can no longer be dropped by a missing label. Failure-Class: none Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
…ission check The gateway validator required the bare `release-gate-failure` string anywhere in gcp_llm_gateway.yml. The new `gh label create release-gate-failure` step (and its comment) satisfy that weak fragment, so a workflow that dropped `--label release-gate-failure` from the audit issue would pass the check. Tighten the fragment to the exact `--label release-gate-failure` flag on the issue-create command, which is the property the check exists to pin. Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
…sured The idempotent `gh label create ... 2>/dev/null || true` swallowed every failure — permissions, rate limits, API errors — not just the tolerated "already exists" case, so a real label-create failure would still drop the audit issue silently. Capture the output and only suppress the exact "already exists" message; any other failure now fails the job loudly before the audit issue is attempted. Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
59b4d43 to
da34337
Compare
|
@Git-on-my-level need human response — this is still blocked on code-owner review for release/deploy workflow automation. Your earlier AI pass was a positive signal (not CHANGES_REQUESTED): What’s left is the formal human / |
Keep the release-gate-failure label ensure fix current for CO re-check.
|
@Git-on-my-level need human response — release/deploy workflow code-owner APPROVE still the only merge blocker on #10966. Refreshed tip
Static |
|
@Git-on-my-level workflow-review ping: current head is MERGEABLE and CI evidence is green. The release-gate-failure label guard has no author-side blocker; please approve or state an explicit hold. |
|
@Git-on-my-level @undivisible review ping — this one is ready and has been waiting 4 days. MERGEABLE, no failing checks on the current head. It ensures the release-gate-failure label exists before the audit issue is filed (#10389). Blocked only on workflow CODEOWNER approval — Still current and still author-side clear. Verified against |
Fixes #10389
What changed and why
Both break-glass audit jobs (
record_break_glassingcp_backend.ymlandgcp_llm_gateway.yml) rangh issue create --label release-gate-failurewith no guarantee the label exists in the repo. GitHub rejects issue creation with an unknown label, so the audit issue was never filed — the prod Cloud Run bypass in #10301 had to be preserved manually.Each job now runs an idempotent
gh label create release-gate-failure(suppressed on "already exists") before filing the issue, so the audit trail can no longer be dropped by a missing label.Product invariants affected
None (CI workflow only).
How it was verified
actionlint .github/workflows/gcp_backend.yml— clean.actionlint .github/workflows/gcp_llm_gateway.yml— no new findings (the SC2086 warnings are pre-existing on main, in an untouched step).python3 .github/scripts/check-direct-backend-production-admission.py— passes (the staticrelease-gate-failurefragment requirement is still satisfied).Tests
No test change — this is a workflow runtime behavior fix. The static break-glass contract check (
check-direct-backend-production-admission.py) still passes and continues to require the audit path to reference the label.Failure class (fixes)
Failure-Class: none
Scoped cleanups
None.