test: bound sparse tile CTest runs (TEST-TILE-CTEST-TIMEOUT) #1156

Closed
j-weiner wants to merge 1 commit from upstream-pr/1156 into main
j-weiner commented 2026-11-24 19:19:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by j-weiner on 2026-11-24T19:19:04Z.


Claimed in the coordination issue as: TEST-TILE-CTEST-TIMEOUT (original claim on #14)

What and why

Set a 300-second CTest timeout on d3d12_buffer_tiles and d3d12_texture_tiles, preserving their SKIP_RETURN_CODE 77 and Vulkan validation failure checks. If sparse residency is refused after the test has queued work, teardown can otherwise wait indefinitely and block the rest of the runtime suite. This bounds the test hang; it does not change sparse-residency behavior or the runtime implementation.

Tested

  • python3 -I tests/test_ctest_registration.py — 6 passed.
  • python3 -I tests/test_text_write_line_endings.py — 3 passed.
  • python3 -I scripts/check_no_game_data.py runtime/CMakeLists.txt tests/test_ctest_registration.py — clean.
  • git diff --check — passed.
  • Configured runtime/ with CMake 3.31.6, MSVC 19.44, Windows SDK 10.0.26100, and Vulkan SDK 1.4.363.1; ctest --show-only=json-v1 -R "d3d12_buffer_tiles|d3d12_texture_tiles" confirms both tests retain SKIP_RETURN_CODE=77 and the validation failure regex, and each has TIMEOUT=300. The test binaries were not built or run.

GPUs tested: n/a (CTest registration change; no GPU test was run).

AI-assisted: yes.

Checklist

  • Rebased on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption.
  • No translator rule change (not applicable).
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5478745943 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1156). Originally posted by [j-weiner](https://github.com/j-weiner) on 2026-11-24T19:19:04Z. --- Claimed in the coordination issue as: TEST-TILE-CTEST-TIMEOUT (original claim on #14) ### What and why Set a 300-second CTest timeout on `d3d12_buffer_tiles` and `d3d12_texture_tiles`, preserving their `SKIP_RETURN_CODE 77` and Vulkan validation failure checks. If sparse residency is refused after the test has queued work, teardown can otherwise wait indefinitely and block the rest of the runtime suite. This bounds the test hang; it does not change sparse-residency behavior or the runtime implementation. ### Tested - `python3 -I tests/test_ctest_registration.py` — 6 passed. - `python3 -I tests/test_text_write_line_endings.py` — 3 passed. - `python3 -I scripts/check_no_game_data.py runtime/CMakeLists.txt tests/test_ctest_registration.py` — clean. - `git diff --check` — passed. - Configured `runtime/` with CMake 3.31.6, MSVC 19.44, Windows SDK 10.0.26100, and Vulkan SDK 1.4.363.1; `ctest --show-only=json-v1 -R "d3d12_buffer_tiles|d3d12_texture_tiles"` confirms both tests retain `SKIP_RETURN_CODE=77` and the validation failure regex, and each has `TIMEOUT=300`. The test binaries were not built or run. GPUs tested: n/a (CTest registration change; no GPU test was run). AI-assisted: yes. ### Checklist - [x] Rebased on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption. - [x] No translator rule change (not applicable).
abnalstlll-byte commented 2026-11-24 19:22:08 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T19:22:08Z.

Review: APPROVED


Reviewed and verified. Prevents indefinite CTest hangs during teardown of refused sparse tile updates by setting \TIMEOUT 300\ on \d3d12_buffer_tiles\ and \d3d12_texture_tiles\ in
untime/CMakeLists.txt. Verified with \ ests/test_ctest_registration.py\ (4/4 PASS). 100% clean-room.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6045831443 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1156#pullrequestreview-6045831443). Originally posted by [abnalstlll-byte](https://github.com/abnalstlll-byte) on 2026-11-24T19:22:08Z. **Review:** APPROVED --- Reviewed and verified. Prevents indefinite CTest hangs during teardown of refused sparse tile updates by setting \TIMEOUT 300\ on \d3d12_buffer_tiles\ and \d3d12_texture_tiles\ in \ untime/CMakeLists.txt\. Verified with \ ests/test_ctest_registration.py\ (4/4 PASS). 100% clean-room.
Deedlyy commented 2026-11-24 20:12:23 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Deedlyy on 2026-11-24T20:12:23Z.


Recommendation: [MERGE]

Reasoning: Sets a 300 s CTest timeout on d3d12_buffer_tiles and d3d12_texture_tiles so a sparse-residency teardown hang can't block the suite; skip and validation behaviour is preserved. Small CMake change with a registration test. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict with main. Merge once the queued checks are green.

Impact level: 2/10

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7143188939 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1156#issuecomment-7143188939). Originally posted by [Deedlyy](https://github.com/Deedlyy) on 2026-11-24T20:12:23Z. --- **Recommendation:** [MERGE] **Reasoning:** Sets a 300 s CTest timeout on `d3d12_buffer_tiles` and `d3d12_texture_tiles` so a sparse-residency teardown hang can't block the suite; skip and validation behaviour is preserved. Small CMake change with a registration test. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict with `main`. Merge once the queued checks are green. **Impact level:** 2/10
j-weiner commented 2026-11-25 17:27:23 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by j-weiner on 2026-11-25T17:27:23Z.


Rebased the branch onto current main (fe1553456). The existing SKIP_RETURN_CODE 77 and validation failure checks remain, with TIMEOUT 300 applied to both sparse-tile tests.

Rechecked: tests/test_ctest_registration.py (6 passed), tests/test_text_write_line_endings.py (3 passed), scripts/check_no_game_data.py on the changed files (clean), and git diff --check (pass). I also configured the current CMake tree and verified with ctest --show-only=json-v1 that both d3d12_buffer_tiles and d3d12_texture_tiles register SKIP_RETURN_CODE=77, TIMEOUT=300, and the existing validation failure regex. No game files or GPU test were used.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7169528941 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1156#issuecomment-7169528941). Originally posted by [j-weiner](https://github.com/j-weiner) on 2026-11-25T17:27:23Z. --- Rebased the branch onto current `main` (`fe1553456`). The existing `SKIP_RETURN_CODE 77` and validation failure checks remain, with `TIMEOUT 300` applied to both sparse-tile tests. Rechecked: `tests/test_ctest_registration.py` (6 passed), `tests/test_text_write_line_endings.py` (3 passed), `scripts/check_no_game_data.py` on the changed files (clean), and `git diff --check` (pass). I also configured the current CMake tree and verified with `ctest --show-only=json-v1` that both `d3d12_buffer_tiles` and `d3d12_texture_tiles` register `SKIP_RETURN_CODE=77`, `TIMEOUT=300`, and the existing validation failure regex. No game files or GPU test were used.
j-weiner commented 2026-11-25 17:32:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by j-weiner on 2026-11-25T17:32:28Z.


Updated again to current main (b0e11f234) after new merges. tests/test_ctest_registration.py (6 passed), tests/test_text_write_line_endings.py (3 passed), check_no_game_data.py (clean), and git diff --check all pass. CMake configuration and ctest --show-only=json-v1 confirm both tile tests still register SKIP_RETURN_CODE=77, TIMEOUT=300, and the existing validation failure regex. No game files or GPU test were used. CI is queued on GitHub.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7169650267 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1156#issuecomment-7169650267). Originally posted by [j-weiner](https://github.com/j-weiner) on 2026-11-25T17:32:28Z. --- Updated again to current `main` (`b0e11f234`) after new merges. `tests/test_ctest_registration.py` (6 passed), `tests/test_text_write_line_endings.py` (3 passed), `check_no_game_data.py` (clean), and `git diff --check` all pass. CMake configuration and `ctest --show-only=json-v1` confirm both tile tests still register `SKIP_RETURN_CODE=77`, `TIMEOUT=300`, and the existing validation failure regex. No game files or GPU test were used. CI is queued on GitHub.
j-weiner commented 2026-11-25 17:45:14 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by j-weiner on 2026-11-25T17:45:14Z.


Final base check: rebased onto current main (b9320a118). The CTest registration suite and CMake/CTest listing were rechecked after the rebase; both tile tests retain SKIP_RETURN_CODE=77 and TIMEOUT=300. GitHub CI is queued, not failing.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7169950728 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1156#issuecomment-7169950728). Originally posted by [j-weiner](https://github.com/j-weiner) on 2026-11-25T17:45:14Z. --- Final base check: rebased onto current `main` (`b9320a118`). The CTest registration suite and CMake/CTest listing were rechecked after the rebase; both tile tests retain `SKIP_RETURN_CODE=77` and `TIMEOUT=300`. GitHub CI is queued, not failing.
MoonEyes commented 2026-11-28 17:58:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T17:58:49Z.


Hi @j-weiner, thanks for this pull request. It currently conflicts with main (conflicting file(s): tests/test_ctest_registration.py), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; 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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7243434870 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1156#issuecomment-7243434870). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T17:58:49Z. --- Hi @j-weiner, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `tests/test_ctest_registration.py`), so it carries the `needs rebase` label. CONTRIBUTING.md asks authors to rebase their branch on `main`; 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).
j-weiner commented 2026-11-30 16:55:32 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by j-weiner on 2026-11-30T16:55:32Z.


Rebased onto current main c38c9e6a4 in response to the conflict request. The merge keeps the new upstream k_xdxr_postbuild_readback registration test and the sparse-tile timeout regression; the CMake change still sets TIMEOUT 300 on both tile tests and retains SKIP_RETURN_CODE 77 plus the validation failure regex.

Checks on Python 3.12.10: ests/test_ctest_registration.py (15 passed), ests/test_text_write_line_endings.py (3 passed), scripts/check_no_game_data.py on both changed files, and git diff --check all passed. CMake configuration/build and GPU tests were not rerun in this environment. No game files used. AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7285442776 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1156#issuecomment-7285442776). Originally posted by [j-weiner](https://github.com/j-weiner) on 2026-11-30T16:55:32Z. --- Rebased onto current main c38c9e6a4 in response to the conflict request. The merge keeps the new upstream k_xdxr_postbuild_readback registration test and the sparse-tile timeout regression; the CMake change still sets TIMEOUT 300 on both tile tests and retains SKIP_RETURN_CODE 77 plus the validation failure regex. Checks on Python 3.12.10: ests/test_ctest_registration.py (15 passed), ests/test_text_write_line_endings.py (3 passed), scripts/check_no_game_data.py on both changed files, and git diff --check all passed. CMake configuration/build and GPU tests were not rerun in this environment. No game files used. AI-assisted.
aslan2142 commented 2026-12-01 17:22:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T17:22:06Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7319186781 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1156#issuecomment-7319186781). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T17:22:06Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!1156
No description provided.