Merge branch 'main' into docs/adr-molecule-controller-image
Build / build (pull_request) Successful in 29s
Molecule / molecule (pull_request) Successful in 5s
Lint / lint (pull_request) Successful in 1m33s

This commit is contained in:
Defame1297 committed 2026-11-27 16:05:04 +00:00
commit 5e230201e6
6 files changed
+66 -14

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ jobs:
timeout-minutes: 30 timeout-minutes: 30
# The ci image (images/ci, built by image.yml): tag for the release, digest enforced. # The ci image (images/ci, built by image.yml): tag for the release, digest enforced.
container: container:
image: git.rkdr.net/mortis/ci:0.2.46@sha256:a03015cc2177bdd6ef7f348f245a89f361893c7c64edc1264d9f9c1387d9defc image: git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
env: env:
PIP_DISABLE_PIP_VERSION_CHECK: "1" PIP_DISABLE_PIP_VERSION_CHECK: "1"
steps: steps:
+1 -1
View File
@@ -44,7 +44,7 @@ jobs:
# The ci image (images/ci, built by image.yml), at the pin of lint.yml: tag for the # The ci image (images/ci, built by image.yml), at the pin of lint.yml: tag for the
# release, digest enforced. Only its /opt/venv Python (with PyYAML) is used here. # release, digest enforced. Only its /opt/venv Python (with PyYAML) is used here.
container: container:
image: git.rkdr.net/mortis/ci:0.2.46@sha256:a03015cc2177bdd6ef7f348f245a89f361893c7c64edc1264d9f9c1387d9defc image: git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
steps: steps:
# The container has no Node, so JavaScript actions such as actions/checkout # The container has no Node, so JavaScript actions such as actions/checkout
# cannot run; clone with git and the job token. # cannot run; clone with git and the job token.
+1 -1
View File
@@ -31,7 +31,7 @@ jobs:
# The tag says which release, the digest is what is enforced (bump both together # The tag says which release, the digest is what is enforced (bump both together
# when image.yml publishes a new version). # when image.yml publishes a new version).
container: container:
image: git.rkdr.net/mortis/ci:0.2.46@sha256:a03015cc2177bdd6ef7f348f245a89f361893c7c64edc1264d9f9c1387d9defc image: git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
env: env:
PIP_DISABLE_PIP_VERSION_CHECK: "1" PIP_DISABLE_PIP_VERSION_CHECK: "1"
PRE_COMMIT_HOME: /opt/pre-commit PRE_COMMIT_HOME: /opt/pre-commit
+1 -1
View File
@@ -53,7 +53,7 @@ jobs:
env: env:
# The tools and collections molecule runs with: the image Lint and Build use. # The tools and collections molecule runs with: the image Lint and Build use.
CI_IMAGE: >- CI_IMAGE: >-
git.rkdr.net/mortis/ci:0.2.46@sha256:a03015cc2177bdd6ef7f348f245a89f361893c7c64edc1264d9f9c1387d9defc git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
# Used by the scenarios as `image: ${MOLECULE_IMAGE}`; set it the same way to run # Used by the scenarios as `image: ${MOLECULE_IMAGE}`; set it the same way to run
# one locally. # one locally.
MOLECULE_IMAGE: >- MOLECULE_IMAGE: >-
+14 -1
View File
@@ -15,10 +15,23 @@ trailers, are in [ai-assistance.md](ai-assistance.md).
*Reason:* every change reaches `main` through the Lint and Build checks and a reviewer. *Reason:* every change reaches `main` through the Lint and Build checks and a reviewer.
*Held by:* control: branch protection on `main`. *Held by:* control: branch protection on `main`.
- **Do not push to someone else's branch or to a bot's branch; put your change in a pull request of - **Do not push to someone else's branch or to a bot's branch; put your change in a pull request of
your own.** Updating a branch from `main` with Gitea's update button is allowed. your own.** Updating a branch from `main` with Gitea's update button is allowed under the next
two rules.
*Reason:* a push changes a head its author already reviewed or scheduled to merge, and a hand-made *Reason:* a push changes a head its author already reviewed or scheduled to merge, and a hand-made
commit on a `renovate/` branch makes Renovate stop rebasing it. commit on a `renovate/` branch makes Renovate stop rebasing it.
*Held by:* aspirational. *Held by:* aspirational.
- **Update a pull request's branch from `main` only when it is next to merge: reviewed, green on its
previous head, and the only branch being updated. After updating your own pull request, give it a
scheduled merge; merge anyone else's as [reviewing.md](reviewing.md) says.**
*Reason:* `main` blocks an outdated branch, so every update re-runs Lint, Build and Molecule, and
a new head cancels the run in progress; an update made while another pull request merges first is
wasted.
*Held by:* aspirational.
- **Never press the update button on a `renovate/` branch. When a Renovate pull request is next to
merge and behind `main`, tick the rebase/retry checkbox in its description; Renovate rebases it at
its next run.**
*Reason:* the update button adds a hand-made commit, and Renovate stops rebasing that branch.
*Held by:* aspirational.
- **File an issue or open a pull request with the headings of the matching template in `.gitea/`, - **File an issue or open a pull request with the headings of the matching template in `.gitea/`,
also when you file through the API, `tea` or an MCP server.** also when you file through the API, `tea` or an MCP server.**
*Reason:* those routes skip the templates, and an agent's built-in body leaves out what review needs. *Reason:* those routes skip the templates, and an agent's built-in body leaves out what review needs.
+48 -9
View File
@@ -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
} }
} }