fix(ci): ensure the break-glass label exists before recording the bypass - #10527
fix(ci): ensure the break-glass label exists before recording the bypass#10527aryanorastar wants to merge 3 commits into
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Thanks for the focused fix here. The change is directionally right to me: creating I also did a local static/targeted verification pass on the PR head (
I’m not formally approving because this changes production deploy/break-glass workflow behavior and the current check summary is not fully green ( by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Thanks for the verification pass. One correction on the status blocker: nothing on this PR is failing. Hygiene and Formatting show as Since the two cancelled lanes never completed here, I ran them locally against that exact head so it isn't taken on trust:
So the remaining gate is just the code-owner sign-off you flagged, which is the right call given this touches the production break-glass path — not a CI problem. Head is unchanged at |
|
@Git-on-my-level need human response — this PR is mergeable (no conflicts, checks green) and has been sitting in Summary: this PR is part of a batch that was just cleaned up (rebased onto current main, conflicts resolved, superseded PRs closed). All remaining open PRs are mergeable and waiting on review. Please review/merge or request changes. |
…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>
16ce0ab to
2f44b69
Compare
|
Head updated with the full 3-commit series on
CI status is green on the tip: |
|
@Git-on-my-level gentle ping — note that #10966 now carries the refined |
|
Thanks for the focused work on the break-glass audit path here. I’m going to close this PR as superseded by #10966, which carries the same fix direction but with the refined label-create handling: it only tolerates the explicit “already exists” case and fails loudly on other label creation/API/permission failures before the audit issue is filed. That is the safer path for this production workflow surface. #10966 should remain under maintainer workflow review before merge. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level. |
|
Hey @aryanorastar 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
What
Closes #10389.
The Release Eligibility break-glass path records a prod bypass by opening a GitHub issue with
--label release-gate-failure. Underset -euo pipefail, when that label didn't exist the labeledgh issue createfailed the whole step — so a real prod Cloud Run bypass (e262b2323b) went unrecorded and had to be reconstructed by hand as #10301.Fix
The #10163 guard requires the tracking issue to carry that label, so dropping it (or an unlabeled fallback) isn't an option. Instead, create the label first so the labeled issue-create always succeeds:
--forceis idempotent (creates if missing, refreshes if present);issues: writealready covers label creation.|| truetolerates only a transient labels-API blip — not a missing label, which the create now guarantees away.gcp_backendandgcp_llm_gatewaybreak-glass jobs.Also satisfies the issue's "label should exist" acceptance — it's created on the next break-glass run.
Guard update
Because the label name now also appears on the
gh label createline, the #10163 checker's"release-gate-failure"fragment would pass even if the issue lost its label. Tightened it to--label release-gate-failureso it still verifies the label is on the tracking issue, not merely present in the job.Verification
Failure-Class: none