pgsql: ci: Make runs-on overridable

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: ci: Make runs-on overridable
Date: 2026-11-06 20:13:36
Message-ID: E1xPQJc-00000000ViE-27jE@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

ci: Make runs-on overridable

Previously what runners CI ran on was hardcoded. Unfortunately that
makes it harder to use faster or self hosted runners (e.g. in a private
repository where the runners are very slow, or self hosted runners for
cfbot).

Fix that by allowing to override the runner types via
repository/organization variables. How to do that is documented in
src/tools/ci/README.

Testing faster github hosted runners showed that we have some
dependencies on specific locations, fix most of those.

As part of this the "Determine enabled jobs" job moves to ubuntu-slim,
which the setup job already did. Normally this won't make a difference,
but seems more consistent.

This commit is backpatched to 19 to keep CI between master and 19 the
same. Soon we'll backpatch CI support to regain coverage with lost with
cirrus-ci's shutdown.

Author: Andres Freund <andres(at)anarazel(dot)de>
Co-authored-by: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>
Discussion: https://postgr.es/m/a2ejn7lfqolutzz7kozalbhy3bixdrujb4buc3pgbtlk4am2ba@wbv6v7riia33
Discussion: https://postgr.es/m/CAN55FZ1BcWBsWgCCk2GQkYN6tzDxCw2hVK2m3qeiwaNXUnjLVg@mail.gmail.com
Backpatch-through: 19

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/327f3b099960e1b5f47a47f2792eba20a4f12f18

Modified Files
--------------
.github/workflows/pg-ci.yml | 72 ++++++++++++++++++++++++++++-----------------
src/tools/ci/README | 21 +++++++++++++
2 files changed, 66 insertions(+), 27 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2026-11-06 20:58:59 pgsql: doc: Clarify that OAuth bearer tokens are sent in clear text
Previous Message Andrew Dunstan 2026-11-06 19:49:12 pgsql: Revert "make immutability tests in to_json and to_jsonb complete