Skip to content

CI: fix the three tests red on main (CI-F16-INT16-OMOD-REJECT, CI-RUNTIME-STACK-RESERVE, CI-BCPACK-POOL-DEDUPE) - #2593

Open
Bloh09 wants to merge 19 commits into
ProjectLeonida:mainfrom
Bloh09:fix/ci-main-red-tests
Open

Bloh09 wants to merge 19 commits into
ProjectLeonida:mainfrom
Bloh09:fix/ci-main-red-tests

Conversation

@Bloh09

@Bloh09 Bloh09 commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: CI-F16-INT16-OMOD-REJECT, CI-RUNTIME-STACK-RESERVE, CI-BCPACK-POOL-DEDUPE (#2570 (comment), #2570 (comment), #2570 (comment))

What and why

Three tests are red on main. Combined because they share no code, only the same CI breakage.

  • CI-F16-INT16-OMOD-REJECT: test_f16_to_int16_output_modifiers_still_rejected still expected Unsupported after 3cc3c6c started accepting clamp and mul:/div: on v_cvt_{u16,i16}_f16 as the RDNA2 no-ops. The test now asserts the result is unchanged and still refuses mul:8 and any modifier on _e32.
  • CI-RUNTIME-STACK-RESERVE: /MAP was added after /STACK:${GTA6RT_STACK} in the gta6rt link options, so the test could no longer find the reserve. /STACK is last again; the loader already had the reserve.
  • CI-BCPACK-POOL-DEDUPE: the macOS job failed test_resolve_pools_deduplicates_macos_case_and_accents_and_keeps_case_sensitive (1 != 2) because the test fakes a case-sensitive volume but the real scratch-folder probe still sees the Mac's case-insensitive disk. The test now stubs that probe; the dedupe code is unchanged.

Also red on main or its CI runners, added after CI on this PR showed them (all test or fixture fixes, no product code except one portable-bash line):

  • CI-MAKEGAME-INDEX-SHAPE-MESSAGE, CI-REPO-CLONE-ADDRESS: make_game's index-shape error and the clone address the README and dashboard use.

  • CI-SAMPLER-CENSUS-LSHL-FIXTURE, CI-METAL-SET0-TESTS: fixtures follow the current encoding and messages.

  • CI-STDOUT-GUARD-NEW-TOOLS: four tools guard stdout with errors=replace (Windows cp1252).

  • CI-BOOT-JOURNAL-SHORT-PATH: compares long paths on Windows (8.3 temp dirs).

  • CI-WINE-SAFETY-XDPYINFO-STUB, CI-RUN-GAME-WINE-BASH3: no host xdpyinfo needed; the device match no longer uses ${x,,} (macOS bash 3.2).

  • CI-DOCS-PS1-PARAM-ATTRIBUTE, CI-README-REWRITE-LINKS: the ps1 parser keeps = inside an attribute; docs follow the README rewrite.

  • CI-PIPELINE-WORKERS-DEQUE-OOM, CI-XS-PROXY-TICK-CLOCK: runtime tests no longer depend on libstdc++ deque preallocation or the 15.6 ms Windows tick.

  • CI-BINDLESS-DIMENSIONS-SMALL-DEVICE, CI-IMGATOMIC-EXT-VOLUME-TAG: a tiny device skips instead of failing; the fixture uses the volume T# words.

  • CI-PSIN-DIALOGUE-SIBLING-PATH: psin_dialogue.py puts the tools directory on sys.path before importing psin_data (python -I). This was already red on main.

  • CI-D3D12-GUID-SITES-GDK-COUNT: after d3d12_guid_sites: load known GDK runtime GUIDs from gdk_runtime_class… #487 the guid-sites tool also loads the GDK JSON, so the error-reporting test no longer requires the count to be exactly 1. This was already red on main.

Still red: macOS runtime ps_exp_f32_denorm_rt (the runner's GPU returns exp2(-125) two ulps low; needs a device to chase).

Skipped: the no-op behavior itself is from the earlier hardware measurement, not re-measured here.

Tested

Tested on Linux, no game files: the three failing tests, tests/test_report_paths.py, scripts/run_semantic_tests.py tests/semantic (522 files, 0 failed), and scripts/check_no_game_data.py.

GPUs tested: n/a

AI-assisted: yes (Grok Bot), reviewed by me.

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.

@aegish-zagi

Copy link
Copy Markdown

#2593 | head aa82feb (based on current main adfb382; git merge-tree --write-tree vs main rc=0, head already contains main) | python -m unittest discover -s tests/semantic -p test_valu_cvt_f16_int16_mods.py, python -I tests/test_build_runtime_fallback.py, python -I tests/test_bcpack_history_calib.py, plus python -I tests/test_ci_registration.py (18 OK) and scripts/check_no_game_data.py on the 4 changed files (rc=0) | red on main: semantic FAILED (failures=2, "Unsupported not raised" for v_cvt_u16_f16 / v_cvt_i16_f16 clamp) and test_build_runtime_fallback FAILED (failures=1, skipped=1, loader stack-reserve line) | green on PR: semantic 5 tests OK, build-runtime-fallback 11 OK (skipped=1), bcpack OK | Linux (Ubuntu, kernel 6.x), Python 3.12.3 | AI-assisted: yes

Diff audit (4 files, +29/-6): CMakeLists moves /STACK:${GTA6RT_STACK} last on the gta6rt link line with an explanatory comment — no value change. The f16 fix is test-side plus one comment line in tools/rdna2spirv.py: the translator already accepted clamp/omod as RDNA2 no-ops, the old test expected rejection; the new tests assert the no-op results (incl. SDWA clamp) and keep rejection for unknown forms (mul:8, _e32 clamp). The bcpack fix mocks _same_resolved_name in the darwin helper so the real scratch-volume probe no longer overrides the mocked case-sensitive volume.

Honest scope note: the bcpack red is macOS-specific — on this Linux box test_bcpack_history_calib.py passes on bare main too (23 tests OK), so I could not reproduce that one red here; the mock change reads correctly for the macOS failure mode described in the claim, but a macOS runner is the confirming platform for that third item. The other two reds reproduced and fixed exactly as claimed.

Verdict: holds up — mergeable as far as Linux/Profile Z can judge, with the bcpack item's confirmation resting on macOS CI.

@merzleckeier

Copy link
Copy Markdown

Independent CachyOS check of c7f8dab06 merged into a9e247cd6 (Python 3.14.10, GCC/libstdc++ 16.2.1). All inputs were synthetic.

  • The full semantic suite had one failing file on main (the two f16-to-int16 clamp subtests, 6,484 tests total). The merge passed all 6,485 tests across 522 files. pipeline_workers also went red to green under CTest, as did the Wine display stub, sampler census, SPIR-V CLI/extra and stdout-guard suites.
  • On RTX 4070 SUPER (620.73.04) and Radeon 610M (RADV 26.3.1), cs_imgatomic_ext went from six incorrect SINT readback words on main to all 192 words matching. vk_bindless_dimensions read all 5,000 texels per dimension on both GPUs. With just the reported aggregate resource limit set to 8,192 in a local test build, the 1D array sized to 256 and main failed its capacity assertion. The merge returned the expected CTest skip code 77.

Two suites still have one failure each on this merge. The rewritten README uses plain git clone for D3D12. test_ensure_submodule_names_the_clone_command_the_readme_gives and test_default_repo_is_the_one_the_readme_clones still require the exact git clone --recursive line (the former was also noted in #2596). I tested making --recursive optional in those README assertions while continuing to compare the exact escaped repository URL. Both suites then passed (109 run with one skip, and 65 passed). Focused controls also accepted the recursive form and rejected a different repository. The make_game missing-submodule hint itself still uses --recursive.

AI-assisted with Codex.

@Bloh09

Bloh09 commented Nov 29, 2026

Copy link
Copy Markdown
Contributor Author

Went the other way: 97b3e9d puts the git clone --recursive line back in the READMEs, so both tests pass as-is (stdlib-tests-linux is green on 9dde957).

@zmasi

zmasi commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

#2593 | head 9dde957 (merged cleanly onto origin/main e66c65b) | Windows 11 (10.0.26200.9974), MSVC 19.44.35228.0, PowerShell, Python 3.12.10 | AI-assisted: yes

Independent Verification (Windows 11 + PowerShell + MSVC)

  • Diff & safety audit: Inspected 100% of the 22-file diff at head 9dde9578d09a2c410d26f6e77bdff6c5e957af55. python -I scripts/check_no_game_data.py passed across all touched files (rc=0).
  • Red -> Green on Windows 11 (origin/main e66c65b950 vs #2593 + origin/main):
    • Red reproduced on origin/main (e66c65b950):
      • python -I tests/test_docs_links.py -> FAILED (failures=1) (#project-status and #running-the-loader-on-linux anchors)
      • python -I tests/test_docs_cli_flags.py -> FAILED (failures=1) (extract_ps1_params splitting inside [Parameter(Mandatory = $true)])
      • python -I tests/test_build_runtime_fallback.py -> FAILED (failures=1) (/STACK:${GTA6RT_STACK} not at end of target_link_options line)
      • python -I tests/test_tool_stdout_encoding.py -> FAILED (failures=1) (__main__ sys.stdout.reconfigure(errors="replace") missing in 4 scripts/tools)
      • python -I tests/semantic/test_valu_cvt_f16_int16_mods.py -> FAILED (failures=2)
    • Green on #2593 + origin/main (404 Python / PowerShell / semantic tests + 3 MSVC CTest binaries all OK):
      • python -I tests/test_docs_links.py -> 17/17 OK
      • python -I tests/test_docs_cli_flags.py -> 4/4 OK
      • python -I tests/test_make_game_preflight.py -> 109 ran, OK (skipped=2)
      • python -I tests/test_progress_dashboard.py -> 65/65 OK
      • python -I tests/test_build_runtime_fallback.py -> 11/11 OK
      • python -I tests/test_tool_stdout_encoding.py -> 4/4 OK
      • python -I tests/semantic/test_valu_cvt_f16_int16_mods.py -> 5/5 OK
      • python -I tests/test_bcpack_history_calib.py -> 23 ran, OK (skipped=1)
      • python -I tests/test_sampler_source_census.py -> 30/30 OK
      • python -I tests/test_spirv_metal_set0_cli_errors.py (7/7 OK) & tests/test_spirv_metal_set0_extra.py (24/24 OK)
      • python -I tests/test_windows_boot_journal_seed.py -> 17/17 OK (native Windows PowerShell boot.ps1 suite with os.path.realpath 8.3 short-name normalization)
      • python -I tests/test_shader_checks.py -> 88/88 OK
      • MSVC 19.44.35228.0 (RelWithDebInfo, CMake + Ninja): built and executed pipeline_workers_test.exe (rc=0), d3d12_compile_pool_test.exe (rc=0), and xs_proxy_mock_test.exe (rc=0, verifying check_list_values steady_clock timing).

Bloh09 and others added 17 commits November 28, 2026 17:31
…X-SHAPE-MESSAGE, CI-REPO-CLONE-ADDRESS)

A non-object translated index says it must contain a JSON object again, and the
missing-submodule hint names the repository the README clones.
…++ never fails (CI-PIPELINE-WORKERS-DEQUE-OOM)
…d fewer than its live images (CI-BINDLESS-DIMENSIONS-SMALL-DEVICE)
…cts (CI-IMGATOMIC-EXT-VOLUME-TAG)

Based on work by @PierreEbele in ProjectLeonida#1518.

Co-authored-by: PierreEbele <127682386+PierreEbele@users.noreply.github.com>
… an equals sign (CI-DOCS-PS1-PARAM-ATTRIBUTE)
…sh 3.2 matches the card (CI-RUN-GAME-WINE-BASH3)
@Bloh09
Bloh09 force-pushed the fix/ci-main-red-tests branch from 9dde957 to bbbdba8 Compare November 29, 2026 01:32
@Bloh09

Bloh09 commented Nov 29, 2026

Copy link
Copy Markdown
Contributor Author

Rebased on main (bbbdba8). Dropped the compile-pool checkpoint commit, #2510 already fixed that race on main.

@github-actions github-actions Bot removed the needs rebase Conflicts with the base branch: rebase it on main label Nov 29, 2026
@lixonik

lixonik commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Retested head bbbdba8c4b2824cda9a5329c3d455ec3ce655e46 merged cleanly into current main 791899f65202e4385523795902637336fc9d0cb6 on native Windows 10 (19045), CPython 3.12.1, synthetic tests only.

  • Ten files went from red to green: f16-to-int16 output modifiers, runtime build fallback, docs CLI flags, docs links, make_game preflight, stdout encoding, BCPack history calibration, sampler source census and SPIR-V Metal set-0 CLI errors and extra suites.
  • Windows boot journal seed passed all 17 tests on both trees. The BCPack case-sensitive fixture failed with 1 instead of 2 on this Windows host too, then passed with this PR.
  • In test_progress_dashboard.py, the clone-URL assertion now passes. Two pre-existing subtests still fail on both trees under CPython 3.12.1: with one skipped test the dashboard counts 1 instead of 2, and with both skipped it reports failure for NO TESTS RAN (skipped=2).
  • check_no_game_data.py passed on the changed files. No GPU tests or macOS checks in this run.

AI-assisted. Codex (GPT-6).

@lixonik

lixonik commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Checked the two new changes at f6cbdb93854dc9b9b04252ba48925c846b5489ad against main c8bf0e7b65, Windows 10 and CPython 3.12.1.

  • python -I tools/psin_dialogue.py --help exits 1 on main with ModuleNotFoundError: psin_data; it exits 0 on the merge.
  • test_d3d12_guid_tools_errors.py has one failure on main and passes all four tests on the merge.

Synthetic inputs only.

AI-assisted. Codex (GPT-6).

@TheGeogeo

Copy link
Copy Markdown
Contributor

Tested f6cbdb938 (the rebased head) merged (no commit) with main c8bf0e7b6. GPUs tested: NVIDIA GeForce RTX 3080, driver 621.40, Windows 11 10.0.26300; Python 3.12.4; MSVC 19.52 (Visual Studio 18), Ninja, RelWithDebInfo. check_no_game_data.py is clean. The merge is clean.

The three named tests are red on main c8bf0e7b6 and green with this PR:

  • tests/semantic/test_valu_cvt_f16_int16_mods.py: 2 failures on main, OK on the merge (the fix is in the test).
  • tests/test_bcpack_history_calib.py: 1 failure on main (1 != 2), OK on the merge (the fix is in the test).
  • tests/test_build_runtime_fallback.py: test_the_loader_gets_the_stack_reserve_cmake_gives_it fails on main and passes on the merge. It goes red again with runtime/CMakeLists.txt back to main, so the /STACK-last change is the real fix.

The other touched Python tests:

  • 6 fail on plain main and pass on the merge, all test-side fixes: test_guid_tools_errors, test_docs_cli_flags, test_sampler_source_census, test_spirv_metal_set0_cli_errors, test_spirv_metal_set0_extra, test_windows_boot_journal_seed.
  • The tests of the changed tools: test_progress_dashboard and test_docs_links fail on main and pass on the merge; 7 others pass on both.
  • Not run here: test_make_game_preflight.py, test_run_game_wine_safety.py and test_ci_registration.py, because they start bash.

C++:

  • The build is clean. The touched tests (pipeline_workers and the 10 xs_proxy_mock* cases) pass, and so do the 38 other tests of the 14 relinked executables. Those C++ test fixes target other toolchains (libstdc++, MoltenVK), so they pass on main here too.
  • LINK: gta6rt.exe linked without ws2_32.lib gives the same 26 unresolved Rust-std symbols as main, nothing new.

Notes, not blockers:

  • The earlier conflict is gone: the rebased head no longer carries the d3d12_compile_pool_test.cpp commit, which d3d12_compile_pool_test: submit the demand after the checkpoint's first look (TEST-COMPILE-POOL-LOAD-FLAKE) #2510 covers on main. The description still lists CI-COMPILE-POOL-CHECKPOINT-RACE, so that line is stale now.
  • The branch has 19 commits. The body lists the extra CI fixes, but the title names only three items.
  • CI-PSIN-DIALOGUE-SIBLING-PATH: test_psin_dialogue passes on main too, so no test here fails without that fix.
  • The tools/rdna2spirv.py change is a comment only.

No blocker from my side. AI-assisted (Claude Code).

@Tauwni

Tauwni commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

macOS complement (Apple M3, CPython 3.13, python -I), MEASURED, 3 runs: main e66c65b9 + head f6cbdb938 (merges cleanly). All of these pass 3/3: test_make_game_pipelines, test_sampler_source_census, test_spirv_metal_set0_extra, test_spirv_metal_set0_cli_errors, test_tool_stdout_encoding, test_bcpack_history_calib, test_build_runtime_fallback, tests/semantic/test_valu_cvt_f16_int16_mods. Not checked by a second agent or human yet.

Side note: four of these fixes match the lines on my fork branches listed in #2570 (comment) (also the ${x,,} line I reported on #2332). A mention in the description would be appreciated, if you are fine with it. I will drop those branches once this lands.

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.

7 participants