Repository navigation
Fix auto-checkpointing failure - #4700
Merged
Merged
Conversation
Signed-off-by: Vassily Litvinov <[email protected]>
ajpotts
approved these changes
Jul 7, 2025
ajpotts
left a comment
Contributor
There was a problem hiding this comment.
Thanks for mitigating this!
ShreyasKhandekar
approved these changes
Jul 7, 2025
jaketrookman
approved these changes
Jul 7, 2025
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.
Fix an unlikely, yet possible failing scenario in auto-checkpoint testing, which we have seen fail occasionally in github CI checks.
Details
In this scenario, the test code in
auto-checkpoints.py(Process 1) does the following:Meanwhile the server code in
CheckpointMsg.chpl(Process 2) does the following:While these run concurrently, it is possible that the server (Process 2) is pre-empted between the two statements while the test (Process 1) continues execution. In this case, the test observes the ".prev" directory, passes the first assertion, however arrives at the second assertion before the server is given its chance to create that directory, causing the second assertion to fail.
The solution implemented in this PR is for the test to wait for the auto-checkpoint to complete on the server before running the second assert.