-
Notifications
You must be signed in to change notification settings - Fork 73
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
Temporary files remain after test failures #719
Comments
fwiw this is a defect in boost 1.74, there is even a workaround in CI! leap/.github/workflows/build.yaml Lines 134 to 136 in dd59a99
I'd expect after tech debt item #620 this won't be an issue. That doesn't change the still possible defect that we're not removing files we ought to be. |
The design for tests are to leave files on errors so they can help with debugging. I think the idea for putting them in |
More data, in this failure case, each run adds new files. The files are empty. The 4K files contain one line of text.
|
There is a tmpfiles.d utility that will clean out tmpfs files without a reboot. |
Next step to run text in env that will not surface the above cited boost 1.74 defect. If there are any temporary files still left around, this issue will be updated to take next steps. Agreed that temp files should be cleaned up for unit tests, even in the case of failure. |
#915 should fix the snapshot unit test that was leaving files in tmp, I think the other time we will see tmp files not get cleaned up is during a segfault, which is already undefined behavior so it is not handled. |
When tests encounter a failure they should clean out any temporary files.
Encounter this when building
leap
on one device with/tmp
mounted on another device. After the test failed the snapshots and blocks.log remained.Command
ctest -j "8" -LE _tests
Failed Tests
The text was updated successfully, but these errors were encountered: