Skip to content

Add a cleanup target to crash_test.mk#14286

Closed
anand1976 wants to merge 1 commit intofacebook:mainfrom
anand1976:export-D91912877
Closed

Add a cleanup target to crash_test.mk#14286
anand1976 wants to merge 1 commit intofacebook:mainfrom
anand1976:export-D91912877

Conversation

@anand1976
Copy link
Contributor

Summary: Add the db_c leanup target which can be used by CI test scripts to delete the db on failure. The db_crashtest.py doesn't automatically delete on error.

Differential Revision: D91912877

@meta-codesync
Copy link

meta-codesync bot commented Jan 30, 2026

@anand1976 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91912877.

Copy link
Contributor

@jaykorean jaykorean left a comment

Choose a reason for hiding this comment

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

Thanks! QQ. I assume it's no-op if the tmpdir is already gone?

crash_test.mk Outdated
whitebox_crash_test_with_txn whitebox_crash_test_with_ts \
whitebox_crash_test_with_optimistic_txn \
whitebox_crash_test_with_tiered_storage \
db_cleanup \
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer crash_test_db_cleanup

Summary:

Add the db_c leanup target which can be used by CI test scripts to delete the db on failure. The db_crashtest.py doesn't automatically delete on error.

Reviewed By: jaykorean

Differential Revision: D91912877
@anand1976
Copy link
Contributor Author

Thanks! QQ. I assume it's no-op if the tmpdir is already gone?

@jaykorean @pdillinger I realized that even with my original change, the parent of the db directory and any other dirs under it (eg dbstress_secondaries) would be leaked. I modified the PR to delete from the parent down recursively.

@meta-codesync
Copy link

meta-codesync bot commented Feb 3, 2026

This pull request has been merged in 82ff067.

joshkang97 pushed a commit to joshkang97/rocksdb that referenced this pull request Feb 5, 2026
Summary:
Pull Request resolved: facebook#14286

Add the db_c leanup target which can be used by CI test scripts to delete the db on failure. The db_crashtest.py doesn't automatically delete on error.

Reviewed By: jaykorean

Differential Revision: D91912877

fbshipit-source-id: d36ec0896fba64faaafe055d8673e437e85d0c3a
anand1976 added a commit that referenced this pull request Feb 6, 2026
Summary:
Pull Request resolved: #14286

Add the db_c leanup target which can be used by CI test scripts to delete the db on failure. The db_crashtest.py doesn't automatically delete on error.

Reviewed By: jaykorean

Differential Revision: D91912877

fbshipit-source-id: d36ec0896fba64faaafe055d8673e437e85d0c3a
archang19 pushed a commit that referenced this pull request Feb 6, 2026
Summary:
Pull Request resolved: #14286

Add the db_c leanup target which can be used by CI test scripts to delete the db on failure. The db_crashtest.py doesn't automatically delete on error.

Reviewed By: jaykorean

Differential Revision: D91912877

fbshipit-source-id: d36ec0896fba64faaafe055d8673e437e85d0c3a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants