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 17 commits into
ProjectLeonida:mainfrom
Bloh09:fix/ci-main-red-tests
Open

Bloh09 wants to merge 17 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, CI-COMPILE-POOL-CHECKPOINT-RACE: runtime tests no longer depend on libstdc++ deque preallocation, the 15.6 ms Windows tick, or a thread race.
  • CI-BINDLESS-DIMENSIONS-SMALL-DEVICE, CI-IMGATOMIC-EXT-VOLUME-TAG: a tiny device skips instead of failing; the fixture uses the volume T# words.

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
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.

4 participants