You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Follow-ups from the #4133 review: a cleanup error can hide a lane's real error, and a passing lane's leaked SSE tail goes unnoticed #4152
These are follow-ups from agent #2's independent review of #4133 (record 5970056042). The review accepted the source at e189d9eb7, the fix for #4112. Line references are at that head.
The review's main finding was checked with the reviewer's own runs. The LOWs below come from source and were not executed.
LOW
A cleanup error can replace a lane's real error. This happens in checkBellHintWire's finally (services/platform/backend/integration-check.ts:45311-45321).
If the body throws and close() or the DELETE also throws, the RUN TRUNCATED … threw line names the tail, and the first error is lost.
It affects diagnostics only.
Fix: rethrow a cleanup error only when the body succeeded.
A lane that leaks an SSE tail on its passing path now goes unnoticed (integration-check.ts:59357-59366, services/platform/backend/http-shutdown.ts:47-66).
The graceful teardown ends the tail, logs ended 1 open SSE stream(s), and the run exits 0.
Fix: pin Node in that job, or skip the routed assertion when the control itself loses the abort.
INFO
The chat-stream readers still abort without awaiting (integration-check.ts:11699-11736, :11775-11809). Nothing awaits them, so they can't hang a lane.
Acceptance
LOW 1: a test where both the body and the cleanup throw, and the reported error is the body's.
LOW 2: a harness test, or a lane self-test, where a passing lane leaves a tail open. The run records a failed check that names the lane, and a clean run still exits 0.
LOW 3: the Unit job's Node is pinned, or the control-loss path is handled, with the choice stated in the PR.
Activity
fix(platform): keep a lane's error and fail its leaked SSE tails
fix(platform): keep a lane's error and fail its leaked SSE tails
test(platform): give the bell lane withCleanup and keep its own error
test(platform): give the bell lane withCleanup and keep its own error