[PR #837] [CLOSED] TEST-CUBE-WINPATH: the cube semantic test cannot start llvm-mc when LLVM_MC is a Windows path (carries on #419) #876

Closed
opened 2026-11-26 20:19:20 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/837
Author: @TimIdle
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: test-cube-winpath


📝 Commits (1)

  • 28cd197 semantic test: split LLVM_MC with the repository's own helper, not shlex

📊 Changes

1 file changed (+5 additions, -2 deletions)

View changed files

📝 tests/semantic/test_image_cube_store_glc.py (+5 -2)

📄 Description

Claimed in the coordination issue as: TEST-CUBE-WINPATH (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7134148472)

What and why

This carries on #419 by @fiestorra, which its author closed unmerged at 12:19 UTC because they moved to another project. The commit is theirs (060c3c6, cherry-picked with -x, authorship kept). I rebased it onto main d0da7da and tested it again.

The bug is still on main. llvm_mc_cmd() in tests/semantic/test_image_cube_store_glc.py splits LLVM_MC with POSIX shlex.split, which drops the backslashes of a Windows path. So with LLVM_MC set the way scripts\build_llvm_mc.ps1 sets it, LlvmMcRoundTrip fails with FileNotFoundError before llvm-mc starts. The fix uses tools/mc_command.py, the helper the other tools already use. One file, 5 lines added and 2 removed.

Tested

On Windows 11 Home build 26300, Python 3.14.10 (MSYS2 UCRT64), llvm-mc 21.1.8 from scripts\build_llvm_mc.ps1:

  1. Before the fix (4562b98, which is main d0da7da plus one gpu-test-results file): run_semantic_tests.py gave 1 file failing, test_image_cube_store_glc, with FileNotFoundError: [WinError 2], LLVM_MC = C:\Users\...\.leonida\llvm-mc\llvm-mc.exe.
  2. This branch (28cd197), test_image_cube_store_glc.py alone:
    • LLVM_MC set to the backslash path: 9 tests OK.
    • LLVM_MC unset, llvm-mc on PATH: 9 tests OK.
    • Neither available: OK (skipped=1), so the skip rule is unchanged.
  3. This branch, the whole suite with LLVM_MC set to the backslash path: 465 files, 6108 tests, 0 files failed.
  4. python -I tests/test_mc_command.py: 29 tests OK (skipped=7). check_no_game_data.py on the changed file: clean.

This matches what @quartz-heron-58 measured on #419 on another Windows 11 machine (Python 3.12.10).

GPUs tested: n/a (test-only change, CPU interpreter and llvm-mc only)

AI-assisted: yes (Claude Code: research, cherry-pick and test runs). The fix itself is fiestorra's.

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: no translator change)

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/837 **Author:** [@TimIdle](https://github.com/TimIdle) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `test-cube-winpath` --- ### 📝 Commits (1) - [`28cd197`](https://github.com/ubiquitarianism/leonida/commit/28cd197e74b8ff2e5ae218c006365ad0f4c226c6) semantic test: split LLVM_MC with the repository's own helper, not shlex ### 📊 Changes **1 file changed** (+5 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tests/semantic/test_image_cube_store_glc.py` (+5 -2) </details> ### 📄 Description Claimed in the coordination issue as: TEST-CUBE-WINPATH (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7134148472) ### What and why This carries on #419 by @fiestorra, which its author closed unmerged at 12:19 UTC because they moved to another project. The commit is theirs (060c3c6, cherry-picked with -x, authorship kept). I rebased it onto main d0da7da and tested it again. The bug is still on main. `llvm_mc_cmd()` in `tests/semantic/test_image_cube_store_glc.py` splits `LLVM_MC` with POSIX `shlex.split`, which drops the backslashes of a Windows path. So with `LLVM_MC` set the way `scripts\build_llvm_mc.ps1` sets it, `LlvmMcRoundTrip` fails with `FileNotFoundError` before llvm-mc starts. The fix uses `tools/mc_command.py`, the helper the other tools already use. One file, 5 lines added and 2 removed. ### Tested On Windows 11 Home build 26300, Python 3.14.10 (MSYS2 UCRT64), llvm-mc 21.1.8 from scripts\build_llvm_mc.ps1: 1) Before the fix (4562b98, which is main d0da7da plus one gpu-test-results file): run_semantic_tests.py gave 1 file failing, test_image_cube_store_glc, with `FileNotFoundError: [WinError 2]`, LLVM_MC = `C:\Users\...\.leonida\llvm-mc\llvm-mc.exe`. 2) This branch (28cd197), test_image_cube_store_glc.py alone: - LLVM_MC set to the backslash path: 9 tests OK. - LLVM_MC unset, llvm-mc on PATH: 9 tests OK. - Neither available: OK (skipped=1), so the skip rule is unchanged. 3) This branch, the whole suite with LLVM_MC set to the backslash path: 465 files, 6108 tests, 0 files failed. 4) python -I tests/test_mc_command.py: 29 tests OK (skipped=7). check_no_game_data.py on the changed file: clean. This matches what @quartz-heron-58 measured on #419 on another Windows 11 machine (Python 3.12.10). GPUs tested: n/a (test-only change, CPU interpreter and llvm-mc only) AI-assisted: yes (Claude Code: research, cherry-pick and test runs). The fix itself is fiestorra's. ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: no translator change) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:20 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#876
No description provided.