Closed Bug 627186 Opened 14 years ago Closed 14 years ago

need to automatically clean preproduction-stage

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dustin, Assigned: rail)

Details

Attachments

(1 file)

I'm not sure how this is done on production stage or staging stage, but preproduction stage's /builds is at 158G, and most of that is in the /builds/data/ftp directory, mostly nightlies. Since these builds aren't useful to anyone, can we just run a simple crontask to clean them out, similar to what's done for the local aus2?
Note, that there are already some cronjobs for cltbld and root, managed by puppet.
Ah, I see @daily find /data/ftp/pub/{firefox,xulrunner,mobile}/nightly/20??/ -mindepth 2 -maxdepth 2 -mtime +3 -exec rm -rf {} \; but that seems to be missing all of the files in /data/ftp/pub/firefox/nightly/latest-mozilla-central-l10n Can you add another crontask to take care of those? They go back to September 16 right now.
Assignee: nobody → rail
Attached patch Updated crontabSplinter Review
* Added @daily find /data/ftp/pub/{firefox,xulrunner,mobile}/nightly/latest-* -type f -mtime +2 -exec rm -f {} \; * s/-mtime +3/-mtime +2/
Attachment #505352 - Flags: review?(dustin)
Attachment #505352 - Flags: review?(dustin) → review+
Comment on attachment 505352 [details] [diff] [review] Updated crontab As root@production-puppet # cd /N/production/centos5-i686/stage/root # wget -q -O - 'https://bugzilla.mozilla.org/attachment.cgi?id=505352' | patch -p0 patching file crontab Also seen on preproduction-stage: # crontab -l MAILTO=release@mozilla.com @daily find /data/ftp/pub/{firefox,xulrunner,mobile}/tinderbox-builds/ -mindepth 2 -maxdepth 2 -type d -mtime +2 -name 1????????? -exec rm -rf {} \; @daily find /data/ftp/pub/firefox/tryserver-builds/ -mindepth 1 -maxdepth 1 -type d -mtime +2 -exec rm -rf {} \; @daily find /data/ftp/pub/{firefox,xulrunner,mobile}/nightly/20??/ -mindepth 2 -maxdepth 2 -mtime +2 -exec rm -rf {} \; @daily find /data/ftp/pub/{firefox,xulrunner,mobile}/nightly/ -type l -mtime +2 -exec rm -rf {} \; @daily find /data/ftp/pub/{firefox,xulrunner,mobile}/nightly/latest-* -type f -mtime +2 -exec rm -f {} \; @hourly find /data/symbols_*/ -type d -mindepth 2 -maxdepth 2 -mtime +1 -exec rm -rf {} \; @hourly find /data/symbols_*/ -type f -maxdepth 0 -mtime +1 -exec rm -rf {} \;
Attachment #505352 - Flags: checked-in+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: