Closed Bug 1648261 Opened 5 years ago Closed 5 years ago

mozregression should provide a way to intelligently prune my downloaded-builds-cache

Categories

(Testing :: mozregression, enhancement)

enhancement

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1648260

People

(Reporter: dholbert, Unassigned)

Details

Feature request:

It would be great if mozregression offered a command that users could run, to prune its cache of downloaded builds (to save disk space) in a way that maximizes the usefulness of the builds that are left behind.

Something like the following (I'm just spitballing): a command like mozregression --clean-cache which would do the following:
(1) Delete all cached taskcluster builds (i.e. anything that's not a nightly build), based on the assumption that it's unlikely that any two regressions will arrive at the precise 1-day regression range and will benefit from having cached taskcluster builds.
(2) For cached nightlies older than 1 year: Preserve one per month, and delete the rest.
(3) For cached nightlies between 1-12months old: Preserve one per week, and delete the rest.
(4) For cached nightlies between 0-1 months old: Don't delete any of these.

The hope here would be that the remaining older builds would be sparser, but they'd still be likely to be chosen as approximate builds as we bisect through time. (And there's an assumption that we're more likely to be bisecting recent regressions rather than older regressions; therefore, it makes sense to bias the preserved builds towards recent history.)

(Sorry, bugzilla barfed while filing this bug and gave me a clickthrough error page, and it ended up producing two copies of the same bug. Duping to the first one.)

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.