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

delete contents of the storage folder instead of the entire folde #2430

Merged
merged 2 commits into from
Jul 9, 2020

Conversation

iCollin
Copy link
Collaborator

@iCollin iCollin commented Jul 2, 2020

This PR is ready for review.

Summary

Change removal of the storage folder to actually remove storage folder contents.

This is needed because in our parallel atf runner, I recently added a ramdisk mount at core's storage folder to ease the stress on disk. Now Core's backup thread will be writing to RAM instead of disk making the whole system faster. This causes one test to fail: ./test_scripts/CloudAppRPCs/010_get_icon_url.lua because it cannot delete a folder that is a mount. This PR will enable all tests to pass with storage as a ramdisk.

ATF version

latest

Changelog

Enhancements
  • core's storage folder can be a mount

CLA

…o that the storage folder can be a mounted disk
@dboltovskyi
Copy link
Contributor

@iCollin Please notice there are few more places where storage folder is removed completely:

Besides these ones which are used in regression test pack, there are also a few other ones which are not supported, e.g.:

@iCollin
Copy link
Collaborator Author

iCollin commented Jul 8, 2020

@dboltovskyi thank you for noticing, I have accommodated all places I could find removing the storage folder in tests that our team uses, and added an assert to the rm calls. There are many other references to the storage folder in legacy tests that I have not updated.

@iCollin iCollin merged commit 3a52f48 into develop Jul 9, 2020
@jacobkeeler jacobkeeler deleted the fix/storage_in_ram branch April 14, 2021 19:17
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.

3 participants