Repository navigation
fix(test): normalize test runner paths to POSIX slashes - #2176
Conversation
|
🦞👀 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 changesNormalize expanded test-file paths to forward slashes before deduplication and sorting. Example: Expand the unit target on Windows with test/a.test.ts present.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR fixes a Windows test-runner defect still present on current main, with no actionable code findings. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherPackage test commands use this runner to expand named targets, select shards, and pass file arguments to Node's test runner. flowchart LR
A[Package test command] --> B[Named target patterns]
B --> C[Filesystem glob expansion]
C --> D[Normalize and sort paths]
D --> E[Select shard]
E --> F[Node test child]
Technical reviewBest possible solution: Land the focused normalization in the existing target-expansion owner. Do we have a high-confidence way to reproduce the issue? Current-main expansion preserves Windows separators while existing assertions require forward slashes; the linked Windows base/fixed comparison supports this failure path without a new local run. Is this the best way to solve the issue? Normalization at expansion is the smallest complete fix and preserves the existing sorting, deduplication, sharding, and child-process owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b484f0a485f1. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
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. LabelsLabel 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 HistoryReviewed November 11, 2026, 1:22 AM ET / 06:22 UTC (Revision 3). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
* fix(review): qualify exact push relay rejection fixture * fix: report the real checkout inspection failure reason - Lead the read-only checkout inspection failure message with the runner error when present. - Keep a redacted 2000-character stdout/stderr tail as context; keep stderr || stdout when no error. - OpenClaw prints a plugin trust warning to stderr on every run, which hid every inspection reason. - Add runner tests for OpenClaw and Codex inspection failures. * fix: qualify the historical OCE harness origin fixture (#2197) * test: clear dashboard token watchdog after completion (#2196) Co-authored-by: Ryan Saari <[email protected]> * fix: qualify exact OCE 5398 JDBC fixture revisions (#2198) * fix(dashboard): normalize dashboard strict paths to POSIX slashes (#2177) * fix: use server-issued census observation windows (#2174) * fix: bound census observations with server-issued query windows Replace cross-host completion-clock comparisons for negotiated census producers with stored metadata and per-assignment observation windows. Preserve strict legacy fallback, lease/checkpoint/identity fences, stable witnesses, and capacity bounds. Include signed native temporal red/green and rolling-compatibility proof. Co-authored-by: brokemac79 <[email protected]> Co-authored-by: Vincent Koc <[email protected]> * fix: use server-issued census observation windows Worked on by: - @brokemac79 Co-authored-by: brokemac79 <[email protected]> OpenClaw-Publication: 9c3c62ec-951b-43b0-98f9-511dba1829cf * fix: preserve negotiated census authority across legacy upgrades Add real workerd cold-restart proof that persisted deployed legacy-v2 checkpoints, cursors, identities and receipts load unchanged and safely continue through negotiated windows. Require the atomic lease mode before accepting any page, including legacy-shaped in-flight data before next issues a witness. Resolves the accepted data-model compatibility proof blocker without state reset or weakened legacy guards. Co-authored-by: brokemac79 <[email protected]> Co-authored-by: Vincent Koc <[email protected]> * Publish openclaw/coverage-observation-window-fix Worked on by: - @brokemac79 Co-authored-by: brokemac79 <[email protected]> OpenClaw-Publication: 281f1b7a-6346-42af-b919-9fd25dd6b736 --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: brokemac79 <[email protected]> Co-authored-by: Vincent Koc <[email protected]> * fix(test): normalize test runner paths to POSIX slashes (#2176) * fix: terminal acknowledgement test passes on a timeout instead of the real retry failure (#2199) * test: exercise terminal acknowledgement retries without delay * test: use the real retry helper with Retry-After: 0 The retry helper honors Retry-After, so the fixture no longer needs a patched copy of the helper and request builder. The unchanged workflow step and helper now run all six attempts without waiting. Co-authored-by: Ryan Saari <[email protected]> Co-authored-by: obviyus <[email protected]> --------- Co-authored-by: Ryan Saari <[email protected]> Co-authored-by: obviyus <[email protected]> * improve: shorten reservation workflow test runtime (#2200) * test: avoid reservation fixture retry waits * test: record reservation retry waits with a PATH sleep shim Replace the BASH_ENV sleep function and the hand-maintained per-scenario attempt table with a sleep shim on the step's PATH. Every recorded delay is still checked against the workflow's 2n + 0..3 backoff, and the service-unavailable scenario must record all four waits. Co-authored-by: Ryan Saari <[email protected]> Co-authored-by: obviyus <[email protected]> --------- Co-authored-by: Ryan Saari <[email protected]> Co-authored-by: obviyus <[email protected]> * fix(review): stop demanding proof for speculative races and in-flight revocation (#2202) * fix(review): stop demanding proof for speculative races and in-flight revocation Authority-chain review now triggers only on changed authorization decisions; revocation applies to the next request; unproven authority is no longer a merge gate. P3 findings are advisory, speculative race machinery without recorded buy-in and preemptive single-use helpers become findings, and AGENTS.md adopts the matching design rules. Co-authored-by: obviyus <[email protected]> * fix(review): keep advisory P3 findings out of the merge readiness gate Co-authored-by: obviyus <[email protected]> * fix(review): keep P3-only incorrect verdicts and queued repairs advisory Co-authored-by: obviyus <[email protected]> --------- Co-authored-by: obviyus <[email protected]> * fix: reuse reviewed test credentials after surrounding edits (#2201) Approve exact previously reviewed synthetic Raw/RawV2 value pairs while retaining detector, decoder, native metadata, verification, and completion checks. Remove hostname-based exemptions and keep normalized Postgres findings blocking. Validation: full pnpm check, 32 focused tests, 28 native proof cases in an isolated UTM guest, and a clean final committed whole-branch Codex review. The maintainer explicitly waived the hosted ClawSweeper review and approved this merge in the task conversation. * feat(review): read durable Gitcrawl cluster service context * fix(review): validate service tokens without control regex * fix: allow service-backed review-start reservations * style: format service review-start reservation proof * fix: allow service-backed review artifact publication * feat: prepare service context before applying decisions * fix: preserve parent identity during apply preparation * fix: wire apply preparation to the shared relation policy * test: cover service-backed apply and authority drift * test: hold paired closes without prepared service context * test: align service apply fixtures with live revision guards * docs: explain apply preparation failure ownership * fix: enforce apply retry guards without mutation receipts * style: format service freshness assertion * test: exercise service retries with a current review lease * fix: refresh apply authority after ambiguous writes * style: format service lease regression fixture * test: reject exact-event retries after lease revocation * style: format exact-event retry assertion --------- Co-authored-by: Mitchell Etzel <[email protected]> Co-authored-by: Free Wortley <[email protected]> Co-authored-by: Ryan S <[email protected]> Co-authored-by: Ryan Saari <[email protected]> Co-authored-by: Saiyam Jain <[email protected]> Co-authored-by: RoboClaw <[email protected]> Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: brokemac79 <[email protected]> Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]> Co-authored-by: obviyus <[email protected]>
What Problem This Solves
Fixes: on Windows hosts,
scripts/run-node-tests.mjsreturns paths with Windows backslashes (\) fromglobSync, causing target expansion and child argument checks intest/run-node-tests.test.tsto fail.User Impact
Target expansion in the custom test runner produces consistent POSIX relative paths (
/) across all platforms.Why This Change Was Made
resolveTestFiles()maps paths returned byglobSyncthrough.replaceAll("\\", "/"). This prevents Windows-specific path separators from breaking target comparisons and child-process argument assertions.Documentation Impact
README.md already documents that
scripts/run-node-tests.mjsexpands targets so the same targets work on Linux, macOS, and Windows. No documentation update required. Added changelog fragmentchangelog.d/run-node-tests-posix-paths.md.Evidence
node --test test/run-node-tests.test.ts: passes 11/11 tests on Windows (previously failed subtests 3 and 10 withAssertionError: ['test\a.test.ts'] vs ['test/a.test.ts']).node scripts/changelog-stitch.mjs --check: passed.oxfmt --check scripts/run-node-tests.mjs changelog.d/run-node-tests-posix-paths.md: passed.oxlint scripts/run-node-tests.mjs: passed with 0 warnings and 0 errors.Real Behavior Proof
Shipped CLI execution trace on Windows (Node v22.19.0) executing a focused target through the real child process:
Real Behavior Proof
scripts/run-node-tests.mjsthroughtest/run-node-tests.test.ts, on a GitHub-hostedwindows-latestrunner.test runner expands named targets with sorted de-duplicated filesandtest runner preserves child arguments, exit codes, and terminating signalsfail with[ 'test\\a.test.ts', 'test\\z.test.ts' ]where[ 'test/a.test.ts', 'test/z.test.ts' ]is expected.test/run-node-tests.test.tsandtest/check-dashboard-strict.test.tspass 15/15.