#1615's detector read the mode only at position 1, so Path.open(mode)
and tempfile.NamedTemporaryFile(mode) were not seen: three atomic report
writes (rbf0_tree, rtti_scan, world_build) still get CRLF on Windows.
They now pass newline="\n".
The test now reads the mode where each call takes it: open, io/gzip/
bz2/lzma.open and os.fdopen at position 1, Path.open and the tempfile
classes at position 0 (binary by default). It accepts only real mode
strings, and skips codecs, os, tarfile, zipfile and webbrowser opens.
Found by @undeadhuman37 in their review of #1615.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
open(path, "w") without newline= turns each \n into \r\n on Windows, so the same JSON report, manifest or assembly
listing was CRLF there and LF elsewhere. 91 text-mode writes (open, os.fdopen, Path.write_text) under tools/, scripts/,
make_game.py and runtime/test/shaders/ now pass newline="\n". tests/test_text_write_line_endings.py reads the source
with ast and fails for a writer that forgets it; CONTRIBUTING.md names the convention.
AI-assisted (Claude), on behalf of dev-ewann.
Contributors and their agents often come across bugs, missing methods or
stale docs while working on something else. Ask them to post those in
the coordination issue as "finding: <one line>" with where, why and
what it needs, so the coordinator can list them for others.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The coordination issue (#156) will move to a successor when its thread
gets long. CONTRIBUTING.md, AGENTS.md, the PR template and the testing
guide now find it as the open issue titled "Coordinating who works on
what" (a search link, and a gh command for agents), so they stay right
without an edit each time.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows with Trend Micro Maximum Security (Defender and Smart App Control
off), images the test writes to %TEMP% can be written but not opened for a
while: each takes 50-800 ms, the first case failed, the truncation case
stalled for about ten minutes, and an uncaught write error then ended the
process with 0xc0000409. Held images from one run also made the next fail.
- Each run writes to leonida_loader_test\<process id>, so the previous run's
held images cannot collide; LEONIDA_TEST_DIR picks the parent folder.
- A start-up check writes and reads back 8 images and stops with the reason
and the folder to exclude if one is refused or they average over 25 ms.
- A failed write ends the run as one FAIL instead of std::terminate.
- A run folder that cannot be removed is reported as a note.
The loader and its 48 checks are unchanged. ctest 15/15 on Windows 11 with
the antivirus active. AI-assisted (Claude Code).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The D3D12 -> Vulkan layer is tracked in #313 (critical path, who builds
what, open D3D12 methods); say so next to #156 and #166.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collects what testers in #166 needed to find out themselves: llvm-mc
with the AMDGPU target per OS, building the test programs, the two ways
to run the suite, wave64 emulation on 32-wide GPUs (set
LEONIDA_W64_EMULATE for build.py too), choosing a GPU, and the problems
reported so far with their fixes. Linked from CONTRIBUTING.md and the
docs index.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ItsNotRexed asked in #156 for claims to be made there before a PR is
opened. Say so where contributors and their agents look first:
CONTRIBUTING.md, AGENTS.md and the pull request template.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add tests/semantic: translate two hand-written, branch-free pixel shaders
(ps_sdwa, ps_ops) and execute the resulting SPIR-V with a small strict
interpreter, asserting every mrt0 word against hand-derived expectations.
Catches wrong-value regressions (SDWA selects/sext, min3/max3, bfe_i32,
packed f16 FMA) that spirv-val cannot.
- Standard library only; no LLVM, SPIRV-Tools, GPU or game files.
- Interpreter rejects unmodelled constructs instead of approximating.
- Negative controls sabotage translated output; mutation tests sabotage a
temporary copy of tools/ and require the matching test to fail.
- Fixtures are generated from runtime/test/shaders/*.asm.
- CI job semantic-tests (Windows + Ubuntu, Python 3.12), discovery limited
to tests/semantic.
Preserve whole-wave mask operations, saved EXEC values and flat
pixel inputs when generating SPIR-V. Keep a dispatch-loop fallback
alongside structured control flow and share the descriptor probe.
Add reproducible GPU fixtures for these cases and exercise the
control-flow and mask analyses in CI.
Shader pipeline (carve, FSSM unpack, gfx1013 disassembly, RDNA2 to SPIR-V),
asset export via rpf9-explorer's Core (submodule), PE loader and shim
skeleton, and make_game.py, which builds from the user's own copy of the game.
No game data, keys or executables are included.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>