Repository navigation
fix(release): bound Linux selected-tag checkout - #194996
Conversation
Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: dc3b5f35-9a05-4fc4-9165-08177132ef53
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR bounds Linux release tag acquisition and checkout, retries failed fetches, and verifies the checked-out commit. Example: Fetching v2026.11.1 stalls during GitHub degradation.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it adds explicit Git operation deadlines through the existing lifecycle owner, preserves release admission checks, and introduces no identified correctness defect. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Linux release validator turns an operator-selected stable tag into an admitted commit SHA consumed by isolated build jobs, followed by separate signing and publication owners. flowchart TD
A[Trusted release request] --> B[Selected tag acquisition]
B --> C[Pinned Git lifecycle owner]
C --> D[Exact checkout and admission checks]
D --> E[Build jobs using admitted SHA]
E --> F[Isolated signing and publication]
Technical reviewBest possible solution: Retain the focused inline acquisition policy under the existing Git owner while preserving exact-SHA admission and separate signing and publication owners. Do we have a high-confidence way to reproduce the issue? Base source establishes the absence of explicit per-Git deadlines, but no supplied trace reproduces a real transport stall; no target code was executed during this read-only review. Is this the best way to solve the issue? The patch uses the existing process owner and removes the replaced checkout path without adding a competing lifecycle implementation; its inline policy also preserves full tag ancestry needed by release admission. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 596c9d463e4c. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +71, Config +43. Total +114 across 4 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 7, 2026, 10:51 PM ET / November 8, 2026, 03:51 UTC. |
* fix(release): bound Linux selected-tag checkout Co-authored-by: RomneyDa <[email protected]> * fix(release): bound Linux selected-tag checkout OpenClaw-Publication: dc3b5f35-9a05-4fc4-9165-08177132ef53 --------- Co-authored-by: RomneyDa <[email protected]>
Summary
HEADretains that exact commitProblem
During GitHub degradation, the selected-tag checkout in Linux App Release could stall or fail immediately. It had neither a bounded retry policy nor explicit exact-checkout verification.
Evidence
pnpm test test/scripts/ci-workflow-guards.test.ts test/scripts/release-workflow-git-lifecycle.test.ts --maxWorkers=1 --silent— 228 passedpnpm check:test-lines-ratchet— passedpnpm check:baseline-ratchets— passedpnpm exec oxfmt --check ...— passedpnpm exec oxlint test/scripts/ci-git-owner.test-support.ts test/scripts/ci-workflow-guards.test.ts test/scripts/release-workflow-git-lifecycle.test.ts— passedgit diff --check origin/main...HEAD— passed596c9d463e4c..7560ed2e1160— no P0/P1 findings; narrative subagent route used because the local Codex CLI was unavailableFocused behavioral contracts cover retry recovery, exhausted retries, exact-ref checkout, exact-commit mismatch rejection, process cleanup boundaries, and the static workflow contract.
Risk
The new path uses the existing pinned CI Git owner and a literal public remote, so it does not persist checkout credentials. All network attempts and the detached checkout are bounded, and any unresolved tag, cleanup failure, checkout failure, or SHA mismatch stops the release validator.