Skip to content

Fix CI tests broken by today's overlapping merges - #9666

Closed
whyn0t-dev wants to merge 1 commit into
ProjectLeonida:mainfrom
whyn0t-dev:main
Closed

whyn0t-dev wants to merge 1 commit into
ProjectLeonida:mainfrom
whyn0t-dev:main

Conversation

@whyn0t-dev

Copy link
Copy Markdown

Claimed in the coordination issue as:

What and why

Several PRs merged on 2026-11-23 without a rebase broke each other's tests. This brings every CI suite back to green.

Real fixes:

Stale tests updated to the merged behaviour:

Behaviour choice to confirm: #1797 clamped an explicit --jobs to the CPU count, which broke four make_game tests on any runner with fewer cores. This keeps the clamp for the setup screen's slider only and uses an explicit --jobs as given, as the README describes. Happy to revert to the clamp and change the tests instead if that was intended.

Tested

Linux, Python 3.13, Node 22, no GPU:

  • stdlib tests: 440 / 442 files pass. The two others fail only in my environment: test_navmesh_nodes (run as root, so a 0444 file stays writable) and test_rdna2_decode (LLVM 18; 21+ required)
  • pytest files: 1,092 passed, 0 failed
  • scripts/run_semantic_tests.py tests/semantic: 447 / 447 files
  • node --test tests/test_*.cjs: 67 / 67
  • compileall and make_game.py --help OK

No translator rule changed; no shader translated.

AI-assisted: yes

Checklist

  • 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. (No new rule.)

Several PRs merged on 2026-11-23 without a rebase broke each other's tests.

Real fixes:
- bvh_slot_check: unpack the 6-field model_geometries tuple (was 5)
- find_hash_lookup: joaat over Latin-1 like hashdict (accented names hashed differently)
- build_runtime.ps1: cl.exe fallback builds xg_xs.cpp
- runtime/README.md: close an unclosed code block that hid later headings
- docs: merge duplicate index rows, fix a relative link
- runtime.yml: add tools/replace_retry.py to the path filter
- stdout errors="replace" guard in 12 programs; newline="\n" in 2 writers
- bink_index / ptr_truncation_census: reconcile two PRs that fixed the same thing

Stale tests updated: exec_static_true (image atomics, f64), cube d16 store (ItsNotRexed#6805),
poll()-based shard runner (ItsNotRexed#1797), report_paths helpers (ItsNotRexed#6268), R32_FLOAT PNG (ItsNotRexed#6758),
ps_table_fetch (ItsNotRexed#6833), missing-input exit 2 (ItsNotRexed#6701), viewer AbortController.

Behaviour choice to confirm: make_game no longer clamps an explicit --jobs to the CPU
count (only the setup screen's slider is bounded), as the README describes.

Tested: all stdlib/pytest/semantic/node suites pass on Linux (Python 3.13, Node 22),
except test_navmesh_nodes (run as root) and test_rdna2_decode (LLVM 18 < 21 required).
@dragoso

dragoso commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Tested e2c34e343 on native Windows 11 (build 26300), Python 3.11.0 (no pytest), Node 24.15.0, no GPU needed, no game files. Each file was run against main 5d74c2723 in a separate worktree as the baseline: pass, and every file this PR touches that runs here goes from red on Windows to green.

Test file main this PR
tests/semantic/test_image_atomics_guard.py FAILED (failures=47) OK, 4 tests
tests/semantic/test_image_store_d16.py FAILED (failures=1) OK
tests/test_bink_index.py FAILED (failures=1) OK, 32
tests/test_docs_cli_flags.py FAILED (failures=1) OK
tests/test_f64_conversion.py FAILED (failures=6) OK
tests/test_f64_output_modifiers.py FAILED (failures=7) OK
tests/test_gamedata_blobs.py FAILED (failures=1) OK
tests/test_make_game_empty_translation.py FAILED (errors=1) OK, 13
tests/test_make_game_resume.py FAILED (errors=11) OK, 14
tests/test_psin_names.py FAILED (failures=1) OK, 17
tests/test_ptr_truncation_census.py FAILED (failures=2) OK, 12
tests/test_report_source_collision.py FAILED (failures=1) OK
tests/test_shader_checks.py FAILED (errors=15) OK, 84
tests/test_text_write_line_endings.py FAILED (leonida_tui.py:753, wave_diff.py:373) OK
tests/test_build_runtime_fallback.py FAILED (shims\xg_xs.cpp missing from the fallback) OK
tests/test_docs_links.py FAILED (failures=1) OK
node --test tests/test_viewer_streaming.cjs 56/57 57/57

Not run here: tests/test_tex_export.py and tests/test_user_sgpr_census.py (pytest isn't installed on this machine).

Code read of the non-test changes, no problems found: bvh_slot_check unpacks model, *_, so it also survives a future 7th field. find_hash_lookup.joaat over Latin-1 matches hashdict.joaat. The xg_xs.cpp fallback entry and the newline="\n" writers are the two fixes for the failures I'd been seeing on Windows all day.

For the maintainer:

  1. The --jobs change is a behaviour choice, as the description says: an explicit --jobs is no longer clamped to the CPU count (the setup screen's slider still is). The README describes --jobs as given, so I'd keep the PR's choice, but it's the maintainer's call.
  2. Overlap: build_runtime: the cl.exe fallback compiles the xg_xs shim again #8393 makes the same build_runtime.ps1 change (the xg_xs.cpp fallback entry) and is already checked, so one of the two will need to drop it at merge time.
  3. Small: the description's first line still has the template placeholder (Claimed in the coordination issue as: <link to your claiming comment>).

AI-assisted (Claude Code).

@catminou4

Copy link
Copy Markdown
Contributor

Tested e2c34e3 on macOS 26 arm64, Python 3.12, CPU only, no game files: pass. on macOS: test_bink_index 32 OK, test_docs_cli_flags 4 OK, test_f64_conversion 1 OK, test_make_game_resume 14 OK, test_report_source_collision 8 OK, test_shader_checks 84 OK, test_gamedata_blobs 8 OK; semantic test_image_atomics_guard 4 OK, test_image_store_d16 4 OK. AI-assisted (Devin).

@RAINighty

Copy link
Copy Markdown

Tested e2c34e343 merged with main 5d74c2723 (clean merge) on Windows 11 (10.0.26300), Python 3.13.15 in UTF-8 mode (PYTHONUTF8=1; venv with the pinned tests/requirements.txt): 14 of the 15 test files that are red on main are green with this PR; test_user_sgpr_census.py stays red.

  • Green with this PR, red on main: test_image_atomics_guard.py, test_image_store_d16.py (both run via unittest discover -s tests/semantic), test_bink_index.py, test_docs_cli_flags.py, test_f64_conversion.py, test_f64_output_modifiers.py, test_gamedata_blobs.py, test_make_game_empty_translation.py, test_make_game_resume.py, test_psin_names.py, test_ptr_truncation_census.py, test_report_source_collision.py, test_shader_checks.py and test_tex_export.py.
  • test_user_sgpr_census.py: fails with this PR and on main (pytest -x stops at the first failure, which on main is test_json_report_refuses_to_overwrite_index[folding-volume-case]; I did not check what the PR's remaining failure is).
  • Control: with main's versions of the PR's non-test files (tools/*.py, scripts/build_runtime.ps1, make_game.py, docs and the workflow file) under its test files, those 14 are still green, so on this machine the fixes come from the test-file changes alone; I did not look at what the tool, script and doc changes are for.
  • Overlap: smaller open PRs change several of the same test files (for example tests: ptr_truncation_census --limit message check matches what argparse prints #8531 for test_ptr_truncation_census.py), so landing this one would make those need a rebase or be closed.
  • Code not reviewed beyond running it. No GPU or game files.

AI-assisted (Claude Code).

@Poussistar

Copy link
Copy Markdown

Independent Linux CPU check of e2c34e343, applied to a clean worktree at main 5d74c2723 (Python 3.14 venv, 4 CPUs, no GPU, no game files). I ran the whole red set of main, not only the files this PR touches: on clean 5d74c272, 22 files fail under python -I (or pytest -q for the pytest-style ones). With this diff, 21 of the 22 pass and one is still red.

Green with this diff, red on clean 5d74c272, beyond the files in the tables above: test_build_runtime_fallback.py, test_bvh_slot_check.py, test_docs_design_rows.py, test_docs_links.py, test_joaat_agreement.py, test_make_game_argparse.py, test_make_game_pipelines.py, test_runtime_paths.py, test_text_write_line_endings.py, test_tool_stdout_encoding.py.

Still red with this diff: tests/test_docs_env_vars.py — LEONIDA_TLS_GA_PATCH (runtime/src/pe_loader.cpp:519, added by b7a3fed2) is read by the code and named in no .md (Ran 4 tests — FAILED (failures=1)). That file is outside this PR's diff.

Two overlaps, so they are not a surprise at merge time:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants