Skip to content

fix(benchmark): resolve file URLs with spaces on Windows#2893

Open
2543679596-sketch wants to merge 1 commit into
rtk-ai:developfrom
2543679596-sketch:fix/windows-file-url-benchmark-paths
Open

fix(benchmark): resolve file URLs with spaces on Windows#2893
2543679596-sketch wants to merge 1 commit into
rtk-ai:developfrom
2543679596-sketch:fix/windows-file-url-benchmark-paths

Conversation

@2543679596-sketch

Copy link
Copy Markdown

Summary

  • Replace manual new URL(...).pathname.replace(...) path handling in benchmark scripts with fileURLToPath(...)
  • Keep the default benchmark report path cross-platform by resolving it from the decoded project root
  • Fixes Windows paths that contain spaces by avoiding URL-encoded %20 paths and leading /C:/... drive paths

Fixes #2891

Test plan

  • bun build scripts/benchmark/run.ts scripts/benchmark/rebuild.ts --outdir .tmp-bun-build --target=bun
  • Manual Windows file URL check: file:///C:/Users/John%20Doe/... now resolves to C:\Users\John Doe\... instead of /C:/Users/John%20Doe/...
  • git diff --check

Note: I could not run the full benchmark scripts locally because they require multipass; I verified the scripts bundle and the Windows path conversion directly.

@CLAassistant

CLAassistant commented Jul 8, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@2543679596-sketch 2543679596-sketch force-pushed the fix/windows-file-url-benchmark-paths branch from 4e91a05 to acbdb8d Compare July 8, 2026 15:42
@2543679596-sketch 2543679596-sketch force-pushed the fix/windows-file-url-benchmark-paths branch from acbdb8d to 253ff2b Compare July 8, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DIRNAME computed incorrectly on Windows when the user profile path contains a space — causes ENOENT on conf/commands.json

2 participants