Skip to content

fix(cli): windows rolldown verbatim path#2238

Merged
sahilmob merged 4 commits into
mainfrom
fix/windows-rolldown-verbatim-path
May 26, 2026
Merged

fix(cli): windows rolldown verbatim path#2238
sahilmob merged 4 commits into
mainfrom
fix/windows-rolldown-verbatim-path

Conversation

@sahilmob

@sahilmob sahilmob commented May 26, 2026

Copy link
Copy Markdown
Contributor

📚 Description

This pr fixes the path canonicalization on Windows.
On Windows, canonical paths can contain special characters, e.g., \\?\C:\repo\project\scripts\codemod.ts, which Rolldown doesn't like.

Reporduced in https://github.com/codemod/codemod/actions/runs/26455063489/job/77886561996
Screenshot 2026-05-26 at 6 26 25 PM

🧪 Test Plan

  1. CI green
  2. Unit test added

@sahilmob sahilmob requested a review from mohebifar May 26, 2026 15:25
Comment thread crates/cli/src/utils/rolldown_bundler.rs
@github-actions

Copy link
Copy Markdown
Contributor

Codex Review

The Windows verbatim-path fix in rolldown_bundler looks directionally correct, but there is one notable edge-case test gap in the new path-normalization logic.

Findings

  • [LOW] crates/cli/src/utils/rolldown_bundler.rs:112 New UNC verbatim-path branch is untested

@github-actions

Copy link
Copy Markdown
Contributor

TUI Perf Comparison

Focused Perf Regression Tests

Test Result
should_redraw_is_false_for_static_idle_ui_without_changes PASS
draw_counter_counts_only_initial_draw_for_static_idle_screen PASS
draw_counter_counts_one_redraw_for_burst_of_drained_workflow_events PASS
draw_counter_counts_deadline_tick_for_running_screen PASS
reduce_workflow_receiver_requests_snapshot_after_receiver_lag PASS
await_js_ast_grep_execution_task_returns_prompt_completion_without_polling_delay PASS
await_js_ast_grep_execution_task_prefers_completed_result_over_later_idle_signal PASS

Timed Perf Benchmarks

Benchmark Baseline median Candidate median Delta Ratio Result
jssg_wait_completion_latency 6 us 6 us +0 us 1.00x PASS
large_task_list_render_latency 7135 us 7174 us +39 us 1.01x PASS
publish_log_heavy_task_list_render_latency 7692 us 7715 us +23 us 1.00x PASS
log_modal_render_latency 602799 us 690110 us +87311 us 1.14x PASS

Fails only when candidate median is more than 25% slower and exceeds the benchmark-specific absolute floor.

TUI Perf Comparison

  • Baseline dir: perf-results/baseline
  • Candidate dir: perf-results/candidate

Completed

Metric Baseline Candidate Delta
deadline_wakeups 1 1 0
draws 1 1 0

Awaiting Trigger

Metric Baseline Candidate Delta
deadline_wakeups 1 1 0
draws 1 1 0

Active

Metric Baseline Candidate Delta
deadline_wakeups 4 4 0
draws 4 4 0

Awaiting Trigger Resume

Metric Baseline Candidate Delta
deadline_wakeups 1 1 0
draws 1 1 0

Active Busy

Metric Baseline Candidate Delta
deadline_wakeups 4 4 0
draws 4 4 0

Terminal Activity

Metric Baseline Candidate Delta
deadline_wakeups 1 1 0
draws 3 3 0
terminal_events 2 2 0
terminal_key_events 1 1 0
terminal_resize_events 1 1 0

@sahilmob sahilmob merged commit 8e5d38e into main May 26, 2026
11 checks passed
@sahilmob sahilmob deleted the fix/windows-rolldown-verbatim-path branch May 26, 2026 17:28
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.

2 participants