ci: Per-repo configuration for manually trigger tasks
authorAndres Freund <andres@anarazel.de>
Thu, 14 Aug 2025 15:33:47 +0000 (11:33 -0400)
committerAndres Freund <andres@anarazel.de>
Thu, 14 Aug 2025 15:33:47 +0000 (11:33 -0400)
commit3d478f66b651375851c8fa04239a6558861565ec
tree43941a36089e68d1cb72f431f9c60ac02b211076
parent3e6741e8dd5b585e85b5d9371453ff80aa1f0c04
ci: Per-repo configuration for manually trigger tasks

We do not want to trigger some tasks by default, to avoid using too many
compute credits. These tasks have to be manually triggered to be run. But
e.g. for cfbot we do have sufficient resources, so we always want to start
those tasks.

With this commit, an individual repository can be configured to trigger
them automatically using an environment variable defined under
"Repository Settings", for example:

REPO_CI_AUTOMATIC_TRIGGER_TASKS="mingw netbsd openbsd"

This will enable cfbot to turn them on by default when running tests for the
Commitfest app.

Backpatch this back to PG 15, even though PG 15 does not have any manually
triggered task. Keeping the CI infrastructure the same seems advantageous.

Author: Andres Freund <andres@anarazel.de>
Co-authored-by: Thomas Munro <thomas.munro@gmail.com>
Co-authored-by: Nazir Bilal Yavuz <byavuz81@gmail.com>
Reviewed-by: Nazir Bilal Yavuz <byavuz81@gmail.com>
Discussion: https://postgr.es/m/20240413021221.hg53rvqlvldqh57i%40awork3.anarazel.de
Backpatch-through: 16
.cirrus.star
.cirrus.tasks.yml
.cirrus.yml
src/tools/ci/README