Skip to content

fix(ci): FRV cancels in target admission when GitHub Git fetches are slow - #192297

Merged
RomneyDa merged 2 commits into
mainfrom
fix/frv-resolve-target-blob-prefetch
Nov 3, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
fix/frv-resolve-target-blob-prefetch

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes: Full Release Validation is cancelled before any validation child starts when GitHub Git operations are slow, because the "Resolve target ref" job exceeds its 10-minute limit.

The "Acquire publication source metadata" step reads every root/extension/package package.json and extension README.md blob from the target checkout. That checkout is blob:none (sparse actions/checkout), so every missing blob was a separate lazy promisor fetch: hundreds of round trips. During GitHub's "Git Operations degraded_performance" incident (2026-11-03, since 20:57Z) each fetch took about 0.6-1.2s, the step ran about 6 minutes, and the job was cancelled three times in a row:

User Impact

Release operators: FRV no longer dies in admission on degraded Git performance. No change to what is admitted.

Why This Change Was Made

  • Before the size/read loop, the step lists missing blobs with git rev-list --objects --no-walk --missing=print (does not lazy fetch) and fetches them in one git fetch origin --stdin using git's own lazy-fetch arguments (fetch.negotiationAlgorithm=noop, --no-tags --no-write-fetch-head --recurse-submodules=no --filter=blob:none). Runner git is 2.55.0 (from the failing job log). The step makes one round trip instead of hundreds.
  • If the batched fetch fails, the step logs a warning and the existing reads fall back to per-blob lazy fetches, so a transient failure costs no more than before.
  • Every existing check stays: regular-file mode and blob type, UTF-8 paths, the count limit, the 16 MiB per-file and 64 MiB total limits, and the full blob read. Mode/type/path checks now run for all records before any size read; the outcome for any input is the same.
  • resolve_target timeout-minutes goes from 10 to 15, with a comment. The job normally takes about 4.5 minutes, and checkout and the other target fetches also slow down during Git incidents. The pinned FRV parent timeout path in package-acceptance-workflow.test.ts moves from 195 to 200 minutes, still well under the 720-minute diagnostic drain.

Evidence

  • New test FRV publication source metadata acquisition runs the real step body against a --filter=blob:none clone with 5 missing blobs and GIT_NO_LAZY_FETCH=1. It passes, so the single batched fetch supplied every blob. With the prefetch disabled (if (false)), the same test fails (exit 1).
  • node scripts/run-vitest.mjs test/scripts/full-release-publication-admission.test.ts test/scripts/full-release-validation-continuation-workflow.test.ts test/scripts/check-workflows.test.ts: 3 files, 141 passed, 2 skipped.
  • scripts/check-workflows.mts (actionlint, zizmor, workflow guards): passed. oxfmt --check, run-oxlint, run-tsgo -p test/tsconfig/tsconfig.test.root.tooling.json: clean.
  • test/scripts/package-acceptance-workflow.test.ts: the drain-budget test passes with the new pin. Locally on macOS, 18 other tests in that file fail with host bash errors ("ambiguous redirect", "wait: pid is not a child") in openclaw-release-checks.yml step bodies. This PR does not touch that workflow, and the same tests passed in this PR's Linux CI.
  • Gap: this has not run on a real GitHub runner yet. The first FRV after merge will be the first live run.

@RomneyDa RomneyDa added the release-fast-lane Release tooling PR: narrow ci-gate, ClawSweeper advisory (RELEASING.md) label Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@RomneyDa
RomneyDa marked this pull request as ready for review November 3, 2026 21:51
@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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR batches missing publication-metadata Git blobs and increases the target-admission timeout from 10 to 15 minutes.

Example: FRV acquires package manifests and extension READMEs from a blobless target checkout during slow Git operations.

  • Before: Individual missing-blob fetches can exhaust the 10-minute admission job.
  • After: Missing blobs are requested together, with a 15-minute job budget and the existing admission checks preserved.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) A useful, narrowly scoped repair with meaningful Git integration coverage, currently blocked by an attributable CI contract failure.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored CI repair is outside the ordinary contributor proof gate; the supplied real-step Git regression supports batching, and the body explicitly discloses that no live GitHub-runner validation has occurred.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators cannot start FRV validation because metadata acquisition exhausts the admission job during slow Git operations.
Reason: The maintainer-authored direction addresses an observed failure using the existing metadata owner, with no new configuration or publication policy.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this maintainer-authored PR addresses a confirmed release-validation failure, but its timeout change breaks an existing CI contract test.

Priority: P2
Reviewed head: e3f08a597b6ef7f37e12e4f1dac8e870fb95eec7

