Closed Bug 632624 Opened 14 years ago Closed 10 years ago

Use hg purge to clean up try server build directories

Categories

(Release Engineering :: General, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 851398

People

(Reporter: catlee, Unassigned)

Details

(Whiteboard: [hg][tryserver])

Right now we clobber the entire source and object directory for each try run.

Using hg share makes this process faster by making the 'clone' step fast, but we can do better still by cleaning out the source and object directories instead of deleting them.

hg purge --all does the trick here.

Note that 'hg status -u -i -n -0 | xargs -0 rm' will miss cleaning up empty directories.
OS: Linux → All
Priority: -- → P4
Hardware: x86_64 → All
Whiteboard: [hg][tryserver]
sweet!
Assignee: nobody → s.s.albiz
Syed, any progress here?
Assignee: s.s.albiz → catlee
Assignee: catlee → bear
Priority: P4 → P3
My thinking here was to extend hgtool.py with a "-p/--purge" option that will run "hg purge" on the target directory. It should be a fatal error if purge fails.

We can then modify the invocation of hgtool.py in our try build factory to pass --purge to hgtool.py.

I believe all our build slaves currently have purge enabled.
Assignee: bear → nobody
Product: mozilla.org → Release Engineering
Is this a dupe of bug 851270?
Component: Other → General Automation
QA Contact: catlee
See also bug 851270, bug 851398, bug 969689.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.