[PR #1733] test_lds_src2: feed llvm-mc through stdin, so a WSL LLVM_MC can read it (TEST-LDS-SRC2-MC-STDIN) #1748

Open
opened 2026-11-26 21:18:49 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1733
Author: @MoonEyes
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: tests/lds-src2-mc-stdin


📝 Commits (3)

  • 3d910f1 test_lds_src2: feed llvm-mc through stdin, so a WSL LLVM_MC can read it (TEST-LDS-SRC2-MC-STDIN)
  • 9653e30 Merge remote-tracking branch 'origin/main' into pr-1733
  • 65f0730 Merge remote-tracking branch 'origin/main' into pr-1733

📊 Changes

1 file changed (+7 additions, -8 deletions)

View changed files

📝 tests/semantic/test_lds_src2.py (+7 -8)

📄 Description

Claimed in the coordination issue as: TEST-LDS-SRC2-MC-STDIN

What and why

tests/semantic/test_lds_src2.py's assemble() wrote the listing to a temporary file and passed its path to llvm-mc. With LLVM_MC set to the WSL command that tools/mc_command.py and the build's error message document (wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc), llvm-mc runs inside WSL and cannot open the Windows temp path, so every EncodingTests subtest failed (llvm-mc: error: C:\...\in.s: No such file or directory) instead of checking the encodings. It now feeds llvm-mc through stdin, as tools/shader_disasm.py does, and the now unused tempfile import goes. Same class of problem as TEST-CUBE-WINPATH (#419) in another test.

Tested

Windows 11, Python 3.14, python -I scripts/run_semantic_tests.py tests/semantic -p test_lds_src2.py:

LLVM_MC=wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc (llvm 21) no llvm-mc
main 1 file failed (63 subtest failures) -
this PR 5 tests OK OK, 3 skipped (the llvm-mc tests, as before)

The rest of the suite is unchanged by this PR (one test file touched).

GPUs tested: n/a

AI-assisted: yes (Claude Code made the change and ran the tests; I checked them)

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)

🤖 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/1733 **Author:** [@MoonEyes](https://github.com/MoonEyes) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `tests/lds-src2-mc-stdin` --- ### 📝 Commits (3) - [`3d910f1`](https://github.com/ubiquitarianism/leonida/commit/3d910f1f63e10accf3e5b1b1cb59c757aef819ac) test_lds_src2: feed llvm-mc through stdin, so a WSL LLVM_MC can read it (TEST-LDS-SRC2-MC-STDIN) - [`9653e30`](https://github.com/ubiquitarianism/leonida/commit/9653e30c68c9c6e3290fb7912d31d333363752d8) Merge remote-tracking branch 'origin/main' into pr-1733 - [`65f0730`](https://github.com/ubiquitarianism/leonida/commit/65f0730e55df35a90393ac1066f1be8a23e2a238) Merge remote-tracking branch 'origin/main' into pr-1733 ### 📊 Changes **1 file changed** (+7 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `tests/semantic/test_lds_src2.py` (+7 -8) </details> ### 📄 Description Claimed in the coordination issue as: TEST-LDS-SRC2-MC-STDIN ### What and why `tests/semantic/test_lds_src2.py`'s `assemble()` wrote the listing to a temporary file and passed its path to llvm-mc. With `LLVM_MC` set to the WSL command that `tools/mc_command.py` and the build's error message document (`wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc`), llvm-mc runs inside WSL and cannot open the Windows temp path, so every `EncodingTests` subtest failed (`llvm-mc: error: C:\...\in.s: No such file or directory`) instead of checking the encodings. It now feeds llvm-mc through stdin, as `tools/shader_disasm.py` does, and the now unused `tempfile` import goes. Same class of problem as TEST-CUBE-WINPATH (#419) in another test. ### Tested Windows 11, Python 3.14, `python -I scripts/run_semantic_tests.py tests/semantic -p test_lds_src2.py`: | | `LLVM_MC=wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc` (llvm 21) | no llvm-mc | |---|---|---| | main | 1 file failed (63 subtest failures) | - | | this PR | 5 tests OK | OK, 3 skipped (the llvm-mc tests, as before) | The rest of the suite is unchanged by this PR (one test file touched). GPUs tested: n/a AI-assisted: yes (Claude Code made the change and ran the tests; I checked them) ### 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. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a) 🤖 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>
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#1748
No description provided.