From c1c31dd9a29d7578f8488f3c761fa19ea42b60d5 Mon Sep 17 00:00:00 2001 From: Dylan Griffith <dyl.griffith@gmail.com> Date: Tue, 4 Feb 2025 15:53:16 +1100 Subject: [PATCH] Add links to where Housekeeper is run in CI today At https://gitlab.com/gitlab-org/gitlab/-/merge_requests/180120#note_2329196621 it was mentioned that it's difficult to track down exactly where housekeeper is running. Adding links to the README might help others in future locating this information. --- gems/gitlab-housekeeper/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gems/gitlab-housekeeper/README.md b/gems/gitlab-housekeeper/README.md index 449dae41ba82d..5523dea041604 100644 --- a/gems/gitlab-housekeeper/README.md +++ b/gems/gitlab-housekeeper/README.md @@ -174,6 +174,16 @@ Some best practices to consider when using a once-off keep: MRs. This allows reviewers to understand where this work comes from and can also help if they want to contribute improvements to an ongoing group of MRs. +## Running Housekeeper automatically in CI + +GitLab Housekeeper is already being run in CI pipelines in different projects. +Typically we have CI jobs which trigger a single keep with the desired +settings. It is likely possible to expand our current CI pipelines to run new +keeps periodically. Here are some places where it is being run today: + +1. In our [`engineering-productivity` team scheduled pipelines](https://gitlab.com/gitlab-org/quality/engineering-productivity/team/-/blob/edf362f52d81ecb8e4934c357cb567384af106a5/.gitlab-ci.yml#L68). This is the default place to add new keeps. +1. In our [`database-testing` scheduled pipelines](https://gitlab.com/gitlab-org/database-team/gitlab-com-database-testing/-/blob/ebbd9a18547376d2a6e89cf95a6ce12c8d1f133d/db-testing.yml#L402). This is the place to add keeps which need to read from a production Postgres archive. + ## Using Housekeeper in other projects Right now we do not publish housekeeper to RubyGems. We have published it once -- GitLab