[PR #748] [CLOSED] serve: invalidate the engine after fatal verification timeouts #2803

Closed
opened 2026-11-04 02:03:14 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/748
Author: @zengyishou
Created: 10/4/2026
Status: ❌ Closed

Base: main ← Head: fix/fatal-engine-recovery


📝 Commits (1)

  • cd839ec serve: invalidate the engine after fatal verification timeouts

📊 Changes

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

View changed files

📝 serve/server.py (+13 -0)
➕ serve/test_fatal_recovery.py (+90 -0)

📄 Description

Summary

A native verification timeout releases the verifier's GPU waits permanently, but the process can remain alive and emit a trailing DONE. The server currently treats the ERR as a recoverable request error and continues reporting loaded: true; subsequent requests can reuse an unusable verifier.

Recognize only the fatal verification-timeout signatures in the stdout pump, mark that process unavailable, terminate it, and publish EOF instead of the trailing DONE. The failed request returns an error without automatic replay; the existing lifecycle reloads the engine for the next request. Ordinary request validation errors remain recoverable. Reject generation on an already unavailable engine before accessing its stdin.

Validation

Synthetic child-process regressions cover both timeout signatures, HTTP stream errors and health status, next-request reload, ordinary validation errors, and a closed engine. These tests exercise real process pipes without a GPU or private workloads. This change does not address the underlying GPU timeout or change watchdog limits.

Command: python -m unittest discover -s serve -t .

Results on macOS with Python 3.12: 202 tests run, 195 passed and 7 skipped. The five new regression tests pass; against the unchanged main branch they reproduce one failure and three errors. POSIX executable fixtures are skipped on Windows.


🔄 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/Niko1221/Strata/pull/748 **Author:** [@zengyishou](https://github.com/zengyishou) **Created:** 10/4/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/fatal-engine-recovery` --- ### 📝 Commits (1) - [`cd839ec`](https://github.com/Niko1221/Strata/commit/cd839ec180a44e987eeff74897f455e4b6d30c89) serve: invalidate the engine after fatal verification timeouts ### 📊 Changes **2 files changed** (+103 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `serve/server.py` (+13 -0) ➕ `serve/test_fatal_recovery.py` (+90 -0) </details> ### 📄 Description ## Summary A native verification timeout releases the verifier's GPU waits permanently, but the process can remain alive and emit a trailing `DONE`. The server currently treats the `ERR` as a recoverable request error and continues reporting `loaded: true`; subsequent requests can reuse an unusable verifier. Recognize only the fatal verification-timeout signatures in the stdout pump, mark that process unavailable, terminate it, and publish EOF instead of the trailing `DONE`. The failed request returns an error without automatic replay; the existing lifecycle reloads the engine for the next request. Ordinary request validation errors remain recoverable. Reject generation on an already unavailable engine before accessing its stdin. ## Validation Synthetic child-process regressions cover both timeout signatures, HTTP stream errors and health status, next-request reload, ordinary validation errors, and a closed engine. These tests exercise real process pipes without a GPU or private workloads. This change does not address the underlying GPU timeout or change watchdog limits. Command: `python -m unittest discover -s serve -t .` Results on macOS with Python 3.12: 202 tests run, 195 passed and 7 skipped. The five new regression tests pass; against the unchanged main branch they reproduce one failure and three errors. POSIX executable fixtures are skipped on Windows. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:03:14 +07:00
Sign in to join this conversation.
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
Niko1221/Strata#2803
No description provided.