Repository navigation
fix(release): retry timed-out plugin source fetches - #199924
Conversation
Route both exact-source manifest reads through the existing Git fetch owner, preserving immutable targets and cleanup before bounded retries. Prove timeout recovery at both workflow policy entry points. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 44e02330-78d5-4a34-b429-49716c9c10dc
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR routes both plugin npm source-manifest fetches through the existing Git owner's bounded timeout retries. Example: The first exact-source fetch stalls for 120 seconds, and the second attempt succeeds.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR provides a focused release-tooling repair with no actionable diff findings; the required CI gate remains red. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherPlugin npm preflight and publication jobs fetch an immutable source commit, read its package manifest, and pass those bytes to artifact verification before publication. flowchart TD
A[Immutable source SHA] --> B[Source manifest workflow step]
B --> C[Pinned Git owner]
C --> D[Bounded fetch retries]
D --> E[Exact manifest read]
E --> F[Artifact verification]
F --> G[Publication gates]
Technical reviewBest possible solution: Use the existing fetch owner at both manifest-read sites, preserving immutable SHA selection and keeping manifest verification and publication outside retries. Do we have a high-confidence way to reproduce the issue? Current main propagates the first fetch timeout before manifest output; the supplied regression reports that failure on the base and recovery on the head, but this read-only review ran no target code. Is this the best way to solve the issue? This is the smallest complete repair: both affected callers adopt the existing retry owner without adding retry machinery, changing publication policy, or retrying publication. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 59b74af7e1ae. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +19, Config -20. Total -1 across 2 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. Review metrics
LabelsLabel changes: No label changes. Label justifications:
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 15, 2026, 10:57 PM ET / November 16, 2026, 03:57 UTC. |
…change (#199944) * fix(agents): core lint fails on the MCP catalog JSON snapshot #199909 snapshots MCP catalog metadata through JSON on purpose, because the round trip drops undefined members that structuredClone would keep. The unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2 fails on main and on every pull request whose lint lanes include src/agents. Record the reason with the repository's usual suppression. * test(scripts): allow the MCP catalog JSON snapshot suppression The production suppression allowlist must name each intentional lint suppression; add the one this change introduces. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 76d33b04-cb7e-4bdf-a924-c0ed6ce3dcaf
* fix(release): retry timed-out plugin source fetches Route both exact-source manifest reads through the existing Git fetch owner, preserving immutable targets and cleanup before bounded retries. Prove timeout recovery at both workflow policy entry points. Release adaptation: none. Companion review: Priority approved #199924: source b4190c2. Full plugin npm workflow and lifecycle tests read; shared Git fetch/run_git/git_output contract and test harness traced. Both exact-source package-read workflow entry points fail on first timed-out fetch, exit124 and no manifest;2 red failures/45 skipped in199924-red.log. Existing fetch owner retries bounded3, same exact SHA, blobless, drains children/reclaims owned locks before retry and preserves cancellation fencing. No new dependency; helper already present. Companion scan to c8d5cf5 finds no later path/source followups; neighbor plugin package policy suite is unchanged consumer and will be exercised. All-release ledger query has no sibling assessment. No publication/authority/artifact integrity policy changed. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> * fix(release): retry timed-out plugin source fetches Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 44e02330-78d5-4a34-b429-49716c9c10dc * fix(ci): core lint fails on main after the MCP catalog JSON snapshot change (#199944) * fix(agents): core lint fails on the MCP catalog JSON snapshot #199909 snapshots MCP catalog metadata through JSON on purpose, because the round trip drops undefined members that structuredClone would keep. The unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2 fails on main and on every pull request whose lint lanes include src/agents. Record the reason with the repository's usual suppression. * test(scripts): allow the MCP catalog JSON snapshot suppression The production suppression allowlist must name each intentional lint suppression; add the one this change introduces. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> * Publish openclaw/ledger-runtime Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 76d33b04-cb7e-4bdf-a924-c0ed6ce3dcaf --------- Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Patrick Erichsen <[email protected]> (cherry picked from commit b4190c2)
* fix(release): retry timed-out plugin source fetches Route both exact-source manifest reads through the existing Git fetch owner, preserving immutable targets and cleanup before bounded retries. Prove timeout recovery at both workflow policy entry points. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> * fix(release): retry timed-out plugin source fetches Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 44e02330-78d5-4a34-b429-49716c9c10dc * fix(ci): core lint fails on main after the MCP catalog JSON snapshot change (openclaw#199944) * fix(agents): core lint fails on the MCP catalog JSON snapshot openclaw#199909 snapshots MCP catalog metadata through JSON on purpose, because the round trip drops undefined members that structuredClone would keep. The unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2 fails on main and on every pull request whose lint lanes include src/agents. Record the reason with the repository's usual suppression. * test(scripts): allow the MCP catalog JSON snapshot suppression The production suppression allowlist must name each intentional lint suppression; add the one this change introduces. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> * Publish openclaw/ledger-runtime Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 76d33b04-cb7e-4bdf-a924-c0ed6ce3dcaf --------- Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Patrick Erichsen <[email protected]>
* fix(release): retry timed-out plugin source fetches Route both exact-source manifest reads through the existing Git fetch owner, preserving immutable targets and cleanup before bounded retries. Prove timeout recovery at both workflow policy entry points. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> * fix(release): retry timed-out plugin source fetches Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 44e02330-78d5-4a34-b429-49716c9c10dc * fix(ci): core lint fails on main after the MCP catalog JSON snapshot change (#199944) * fix(agents): core lint fails on the MCP catalog JSON snapshot #199909 snapshots MCP catalog metadata through JSON on purpose, because the round trip drops undefined members that structuredClone would keep. The unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2 fails on main and on every pull request whose lint lanes include src/agents. Record the reason with the repository's usual suppression. * test(scripts): allow the MCP catalog JSON snapshot suppression The production suppression allowlist must name each intentional lint suppression; add the one this change introduces. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> * Publish openclaw/ledger-runtime Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 76d33b04-cb7e-4bdf-a924-c0ed6ce3dcaf --------- Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Patrick Erichsen <[email protected]> (cherry picked from commit b4190c2) (cherry picked from commit 38c263d2bcd7bf4f6814a501dc99bbbaec9d17f3)
Related: #133368
What Problem This Solves
Fixes plugin npm preflight and publication jobs failing immediately when their exact-source Git fetch times out transiently.
User Impact
Release operators can recover from a transient fetch timeout within the existing job instead of restarting the publication workflow. Fetch attempts remain bounded; no publication is retried by this change. There is no installed-product behavior change or required migration.
Why This Change Was Made
Both source-manifest read steps now use the existing Git owner’s retry-capable fetch operation. It preserves the selected immutable SHA, depth-one/blobless fetching, subprocess cleanup, and cancellation behavior, with up to three attempts and a five-second backoff. The manifest read remains outside the retry. The currently pinned action already supports this operation; no action pin or ownership policy changes are needed.
This is a maintainer-directed release-tooling repair. The release repair removes 20 production lines and adds 19 regression-test lines, without another retry implementation or test-only production seam. A subsequent patch-identical application of upstream #199944 corrects the inherited lint failure described below.
Evidence
node scripts/run-vitest.mjs test/scripts/plugin-release-git-lifecycle.test.ts --maxWorkers=1— 47/47 passed, 28.00 seconds in Vitest / 28.85 seconds wrapper wall time. Hosted CI time is not yet measured.git diff --check, andscripts/check-workflows.mts(including actionlint and zizmor).f4d2e45592438dbaae12975e1c4223a991285b7a, including direct inspection of the pinned action’s fetch/export contract. Release-repair commit44f7ad857814fb4d39fcc77050c02fe38d2cf717is patch-identical to that reviewed snapshot. Local review tools were unavailable; this was not machine-validated autoreview or a clean ClawSweeper certification.cc8e2b13c83990e5c40e7735fa1f5b0fc7062451. That prior-head review is not a certification of the subsequent lint correction or current head.54070dc(fix(ci): core lint fails on main after the MCP catalog JSON snapshot change #199944), with focused lint red/green proof, 14/14 suppression-guard tests, and formatting checks. Existing valid release-repair proof was retained rather than unnecessarily rerun.Proof limits: controlled Git subprocess I/O, virtual fetch deadlines/backoff, and accelerated TERM escalation; the harness uses the current local owner, with pinned-owner compatibility source-inspected. No live release fetch, remote release-workflow dispatch, OIDC, or npm publication was exercised. Publishing this PR is separate from release-publication proof.
Hosted CI follow-through
Historical failure: at old head
cc8e2b13c83990e5c40e7735fa1f5b0fc7062451, CI run 43798181775 failed lint job 133073262681:src/agents/tool-search-prepared-catalog.ts:118:48,unicorn/prefer-structured-clone; its aggregate CI gate was also red. The failing source blob5226ae58848652825503bb9c0558b70b73c7baf0was identical at the original base and that old head. This established an inherited failure; it was not passing proof or a waiver.Current correction: commit
4a5d6dfe0915282e9fc65b09092541de71bcfd90applies the exact upstream #199944 correction: document why JSON encoding intentionally drops undefined metadata, and register that intentional suppression in the existing guard test. Patrick Erichsen's authorship and both human co-author trailers are preserved. Published head81ad078c4c2093b94710679119e6ef944a329cafhas the same tree as the prepared correction. Fresh checks are attached to that head and pending; the old lint failure does not describe the corrected source, and local lint success does not claim current hosted CI is green. Hosted review remains separate from CI.Worked on by