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

Open
opened 2026-11-26 21:18:47 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1726
Author: @TanmaySatyam
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: refactor/run-gpu-tests-sorted-tables


📝 Commits (1)

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

📊 Changes

2 files changed (+222 additions, -143 deletions)

View changed files

📝 scripts/run_gpu_tests.py (+146 -143)
➕ tests/test_run_gpu_tests_tables.py (+76 -0)

📄 Description

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1726 **Author:** [@TanmaySatyam](https://github.com/TanmaySatyam) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `refactor/run-gpu-tests-sorted-tables` --- ### 📝 Commits (1) - [`df7cf56`](https://github.com/ubiquitarianism/leonida/commit/df7cf56d1f18fa0d64103db6750148711417c7fc) run_gpu_tests: sort cs_dump tables one entry per line (TEST-RUN-GPU-SORTED-TABLES) ### 📊 Changes **2 files changed** (+222 additions, -143 deletions) <details> <summary>View changed files</summary> 📝 `scripts/run_gpu_tests.py` (+146 -143) ➕ `tests/test_run_gpu_tests_tables.py` (+76 -0) </details> ### 📄 Description 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.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) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1738
No description provided.