Skip to content

fix(release): bound Linux selected-tag checkout - #194996

Merged
RomneyDa merged 2 commits into
mainfrom
openclaw/mild-barnacle
Nov 10, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
openclaw/mild-barnacle

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 8, 2026

Copy link
Copy Markdown
Member

Summary

  • replace the Linux release validator's unbounded selected-tag checkout with the pinned CI Git owner
  • retry exact tag acquisition three times with 120-second attempt deadlines and bounded backoff
  • detach at the resolved tag commit and fail closed unless HEAD retains that exact commit

Problem

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 passed
  • pnpm check:test-lines-ratchet — passed
  • pnpm check:baseline-ratchets — passed
  • pnpm exec oxfmt --check ... — passed
  • pnpm 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 — passed
  • git diff --check origin/main...HEAD — passed
  • independent GPT-6.1 Sol review of 596c9d463e4c..7560ed2e1160 — no P0/P1 findings; narrative subagent route used because the local Codex CLI was unavailable

Focused 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.

RomneyDa and others added 2 commits November 8, 2026 03:42
OpenClaw-Publication: dc3b5f35-9a05-4fc4-9165-08177132ef53
@clawsweeper

clawsweeper Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@RomneyDa
RomneyDa marked this pull request as ready for review November 8, 2026 03:46
@RomneyDa

RomneyDa commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 8, 2026
@clawsweeper

clawsweeper Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The checkout action retries ordinary failures but has no explicit per-fetch deadline.
  • After: The Git owner limits each fetch to 120 seconds, cleans up before retrying, and checks out the resolved commit only after acquisition succeeds.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-consistent repair with useful policy tests, limited by mocked transport evidence and redundant source-text assertions.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; supplied validation exercises the workflow policy with mocked Git, and the change does not alter the authority chain.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators can lose Linux release admission to stalled Git acquisition during GitHub degradation.
Reason: Explicit operation deadlines and cleanup before retry have clear operational value, and maintainer authorship supplies direction for this narrow workflow change.

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
Reviewed head: 28d0638fc1cbeb63433b164b9d0bd499d0f34d08

Before merge

None.

Findings

None.

Tests

  • Low-value test test/scripts/ci-workflow-guards.test.ts: Remove the added source-string fingerprints at lines 7422–7425: they pin Python spelling and can pass with ineffective code, while the executable policy cases already exercise exact-ref selection, retry count, and SHA rejection; retain the independent credential and job-isolation guards.
  • Missing end-to-end proof: The supplied evidence does not show real Git transport recovery under an injected fault or a regression run failing on the base for the intended reason.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Selected-tag source checkout keeps the original intent (ad8107e: Build installable Linux bundles from a stable release tag with complete ancestry available for release validation.)
  • Selected source versus trusted release tooling keeps the original intent (63e4c74: Historical product tags must remain separate from current trusted packaging tooling and signing credentials.)
  • Release Git lifecycle ownership keeps the original intent (0a6c013: Release admission must wait for Git descendants to stop, with cleanup uncertainty terminal before trust outputs or consumers.)
  • Shared fixture initialization keeps the original intent (bf8288f: Later workflow steps inherit an existing checkout; bootstrap steps must initialize their own repository while retaining lock-preservation checks.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • Dallin Romney: Raw commit ca897ec adds .github/workflows/linux-app-release.yml:78 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ca897ec7463d; files: .github/workflows/linux-app-release.yml)
  • Peter Steinberger: Raw commit 0a6c013 adds .github/workflows/linux-app-release.yml:48 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0a6c013be5f5; files: .github/workflows/linux-app-release.yml)
  • Vincent Koc: Raw commit 63e4c74 adds .github/workflows/linux-app-release.yml:53 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 63e4c7466129; files: .github/workflows/linux-app-release.yml)

PR surface

Tests +71, Config +43. Total +114 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 75 4 +71
Docs 0 0 0 0
Config 1 48 5 +43
Generated 0 0 0 0
Other 0 0 0 0
Total 4 123 9 +114

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a focused release-operator reliability improvement; the evidence does not establish an urgent end-user regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Attach a redacted trace of the workflow policy recovering from an injected failure through real Git transport.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 7, 2026, 10:51 PM ET / November 8, 2026, 03:51 UTC.

@RomneyDa
RomneyDa merged commit e6afc3c into main Nov 10, 2026
178 checks passed
@RomneyDa
RomneyDa deleted the openclaw/mild-barnacle branch November 10, 2026 06:36
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 11, 2026
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant