Repository navigation
fix(release): report stale Linux release requests - #138450
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
Codex review: blocked before merge. Reviewed September 4, 2026, 2:48 PM ET / 18:48 UTC. ClawSweeper reviewWhat this changesThe PR moves the Linux release request SHA comparison from job admission into the first validation step so stale requests report a redispatch instruction instead of silently skipping the release workflow. Merge readiness⛔ Blocked before merge - 1 item remains No blocking correctness findings. This focused maintainer-authored release-workflow repair preserves the exact SHA admission requirement while turning its prior silent skip into an actionable failure; it should remain open for normal maintainer handling and exact-head workflow checks. Priority: P1 Review scores
Verification
How this fits togetherA manually dispatched Linux release request triggers a downstream workflow that validates the request before selecting a release tag and building companion bundles. The changed validation step decides whether the downstream release proceeds or reports that main advanced. flowchart LR
A[Manual Linux release request] --> B[Workflow-run admission]
B --> C[Request validation]
C --> D{Request SHA matches workflow SHA}
D -->|Yes| E[Tag and ancestry validation]
E --> F[Build and publish bundles]
D -->|No| G[Visible redispatch error]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +62, Config +7. Total +69 across 2 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one exact SHA admission rule at the request-to-release boundary, with stale requests failing before selected-tag checkout and telling the operator to dispatch a fresh request. Do we have a high-confidence way to reproduce the issue? Yes—current main's job-level SHA predicate rejects request SHA A versus workflow SHA B before any validation step can run, and the proposed focused test exercises that exact stale/matching split against the checked-in Bash. Is this the best way to solve the issue? Yes—the change preserves the existing exact-SHA restriction and relocates its outcome to the first owner validation step, which is the narrowest place that can provide an operator-visible failure before selected code runs. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 26f87a37009b. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
4279621 to
69fe4c5
Compare
|
Addressed the latest review’s remaining before-merge condition: all checks for The first validation step still enforces exact SHA equality before outputs or selected checkout, and all six trust filters remain at job admission. The actual Bash matching/stale regression and filter checks passed before the patch-identical mechanical rebase; fresh hosted checks cover the rebased head. Fresh independent review of this exact diff found no actionable P0–P2 findings. Workflow growth is +7 net lines for explicit SHA bindings and the previously missing visible outcome; tests are +62 net. The PR body records both initial CI failures and their resolution without increasing any performance budget. No release was dispatched or published. Proceeding through the native Testbox-backed prepare and merge gates. |
|
Merged as 10a86ffb58e196105d709dbefb7fc8b129d3afeb from the reviewed and prepared head 69fe4c52a2a08120d09e3ef093cbcca371e4b7b1. The linked issue #138446 is closed. Exact-head CI and native hosted CI/Testbox preparation passed. GitHub accepted the native squash merge, then returned HTTP 503 during receipt verification. The retained attempt was reconciled against the authoritative merged state and reconstructed landed tree; no second merge request was sent. No bypass, release dispatch or publication occurred. |
* fix(release): report stale Linux release requests * style(release): use the pinned workflow formatter
What Problem This Solves
Fixes an issue where operators requesting Linux companion bundles would see the downstream release silently skip when main advanced after the request workflow completed.
Why This Change Was Made
Move the existing exact request/workflow SHA comparison from the validation job condition into its first shell step. Stale requests now fail with a diagnostic to dispatch a new Linux App Release Request. The check still runs before selected code is checked out; repository, event, workflow name, branch and successful-request filters remain at job admission.
The release request owns this validation. No signing, publication, tag-selection or trust policy changes are included. Workflow delta: +8/-1 (net +7); test delta: +65/-3 (net +62). The added workflow lines provide the missing operator-visible rejection and bind the existing SHA facts at the validation owner. Moving the equality back into the job condition would restore the silent skip; relaxing it would weaken policy. There is no clearer net-neutral form that preserves both requirements.
User Impact
An operator gets a clear failure and recovery action when a release request becomes stale. Matching requests retain their existing outputs and release path.
Evidence
CI retry and base refresh
The initial CI run 33902926191 exposed two failures. A stale local oxfmt 0.60 donor introduced one unrelated YAML wrap; the declared 0.65 formatter removed it, and pinned formatting plus workflow checks pass. The Control UI startup bundle also exceeded its inherited budget by 271 bytes. The exact synthetic-merge/base tree diff contained only this workflow and its tests, so the PR added no UI build inputs.
The branch was mechanically rebased onto
0062f2b127bbbdc9fd7db65c679066a11101b6c3, which includes the canonical lazy settings-copy repair from #137342 (f804e08cba8f). No budget, allowance or assertion changed. The canonical base's performance job passed; the rebased head69fe4c52a2a08120d09e3ef093cbcca371e4b7b1now also passes Control UI performance and check-lint. All exact-head checks are now complete: 112 successful, 28 intentionally skipped and one neutral; the aggregate CI gate passes. Native preparation verifies hosted CI/Testbox evidence before merge.No release dispatch or publication was performed; the changed admission boundary was executed locally using synthetic event data. This directly exercises the real Bash guard without triggering release side effects; it is not a live GitHub release run.
Closes #138446.