Let Renovate keep the PostgreSQL versions tested in CI up to date (#183128)

This commit is contained in:
Franck Nijhof
2026-09-27 10:15:59 +02:00
committed by GitHub
parent d7caae5a21
commit 07d1dd35a0
2 changed files with 36 additions and 3 deletions
+35
View File
@@ -63,6 +63,19 @@
"depNameTemplate": "mariadb",
"datasourceTemplate": "docker",
"versioningTemplate": "docker"
},
{
"customType": "regex",
"description": "Update the PostgreSQL entries in the CI database test matrix",
"managerFilePatterns": ["/^\\.github/workflows/ci\\.yaml$/"],
"matchStringsStrategy": "recursive",
"matchStrings": [
"POSTGRESQL_VERSIONS: \".*\"",
"postgres:(?<currentValue>\\d+\\.\\d+)"
],
"depNameTemplate": "postgres",
"datasourceTemplate": "docker",
"versioningTemplate": "docker"
}
],
@@ -273,6 +286,21 @@
"matchUpdateTypes": ["patch"],
"enabled": false
},
{
"description": "PostgreSQL versions tested in CI (allowlisted). Docker Hub returns no release timestamps for these tags, so the global cooldown needs to be bypassed.",
"matchManagers": ["custom.regex"],
"matchPackageNames": ["postgres"],
"enabled": true,
"minimumReleaseAge": null,
"labels": ["dependency"]
},
{
"description": "Keep each PostgreSQL entry on its major version. Adding a new major to the matrix is a deliberate choice.",
"matchManagers": ["custom.regex"],
"matchPackageNames": ["postgres"],
"matchUpdateTypes": ["major"],
"enabled": false
},
{
"description": "Group ruff pre-commit hook with its PyPI twin into one PR",
"matchPackageNames": ["astral-sh/ruff-pre-commit", "ruff"],
@@ -327,6 +355,13 @@
"groupName": "types stubs",
"groupSlug": "types-stubs"
},
{
"description": "Group the PostgreSQL CI matrix updates into one PR (all supported majors are released on the same day)",
"matchManagers": ["custom.regex"],
"matchPackageNames": ["postgres"],
"groupName": "PostgreSQL CI matrix",
"groupSlug": "postgresql-ci"
},
{
"description": "uv and pnpm release almost daily, so the cooldown alone still gives a PR (and a full CI run) nearly every day. Limit them to one PR per week.",
"matchPackageNames": ["uv", "pnpm"],
+1 -3
View File
@@ -52,11 +52,9 @@ env:
# and some queries that work on MariaDB do not work on MySQL
MARIADB_VERSIONS: "['mariadb:10.3.32','mariadb:10.6.10','mariadb:10.11.2','mariadb:11.4.9','mariadb:11.8.8','mariadb:12.3.3','mysql:8.0.32']"
# 12 is the oldest supported version
# - 12.22 is the latest (as of 19 Aug 2026)
# 15 is a supported version
# - 15.19 is the latest (as of 19 Aug 2026)
# 18 is the latest version
# - 18.6 is the latest (as of 19 Aug 2026)
# Renovate keeps each entry on the latest release of its major version
POSTGRESQL_VERSIONS: "['postgres:12.22','postgres:15.19', 'postgres:18.6']"
# 3.40.1 is the oldest supported version (recorder MIN_VERSION_SQLITE),
# shipped in Debian 12 (bookworm)