Repository navigation
fix(ci): hydrate release ancestry within deadline - #136309
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 2, 2026, 12:04 PM ET / 16:04 UTC. ClawSweeper reviewWhat this changesThis PR replaces fixed-depth release-history fetching with a deadline-bounded trusted Git ancestry policy for source and Tideclaw npm preflight checks. Merge readinessKeep open: the owner-boundary repair has no supported correctness finding, but its required exact-head release-preflight evidence remains incomplete for both source and conditional Tideclaw execution paths. Priority: P1 Review scores
Verification
How this fits togetherThe npm release preflight checks a selected release source against trusted branch history before running package and architecture validation. The new policy hydrates only the needed Git ancestry and leaves a canonical tracking ref for downstream checks. flowchart LR
A[Release preflight request] --> B[Release source checkout]
B --> C[Trusted ancestry policy]
D[Main or Tideclaw branch] --> C
C --> E[Verified ancestry and tracking ref]
E --> F[Source and package checks]
F --> G[Release evidence]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +484, Config +219. Total +703 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the single trusted ancestry policy, then verify it in an exact-head release-preflight run covering source and Tideclaw modes before merge. Do we have a high-confidence way to reproduce the issue? Yes, source-level reproduction is high confidence: the added real-Git fixtures model shallow histories beyond the former fixed ceiling, though this review did not execute them. Is this the best way to solve the issue? Unclear: the trusted owner and topology tests support this design, but an exact-head hosted trace has not yet confirmed the workflow’s source and Tideclaw paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e61adf3d2c61. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
f52a18d to
dc2fe2a
Compare
|
@clawsweeper re-review The implementation was materially replaced: fixed 50+50 history depth is gone, source and Tideclaw now share progressive time-bounded hydration, stale remote refs are refreshed before any terminal ancestry decision, and executable real-Git regressions cover distant and force-pushed topology. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞👀 Re-review progress:
|
dc2fe2a to
2dfe731
Compare
|
@clawsweeper re-review The implementation changed again after focused review: release ancestry now keeps the dedicated trusted git-owner policy, bounded transient retries, and canonical remote-tracking refs such as |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
2dfe731 to
40f331c
Compare
|
Merged via squash.
|
* fix(ci): bound release source history fetches * fix(ci): hydrate release ancestry within deadline * fix(ci): preserve release ancestry failure codes * fix(ci): complete shallow release ancestry proof * fix(ci): preserve single-attempt ancestry fetches * fix(ci): restore bounded release ancestry retries * fix(ci): preserve release ancestry tracking refs
Summary
.github/actions/git-ownerprocess ownerRoot cause
Full Release Validation run https://github.com/openclaw/openclaw/actions/runs/33623025793 timed out while the source job expanded the repository with
git fetch --unshallow.The original PR bounded that work with a fixed depth 50 plus one deepen of 50. That rejects valid historical release inputs:
v2026.8.2was roughly 950 commits behind its comparison ref. A shallow repository can also expose a provisional merge base before enough history is present, so accepting the first visible base is not sufficient.The release-preflight workflow owns the call site. The canonical repair is a dedicated trusted policy executed by
.github/actions/git-owner/owner.py. It progressively hydrates only the source and exact target histories until the relationship is proven, complete history proves it invalid, progress stops, or the total deadline expires.Reliability contract
refs/remotes/origin/mainremain available to the followingpnpm checkratchetsVerification
OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs test/scripts/ci-platform-checkout.test.tsnode scripts/run-vitest.mjs test/scripts/ci-git-owner.test.ts -t 'release ancestry|release merge base|Tideclaw target|provisional shallow merge base|frozen target SHA|fully hydrated disconnected|without ancestry progress'node scripts/run-vitest.mjs test/scripts/openclaw-npm-extended-stable-workflow.test.tspnpm exec oxfmt --check .github/actions/git-owner/release-ancestry.py .github/workflows/openclaw-npm-preflight.yml test/scripts/ci-git-owner.test.ts test/scripts/openclaw-npm-extended-stable-workflow.test.tsactionlint .github/workflows/openclaw-npm-preflight.ymlnode scripts/generate-ci-git-owner.mts --checkpython3 -c 'import ast, pathlib; ast.parse(pathlib.Path(".github/actions/git-owner/release-ancestry.py").read_text())'git diff --check4adab7342dd8ad3ba4311f5e0f9ff725c02fc3c7; exact head40f331cbccebf028f3ab59c84ad82d25f19410b32dfe731d6ca40a3b7fcfcc0bdb83f03acf3d8d3b; this head change is a mechanical rebase40f331cbccebf028f3ab59c84ad82d25f19410b3: scoped-clean, no actionable P0-P2 findings, correctness confidence 0.87dc2fe2afcandidate passed 40 focused local tests across the source-history and extended-stable workflow suites before the trusted git-owner refactor; exact-head proof is the 9 + 17 test evidence aboveThe requested focused local
server.sessions.createtest did not execute because the shared worktree dependency tree lacks five markdown packages. No assertion failed or passed. The rebased exact-head compact CI shard is the authoritative proof for that unrelated main-owned test.Test audit
The regression runs the real production policy through the trusted Git owner against executable shallow Git topologies. The historical case fails under the old 100-commit ceiling. The platform-specific fixture tests are skipped on Windows; owner lifecycle behavior remains covered by the cross-platform harness.
Remote proof
Crabbox/Testbox attempt
tbx_01m1h5y3n1xmz5es17w2qcwngvused providerblacksmith-testboxbut never acquired capacity, so no box IP, workflow run URL, or command result exists. After the bounded queue wait, the task-owned lease was cleanly stopped: the provider reported completion, the lease disappeared from the active list, and its client processes exited. Exact-head GitHub CI is the remote proof route.Attempt
tbx_01m1hb00me7jd43jrwq5gf2cawwas queued against the then-current main and intentionally stopped before execution when main advanced, avoiding stale target evidence. Attempttbx_01m1hb6yc620jxjvn2g0qxe4vfacquired Testbox capacity through run https://github.com/openclaw/openclaw/actions/runs/33647725578, but delegated file synchronization failed withrsync: poll: hangup on nonblocking writebefore either production ancestry command ran. Crabbox reportedcommandMs=371552,totalMs=373965, exit 1, and stopped the task-owned lease.The corrected branch-pinned attempt warmed
fix/frv-source-historyas leasetbx_01m1hbsac8m21cb00npygqcjj9in 3.716 seconds and acquired exact-head run https://github.com/openclaw/openclaw/actions/runs/33648805022. Delegated sync completed in 90.561 seconds, then the proof script's first public Git fetch failed before the production ancestry policy ran:could not read Username for 'https://github.com'/expected flush after ref listing, exit 128. Crabbox reportedcommandMs=642334andtotalMs=642348; the reviewed local failure bundle is.crabbox/captures/tbx_01m1hbsac8m21cb00npygqcjj9-20260902T153944Z.tar.gz. It contains no stdout orPROOFline, and the task-owned lease was stopped cleanly. The exact proof script separately passesbash -nandshellcheck, but an executed exact-head source-plus-Tideclaw production-policy trace remains an explicit landing gate. No successful remote ancestry result is claimed.The proof harness was then corrected to inherit the existing
actions/checkoutGitHub auth header into its temporary child repositories without logging it, matching the authenticated production checkout. That materially changed attempt warmed exact branch leasetbx_01m1hcgyxv3pazz0br77a694v9in 2.746 seconds, but capacity never arrived: the lease stayed queued with no run URL, sync, or command execution until the configured 15-minute wait expired. Crabbox reportedcommandMs=914891,totalMs=914908, exit 1; the reviewed local bundle is.crabbox/captures/tbx_01m1hcgyxv3pazz0br77a694v9-20260902T155709Z.tar.gz. Its stdout is empty and its stderr contains only the capacity timeout. The task-owned lease was stopped cleanly. This capacity-bound attempt is not being repeated unchanged.Scope
The +219 operational lines are the dedicated trusted policy required to keep deadline accounting, progressive relationship proof, bounded retry, verified drain, and canonical-ref publication in one owner without adding fetch side effects to shared changed-scope helpers or generic
owner.py. The active FRVgoinstruction authorizes execution but is not being treated as acceptance of the positive production delta or unresolved workflow-proof uncertainty; both remain explicit maintainer decisions before merge.CI classification
The superseded
dc2fe2afhead had onesecurity-fastfailure in job https://github.com/openclaw/openclaw/actions/runs/33641304530/job/100284772147. Branch secret scanning passed. The failure occurred while pre-commit fetched its external hook repository and GitHub returned an unauthenticated read failure (could not read Username/expected flush after ref listing). This is external Git read infrastructure failure, not a branch regression. The label cancellation is secondary fallout.The superseded
2dfe731drun https://github.com/openclaw/openclaw/actions/runs/33642086314 repeated that externalsecurity-fastbootstrap failure. Its Windows lane failed before checkout with Git-ownerPermissionError/exit 125, and compact shard 2 reproduced the unchangedserver.sessions.createfailure also seen on #136325. The run's merge ref had main parent21e356c; the completesrc/gatewaydiff was empty, and both the failing test blob andowner.pywere byte-identical to that main parent. Current main subsequently added the relevant Gateway acquisition cleanup in #136344, so this branch was rebased and fresh exact-head CI is the authoritative result.Exact-head run https://github.com/openclaw/openclaw/actions/runs/33644643072 attempt 1 was cancelled by concurrency while the old-head rerun was still active; no new-head job ran. Attempt 2 is the first meaningful execution. Its
security-fastand release-preflight jobs passed. Job https://github.com/openclaw/openclaw/actions/runs/33644643072/job/100298616213 failed during dependency installation because@matrix-org/[email protected]received HTTP 502 downloading its GitHub release asset, after which its upstream installer threwReferenceError: err is not defined. No branch test executed. The exact single-job retry, job https://github.com/openclaw/openclaw/actions/runs/33644643072/job/100305073653, completed successfully at 2026-09-02 15:19:52 UTC, confirming transient download infrastructure. Attempt 3 reran only that extension-package-boundary job; its displayed large-16 entry preserved the attempt-2 result and was not a second execution.Attempt 2's only test failure was
ui/src/styles/corner-shape.browser.test.tsin job https://github.com/openclaw/openclaw/actions/runs/33644643072/job/100298625533: two computed-style assertions reportedsuperellipse(1)instead ofround; 264 files and 4,721 tests passed. This PR has no UI or dependency diff, and the exact test blob is6e79cd8aea34801611e1439437b9a283c3976825on both this head and #136308. The same large-16 shard passed on Blacksmith for #136308 job https://github.com/openclaw/openclaw/actions/runs/33637394938/job/100283564056 and #136233 job https://github.com/openclaw/openclaw/actions/runs/33636006895/job/100277003603. #136334 job https://github.com/openclaw/openclaw/actions/runs/33645872675/job/100305635870 lost runner communication with zero steps or logs, so it is infrastructure-only and provides no test differential. The one exact retry of the preserved #136309 job, attempt 4 job https://github.com/openclaw/openclaw/actions/runs/33644643072/job/100309736196, passed its Node test shard on GitHub Actions at 2026-09-02 15:31:36 UTC. This confirms the earlier untouched UI failure was backend-sensitive/non-branch differential. Aggregateopenclaw/ci-gatejob https://github.com/openclaw/openclaw/actions/runs/33644643072/job/100311291457 then passed at 2026-09-02 15:32:07 UTC; exact-head CI has no remaining failure.The PR base
4adab7342dd8ad3ba4311f5e0f9ff725c02fc3c7includes the relevant #133724 session-create flow, #136344 Gateway test-helper cleanup, #136185 run-vitest synchronization fixes, and adjacent release-publish change #136336. Current mainb3fcdf31620d5c829554f65566a494385823fed6adds Android, Apple native-notification, docs, and unrelated compact-agent paths relative to the PR base, with zero overlap with this PR's four files.git merge-tree --write-tree b3fcdf31620d5c829554f65566a494385823fed6 40f331cbccebf028f3ab59c84ad82d25f19410b3completed cleanly as tree3618defb39da11aea40e988588bc3b92ed163819; latest-main drift does not alter ancestry hydration, target freezing, canonical refs, retry/drain behavior, or the preflight failure contract.