Skip to content

Commit ff0a5ac

Browse files
test(server): expect the stale-watch notice when the host stays unreadable
The repeated-host-read-failures cases keep a watch unreadable for exactly the 30 minute stale window. The watch now wakes the thread once about the missing progress, so these cases expect that notice before the recovery summaries. Model: claude-sonnet-5-5 Task: test Agent: Claude Code Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent 4194387 commit ff0a5ac

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎apps/server/src/orchestration-v2/runtimeLayer.test.ts‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4545,15 +4545,19 @@ it.layer(layerTest)("OrchestrationV2LayerLive lifecycle", (it) => {
45454545
return;
45464546
}
45474547
assert.isDefined(thread?.pullRequests?.[0]?.watch);
4548-
assert.deepEqual(yield* summaries, []);
4548+
// The host stayed unreadable for the whole stale window, so the watch wakes the thread
4549+
// once about the missing progress while it keeps watching.
4550+
const stale = "#8: no observed progress for 30 minutes";
4551+
assert.deepEqual(yield* summaries, [stale]);
45494552
disconnected = false;
45504553
genericFailure = false;
45514554
passed = true;
45524555
yield* sweep;
4553-
assert.deepEqual(yield* summaries, ["#8: checks passed"]);
4556+
const settled = [stale, "#8: checks passed"].toSorted();
4557+
assert.deepEqual((yield* summaries).toSorted(), settled);
45544558
yield* TestClock.adjust("10 minutes");
45554559
yield* sweep;
4556-
assert.deepEqual(yield* summaries, ["#8: checks passed"]);
4560+
assert.deepEqual((yield* summaries).toSorted(), settled);
45574561
yield* orchestrator.dispatch({
45584562
type: "thread.pull-request.watch",
45594563
commandId: CommandId.make(`pr-watch-unreadable-stop-${reason}-${activityFails}`),

0 commit comments

Comments
 (0)