Before merge

  • Update the release-path budget test with the new timeout (P2) - Changing resolve_target to 15 minutes makes the existing package-acceptance workflow contract fail: test/scripts/package-acceptance-workflow.test.ts:15903 still expects the first fullParentPath entry to be 10, and the next assertion expects a total of 195. Exact-head CI confirms this mismatch in checks-node-compact-small-1-1. Update those expectations to 15 and 200 while preserving the drain-budget checks so this repair can pass CI.

Findings

  • [P2] Update the release-path budget test with the new timeout — .github/workflows/full-release-validation.yml:192

Tests

  • Missing end-to-end proof: The supplied regression exercises the real step with local Git transport; it does not demonstrate completion on a GitHub runner during degraded service.
Agent review details

How this fits together

The FRV target-admission job resolves selected source metadata and validates publication eligibility before dependent validation and producer jobs start.

flowchart TD
  A[FRV dispatch] --> B[Resolve target SHA]
  B --> C[Blobless target checkout]
  C --> D[Batch missing metadata fetch]
  D --> E[Validate metadata and publication source]
  E --> F[Validation and producer jobs]
Loading

Technical review

Best possible solution:

Retain the focused batching repair and update the existing release-path budget expectations to 15 minutes and a 200-minute total.

Do we have a high-confidence way to reproduce the issue?

Current main performs a lazy-fetch-triggering size read for each missing metadata blob, and the linked FRV job confirms cancellation in that step; no target code was executed during this review.

Is this the best way to solve the issue?

Batching the already-required objects in the existing acquisition step removes repeated network setup without adding another owner or weakening admission validation.

Full review comments:

  • [P2] Update the release-path budget test with the new timeout — .github/workflows/full-release-validation.yml:192
    Changing resolve_target to 15 minutes makes the existing package-acceptance workflow contract fail: test/scripts/package-acceptance-workflow.test.ts:15903 still expects the first fullParentPath entry to be 10, and the next assertion expects a total of 195. Exact-head CI confirms this mismatch in checks-node-compact-small-1-1. Update those expectations to 15 and 200 while preserving the drain-budget checks so this repair can pass CI.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 57405d6f170a.

Provenance checked

  • FRV target-admission timeout changes intended behavior with a stated reason (658240d: The initial full-release-validation workflow bounded target resolution at 10 minutes.)
  • Publication metadata acquisition keeps the original intent (fix(ci): reject invalid release sources before FRV fanout #147049: Validate committed publication metadata before producer fanout without executing candidate source.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test test/scripts/package-acceptance-workflow.test.ts -t 'keeps known bounded dominant child paths below the centralized drain owner'
  • pnpm test test/scripts/full-release-publication-admission.test.ts -t 'FRV publication source metadata acquisition'
  • pnpm test test/scripts/full-release-validation-continuation-workflow.test.ts test/scripts/check-workflows.test.ts

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 7bf4e2e adds .github/workflows/full-release-validation.yml:661 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7bf4e2e088bc; files: .github/workflows/full-release-validation.yml)

PR surface

Tests +65, Config +19. Total +84 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 65 0 +65
Docs 0 0 0 0
Config 1 22 3 +19
Generated 0 0 0 0
Other 0 0 0 0
Total 2 87 3 +84

Labels

Label changes:

  • add P2: The failure blocks release operators during degraded Git service, with impact confined to FRV admission.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: The failure blocks release operators during degraded Git service, with impact confined to FRV admission.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 3, 2026, 5:08 PM ET / 22:08 UTC.

@RomneyDa
RomneyDa merged commit 0734982 into main Nov 3, 2026
101 of 102 checks passed
@RomneyDa
RomneyDa deleted the fix/frv-resolve-target-blob-prefetch branch November 3, 2026 22:41
@RomneyDa

