Skip to content

perf(test): reuse the baseline fixture Node resolver - #189790

Merged
vincentkoc merged 1 commit into
mainfrom
perf/test-baseline-node-tool-owner-next100-20261101
Nov 1, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
perf/test-baseline-node-tool-owner-next100-20261101

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

The baseline snapshot hash tests launched which to rediscover Node even though the test helper already owns the qualified executable. Reuse requireNodeTool and keep the real POSIX hash pipeline.

  • Owner: test/scripts/pr-baseline-snapshot-hash.test.ts. Tooling/production LOC 0; tests/support +1. One test-owned which-node child is removed per suite under Node and Bun.
  • All three original and candidate cases pass under both runtimes. Refusing only the which-node lookup leaves all three candidate tests passing and fails all three original tests; Git lookup remains available.
  • The real constrained-memory/RLIMIT, Python, captured-stdin hashing, shell-pipeline, error, and cleanup checks remain unchanged.
  • Types, type-aware lint, formatting, and diff checks pass. Independent review was clean; complete aggregate and provider reports were read.

No native Windows, elapsed-time, or billed-minute saving is claimed.

@vincentkoc vincentkoc self-assigned this Oct 31, 2026
@clawsweeper

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

@vincentkoc
vincentkoc marked this pull request as ready for review October 31, 2026 21:46
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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-repro Preliminary submission classification; full source review pending. labels Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces the baseline hash suite’s external Node lookup with the existing qualified Node resolver.

Example: Run the POSIX baseline hash suite under Node with the which-node lookup unavailable.

  • Before: Suite setup depends on spawning which node.
  • After: Suite setup obtains the running Node executable through requireNodeTool.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A correct, minimal test improvement supported by source, reported comparative runs, and green CI; execution evidence remains a summarized report.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only change is outside the ordinary contributor proof gate; the body reports Node/Bun runs and selective lookup rejection without raw execution artifacts.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Developers running the baseline hash suite incur a redundant which-node lookup despite an existing qualified resolver.
Reason: The maintainer-authored change removes redundant work through an existing owner without expanding scope or weakening coverage.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it is a focused, maintainer-authored test improvement with no identified code defect and a green required CI gate.

Priority: P3
Reviewed head: 40e39829414ea2864eb25dc4d4aba4873f529ac8

Before merge

None.

Findings

None.

Agent review details

How this fits together

The test suite resolves Node, creates a temporary correction fixture, and invokes the baseline check-source CLI to verify captured-byte hashing, errors, and cleanup.

flowchart LR
  A[Baseline hash suite] --> B[Node tool helper]
  B --> C[Qualified Node executable]
  C --> D[Baseline check-source CLI]
  D --> E[POSIX Git probe]
  E --> F[Hash and cleanup assertions]
Loading

Technical review

Best possible solution:

Reuse the existing qualified Node resolver while preserving the complete POSIX hash coverage.

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

Source directly establishes the removed which-node spawn; the PR reports Node/Bun negative controls, but this read-only review ran no tests.

Is this the best way to solve the issue?

The patch is the smallest complete change: consume the existing Node owner’s result and retain every hash assertion.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Baseline hash fixture Node selection keeps the original intent (6598d8b: The original repair exercised captured evidence through real Node and POSIX Git stdin; its stated purpose did not require which-based Node discovery.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Introduced change: The pinned introduction adds one helper import and replaces only the which-node lookup; all test cases and assertions remain unchanged. (test/scripts/pr-baseline-snapshot-hash.test.ts:63, 40e39829414e)
  • Existing resolver contract: requireNodeTool delegates to the existing Node runtime resolver, which uses process.execPath under Node and probes for real Node under Bun; it does not substitute Bun for Node. (test/helpers/node-toolchain.ts:8, 40e39829414e)
  • Current main and original intent: Fetched main retains the external lookup. The original hash repair, fix(pr): hash captured snapshots through read-only stdin #173899, established the captured-stdin contract; this PR preserves it. (test/scripts/pr-baseline-snapshot-hash.test.ts:62, 828b81ad1f94)
  • Discussion and validation: The full body reports passing original/candidate cases under Node and Bun and a selective which-node negative control. Comments contain only review status. Exact-head CI and security status gates are successful; an older dispatch check was cancelled. (40e39829414e)
  • Policy and history: Applied the complete root and test policies and pr-simplify steps 1–3; no maintainer-notes directory exists. Scoped history identifies prior hash and Node-tool work, although missing historical helper blobs limit older content inspection. (test/AGENTS.md:1, 828b81ad1f94)

Likely related people:

  • Vincent Koc: Raw commit 6598d8b adds test/scripts/pr-baseline-snapshot-hash.test.ts:61 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6598d8b24abc; files: test/scripts/pr-baseline-snapshot-hash.test.ts)
  • Peter Steinberger: Raw commit e794898 adds test/scripts/pr-baseline-snapshot-hash.test.ts:59 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e794898a5e6b; files: test/scripts/pr-baseline-snapshot-hash.test.ts)

PR surface

Tests +1. Total +1 across 1 file. Added test files: 0.

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

Labels

Label changes:

  • add P3: A small test setup optimization removes a redundant executable lookup without changing product behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: A small test setup optimization removes a redundant executable lookup without changing product behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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 31, 2026, 6:02 PM ET / 22:02 UTC.

@vincentkoc
vincentkoc merged commit 85ae359 into main Nov 1, 2026
142 of 143 checks passed
@vincentkoc
vincentkoc deleted the perf/test-baseline-node-tool-owner-next100-20261101 branch November 1, 2026 00:18
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Nov 1, 2026
…ed-backup-search-exports-20261101

* commit 'cde4bfe4f10ce470ded7264c68d9a72ae03594cc':
  fix(ci): keep backup and chat search internals private (#189894)
  fix(codex): recover unused native threads without dropping history (#189900)
  fix(oc-path): use last duplicate JSON key to match runtime parsing (#189855)
  perf(test): parse the Mantis resolver workflow once (#189801)
  fix(agents): revert default hard context admission (#189891)
  refactor(test): use canonical tracked temp paths (#189800)
  chore(ui): refresh control ui locales (#189898)
  improve: show gateway commit and build time on About
  refactor(test): share SDK export fixture JSON writes (#189799)
  fix: restore Files navigation from unavailable previews (#189879)
  refactor(test): share raw ratchet fixture writes (#189798)
  fix(ai): honor Model Studio compatible-mode output limits (#189870)
  fix: hold queued messages through inline edits (#189869)
  perf(test): reuse the baseline fixture Node resolver (#189790)
  test(qa): correlate handoff replies by run identity (#189885)
  fix(ui): normalize canonical Unicode in local search comparisons (#189874)
  fix(ui): explain unsupported browsers without module scripts (#189883)

# Conflicts:
#	ui/src/pages/chat/components/chat-search-highlight.browser.test.ts
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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