mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #748] [CLOSED] serve: invalidate the engine after fatal verification timeouts #2803
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2803
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
cd839ecserve: 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 theERRas a recoverable request error and continues reportingloaded: 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.