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
workers should be able to automatically delete leftover directory #4095
Comments
The lack of this behavior took two of my buildbots offline after the master made a configuration change that altered the directory suffixes used. Instead of logging buildbot/worker/buildbot_worker/base.py Line 298 in cc304b5
is where it'd be done. (as seen due to python/buildmaster-config#108 and https://bugs.python.org/issue38269) |
Sorry for the too short response last time. I would be in favour of automatically cleaning things up, one just needs to be careful enough to not delete stuff that's still being used (two builders may use the same dir, for example; even though I might want a clean-up anyway), and that users might actually want to delete stuff which should have been removed before this functionality will be implemented. |
Seems like this is fixed by https://github.com/buildbot/buildbot/pull/5160/files |
Indeed. |
Buildbot worker prints a warning about leftover directory:
Reference: https://github.com/buildbot/buildbot/blob/master/worker/buildbot_worker/base.py#L299
In large setups where configuration is dynamic and workers connect to different builders and builders change over time, it becomes a huge manual tasks to keep track of left-over directories and manually delete them.
Buildbot worker should have an option to delete such left-over directories, (probably configurable somewhere, e.g. buildbot.tac or master.cfg)
The text was updated successfully, but these errors were encountered: