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

Remove .cache directory when CLEAN_AFTER_BUILD feature is enabled #6236

Closed
wants to merge 1 commit into from

Conversation

humitos
Copy link
Member

@humitos humitos commented Oct 2, 2019

Disk space is growing up without limit in build04.

We do have a solution for this by CLEAN_AFTER_BUILD feature/setting, but it does not remove .cache nor artifacts.

This PR add .cache as a directory to be removed as well.

artifacts is not possible to remove just yet because how the pull sync system works (webs need to pull these files from the builders before it removes them)

@humitos humitos requested review from stsewd and a team October 2, 2019 08:56
@humitos
Copy link
Member Author

humitos commented Oct 2, 2019

Hrm, there is a pytest issue when running the tests.

@stsewd
Copy link
Member

stsewd commented Oct 2, 2019

@humitos this change isn't correct, the .cache folder is set per project, not per version. See #5685

@stsewd
Copy link
Member

stsewd commented Oct 2, 2019

Another solution would be disabling caching if the setting is set.

@humitos
Copy link
Member Author

humitos commented Oct 2, 2019

@humitos this change isn't correct, the .cache folder is set per project, not per version. See #5685

You are right.

Another solution would be disabling caching if the setting is set.

I think this is wiser and we should do this instead of using caching for things that we are going to remove immediately.

If we ever want this cache, we should probably use a local PyPI mirror (or devpi) which would probably save a lot more space that what we are doing currently and speed things up.

@stsewd
Copy link
Member

stsewd commented Oct 3, 2019

Closed in favor of #6239

@stsewd stsewd closed this Oct 3, 2019
@stsewd stsewd deleted the humitos/clean-cache-dir branch October 3, 2019 21:32
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