Repository navigation
test(session): cover multi-turn 503 bursts, partial recovery and SIGINT flush for transcript appends - #22
Merged
zeekay merged 1 commit intoNov 29, 2026
Conversation
…NT flush for transcript appends
Member
|
Exemplary test coverage for multi-turn 503 bursts, outage recovery, |
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.
What this adds
Test-only coverage for the
requestIdtranscript retry path (SessionClient::event). No production code changed; no dependencies added.src/testmock.rs—Config.refuse_schedule: Vec<bool>(+MockCloud::start_refusing(&[bool])) lets a 503 burst land on the turns a test means it for.start_refusing_first(n)is now expressed asntrues, so its behaviour is unchanged; past the end of the schedule requests are served normally.src/session.rs— three unit tests next to the existing retry tests, same doc-comment +MUTATION:style.tests/signals.rs— the stand-in cloud now records every/eventsbody and can 503 the event POSTs after the first (served opening status), then refuses the run's transcript turn; a new test sends SIGINT inside that retry window.a_burst_over_two_turns_names_each_turn_oncea,a,a,b; A is stored onceinterleaved_refusals_land_each_turn_oncea_cloud_that_comes_back_names_turns_again_without_two_names_for_onea_signal_inside_a_retry_window_keeps_a_turn_named_once(integration)piheardINT(notend), and every recorded/eventsbody sharing a payload carries the SAMErequestIdThe one-try policy after a loss is asserted as the code documents it: the turn that lands after the loss is unnamed, and the turn AFTER it is named again (never a fresh retry budget on a cloud just proven down).
Real output
Baseline at rest before the change was also green (403 lib tests, 3 signals tests, clippy clean), so no pre-existing failures are hidden by this branch.
Closes #20