run_gpu_tests: sort cs_dump tables one entry per line (TEST-RUN-GPU-SORTED-TABLES) #1726

Open
github-bot wants to merge 1 commit from github-bot/gh-1726 into main AGit
Owner

@⁠TanmaySatyam on GitHub · 2026-11-25 09:48 UTC · original
TanmaySatyam:refactor/run-gpu-tests-sorted-tables → main · +222 −143 · 2 files · 1 commits · open

Claimed in the coordination issue as: TEST-RUN-GPU-SORTED-TABLES (#1608)

What and why

scripts/run_gpu_tests.py had three multi-entry horizontal tuples (elif name in ("cs_...", ...) duplicating every key of cs_dump_wants, wave64 = name not in (...), and hexwords=name in (...)) that caused recurring 3-way merge conflicts whenever two GPU-test PRs touched the runner.

This lifts those lists to module-level, alphabetically sorted, one-entry-per-line tables:

  • CS_DUMP_WANTS (dispatch now checks elif name in CS_DUMP_WANTS: directly, removing the duplicate 74-entry tuple)
  • CS_DUMP_NON_WAVE64 (frozenset[str], 42 entries)
  • CS_DUMP_HEXWORDS (frozenset[str], 9 entries)

Every fixture set has identical membership to main; tests/test_run_gpu_tests_tables.py enforces alphabetical sorting, one-entry-per-line formatting, and subset parity going forward.

Tested

  • python -m compileall -q scripts/run_gpu_tests.py tests/test_run_gpu_tests_tables.py -> pass
  • python -I tests/test_run_gpu_tests_tables.py -> 4/4 passed
  • python -I tests/test_run_gpu_tests.py -> 68/68 passed
  • python -I tests/test_run_gpu_tests_paths.py -> 21/21 passed
  • python -I scripts/run_gpu_tests.py --build runtime/build --filter cs_store --require-pass (LEONIDA_VK_VALIDATION=1) -> 1/1 passed
  • python -I scripts/run_gpu_tests.py --build runtime/build --filter cs_w32_fcmpswap --require-pass (LEONIDA_VK_VALIDATION=1) -> 1/1 passed
  • LEONIDA_W64_EMULATE=1 python -I scripts/run_gpu_tests.py --build runtime/build --filter cs_smem_vcc_base --require-pass (LEONIDA_VK_VALIDATION=1) -> 1/1 passed (and skips natively on 32-wide as before)
  • python -I scripts/check_no_game_data.py scripts/run_gpu_tests.py tests/test_run_gpu_tests_tables.py -> exit 0

GPUs tested: NVIDIA GeForce RTX 5070 (Windows 11, Vulkan validation enabled, 0 VUIDs)

AI-assisted: yes

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)
**@⁠TanmaySatyam** on GitHub · 2026-11-25 09:48 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1726) `TanmaySatyam:refactor/run-gpu-tests-sorted-tables` → `main` · +222 −143 · 2 files · 1 commits · open Claimed in the coordination issue as: TEST-RUN-GPU-SORTED-TABLES (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why `scripts/run_gpu_tests.py` had three multi-entry horizontal tuples (`elif name in ("cs_...", ...)` duplicating every key of `cs_dump_wants`, `wave64 = name not in (...)`, and `hexwords=name in (...)`) that caused recurring 3-way merge conflicts whenever two GPU-test PRs touched the runner. This lifts those lists to module-level, alphabetically sorted, one-entry-per-line tables: - `CS_DUMP_WANTS` (dispatch now checks `elif name in CS_DUMP_WANTS:` directly, removing the duplicate 74-entry tuple) - `CS_DUMP_NON_WAVE64` (`frozenset[str]`, 42 entries) - `CS_DUMP_HEXWORDS` (`frozenset[str]`, 9 entries) Every fixture set has identical membership to `main`; `tests/test_run_gpu_tests_tables.py` enforces alphabetical sorting, one-entry-per-line formatting, and subset parity going forward. ### Tested - `python -m compileall -q scripts/run_gpu_tests.py tests/test_run_gpu_tests_tables.py` -> pass - `python -I tests/test_run_gpu_tests_tables.py` -> 4/4 passed - `python -I tests/test_run_gpu_tests.py` -> 68/68 passed - `python -I tests/test_run_gpu_tests_paths.py` -> 21/21 passed - `python -I scripts/run_gpu_tests.py --build runtime/build --filter cs_store --require-pass` (`LEONIDA_VK_VALIDATION=1`) -> 1/1 passed - `python -I scripts/run_gpu_tests.py --build runtime/build --filter cs_w32_fcmpswap --require-pass` (`LEONIDA_VK_VALIDATION=1`) -> 1/1 passed - `LEONIDA_W64_EMULATE=1 python -I scripts/run_gpu_tests.py --build runtime/build --filter cs_smem_vcc_base --require-pass` (`LEONIDA_VK_VALIDATION=1`) -> 1/1 passed (and skips natively on 32-wide as before) - `python -I scripts/check_no_game_data.py scripts/run_gpu_tests.py tests/test_run_gpu_tests_tables.py` -> exit 0 GPUs tested: NVIDIA GeForce RTX 5070 (Windows 11, Vulkan validation enabled, 0 VUIDs) AI-assisted: yes ### 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)
Deduplicates the 74-entry elif name in (...) dispatch tuple against cs_dump_wants by lifting CS_DUMP_WANTS, CS_DUMP_NON_WAVE64, and CS_DUMP_HEXWORDS to module-level alphabetically sorted one-entry-per-line tables. Eliminates horizontal-tuple merge conflicts across GPU-test PRs without changing any fixture's behavior. Adds tests/test_run_gpu_tests_tables.py to enforce ordering and subset parity.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:02:41 +00:00
Author
Owner

@⁠lixonik on GitHub · 2026-11-25 10:23 UTC · original · reviewed

Independent native Windows verification at df7cf56d against 3de22a19. I extracted the old table and dispatch membership from the base AST and compared them with the PR's loaded constants: all 74 fixture names and expected word sequences are identical, as are the 42 non-wave64 and 9 hex-output memberships. The three runner test files passed (4 table, 68 runner, 21 path tests).

AI-assisted review. CPU-only comparison and synthetic tests.

**@⁠lixonik** on GitHub · 2026-11-25 10:23 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1726#pullrequestreview-6055779468) · **reviewed** Independent native Windows verification at `df7cf56d` against `3de22a19`. I extracted the old table and dispatch membership from the base AST and compared them with the PR's loaded constants: all 74 fixture names and expected word sequences are identical, as are the 42 non-wave64 and 9 hex-output memberships. The three runner test files passed (4 table, 68 runner, 21 path tests). AI-assisted review. CPU-only comparison and synthetic tests.
This pull request has changes conflicting with the target branch.
  • scripts/run_gpu_tests.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1726/head:github-bot/gh-1726'
git switch 'github-bot/gh-1726'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1726'
git switch 'github-bot/gh-1726'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1726'
git switch 'github-bot/gh-1726'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1726'
git switch 'main'
git merge --squash 'github-bot/gh-1726'
git switch 'main'
git merge --ff-only 'github-bot/gh-1726'
git switch 'main'
git merge 'github-bot/gh-1726'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.