Skip to content

Commit 0efa62b

Browse files
diego-urgellfacebook-github-bot
authored andcommitted
Fix flaky test_directory_path_synced UT (#878)
Summary: Pull Request resolved: #878 Reviewed By: JKSenthil Differential Revision: D61165268 fbshipit-source-id: d2dc1987d02f18804ace7d9ac5c1a9b9a33f946d
1 parent 9143ee8 commit 0efa62b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/framework/callbacks/test_base_checkpointer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,7 @@ def _test_directory_path_synced() -> None:
10841084
["epoch_10_train_step_0"],
10851085
)
10861086
finally:
1087+
dist.barrier() # avoid race condition
10871088
if get_global_rank() == 0:
10881089
shutil.rmtree(temp_dir) # delete temp directory
10891090

0 commit comments

Comments
 (0)