Skip to content

Fix auto-checkpointing failure - #4700

Merged
ajpotts merged 1 commit into
Bears-R-Us:masterfrom
vasslitvinov:fix-autocp-failure
Jul 8, 2025
Merged

ajpotts merged 1 commit into
Bears-R-Us:masterfrom
vasslitvinov:fix-autocp-failure

Conversation

@vasslitvinov

Copy link
Copy Markdown
Contributor

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:

... wait for ".akdata/auto_checkpoint.prev" to be created ...
assert(directory_exists(".akdata/auto_checkpoint.prev"))
assert(directory_exists(".akdata/auto_checkpoint"))

Meanwhile the server code in CheckpointMsg.chpl (Process 2) does the following:

...
rename(".akdata/auto_checkpoint", ".akdata/auto_checkpoint.prev")
mkdir(".akdata/auto_checkpoint")

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.

Signed-off-by: Vassily Litvinov <[email protected]>
@ajpotts
ajpotts requested a review from e-kayrakli July 7, 2025 13:45

@ajpotts ajpotts left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for mitigating this!

@ajpotts
ajpotts added this pull request to the merge queue Jul 8, 2025
Merged via the queue into Bears-R-Us:master with commit c711798 Jul 8, 2025
@vasslitvinov
vasslitvinov deleted the fix-autocp-failure branch July 8, 2025 21:29
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.

4 participants