Merge pull request 'ci(renovate): group updates and open them on Mondays' (#438) from ci/renovate-group-schedule into main
Reviewed-on: #438
This commit was merged in pull request #438.
This commit is contained in:
commit
7dbf9a1bd0
1 file changed
+48
-9
+48
-9
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"description": "Run by .gitea/workflows/renovate.yml on this repository's own runner. Policy: automerge minor and patch, majors by hand. Every bot pull request must pass scripts/check_bot_pr_diff.py (lint workflow), which allows only version, tag, digest and pin lines. Image versions are assigned by the Images workflow when an image's inputs change, so a bot pull request needs no version edit.",
|
"description": "Run by .gitea/workflows/renovate.yml on this repository's own runner. Policy: automerge minor and patch, majors by hand. Every bot pull request must pass scripts/check_bot_pr_diff.py (lint workflow), which allows only version, tag, digest and pin lines. Image versions are assigned by the Images workflow when an image's inputs change, so a bot pull request needs no version edit. Updates open on Mondays (UTC), so any Monday run can act; the own image pins and vulnerability fixes found on osv.dev open at any time. The weekly window and the groups bound the volume, so there is no hourly pull request limit. Vulnerability fixes skip the release-age wait, so they are never automerged: a person checks a fix that had no time to be pulled as a compromised release. Base-image bumps are manual: every Dockerfile is FROM ubuntu, grouped with the job containers.",
|
||||||
"extends": [
|
"extends": [
|
||||||
"config:recommended",
|
"config:recommended",
|
||||||
":enablePreCommit"
|
":enablePreCommit"
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
],
|
],
|
||||||
"automerge": true,
|
"automerge": true,
|
||||||
"automergeType": "pr",
|
"automergeType": "pr",
|
||||||
"prHourlyLimit": 5,
|
"prHourlyLimit": 0,
|
||||||
"minimumReleaseAge": "3 days",
|
"minimumReleaseAge": "3 days",
|
||||||
"minimumReleaseAgeBehaviour": "timestamp-optional",
|
"minimumReleaseAgeBehaviour": "timestamp-optional",
|
||||||
"timezone": "UTC",
|
"timezone": "UTC",
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
],
|
],
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
{
|
{
|
||||||
"description": "Dockerfile base-image tag and digest bumps (images/*/Dockerfile) MAY automerge. Kamino is the untrusted side and the bump pull request's own CI exercises the new image before the merge. Placed first so the major-version rule below still turns automerge off. The merge publishes a new image version.",
|
"description": "Dockerfile base-image tag and digest bumps (images/*/Dockerfile) MAY automerge. Kamino is the untrusted side and the bump pull request's own CI exercises the new image before the merge. Placed first so the major-version rule below still turns automerge off. The merge publishes a new image version. Today every Dockerfile is FROM ubuntu, whose bumps join the manual ubuntu base images group below; this rule is the safety net for a future base image of another kind.",
|
||||||
"matchManagers": [
|
"matchManagers": [
|
||||||
"dockerfile"
|
"dockerfile"
|
||||||
],
|
],
|
||||||
@@ -145,12 +145,18 @@
|
|||||||
"allowedVersions": "<=26.10.1"
|
"allowedVersions": "<=26.10.1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "The job containers of image.yml (matrix job_image, ubuntu by digest) hold the org registry push credential while the image job runs: never automerged, and kept in their own branch so the Dockerfile base-image bumps are not held back with them.",
|
"description": "The job containers of image.yml (matrix job_image, ubuntu by digest) hold the org registry push credential while the image job runs: never automerged. Their ubuntu bumps share one branch with the Dockerfile FROM bumps (ubuntu base images rule below), so that pull request is manual too: a group automerges only if every update in it does.",
|
||||||
"matchFileNames": [
|
"matchFileNames": [
|
||||||
".gitea/workflows/image.yml"
|
".gitea/workflows/image.yml"
|
||||||
],
|
],
|
||||||
"automerge": false,
|
"automerge": false
|
||||||
"additionalBranchPrefix": "job-container-"
|
},
|
||||||
|
{
|
||||||
|
"description": "The Dockerfile FROM digests and the image.yml job_image digests of one Ubuntu update move in one pull request, so the release pair stays in step and one Images run covers both.",
|
||||||
|
"matchPackageNames": [
|
||||||
|
"ubuntu"
|
||||||
|
],
|
||||||
|
"groupName": "ubuntu base images"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Safety net only: kaniko is pinned by layer digests in image.yml and no Renovate manager reads them, so it is updated by hand. If a manager ever starts to read it, its bumps are not automerged.",
|
"description": "Safety net only: kaniko is pinned by layer digests in image.yml and no Renovate manager reads them, so it is updated by hand. If a manager ever starts to read it, its bumps are not automerged.",
|
||||||
@@ -160,11 +166,15 @@
|
|||||||
"automerge": false
|
"automerge": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Pin follow-up for our own images (git.rkdr.net/mortis/*): moves the image:<version>@sha256:<digest> pins of lint.yml, build.yml, molecule.yml and gitea-release-key.yml to the newest published version and its digest, and automerges. The Images workflow's completion starts a Renovate run, so this pull request opens minutes after a new version is pushed. The pull request's own Lint and Build run in the new image before the merge, and scripts/check_bot_pr_diff.py allows only these pin lines. The registry lists tags and digests anonymously, so no hostRules are needed. A major version stays manual (rule above).",
|
"description": "Pin follow-up for our own images (git.rkdr.net/mortis/*): moves the image:<version>@sha256:<digest> pins of lint.yml, build.yml, molecule.yml and gitea-release-key.yml to the newest published version and its digest, and automerges. The Images workflow's completion starts a Renovate run, so this pull request opens minutes after a new version is pushed. The pull request's own Lint and Build run in the new image before the merge, and scripts/check_bot_pr_diff.py allows only these pin lines. The registry lists tags and digests anonymously, so no hostRules are needed. A major version stays manual (rule above). One pull request moves every image an Images run published (ci and both molecule images), so one Molecule run tests them together. Exempt from the weekly schedule, so the pins on main catch up with a new image within minutes.",
|
||||||
"matchPackageNames": [
|
"matchPackageNames": [
|
||||||
"git.rkdr.net/mortis/**"
|
"git.rkdr.net/mortis/**"
|
||||||
],
|
],
|
||||||
"automerge": true
|
"automerge": true,
|
||||||
|
"groupName": "own CI images",
|
||||||
|
"schedule": [
|
||||||
|
"at any time"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Look the pre-commit hook repositories up with git ls-remote (git-tags) instead of the GitHub API. This run has no GitHub token, and the github-tags datasource then either skips every hook (skipReason github-token-required, dry run 3880) or is refused at once with 403 rate limit (githubTokenWarn off, local run). git-tags needs no API and no credential, and it uses the dereferenced hash of an annotated tag, so the new rev is the commit, as pre-commit needs. The `# frozen:` form is kept by the manager's own replace template. It works only together with RENOVATE_GITHUB_TOKEN_WARN=false in renovate.yml: the token check runs after extraction and skips every github-tags dependency before a package rule can change its datasource (local run, Renovate 44.161.0). git-tags has no release timestamps, so minimumReleaseAge cannot delay a hook bump: hook bumps are never automerged, a person reviews each one.",
|
"description": "Look the pre-commit hook repositories up with git ls-remote (git-tags) instead of the GitHub API. This run has no GitHub token, and the github-tags datasource then either skips every hook (skipReason github-token-required, dry run 3880) or is refused at once with 403 rate limit (githubTokenWarn off, local run). git-tags needs no API and no credential, and it uses the dereferenced hash of an annotated tag, so the new rev is the commit, as pre-commit needs. The `# frozen:` form is kept by the manager's own replace template. It works only together with RENOVATE_GITHUB_TOKEN_WARN=false in renovate.yml: the token check runs after extraction and skips every github-tags dependency before a package rule can change its datasource (local run, Renovate 44.161.0). git-tags has no release timestamps, so minimumReleaseAge cannot delay a hook bump: hook bumps are never automerged, a person reviews each one.",
|
||||||
@@ -177,16 +187,45 @@
|
|||||||
"overrideDatasource": "git-tags",
|
"overrideDatasource": "git-tags",
|
||||||
"overridePackageName": "https://github.com/{{{depName}}}",
|
"overridePackageName": "https://github.com/{{{depName}}}",
|
||||||
"automerge": false
|
"automerge": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Lint and build tooling in one weekly pull request across requirements-dev.lock and the ci image's uv pin, so one ci image build instead of one per tool.",
|
||||||
|
"matchDatasources": [
|
||||||
|
"pypi"
|
||||||
|
],
|
||||||
|
"matchPackageNames": [
|
||||||
|
"apm-cli",
|
||||||
|
"antsibull-changelog",
|
||||||
|
"galaxy-importer",
|
||||||
|
"reuse",
|
||||||
|
"pre-commit",
|
||||||
|
"uv"
|
||||||
|
],
|
||||||
|
"groupName": "lint tooling"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "The pre-commit hooks in one weekly pull request; never automerged (rule above).",
|
||||||
|
"matchManagers": [
|
||||||
|
"pre-commit"
|
||||||
|
],
|
||||||
|
"groupName": "pre-commit hooks"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"lockFileMaintenance": {
|
"lockFileMaintenance": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"schedule": [
|
"schedule": [
|
||||||
"before 6am on monday"
|
"on monday"
|
||||||
],
|
],
|
||||||
"automerge": false,
|
"automerge": false,
|
||||||
"labels": [
|
"labels": [
|
||||||
"lock-file-maintenance"
|
"lock-file-maintenance"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"schedule": [
|
||||||
|
"on monday"
|
||||||
|
],
|
||||||
|
"osvVulnerabilityAlerts": true,
|
||||||
|
"vulnerabilityAlerts": {
|
||||||
|
"automerge": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user