[BUG] Supervisor timeouts lose their exception type #22
Labels
No labels
alpha-1
bug
ci
docs
duplicate
enhancement
help wanted
invalid
performance
phase-6
question
refactor
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
erix/exsh#22
Loading…
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?
Summary
A supervised tool can report its no-output timeout before the parent observes the same deadline. That response loses the timeout category, so the caller receives
EvidenceErrorinstead ofTimeoutError. This makes the existing owned-invocation test depend on which process notices the stall first.Reproduction
On Linux with Python 3.14, run the existing case from Exsh:
The supervisor-first ordering occurred in CI 570 on fba2402. The same case can pass when the parent notices the stall first.
Expected and actual behavior
Both orderings should expose
TimeoutErrorand preserve the first failure through cleanup. The failed run instead raises:Environment and identity
Exsh
fba240218d70f0738beccc7c9dfbb7cac6330d4b, feature/posix-compat push run 570, Rust job attempt 1. Linux x86_64 host and Python 3.14, using the real owned supervisor and the test's original tool, capture and cleanup limits.Evidence and prior checks
The complete terminal log is retained. Rust tests and native builds finish; the Python suite runs 1,093 tests in 284.856 seconds and reports this one failure. The later frame checks are not reached. Source inspection shows that a remote negative response carries diagnostic text without a timeout category; the parent wraps it in
EvidenceError.Tracking
The separate frame-analysis deadline issue remains open.
Fixed in f3e0db3. The supervisor sends an explicit timeout category, so either process can notice the stall first without changing the reported exception type. An earlier local error keeps its identity through cleanup.
Added deterministic coverage for both observation orders and malformed reports. All 37 focused checks and the full 1,098-test Python suite pass under the existing limits.