Skip to content

fix(ci): provision Bun for retained-runtime process tests - #200731

Merged
RomneyDa merged 2 commits into
mainfrom
fix/ci-bun-child-prerequisite
Nov 17, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
fix/ci-bun-child-prerequisite

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes Node CI shards failing with spawnSync bun ENOENT when selected retained-runtime import tests launch a pinned Bun child.

User Impact

No runtime behavior changes. CI provisions the runtime required by these existing process tests rather than failing before their Bun assertions execute.

Why This Change Was Made

Extend the existing shard prerequisite decision, which already handles Node-hosted standalone code generation, to include retained-runtime process tests. Exact targets, patterns, grouped selections, and config-only fallback use the same owner. Unrelated retained-runtime tests remain unaffected. No test exclusions, timeout changes, dependency changes, or guard weakening.

Evidence

  • Original FRV6 Node shard skipped Setup Bun and failed at requirePinnedBun() with ENOENT.
  • New planner regression fails against the unchanged planner and passes with this change.
  • Five focused prerequisite/runtime-planning tests pass.
  • Follow-up fixes the PR-caused grouped-row expectation exposed by CI: the unfiltered infra fixture correctly requires Bun. The original grouped/pull_request case fails before the test correction; all 15 focused matrix/prerequisite cases pass on Node and pinned Bun afterward. Single-row absent/false assertions and decoded-group equality remain intact.
  • Replayed the exact 273-file FRV6 selection through the real manifest fixture: both runtime rows require Bun, including the previously unprovisioned Node row.
  • Original retained-import process suite passes both real Node and pinned Bun child cases (2 tests).
  • Focused semantic lint, tooling test typecheck, formatting, and git diff --check pass with private frozen dependencies.

Full planner suite and remote CI were not run locally; PR CI provides broader validation. Initial shared-dependency setup failures were superseded by the private-install passing proofs. Independent review was waived by the authorizing maintainer; required GitHub checks remain enforced.

@clawsweeper

clawsweeper Bot commented Nov 17, 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 17, 2026 17:58
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Nov 17, 2026
@RomneyDa
RomneyDa enabled auto-merge (squash) November 17, 2026 18:01
@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 17, 2026
@clawsweeper

clawsweeper Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR provisions pinned Bun when Node CI shards select retained-runtime import process tests.

Example: A Node shard selects src/infra/update-retained-runtime-imports.process.test.ts.

  • Before: CI can skip Bun setup and fail when the test launches its Bun child.
  • After: The manifest marks the shard as requiring Bun while preserving Node as its test runner.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The production repair is focused and source-supported, but an existing consumer assertion fails deterministically on the reviewed head.
Proof confidence 🦐 gold shrimp (3/6) This CI-only change requires no shipped-product demonstration; the body reports manifest replay and process-test results, and inspected CI annotations independently expose the remaining test failure.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Node CI shards fail before existing Bun-child assertions can execute.
Reason: The maintainer-authored change restores a required test prerequisite without changing runtime policy, coverage, dependencies, or user settings.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this PR addresses a real CI prerequisite omission, but its expanded infra selection breaks an existing packed-matrix test on the reviewed head.

Priority: P2
Reviewed head: a4f2ac51424128e94ea027d9c5d7b8c6d0c23c24

Before merge

  • [P2] Update the packed-row assertion for the infra Bun prerequisite (P2) - The grouped packing fixture includes vitest.infra.config.ts without a file filter, so the new fallback correctly emits requires_bun: true. This unchanged assertion still requires the property to be absent, causing the reviewed head's checks-node-compact-small-2 job to fail in the grouped pull_request case. Update this consumer to expect the true prerequisite for that selection while retaining false-flag omission checks for the other cases.

Findings

  • [P2] [P2] Update the packed-row assertion for the infra Bun prerequisite — test/scripts/ci-workflow-planning.test.ts:13125
Agent review details

How this fits together

The CI manifest converts selected test plans into workflow matrix rows; the workflow consumes requires_bun to provision the pinned runtime before executing each shard.

flowchart LR
  A[Test selection] --> B[CI manifest]
  B --> C[Runtime prerequisites]
  C --> D[Workflow matrix]
  D --> E[Pinned Bun setup]
  E --> F[Node shard and Bun child]
