Conversation
…loses #95) test_process_command previously spawned "powershell" by basename, relying on SearchPathW to resolve it. Under concurrent test load that resolution occasionally failed with ERROR_FILE_NOT_FOUND, producing flakes like "failed to launch QEMU at powershell: program not found". Switch to cmd.exe via %SystemRoot%\System32\cmd.exe — always present at a known absolute path, no PATH race, and echo is a cmd built-in so there is no nested executable lookup. Net: the 5-run stress loop is now flake-free and per-run wall-clock dropped from ~0.54s to ~0.16s (no powershell spawn). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 14 minutes and 24 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
test_process_commandon Windows was spawningpowershellby basename, relying onSearchPathWresolution duringCommand::spawn. Under concurrent workspace test load that occasionally failed withERROR_FILE_NOT_FOUND(surfaced as"failed to launch QEMU at powershell: program not found").%SystemRoot%\System32\cmd.exewith an absolute path andcmd /C "echo line1& echo line2".echois a cmd built-in so there is no nested executable lookup, and the absolute path bypasses PATH races entirely.Test plan
uv run cargo test -p fbuild-daemon --lib handlers::emulatorrun 5× consecutively — 0 flakes.uv run cargo clippy --workspace --all-targets -- -D warningsclean.uv run cargo test --workspace— the specific regression (run_avr8js_headless_captures_stdout) is gone. (An unrelated flake intoolchain::esp_qemu::hydrate_windows_runtime_copies_iconv_next_to_exewas observed once under the same concurrent load and passes in isolation — tracked separately; same root cause class as perf(build): investigate warm-pass compilation stall — 30s where cache says <1s #91.)Related
Command::spawnissue uncovered during perf(build): investigate warm-pass compilation stall — 30s where cache says <1s #91 warm-build profiling.