Delete old pipelines
-
Review changes -
-
Download -
Patches
-
Plain diff
What does this MR do and why?
Allow users to set pipeline expiry times per project and delete expired pipelines.
This won't work effectively with millions of projects, but that's expected. We want to see how popular this feature is before investing more time into building a robust solution.
References
Please include cross links to any resources that are relevant to this MR This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
- In rails console enable the experiment fully
Feature.enable(:ci_delete_old_pipelines)
- Visit any project CI/CD settings pages such as
http://127.0.0.1:3000/root/new-taggings/-/settings/ci_cd
- Fill in
Delete old pipelines
with a desired value - Wait till the cron worker is executed(11 minutes tops).
- Notice that 250 pipelines are gone.
Related to #498969 (closed)
Edited by Marius Bobin
Merge request reports
Compare and
- version 21a990f4ec
- version 202070f189
- version 194ddaec5a
- version 1872fa56bf
- version 1758923fd4
- version 166279b128
- version 15d05b35f1
- version 14a9d5a62c
- version 1312483717
- version 120c907efb
- version 1182f44a84
- version 10718d7318
- version 9ba2e7b19
- version 817911c83
- version 78cb202c7
- version 6ae9c92b8
- version 541056e0b
- version 430542de2
- version 3043e3075
- version 2c9efe29e
- version 10993d0cc
- master (base)
- latest version30f373109 commits,
- version 21a990f4ec8 commits,
- version 202070f1897 commits,
- version 194ddaec5a5 commits,
- version 1872fa56bf4 commits,
- version 1758923fd43 commits,
- version 166279b1282 commits,
- version 15d05b35f11 commit,
- version 14a9d5a62c2 commits,
- version 13124837171 commit,
- version 120c907efb2 commits,
- version 1182f44a841 commit,
- version 10718d731812 commits,
- version 9ba2e7b1911 commits,
- version 817911c8310 commits,
- version 78cb202c79 commits,
- version 6ae9c92b89 commits,
- version 541056e0b8 commits,
- version 430542de26 commits,
- version 3043e30754 commits,
- version 2c9efe29e2 commits,
- version 10993d0cc1 commit,
Compare changes
- Side-by-side
- Inline
Files
33Loading