RomneyDa commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 4, 2026
…slow (openclaw#192297)

* fix(ci): batch FRV publication metadata blob fetches

* test(ci): update FRV parent timeout budget pin
tideclaw-bot added a commit that referenced this pull request Nov 5, 2026
Adopt all reviewed constituents of #191633 and #191838, including the
#192297 intake and merged #192586 prerequisite, with the reviewed
security parser bounds and Matrix patch serialization correction.

These are adapted backports, not exact cherry-picks. Original sources:
191633 5cbabca (origin b6c36ed): fix(release): warn before rollback drill expiry (#180164)
191633 ca8c103 (origin 0f359b3): fix(release): require macOS release source branch (#180169)
191633 12abd6c (origin d8265d0): fix(release): verify published plugin inventory (#180203)
191633 65df344 (origin 3580c9f): fix(release): revalidate exact npm versions (#180201)
191633 ae3a92b (origin f708b8b): fix(release): explain staged npm recovery (#180191)
191633 08c61ca (origin ca897ec): fix(release): pin Linux builder to request SHA (#180211)
191633 f7b8f22 (origin 0453b8c): fix(release): warn on undocumented SDK removals (#180180)
191633 2b7fd53 (origin dbc44d3): fix(release): retry compatibility tarball downloads (#189712)
191633 d313a91 (origin a07be30): docs(release): tighten deterministic failure triage (#189720)
191633 3180471 (origin 8100edf): fix(release): enable OIDC recovery preflight (#187991)
191633 fc52d94 (origin 84133d3): fix(ci): mark pending security reviews (#180183)
191633 9a30fd9 (origin 48b46f1): feat(release): add FRV job log reader (#189718)
191633 5aeb8bf (origin 3c67c5c): feat(release): add publication watcher (#187994)
191633 a5c1376 (origin 749df76): fix(release): unify plugin OIDC recovery preflight (#189748)
191633 4bd0d61 (origin fc719e9): feat(release): add bound gate approval helper (#189715)
191633 fc6a003: fix(release): adapt postpublish verifier imports
191633 0fea084 (origin 6370e01): fix(release): retain publication retry diagnostics (#189130)
191633 13f02f8 (origin f861722): fix(release): keep diagnostic FRV blocks pending
191633 a715d58 (origin 571b8f8): fix(release): verify notes against pushed branch
191633 3fbc547 (origin f3bbc7e): fix(release): explain shallow release-note history
191633 6fe3921 (origin 7d27f73): test(git): isolate nested repository fixtures
191633 74579f0 (origin 34bb969): ci: add base scheduled upgrade survivor
191633 39b9209 (origin 73df503): ci: support empty admission args on Bash 3.2
191633 e585646 (origin ec6e32f): test(qa): retain mock provider request artifacts
191633 dbae3ad (origin bfa3e10): fix(qa): guard mock artifact fetch
191633 7a1456b (origin 24f5971): ci(ios): explain screenshot Xcode mismatch
191633 86591a7 (origin 122d8e4): docs(release): identify FRV parent publish input
191633 0f81562 (origin c938b9b): fix(cli): report observed gateway start failure
191633 e140fb5 (origin 414e610): test(release): pin Kitchen Sink fixture versions
191633 07b1810: test(release): preserve retrospective backport coverage
191633 5ae88b0: test(ci): align retrospective guard backport coverage
191633 793e231: test(release): adapt retrospective fixtures to stable
191633 611d61f: test(release): adapt retrospective fixtures to beta
191838 4df8007 (origin d0cf0e2): fix(file-transfer): share one workspace command import between memory and skills
191838 fb52e5d (origin 24b9e76): fix(matrix): defer ready status through startup
191838 82ac58e (origin 76d4717): fix(matrix): let Matrix CLI commands exit after their client stops
191838 342fec0 (origin 73fe789): fix(matrix): report late in-room verification failures instead of crashing
191838 5a67ff1 (origin f75c29a): test(qa): align Matrix E2EE scenarios with offline ownership contracts
191838 f77062a (origin 2c0d224): fix(process): preserve loaded startup cleanup
191838 263a67a (origin fa2b24b): fix(process): keep stdio startup failures ahead of cleanup errors
191838 deb2b8f (origin 2d8931e): fix(process): share inherited process lineage across module copies
191838 7649f46 (origin 9b25ff9): fix(codex): preserve loaded one-shot cleanup
191838 37007d7 (origin c71bf33): fix(codex): unload canonical forks before child turns resume them
191838 fcb5687 (origin ebca499): fix(codex): resolve native follow-ups by task name across parent turns
191838 2627a7f (origin 84e1365): fix(codex): name usable agent IDs when a native target is unidentified
191838 9f78f29 (origin f591228): fix(codex): wait for a live previous owner to unload before resuming
191838 cc216fb (origin a6ec514): fix(codex): allow Codex's shutdown window when confirming a thread unload
191838 85b8598 (origin 6b4e757): fix(cron): run jobs added before scheduler start without startup deferral
191838 1693080 (origin df43e79): fix(state): retry lease cleanup after offline maintenance contention
191838 018d506 (origin 3c7cde0): fix(sqlite): wait for a cold database turn before the shared worker open queue
191838 683b89f (origin d7f8560): fix(gateway): flush startup evidence before readiness
191838 22dbc18 (origin d569839): fix(config): ignore empty default plugin entries when widening allowlists

Reviewed source packet: 08890ffe0399fcc102a67c6fe3ea8c8bada74128d85dd826c9ee5d8a03f92520
Batch/security slice: cf4a56d8df38cc11818b961b51b9a2756f755b084cdc27ffeb88cf4365bed0bc
Native/auth/updater remainder is intentionally not part of this commit.

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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. release-fast-lane Release tooling PR: narrow ci-gate, ClawSweeper advisory (RELEASING.md) size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant