Repository navigation
[AI-3655] Keep scheduled-delivery timings per router in tests #2293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
decb5a7
fix(test): keep scheduled-delivery timings per router, not process-wide
kanat f927d0b
test: a ring that runs out is the router's own window, not the default
kanat 829b630
fix(test): keep the finish retries per worker too
kanat 20d4aa3
AI-3655: pin the scheduled phone window and call limit each
kanat 0ea3798
AI-3655: pin how many times a failed finish is written again
kanat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Should fix] R1.1 The control test checks
replyWindowand the sumphoneWindow + scheduledWindow + callLimit, but not the ring and the call limit on their own. A mutant ofNewServerthat swaps them (phoneWindow: scheduledCallLimit, callLimit: scheduledPhoneWindow) keeps the sum at 21 min 30 s and passes this test. In production, that mutant rings for 10 min and hangs up after 90 s. No integration test covers the two defaults either, because every phone test shortens both.Fix: add these two lines here (I checked them in a scratch copy: they pass on head and fail under the mutant with
expected: 1m30s, actual: 10m0s).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 20d4aa3: TestAPeerIsGivenLongEnoughToRingAndHoldATasksCall now requires phoneWindow == 90s and callLimit == 10m each. With the two NewServer defaults swapped it fails (expected 1m30s, actual 10m0s).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
R1.2 (no thread of its own) fixed in 0ea3798: TestScheduledTasksSuite/TestAFinishIsNotWrittenAgainPastTheWaitsItIsGiven (1 wait, 2 refusals leaves the run running) and TestAFinishIsWrittenAgainOncePerWaitItIsGiven (3 waits settle it). SetFinishRetries as a no-op and newScheduler dropping the finishRetries branch both fail the first.