[PR #1382] Review/1350 timeout boundary tests #1411

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1382
Author: @xel1uz
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: review/1350-timeout-boundary-tests


📝 Commits (2)

  • 5ca1539 GPU-TIMEOUT-OVERFLOW: Reject GPU timeouts that overflow platform waits
  • 7d7fdce Exercise the GPU runner timeout limit before spawning a process

📊 Changes

2 files changed (+14 additions, -0 deletions)

View changed files

📝 runtime/test/shaders/check.py (+4 -0)
📝 tests/test_gpu_test_timeout.py (+10 -0)

📄 Description

Claimed in the coordination issue as: GPU-TIMEOUT-OVERFLOW (original claim by @delysidemanYT1).

Depends on: #1350. This branch includes @delysidemanYT1's timeout validation. The follow-up commit adds a regression test.

What and why

#1350 caps LEONIDA_GPU_TEST_TIMEOUT before the value reaches the platform wait API. The new test checks the accepted upper limit and verifies that the runner rejects oversized values before starting a child process.

It covers three values:

  • 2147483 seconds: the timeout parser accepts the configured maximum.
  • 2147484 seconds: the runner rejects one second above the maximum.
  • 1e300 seconds: the runner also rejects a very large finite value.

For both rejected values, the test checks that the diagnostic names the setting and the supplied value, and that subprocess.run was never called.

Tested

  • Applied the new test to the base revision 4a50cafc. Both oversized-value cases failed as expected.
  • On 7d7fdce4, python -I tests/test_gpu_test_timeout.py passed all 9 tests on Windows with Python 3.14.6.
  • git diff --check and scripts/check_no_game_data.py passed for the changed files.

GPUs tested: n/a (timeout parsing and process-launch behavior).

AI-assisted: yes, OpenAI Codex.

Checklist

  • Verified a clean merge against upstream main at 28a32e19.
  • One topic: GPU test runner timeout validation and its regression coverage.
  • No game data, keys or decryption.
  • Translator contract table: n/a. No translator rule changed.

🔄 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/1382 **Author:** [@xel1uz](https://github.com/xel1uz) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `review/1350-timeout-boundary-tests` --- ### 📝 Commits (2) - [`5ca1539`](https://github.com/ubiquitarianism/leonida/commit/5ca153985e4f261c01685a6c7cf2b69205439d95) GPU-TIMEOUT-OVERFLOW: Reject GPU timeouts that overflow platform waits - [`7d7fdce`](https://github.com/ubiquitarianism/leonida/commit/7d7fdce498c6977a0ff78fbe01a9a890b09f0ae3) Exercise the GPU runner timeout limit before spawning a process ### 📊 Changes **2 files changed** (+14 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/shaders/check.py` (+4 -0) 📝 `tests/test_gpu_test_timeout.py` (+10 -0) </details> ### 📄 Description Claimed in the coordination issue as: [GPU-TIMEOUT-OVERFLOW](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145900346) (original claim by @delysidemanYT1). Depends on: #1350. This branch includes @delysidemanYT1's timeout validation. The follow-up commit adds a regression test. ### What and why #1350 caps `LEONIDA_GPU_TEST_TIMEOUT` before the value reaches the platform wait API. The new test checks the accepted upper limit and verifies that the runner rejects oversized values before starting a child process. It covers three values: - `2147483` seconds: the timeout parser accepts the configured maximum. - `2147484` seconds: the runner rejects one second above the maximum. - `1e300` seconds: the runner also rejects a very large finite value. For both rejected values, the test checks that the diagnostic names the setting and the supplied value, and that `subprocess.run` was never called. ### Tested - Applied the new test to the base revision `4a50cafc`. Both oversized-value cases failed as expected. - On `7d7fdce4`, `python -I tests/test_gpu_test_timeout.py` passed all 9 tests on Windows with Python 3.14.6. - `git diff --check` and `scripts/check_no_game_data.py` passed for the changed files. GPUs tested: n/a (timeout parsing and process-launch behavior). AI-assisted: yes, OpenAI Codex. ### Checklist - [x] Verified a clean merge against upstream `main` at `28a32e19`. - [x] One topic: GPU test runner timeout validation and its regression coverage. - [x] No game data, keys or decryption. - Translator contract table: n/a. No translator rule changed. --- <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#1411
No description provided.