Skip to content
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

Fix flakiness in test_backup_and_restore_fail_on_disk_full #167

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

kathia-barahona
Copy link
Contributor

@kathia-barahona kathia-barahona commented Aug 9, 2023

test/local/test_controller.py::test_backup_and_restore_fail_on_disk_full was failing due to a race condition. Now it waits till the coordinator reaches failed phase and afterwards checks for disk full log.

[BF-2161]

Comment on lines -29 to -32
# Delete all files in the tmpfs filesystem before unmounting it.
with suppress(Exception):
LocalPath(sub_dir).remove(rec=1)
subprocess.check_call(["sudo", "umount", str(sub_dir)])
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ended up removing this, because it was raising an exception and pytest was complaining since it was not able to delete temporary directories

@kathia-barahona kathia-barahona force-pushed the fix_flaky_full_on_disk_test branch 2 times, most recently from 484e2b9 to 6685f05 Compare August 9, 2023 12:25
@kathia-barahona kathia-barahona marked this pull request as ready for review August 9, 2023 13:14
…sk full message in test_backup_and_restore_fail_on_disk_full.

[BF-2161]
@kathia-barahona kathia-barahona requested a review from a team August 10, 2023 07:22
Copy link
Contributor

@packi packi left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for fixing this!

@packi packi merged commit f587485 into master Aug 16, 2023
6 checks passed
@packi packi deleted the fix_flaky_full_on_disk_test branch August 16, 2023 08:44
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.

2 participants