Loading

Technical review

Best possible solution:

Retain the existing prerequisite-owner extension and update the packed-row test to preserve true Bun prerequisites while still checking omission of false flags.

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

Current-main source omits the retained-import Bun-child prerequisite, while the selected process test explicitly launches requirePinnedBun(); no target code was executed during this review.

Is this the best way to solve the issue?

Extending needsBunChild is the smallest complete production fix because the existing selection matcher and workflow setup already own this responsibility.

Full review comments:

  • [P2] [P2] Update the packed-row assertion for the infra Bun prerequisite — test/scripts/ci-workflow-planning.test.ts:13125
    The grouped packing fixture includes vitest.infra.config.ts without a file filter, so the new fallback correctly emits requires_bun: true. This unchanged assertion still requires the property to be absent, causing the reviewed head's checks-node-compact-small-2 job to fail in the grouped pull_request case. Update this consumer to expect the true prerequisite for that selection while retaining false-flag omission checks for the other cases.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Node-hosted Bun-child prerequisites keeps the original intent (ea3f0b8: Provision pinned Bun for selected codegen tests while preserving Node as the test runner.)
  • Independent runtime matrix expansion keeps the original intent (44522c4: Separate full-manual Node/Bun scheduling while preserving prerequisite provisioning, ordinary CI colocation, and runtime membership.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • node scripts/run-vitest.mjs test/scripts/ci-workflow-planning.test.ts -t 'provisions pinned Bun|packs Node matrix rows'
  • node scripts/run-vitest.mjs test/scripts/ci-workflow-planning.test.ts
  • node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.root.tooling.json --incremental
  • git diff --check

What I checked:

Likely related people:

  • Dallin Romney: Raw commit 44522c4 adds scripts/ci-build-manifest.mjs:1510 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 44522c44d695; files: scripts/ci-build-manifest.mjs)
  • Vincent Koc: Raw commit 11f0d10 adds scripts/ci-build-manifest.mjs:1098 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 11f0d107b5fd; files: scripts/ci-build-manifest.mjs)
  • Peter Steinberger: Raw commit 9ef5fdf adds scripts/ci-build-manifest.mjs:1123 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 9ef5fdf8b6ef; files: scripts/ci-build-manifest.mjs)

PR surface

Tests +21, Other +8. Total +29 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 23 2 +21
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 11 3 +8
Total 2 34 5 +29

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: The change repairs a bounded CI prerequisite failure and needs one focused test-consumer correction.
  • 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 change repairs a bounded CI prerequisite failure and needs one focused test-consumer correction.
  • 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 17, 2026, 1:13 PM ET / 18:13 UTC.

@RomneyDa
RomneyDa disabled auto-merge November 17, 2026 18:18
@RomneyDa
RomneyDa merged commit 7ba7033 into main Nov 17, 2026
105 of 106 checks passed
@RomneyDa
RomneyDa deleted the fix/ci-bun-child-prerequisite branch November 17, 2026 18:33
@RomneyDa

Copy link
Copy Markdown
Member Author

Merged via squash.

RomneyDa added a commit that referenced this pull request Nov 17, 2026
* fix(ci): provision Bun for retained-runtime process tests

Co-authored-by: RomneyDa <[email protected]>

* test(ci): expect Bun in grouped infra rows

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: RomneyDa <[email protected]>

(cherry picked from commit 7ba7033)

Release adaptation: none. Exact qualification repair; original failure and focused proof retained in the release handoff.
Companion audit: existing consumers and prerequisite contracts are present-equivalent; no interface changes. Broader broker authority repair 22d5c87 is not applicable to this fixture-only batch.

Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 18, 2026
…00731)

* fix(ci): provision Bun for retained-runtime process tests

Co-authored-by: RomneyDa <[email protected]>

* test(ci): expect Bun in grouped infra rows

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: RomneyDa <[email protected]>
RomneyDa added a commit that referenced this pull request Nov 18, 2026
Adapt main fix #200731 to the release branch planner regression owner.
Source: 7ba7033.
Q owns the child CI harness; include Bun for retained-runtime exact, grouped, and infra-config rows.

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[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. scripts Repository scripts size: XS 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