GoogleChrome / lighthouse-ci

Automate running Lighthouse for every commit, viewing the changes, and preventing regressions
Apache License 2.0
6.33k stars 633 forks source link

[Feature] set up additional config `totalBuildsToKeep` for deleteOldBuilds Job #997

Open metalix2 opened 6 months ago

metalix2 commented 6 months ago

Background

We've found over time that different Projects have more activity than others. We've seen the MAX history for a specific runURL can be as little as 3 weeks ago. Where less frequently tested projects can have a history of 3 Months within the same amount of builds shown in the graph. Due to this wide range we have 2 months worth of builds for the busier project that are unviewable in the UI.

To keep storage optimisied we think the option to be able to keep a MAX amount of builds (like 150 or whatever is available to be viewed in the UI) would be more suitable for the different project types. We don't want to limit all projects to three weeks as they may not make as many frequent changes.

Changes

metalix2 commented 6 months ago

Another alternative is to set target projects in the cronJob that way we could create jobs per project with reduced maxAgeInDays. Let me know your preference and I'll update 👍

metalix2 commented 5 months ago

Any thoughts on this?