cpu: normalize Windows compiler basename in EXE CLI reports #2659
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2667"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by chadhyatt on 2026-11-26T01:34:24Z.
AI-assisted backport patch from x2w-microlift.
Refs #2605. On macOS,
Path(compiler).nametreats a Windows-styleC:\fake\cl.exepath as one filename, causing two existing portable CLI assertions to fail. UsePureWindowsPathonce for the reported compiler basename; the subprocess command is unchanged.Verification: macOS ARM64, Python 3.15.2, head
76cad03ec53369ffa93eaa474f43d2e97d7585aeon upstream728797973394af8088106e7ef8531b1d1f59b00b.python -B tests/cpu_exe_aot_cli_check.py- 9 tests PASS (previously 2 failures). Existing source-built fixtures only. No Windows runtime or full CI run locally.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T02:18:00Z.
Review: COMMENTED
Review of head
76cad03e.What I checked:
tools/exe_aot.py: the compiler basename is now computed once withPureWindowsPath(compiler).nameand reused in the three Refusal messages and the return value. The subprocess command is unchanged. Forward-slash POSIX paths still give the right name, sincePureWindowsPathaccepts both separators.tests/cpu_exe_aot_cli_check.py(CTestcpu_exe_aot_cli_check) already covers the Windows-stylecl.exepath, so no new test is needed.Commands run (Linux, worktree at the exact head):
python -B tests/cpu_exe_aot_cli_check.py-> Ran 9 tests, OKPureWindowsPath(compiler).name->Path(compiler).name): the suite FAILS (2 failures); restored after.git diff --check origin/main...HEAD-> cleanpython3 tests/docs_links_check.pyandpython3 tests/bidi_controls_check.py-> passedVerdict: sound, small, Python-only.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T02:52:21Z.
Review: APPROVED
Reproduced the earlier branch CI failure in the unrelated scalar operand arity check. After integrating the fix already on main, all nine EXE CLI tests and the scalar arity controls pass locally. Compiler invocation is unchanged, and the reported compiler basename now handles Windows paths on a non-Windows host.
Imported from R0Y00/Xbox2Windows. Originally posted by chadhyatt on 2026-11-26T02:18:44Z.
Thanks for the focused review and mutation control. The updated head includes the main merge and the same standalone tools/exe_aot.py change. No additional changes requested on my side.
Imported from R0Y00/Xbox2Windows. Originally posted by chadhyatt on 2026-11-26T02:32:15Z.
The updated-head Linux job reports a failure in tests/startup_gfx2hlsl_scalar_table_arity_check.py (run 45741494549, job 139647331898). This PR changes only compiler-path reporting in tools/exe_aot.py; the reviewed CLI suite passed, and the failure is in an unrelated translator suite after the main merge. I will keep this patch focused.
Imported from R0Y00/Xbox2Windows. Originally posted by chadhyatt on 2026-11-26T02:54:48Z.
Updated-head Windows job 139659428598 fails in d3d12_xs_device.cpp with C2086 duplicate Pass::bound_targets and Pass::bound_depth declarations. The current upstream main I fetched already has a single declaration of each, so this appears to be an intervening inherited regression. The standalone exe_aot.py change is still unchanged; no additional patch added.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T03:04:20Z.
Win2025 WARP receipt for head
e78a34daafter updating with main.Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
e78a34da11f8c2381dc4dc96630217dd56ca68b7:--preset dev):cmake --build --preset dev -- -j 2):0.00s(configure0.00s)ctest --preset dev -R 'exe_aot' --parallel 2 --no-tests=error --output-on-failure): 3/3 passed (9.73s:cpu_stdio_exe_aot_check1.34s,cpu_exe_aot_convert6.66s,cpu_exe_aot_cli_check8.12s)/O2(--preset release):cmake --build --preset release -- -j 2):0.00s(configure0.00s)ctest --preset release -R 'exe_aot' --parallel 2 --no-tests=error --output-on-failure): 3/3 passed (8.69s:cpu_exe_aot_convert7.11s,cpu_exe_aot_cli_check8.30s,cpu_stdio_exe_aot_check1.34s)sccache: 1/4 hits; wall27.3sAI-assisted; commands listed were executed locally.
upstream-sync referenced this pull request2026-11-26 13:03:00 +00:00