Repository navigation
fix(ci): drain release admission Git before handoff - #133308
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 9:48 AM ET / 13:48 UTC. ClawSweeper reviewWhat this changesThe PR replaces direct Git commands in Linux, macOS, and npm-placeholder release admission with the pinned shared lifecycle owner, and adds lifecycle, workflow-guard, and CI-routing coverage. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessKeep this PR open: current main still uses the unowned GNU-timeout Git commands in all three admission jobs, while this branch routes those commands through the existing lifecycle owner and covers the intended failure boundaries. No introduced correctness defect was found. Priority: P2 Review scores
Verification
How this fits togetherRelease-admission workflows validate a selected release tag or source before handing trusted Git metadata to package checks or publication planning. The shared Git owner drains each Git process tree before subsequent ancestry decisions, outputs, or consumers run. flowchart LR
Request[Release request] --> Checkout[Selected source checkout]
Checkout --> Validation[Git admission validation]
Validation --> Owner[Git lifecycle owner]
Owner --> Trust[Tag or ancestry decision]
Trust --> Handoff[Package or publication handoff]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +472, Docs +2, Config +69, Other +10. Total +553 across 13 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: Land the existing owner-boundary repair after exact-head CI confirms the lifecycle, workflow-guard, and native-owner lanes. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: the added lifecycle harness executes each changed workflow body with real fake-Git process trees and models output and consumer boundaries; the supplied PR evidence reports pre-fix failures and post-fix passes. Is this the best way to solve the issue? Yes. The patch reuses the existing lifecycle owner at the producer boundary instead of adding downstream guards, while preserving each workflow's distinct trust-decision messages and deadlines. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ab989f0d3c79. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready proof for exact head ClawSweeper found no correctness issue. Its two before-merge items were exact-head CI completion and normal maintainer landing; the first is green and this native flow satisfies the second. Hosted proof:
The pre-fix actual workflow bodies failed the new success cases because real fake-Git parent/child/grandchild writers crossed continuation, output, consumer, or exit boundaries. Focused local proof included these exact commands: OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs test/scripts/release-workflow-git-lifecycle.test.ts --no-file-parallelism --reporter=dotResult: 68/68 lifecycle cases passed. OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts test/scripts/test-projects.test.ts src/scripts/ci-changed-scope.test.ts test/scripts/npm-placeholder-publication.test.ts test/scripts/package-acceptance-workflow.test.ts --no-file-parallelism --reporter=dotResult: 894 passed, with 2 existing skips. OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs test/scripts/ci-git-owner.test.ts test/scripts/ci-linux-git.test.ts test/scripts/ci-platform-checkout.test.ts test/scripts/openclaw-performance-git-lifecycle.test.ts test/scripts/release-workflow-git-lifecycle.test.ts --no-file-parallelism --reporter=dotResult: 400 passed, with 89 existing platform-specific skips. The full changed-surface gate passed conflict, ratchet, dependency, formatting, typecheck, dead-export, and lint checks. Native review artifacts validate as Known gaps: no release, package publication, credentialed transport, tag, version bump, or live release workflow was executed. The local Python workflow checker could not install the current |
|
Merged via squash.
|
Related: #132183
What Problem This Solves
Fixes an issue where release operators validating a Linux companion release, a macOS handoff, or an npm placeholder publication could continue after GNU
timeoutobserved only the Git leader while child or grandchild writers were still alive. A later tag lookup, ancestry decision, workflow output, metadata checker, or publication-plan consumer could therefore overlap an earlier Git process tree.Those paths also interpreted every shell nonzero as an ordinary Git outcome. Process-inspection or cleanup uncertainty could be flattened into the existing “not reachable” or exact-SHA rejection instead of stopping the release handoff at the lifecycle owner.
Why This Change Was Made
The three admission jobs now prepare the reviewed canonical Git owner at
dd4528b6393e7d00063067a080ca7241b48ce475before selected-source checkout.Linux App Release and NPM Placeholder Bootstrap use trusted inline typed policies because they translate ordinary Git failure into existing trust decisions. macOS Release remains a straight-line owner sequence because every Git nonzero is terminal before
release:openclaw:npm:check. The migration preserves the exact commands, refspecs, checkout authentication, one-attempt behavior, and operation budgets: the three transport fetches remain 120 seconds; local tag/SHA/ancestry reads remain unbounded; no retry or backoff was added.Ordinary Linux ancestry nonzero still emits the existing main-reachability rejection. NPM Placeholder retains workflow identity, exact checked-out SHA, workflow ancestry, target ancestry, and output ordering. Owner setup, process census, cleanup failure, and cancellation now stop before another Git command, output, metadata checker, or consumer.
User Impact
There is no OpenClaw runtime or package-release behavior change. Release operators get deterministic admission evidence: tag/SHA trust outputs and the macOS metadata handoff are produced only after every preceding Git process tree is verified extinct.
No release, package publication, tag, version bump, changelog change, credentialed transport, or live release workflow was executed by this PR.
Evidence
124/125/143; setup failure; timeout; cleanup uncertainty; cancellation; Linux ancestry rejection; npm-placeholder identity and both ancestry messages; output gating; macOS metadata-consumer gating; and unrelated sentinel survival.4135aa650ae.actionlint, parsed non-migrated workflow equivalence, docs inventory,git diff --check, targeted formatting, and fresh mandatory autoreview passed with no accepted finding.pre-commit==4.6.2pin. No dependency or pin was changed; exact-head Workflow Sanity will provide the authoritative hosted check.Release-workflow delta: +97/-28 (net +69), required for three trusted owner placements and two typed trust-decision policies. CI routing/tooling: +13/-3 (net +10). Tests/support: +483/-11. Documentation: +3/-1. Product runtime code is unchanged.