run_gpu_tests: sort cs_dump tables one entry per line (TEST-RUN-GPU-SORTED-TABLES) #1726
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!1726
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor/run-gpu-tests-sorted-tables"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Claimed in the coordination issue as: TEST-RUN-GPU-SORTED-TABLES (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7158772853)
What and why
scripts/run_gpu_tests.pyhad three multi-entry horizontal tuples (elif name in ("cs_...", ...)duplicating every key ofcs_dump_wants,wave64 = name not in (...), andhexwords=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 checkselif 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.pyenforces 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-> passpython -I tests/test_run_gpu_tests_tables.py-> 4/4 passedpython -I tests/test_run_gpu_tests.py-> 68/68 passedpython -I tests/test_run_gpu_tests_paths.py-> 21/21 passedpython -I scripts/run_gpu_tests.py --build runtime/build --filter cs_store --require-pass(LEONIDA_VK_VALIDATION=1) -> 1/1 passedpython -I scripts/run_gpu_tests.py --build runtime/build --filter cs_w32_fcmpswap --require-pass(LEONIDA_VK_VALIDATION=1) -> 1/1 passedLEONIDA_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 0GPUs tested: NVIDIA GeForce RTX 5070 (Windows 11, Vulkan validation enabled, 0 VUIDs)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a)Hi @TanmaySatyam, thanks for this pull request. It currently conflicts with
main(conflicting file(s):scripts/run_gpu_tests.py), so it carries theneeds rebaselabel. CONTRIBUTING.md asks authors to rebase their branch onmain; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.AI-assisted (Claude Code, Claude Opus 5.5).
RUN: #1726 (tests only, python -I, no build, no game, GPU not used)
Tested heads: PR head df7cf56d1 (merge base 3de22a190), main b6bf3aa0b (fetched 2026-11-29).
Commands (from each worktree root, CPython 3.13.12):
Red: PR head with scripts/run_gpu_tests.py reverted to the merge-base version (tests kept): test_run_gpu_tests_tables.py fails 4 of 4 (tables missing, dispatch still uses the inline tuple). This is a refactor, so the red is structural: the new test pins the sorted one-entry-per-line tables. The existing runner tests (68) still pass with the old runner, as expected for a no-behaviour-change refactor.
Green at head: tables 4 OK, runner 68 OK, paths 21 OK, build_runtime_fallback 10 OK; semantic suite 487 files, 6279 tests, 0 files failed (1043 s, 4 jobs).
Green merged into main: NOT RUNNABLE.
git merge pr-1726into main b6bf3aa0b conflicts in scripts/run_gpu_tests.py (2 hunks, the inline cs_dump tuples that the PR replaces were edited on main by later PRs); GitHub also reports CONFLICTING (needs rebase). Plain main for reference: test_run_gpu_tests.py 75 OK, paths 23 OK, tables test fails on main as expected (no tables there).Pre-existing on plain main, unrelated to this PR: tests/test_build_runtime_fallback.py fails 1 test (test_the_loader_gets_the_stack_reserve_cmake_gives_it, a CMake regex about /STACK). It passes at the PR head only because the PR's base predates the CMake change.
So: green at head, red verified (structural), needs a rebase on main before a merged run is possible.
Machine: Windows 11 Pro 10.0.26300, CPython 3.13.12, GPU not used.
@TanmaySatyam this PR now conflicts with
main(scripts/run_gpu_tests.py). Could you mergemaininto your branch (no force-push needed)? It was verified before the conflict: https://github.com/ProjectLeonida/mandy/pull/1726#issuecomment-7250771073. If there's no update within 24 h, OreoFR may carry it in a new PR that keeps you as co-author (per the maintainers' plan). — OreoFR's agent (AI-assisted)Carried as #2718 because of the conflict with main after #2566; @TanmaySatyam, if you come back, say so and the carry is dropped.