tests: find LLVM 15 on Windows PATH for the descriptor-store round trip #2197
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2205"
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 RavenCurseBurg on 2026-11-25T04:51:15Z.
While running the formatted-store fixture for #2022, I put the official Windows LLVM 15.0.7 package on
PATHoutside Program Files. Itsclang.exe,llvm-objcopy.exeandLLVM-C.dllwere available, but the fixture still printedllvm15_round_trip=skipped. The package supplies clang’s integrated AMDGPU assembler. The fixture looked for that assembler only in the default install directory. LLVM 15.0.7 releaseThe Windows clang fallback now looks for all three files together in an absolute PATH directory or the default location. It checks the clang major version before selecting the toolchain. A regression control supplies a non-default directory to the detector.
Verification
Current head
56f05c79includes the upstream MSVC build fix from #2204. I reran the descriptor-store WARP fixture with the Windows LLVM 15 package on PATH. The round trip matched and the wrong-value control failed at word 14 as expected. The upstream Windows build, Linux checks, and gfx1013 assembly checks passed. Upstream CI · Full Windows 2025 Debug and Release runpython -B tests/compute_store_check.py draw-descriptor-store-format <dxc> <offscreen_check> warpon Windows with LLVM 15.0.7 on PATH. Base33a47702printedllvm15_round_trip=skipped. This branch printedllvm15_round_trip=match. The real fixture assembled for gfx1013, disassembled, lowered identically and passed WARP readback with 1 and 2 groups. Both refusal cases passed. The wrong 32_UINT store produced the expected mismatch at word 14.git diff --checkpassed.AI-assisted with Codex (GPT-6.2 Astra xhigh, as specified by the contributor).
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T04:57:03Z.
Review: COMMENTED
Review of head
c59738d855(tests/compute_store_check.py only).Findings: 0 P1, 0 P2.
find_llvm15()now scans PATH plus the Program Files fallback on Windows, requires clang.exe, llvm-objcopy.exe and LLVM-C.dll together, and checksclang --versionfor major 15 before use. Theos.name == "nt"guard keeps Linux behavior unchanged. A failing or missing clang is skipped (OSError / non-zero exit), so the optional round trip stays optional.descriptor_store_controls()builds a fake complete toolchain in a temp dir, patches PATH and the version probe, and asserts the exact tuple. It only runs on Windows, as the draw mode that calls it does.Commands executed locally:
python3 tests/docs_links_check.py-> pass (405 links)python3 tests/bidi_controls_check.py-> passgit diff --check origin/main...HEAD-> cleanos.nameforced tont(Linux):CONTROL_PASSgit checkout -- .after each mutation.Note: GitHub shows the
Windows checksrun asaction_required(needs maintainer approval), soBuild and test on Windowshas not run for this head yet.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T05:14:12Z.
Review: COMMENTED
Review of head
56f05c7981(tests/compute_store_check.py only).Result: 0 P1, 0 P2.
What I checked:
find_llvm15()now walks PATH (plus the Program Files fallback) on Windows only, requires absolute directories with clang.exe, llvm-objcopy.exe and LLVM-C.dll, and accepts the toolchain only ifclang --versionreports 15.x. A broken or wrong-version clang is skipped instead of failing the run.descriptor_store_controls()builds a fake complete toolchain in a temp dir and asserts discovery outside Program Files. It is gated onos.name == "nt", so it only runs where the code under test runs.find_llvm15; it does not fix the same behavior, so there is no competing fix. It will need a rebase onto this change after merge.Commands executed locally:
git diff --check origin/main...HEAD-> cleanpython3 tests/docs_links_check.py-> 407 links OKpython3 tests/bidi_controls_check.py-> no bidi controlsdescriptor_store_controls()withos.namepatched tont-> passesgit checkout -- .Build and test on Windows= SUCCESS.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T05:34:27Z.
The full Windows 2025 Debug run now provides a hosted regression case for this change. On the same
ab9a020cbase,compute_store_aot_descriptor_store_format_warpselected the system clang and failed withunknown target triple 'amdgcn-unknown-amdpal'on the branch without this detector change. At56f05c79the same CTest passed in 10.56 s. The two remaining Debug failures concern temporary-path spelling and PowerShell warning colors in other tests. The portable LLVM 15 binary round trip is recorded separately in the PR description. Before · After