Repository navigation
test(sdk): give lossy-replay turns time for the worker hand-off - #448
Open
ChrisKrawczyk wants to merge 2 commits into
Open
ChrisKrawczyk wants to merge 2 commits into
ChrisKrawczyk wants to merge 2 commits into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The two
session-failurestests 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:orchestratorLockTimeoutMs, 60 s by default; Graceful shutdown can strand an orchestration lock until orchestrator_lock_timeout duroxide#83).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:
The real fix is in duroxide; this PR doesn't work around it in the runtime.
Tests:
session-failures.test.json Linux; lint passes.TLA+ is not required: test-only change.