Skip to content

fix(release): size FRV helper git output for extended-stable lag - #182050

Merged
RomneyDa merged 1 commit into
mainfrom
fix/frv-helper-git-maxbuffer
Oct 24, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/frv-helper-git-maxbuffer

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Problem

pnpm ci:full-release crashes with spawnSync git ENOBUFS before dispatching extended-stable validation. warnCandidateToolingLag runs git diff --name-only <candidate> <main> through run(), which uses execFileSync's 1 MiB default buffer. An extended-stable candidate (2026.9.34 on extended-stable/2026.9.33) trails main by ~16k commits and ~52.5k changed paths, so the path list overflows the buffer and the warning-only check aborts the whole dispatch.

Solution

Give the helper's local run() an explicit 256 MiB output ceiling. Behavior is otherwise unchanged.

Evidence

  • Before: node scripts/full-release-validation-at-sha.mjs --sha 67e2c23… --target-ref extended-stable/2026.9.33 … --dry-run → FAILED: spawnSync git ENOBUFS at warnCandidateToolingLag (scripts/full-release-validation-at-sha.mts).
  • After (same patch applied locally to the 2026.9.34 candidate's helper): the lag warning prints (15976 non-merge commit(s) behind main … 52542 net changed path(s)) and dispatch proceeds; FRV 40045960541 is running.
  • No new tests: the fix is one buffer option on a local operator helper; the reproduction is the real entry point.

Release-tooling fix for the 2026.9.34 extended-stable release. It will be cherry-picked to the release line in the next patch, not into the current frozen candidate.

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

clawsweeper Bot commented Oct 24, 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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Oct 24, 2026
@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. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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. labels Oct 24, 2026
@clawsweeper

clawsweeper Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR raises the release helper’s captured local-command output limit to 256 MiB so large extended-stable comparisons can complete.

Example: Validate the 2026.9.34 extended-stable candidate with 52,542 changed paths relative to main.

  • Before: The tooling-lag comparison aborts the helper with spawnSync git ENOBUFS before dispatch.
  • After: The lag warning reports 15,976 non-merge commits and 52,542 changed paths, and validation dispatch proceeds.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair supported by the recorded real CLI result, corroborated dispatch, and matching source path; no actionable introduced defect was found.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The PR records the shipped full-release CLI failing on the extended-stable candidate before the fix, then printing the complete large lag warning and proceeding to dispatch after the same patch; the referenced GitHub run is independently confirmed, without treating its ongoing release validation as completed.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators cannot dispatch extended-stable validation because a large warning-only Git comparison crashes the helper.
Reason: The maintainer-authored direction restores an existing release workflow with a minimal change and preserves the original diagnostic contract.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR fixes a concrete release-helper failure still present on current main, with no introduced correctness or security defect found.

Priority: P2
Reviewed head: 3b8730507187741add6e7f4b8fe2151b2e201248

Before merge

None.

Findings

None.

Agent review details

How this fits together

The operator-facing full-release CLI reads candidate and main Git data, validates release contracts, and dispatches exact-SHA qualification workflows.

flowchart LR
  A[Release operator] --> B[Full release CLI]
  B --> C[Local command runner]
  C --> D[Git candidate comparison]
  D --> E[Tooling lag warning]
  E --> F[Qualification checks]
  F --> G[GitHub workflow dispatch]
Loading

Technical review

Best possible solution:

Use the existing command runner with the explicit output ceiling while preserving the complete lag diagnostic and qualification checks.

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

The PR records a real CLI failure, and current-main source confirms the unbounded changed-path listing reaches execFileSync’s default output limit; no target code was executed during this review.

Is this the best way to solve the issue?

This is a small, complete repair for the observed buffer overflow using the existing owner, without hiding errors or weakening release qualification.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 237fdc662d90.

Provenance checked

  • Complete candidate tooling-lag diagnostic keeps the original intent (753c73d: Report candidate tooling lag before dispatch without substituting main tooling for the frozen candidate.)
  • Local command runner output limit changes intended behavior with a stated reason (c70aee2: The TypeScript migration carried the existing synchronous runner forward; no deliberate reason for retaining Node’s default buffer limit was established, and older content history is locally limited.)
  • Dispatch witness bounds keeps the original intent (5c70f9f: Retain recoverable dispatch intent and adopt only an exact uniquely witnessed request; the new local-command ceiling does not alter the separately bounded GitHub artifact readers.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Dallin Romney: Raw commit 753c73d adds scripts/full-release-validation-at-sha.mts:863 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 753c73dd43d9; files: scripts/full-release-validation-at-sha.mts)

PR surface

Other +4. Total +4 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 4 0 +4
Total 1 4 0 +4

Labels

Label changes:

  • add P2: A concrete failure blocks extended-stable validation for release operators, with a focused tooling fix and limited user blast radius.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: A concrete failure blocks extended-stable validation for release operators, with a focused tooling fix and limited user blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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 October 23, 2026, 8:58 PM ET / October 24, 2026, 00:58 UTC.

@RomneyDa
RomneyDa merged commit 77001de into main Oct 24, 2026
115 checks passed
@RomneyDa
RomneyDa deleted the fix/frv-helper-git-maxbuffer branch October 24, 2026 01:15
@RomneyDa

Copy link
Copy Markdown
Member Author

Merged via squash.

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. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. release-fast-lane Release tooling PR: narrow ci-gate, ClawSweeper advisory (RELEASING.md) scripts Repository scripts size: XS 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