Keep early process exits distinct from Wine run timeouts (GAME-RUN-SUMMARY-EARLY-EXIT) #2028

Merged
alexandersato0830 merged 1 commit from upstream-pr/2028 into main 2026-11-28 10:47:56 +00:00
alexandersato0830 commented 2026-11-25 18:32:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by alexandersato0830 on 2026-11-25T18:32:22Z.


Claimed in the coordination issue as: GAME-RUN-SUMMARY-EARLY-EXIT

What and why

Exit statuses 124 and 137 can appear before the configured deadline. GNU timeout can forward the child's own 124 and can report 137 for a SIGKILL from outside the timer. Use the already-recorded duration to rule out a timeout when the process finished before the limit. At or beyond the limit, and when either time value is missing, the existing timeout summary still applies. GNU timeout documentation

Tested

  • python -I tests/test_game_run_summary.py passed all 8 tests. The early 124 and 137 cases failed on b9320a118 and passed with the fix. The test also covers an exit at the configured limit and older records without a duration.
  • git diff --check, compileall, and the source-only check passed on Windows 11 with Python 3.11.17.

GPUs tested: n/a (synthetic run records)

AI-assisted: yes (Codex)

Checklist

  • Based on current main.
  • One topic.
  • No game data, keys or decryption.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5496956000 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2028). Originally posted by [alexandersato0830](https://github.com/alexandersato0830) on 2026-11-25T18:32:22Z. --- Claimed in the coordination issue as: [GAME-RUN-SUMMARY-EARLY-EXIT](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7171018307) ### What and why Exit statuses 124 and 137 can appear before the configured deadline. GNU `timeout` can forward the child's own 124 and can report 137 for a `SIGKILL` from outside the timer. Use the already-recorded duration to rule out a timeout when the process finished before the limit. At or beyond the limit, and when either time value is missing, the existing timeout summary still applies. [GNU timeout documentation](https://www.gnu.org/software/coreutils/manual/html_node/timeout-invocation.html) ### Tested - `python -I tests/test_game_run_summary.py` passed all 8 tests. The early 124 and 137 cases failed on `b9320a118` and passed with the fix. The test also covers an exit at the configured limit and older records without a duration. - `git diff --check`, `compileall`, and the source-only check passed on Windows 11 with Python 3.11.17. GPUs tested: n/a (synthetic run records) AI-assisted: yes (Codex) ### Checklist - [x] Based on current `main`. - [x] One topic. - [x] No game data, keys or decryption.
sodove commented 2026-11-28 10:11:46 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by sodove on 2026-11-28T10:11:46Z.


#2028 | head 95ccdb19f540410e67cca60eb40fa99dcba8ca20 | python3 -I tests/test_game_run_summary.py -v | red: 8 run, 2 failures | green: 8 passed | Red → green

The baseline classified early process exits as timeouts in the synthetic log cases.

Pinned main 33db04a7010e81c40a7a6a15624525aa0c4a3a58, merged into this PR head. Ubuntu 26.04.1 (WSL2), Python 3.14.4. Full suite: not run. AI-assisted: OpenAI Codex. Batch claim.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7237735907 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2028#issuecomment-7237735907). Originally posted by [sodove](https://github.com/sodove) on 2026-11-28T10:11:46Z. --- #2028 | head `95ccdb19f540410e67cca60eb40fa99dcba8ca20` | `python3 -I tests/test_game_run_summary.py -v` | red: 8 run, 2 failures | green: 8 passed | **Red → green** The baseline classified early process exits as timeouts in the synthetic log cases. Pinned main `33db04a7010e81c40a7a6a15624525aa0c4a3a58`, merged into this PR head. Ubuntu 26.04.1 (WSL2), Python 3.14.4. Full suite: not run. AI-assisted: OpenAI Codex. [Batch claim](https://github.com/ProjectLeonida/mandy/issues/1608#issuecomment-7237628300).
DadaCap commented 2026-11-28 10:47:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-28T10:47:58Z.


Merged, thank you @alexandersato0830!

What it does: Keep early process exits distinct from Wine run timeouts (GAME-RUN-SUMMARY-EARLY-EXIT)

How it was checked: sodove tested this PR at head 95ccdb19f on main 33db04a70: the PR's own test fails on main and passes with this PR merged in (his result is linked from the batch summary in #1608). We then re-ran the same test locally on Windows 11 and got the same verdict: on main, red (2 failures); with the PR, green (8 OK).

CI: the red jobs on this PR fail the same way on main, or on the older main it was built on (the cs_dpp_cmp.asm translator fixture, since fixed on main, and the Windows runner's Visual Studio setup), so none comes from this change.

Merged one by one with 20 other PRs of the same reviewed batch, pinned to the tested head.

AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7238129654 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2028#issuecomment-7238129654). Originally posted by [DadaCap](https://github.com/DadaCap) on 2026-11-28T10:47:58Z. --- Merged, thank you @alexandersato0830! **What it does:** Keep early process exits distinct from Wine run timeouts (GAME-RUN-SUMMARY-EARLY-EXIT) **How it was checked:** sodove tested this PR at head `95ccdb19f` on main `33db04a70`: the PR's own test fails on main and passes with this PR merged in (his result is linked from the batch summary in #1608). We then re-ran the same test locally on Windows 11 and got the same verdict: on main, red (2 failures); with the PR, green (8 OK). **CI:** the red jobs on this PR fail the same way on main, or on the older main it was built on (the `cs_dpp_cmp.asm` translator fixture, since fixed on main, and the Windows runner's Visual Studio setup), so none comes from this change. Merged one by one with 20 other PRs of the same reviewed batch, pinned to the tested head. AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.
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!2028
No description provided.