Skip to content

test(sdk): give lossy-replay turns time for the worker hand-off - #448

Open
ChrisKrawczyk wants to merge 2 commits into
mainfrom
test/lossy-replay-deadline
Open

ChrisKrawczyk wants to merge 2 commits into
mainfrom
test/lossy-replay-deadline

Conversation

@ChrisKrawczyk

@ChrisKrawczyk ChrisKrawczyk commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

The two session-failures tests that stop worker A and resume the session on worker B gave B's first turn 60 s. B can start only after duroxide locks A still holds expire:

When both apply, the wait alone exceeds 60 s, so the turn can miss the deadline even though recovery works. It depends on timing, which is why the test failed in #447's full run and passed on its own.

This change:

  • gives those two turns the file's 180 s timeout, as a ceiling, not a latency check;
  • raises each test's own timeout to 540 s, so a stalled hand-off fails with its recovery diagnostics rather than a runner timeout;
  • links both duroxide issues so the deadline can be lowered once they're fixed.

The real fix is in duroxide; this PR doesn't work around it in the runtime.

Tests: session-failures.test.js on Linux; lint passes.

TLA+ is not required: test-only change.

The two session-failures tests that stop worker A and send the next turn
gave that turn 60 s. Worker B can take the session only after A's duroxide
locks expire, because a graceful stop does not release them: the session
lock (30 s by default) and, if A stopped during an orchestration turn, that
turn's lock (60 s here). Under full-suite load the turn then missed its
deadline although recovery worked.

Use the file's 180 s timeout for those two turns and say why.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: cc944a13-3e0b-43de-8040-5863182bbdb0
The 60 s orchestration lock is stranded by a claim that commits while a
stopping worker cancels its fetch (microsoft/duroxide#83), not by a stop
during a turn. Link both duroxide issues, call the deadline a ceiling,
and give the two lossy-replay tests room for their recovery diagnostics.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: cc944a13-3e0b-43de-8040-5863182bbdb0

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants