[PR #2193] ci: run standalone Windows tests two at a time (CI-CHECK-PARALLEL-STDLIB) #2196

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2193
Author: @EdenBendheim
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: ubiq/ci-check-parallel-stdlib


📝 Commits (2)

  • 5943a7c ci: run standalone Windows tests two at a time (CI-CHECK-PARALLEL-STDLIB)
  • 53b846f ci: preserve UTF-8 test paths in redirected failure annotations

📊 Changes

4 files changed (+192 additions, -11 deletions)

View changed files

📝 .github/workflows/ci.yml (+4 -9)
➕ scripts/run_standalone_tests.py (+70 -0)
📝 tests/test_ci_registration.py (+10 -2)
➕ tests/test_run_standalone_tests.py (+108 -0)

📄 Description

Claimed in the coordination issue as: CI-CHECK-PARALLEL-STDLIB (claim)

What and why

The Windows check job runs more than 500 standalone Python files one at a time. #1404 measured 20m 15s for that loop on a Windows hosted runner, already beyond the job's 15-minute limit.

This implements the parallel-runner follow-up suggested in #1928 (§5) and #1404. The existing selection predicate is unchanged; the selected files run in separate python -I processes, two at a time, with file-grouped output and all failure annotations preserved. Child stdin is disconnected from the selection list.

Tested

Local reproduction of the Windows check step, using macOS 27.3 / Apple M1 Max, Python 3.12.14, CPU only, at main a73a57e13:

Selected files Actual files run Failed files Wall time
Original serial step 508 506 2 464.87 s
Proposed two-worker step 509 509 2 231.74 s

2.01× faster (50.1% less wall time), while running every selected file. An additional parallel run before the explicit stdin-isolation hardening took 229.30 s.

The old loop also silently skipped test_x86_decode_window.py and test_x86_high_byte_writes.py in this run; an earlier test's child inherited the file-list stdin, and the next path was corrupted. The new regression runs an stdin-reading synthetic test followed by other files; it fails against the old workflow and passes against this one.

Both full runs report the same pre-existing failures: test_calibrated_texture_extra.py (#2101) and test_mod_pack_output_alias.py (#2175). The new runner test accounts for the one additional selected file.

  • python -I tests/test_run_standalone_tests.py: 4/4 passed (bounded concurrency, isolation, complete failure reporting, invalid inputs).
  • python -I tests/test_ci_registration.py: 16/16 passed.
  • No-game-data check, compile check and git diff --check: passed.
  • Clean simulated merges with current main, #1404 and #756. Linux/macOS workflow steps untouched.

The timing is a local comparison, not a measured Windows hosted CI run.

GPUs tested: n/a (CPU-only synthetic tests).
AI-assisted: yes — created with gpt-6.2-sol in Codex.

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
  • No translator rule changes.

🔄 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/2193 **Author:** [@EdenBendheim](https://github.com/EdenBendheim) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `ubiq/ci-check-parallel-stdlib` --- ### 📝 Commits (2) - [`5943a7c`](https://github.com/ubiquitarianism/leonida/commit/5943a7c6afbfc0d2205b5c42a9121a704387e746) ci: run standalone Windows tests two at a time (CI-CHECK-PARALLEL-STDLIB) - [`53b846f`](https://github.com/ubiquitarianism/leonida/commit/53b846f6cc5d990e381c0b2779422936f1c20a86) ci: preserve UTF-8 test paths in redirected failure annotations ### 📊 Changes **4 files changed** (+192 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ci.yml` (+4 -9) ➕ `scripts/run_standalone_tests.py` (+70 -0) 📝 `tests/test_ci_registration.py` (+10 -2) ➕ `tests/test_run_standalone_tests.py` (+108 -0) </details> ### 📄 Description Claimed in the coordination issue as: `CI-CHECK-PARALLEL-STDLIB` ([claim](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7182616226)) ### What and why The Windows `check` job runs more than 500 standalone Python files one at a time. #1404 measured 20m 15s for that loop on a Windows hosted runner, already beyond the job's 15-minute limit. This implements the parallel-runner follow-up suggested in #1928 (§5) and #1404. The existing selection predicate is unchanged; the selected files run in separate `python -I` processes, two at a time, with file-grouped output and all failure annotations preserved. Child stdin is disconnected from the selection list. ### Tested Local reproduction of the Windows check step, using macOS 27.3 / Apple M1 Max, Python 3.12.14, CPU only, at main `a73a57e13`: | | Selected files | Actual files run | Failed files | Wall time | |---|---:|---:|---:|---:| | Original serial step | 508 | 506 | 2 | 464.87 s | | Proposed two-worker step | 509 | 509 | 2 | 231.74 s | **2.01× faster (50.1% less wall time)**, while running every selected file. An additional parallel run before the explicit stdin-isolation hardening took 229.30 s. The old loop also silently skipped `test_x86_decode_window.py` and `test_x86_high_byte_writes.py` in this run; an earlier test's child inherited the file-list stdin, and the next path was corrupted. The new regression runs an stdin-reading synthetic test followed by other files; it fails against the old workflow and passes against this one. Both full runs report the same pre-existing failures: `test_calibrated_texture_extra.py` (#2101) and `test_mod_pack_output_alias.py` (#2175). The new runner test accounts for the one additional selected file. - `python -I tests/test_run_standalone_tests.py`: 4/4 passed (bounded concurrency, isolation, complete failure reporting, invalid inputs). - `python -I tests/test_ci_registration.py`: 16/16 passed. - No-game-data check, compile check and `git diff --check`: passed. - Clean simulated merges with current main, #1404 and #756. Linux/macOS workflow steps untouched. The timing is a local comparison, not a measured Windows hosted CI run. GPUs tested: n/a (CPU-only synthetic tests). AI-assisted: yes — created with gpt-6.2-sol in Codex. ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. - [x] No translator rule changes. --- <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#2196
No description provided.