Closed
Bug 596852
Opened 14 years ago
Closed 14 years ago
purge_builds should delete directories older than some threshold
Categories
(Release Engineering :: General, defect, P3)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: catlee, Assigned: catlee)
References
Details
Attachments
(2 files)
5.20 KB,
patch
|
bhearsum
:
review+
nthomas
:
checked-in+
|
Details | Diff | Splinter Review |
880 bytes,
patch
|
nthomas
:
review+
catlee
:
checked-in+
|
Details | Diff | Splinter Review |
If purge_builds were to delete directories older than a week or so, we would a) clean out old cruft from the /builds/slave directory b) make it so that we're not always running as close to full as possible
Assignee | ||
Comment 1•14 years ago
|
||
Assignee | ||
Updated•14 years ago
|
Attachment #475827 -
Attachment description: [untested] delete directories older than 7 days → delete directories older than 7 days
Attachment #475827 -
Flags: review?(bhearsum)
Comment 2•14 years ago
|
||
Comment on attachment 475827 [details] [diff] [review] delete directories older than 7 days Looks good
Attachment #475827 -
Flags: review?(bhearsum) → review+
Assignee | ||
Updated•14 years ago
|
Blocks: releng-downtime
Updated•14 years ago
|
Blocks: end_to_end
Updated•14 years ago
|
Assignee: nobody → catlee
OS: Linux → All
Hardware: x86_64 → All
Assignee | ||
Updated•14 years ago
|
Priority: -- → P3
Comment 4•14 years ago
|
||
So the summary and comments do not match the code I see here... It seems like we _always_ preserve builds newer than 7 days, rather than always delete older than 7 days. [am I wrong] I expected this bug to be a "We want to delete all builds older than 7 days, and/or newer builds if we still do not have the free-space we want" Am I either missing something or wrong?
Comment 5•14 years ago
|
||
(In reply to comment #4) > So the summary and comments do not match the code I see here... Nope just confused. > Am I either missing something or wrong? Missed the addition of |dirs.sort()| before the while... sorry for noise.
Comment 6•14 years ago
|
||
This is landed and working.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 7•14 years ago
|
||
Comment on attachment 475827 [details] [diff] [review] delete directories older than 7 days Landed in e179cf0fd98b
Attachment #475827 -
Flags: checked-in+
Comment 8•14 years ago
|
||
This got backed out because it caused windows 7 test machines to fail (because they timed out when cleaning up).
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•14 years ago
|
Attachment #475827 -
Flags: checked-in+ → checked-in-
Updated•14 years ago
|
Flags: needs-reconfig+
Assignee | ||
Updated•14 years ago
|
Flags: needs-treeclosure?
Comment 9•14 years ago
|
||
could we include this change with a bigger threshold at first and then reduce it every week? I believe the machines that burned the day we enabled had many many GBs of old stuff and that is why it timed out as it had too many things to remove. Think of the IX machines that barely need to clobber as their disk always have more than 12GB free and everything is just getting older. Maybe we could ask the script to check if they have spend X amount of mins deleting stuff and then stop if they have passed it. Luckily the machine would stop between X and the buildbot timeout.
Comment 10•14 years ago
|
||
Why is this needs-treeclosure? if the patch that broke win7 hasn't been changed?
Assignee | ||
Comment 11•14 years ago
|
||
(In reply to comment #10) > Why is this needs-treeclosure? if the patch that broke win7 hasn't been > changed? We expect that after the win7 slaves cycle through and clean up, that this will work ok going forward. So it needs tree closure because we expect burning the first time stuff is getting run, but it should be ok after.
Assignee | ||
Comment 12•14 years ago
|
||
I'm also fine with Armen's suggestion of increasing the threshold. The max_age default at line 130 needs to be changed. I'd recommend 28 days to start with.
Comment 13•14 years ago
|
||
Comment on attachment 475827 [details] [diff] [review] delete directories older than 7 days Checked in with 28 day default: http://hg.mozilla.org/build/tools/rev/7920b159c3e6
Attachment #475827 -
Flags: checked-in- → checked-in+
Updated•14 years ago
|
Flags: needs-treeclosure? → needs-treeclosure+
Assignee | ||
Comment 15•14 years ago
|
||
Attachment #486252 -
Flags: review?(nrthomas)
Updated•14 years ago
|
Attachment #486252 -
Flags: review?(nrthomas) → review+
Assignee | ||
Comment 16•14 years ago
|
||
Doesn't need a reconfig per se, but needs somebody to watch it for a bit.
Flags: needs-reconfig?
Assignee | ||
Comment 17•14 years ago
|
||
Comment on attachment 486252 [details] [diff] [review] reduce max age to 14 days changeset: 883:5a99b6e600c6
Attachment #486252 -
Flags: checked-in+
Assignee | ||
Updated•14 years ago
|
Flags: needs-reconfig? → needs-reconfig+
Assignee | ||
Comment 18•14 years ago
|
||
14 days is a good number to finish with.
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Product: mozilla.org → Release Engineering
You need to log in
before you can comment on or make changes to this bug.
Description
•