Pin molecule and its Docker driver in requirements-dev.txt and bake them, with the driver's collection, into the ci image. The Molecule job runs docker run on the pinned ci image with the Docker socket and the checkout mounted at the same path, as the runner user. A pull request whose pins differ from the image installs its own pins first, so a core bump runs its scenarios on the new core. gitea_runner no longer installs the molecule venv and collections. Closes #225 Assisted-by: Claude Code
193 lines
8.8 KiB
JSON
193 lines
8.8 KiB
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.",
|
|
"extends": [
|
|
"config:recommended",
|
|
":enablePreCommit"
|
|
],
|
|
"branchPrefix": "renovate/",
|
|
"semanticCommits": "enabled",
|
|
"semanticCommitType": "chore",
|
|
"semanticCommitScope": "deps",
|
|
"enabledManagers": [
|
|
"pip-compile",
|
|
"ansible-galaxy",
|
|
"pre-commit",
|
|
"github-actions",
|
|
"dockerfile",
|
|
"custom.regex"
|
|
],
|
|
"automerge": true,
|
|
"automergeType": "pr",
|
|
"prHourlyLimit": 5,
|
|
"minimumReleaseAge": "3 days",
|
|
"minimumReleaseAgeBehaviour": "timestamp-optional",
|
|
"timezone": "UTC",
|
|
"ansible-galaxy": {
|
|
"managerFilePatterns": [
|
|
"/^requirements\\.yml$/",
|
|
"/^extensions/molecule/requirements\\.yml$/"
|
|
]
|
|
},
|
|
"pip-compile": {
|
|
"managerFilePatterns": [
|
|
"/^requirements-dev\\.lock$/"
|
|
]
|
|
},
|
|
"pre-commit": {
|
|
"enabled": true,
|
|
"managerFilePatterns": [
|
|
"/^\\.pre-commit-config\\.yaml$/"
|
|
]
|
|
},
|
|
"github-actions": {
|
|
"managerFilePatterns": [
|
|
"/^\\.gitea/workflows/.+\\.ya?ml$/"
|
|
]
|
|
},
|
|
"dockerfile": {
|
|
"managerFilePatterns": [
|
|
"/^images/[^/]+/Dockerfile$/"
|
|
]
|
|
},
|
|
"customManagers": [
|
|
{
|
|
"customType": "regex",
|
|
"description": "The uv pin that installs the build-stage Python interpreters of the ci image (images/ci/Dockerfile). It is an image input: the merge publishes a new ci version.",
|
|
"managerFilePatterns": [
|
|
"/^images/ci/Dockerfile$/"
|
|
],
|
|
"matchStrings": [
|
|
"\\buv==(?<currentValue>[0-9][0-9A-Za-z.+!_-]*)"
|
|
],
|
|
"depNameTemplate": "uv",
|
|
"datasourceTemplate": "pypi"
|
|
},
|
|
{
|
|
"customType": "regex",
|
|
"description": "The job container of each image of image.yml (matrix job_image, ubuntu by digest). kaniko unpacks the image over the job container, so its release must equal the Dockerfile's (check_image_versions.py pins). Tag and digest updates within a release arrive here; a new release is a deliberate edit of both (rule below disables major ubuntu updates). Never automerged: the job holds the registry push credential (image.yml rule below).",
|
|
"managerFilePatterns": [
|
|
"/^\\.gitea/workflows/image\\.yml$/"
|
|
],
|
|
"matchStrings": [
|
|
"job_image:\\s*(?<depName>ubuntu):(?<currentValue>[0-9][^@\\s]*)@(?<currentDigest>sha256:[0-9a-f]{64})"
|
|
],
|
|
"datasourceTemplate": "docker",
|
|
"versioningTemplate": "ubuntu"
|
|
},
|
|
{
|
|
"customType": "regex",
|
|
"description": "The CI_IMAGE, MOLECULE_IMAGE and MOLECULE_IMAGE_<release> values of molecule.yml are a multi-line `>-` scalar, which the github-actions manager does not read; matched here by its exact shape. Used by the pin-follow rule below.",
|
|
"managerFilePatterns": [
|
|
"/^\\.gitea/workflows/molecule\\.yml$/"
|
|
],
|
|
"matchStrings": [
|
|
"(?:CI_IMAGE|MOLECULE_IMAGE(?:_[0-9]+)?):\\s*>-\\s*\\n\\s*(?<depName>git\\.rkdr\\.net/mortis/[a-z0-9._-]+):(?<currentValue>[^@\\s]+)@(?<currentDigest>sha256:[0-9a-f]{64})"
|
|
],
|
|
"datasourceTemplate": "docker",
|
|
"versioningTemplate": "semver"
|
|
}
|
|
],
|
|
"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.",
|
|
"matchManagers": [
|
|
"dockerfile"
|
|
],
|
|
"automerge": true
|
|
},
|
|
{
|
|
"description": "The Renovate job container of renovate.yml runs with the job token: hand-bumped, never by the bot (the bot-diff check would refuse a change to that file anyway).",
|
|
"matchFileNames": [
|
|
".gitea/workflows/renovate.yml"
|
|
],
|
|
"enabled": false
|
|
},
|
|
{
|
|
"description": "A new Ubuntu release is a deliberate edit, never a bump. The molecule-ubuntu<NNNN> images are one release by name and by contract (extensions/molecule/image-smoke* assert it), and every image's job container must run the same release as its Dockerfile (check_image_versions.py pins), so a base-image major in one file alone would fail the check or the build. Tag and digest updates within a release still arrive.",
|
|
"matchPackageNames": [
|
|
"ubuntu"
|
|
],
|
|
"matchUpdateTypes": [
|
|
"major"
|
|
],
|
|
"enabled": false
|
|
},
|
|
{
|
|
"description": "Majors are reviewed by hand.",
|
|
"matchUpdateTypes": [
|
|
"major"
|
|
],
|
|
"automerge": false,
|
|
"labels": [
|
|
"breaking-change"
|
|
]
|
|
},
|
|
{
|
|
"description": "ansible-core and ansible-lint move together (the lint rules follow the core version). Minor and patch bumps automerge like the rest, majors are manual. A new ansible-core minor can bring new sanity findings: the shared tests/sanity/ignore-common.txt covers the known ones, and the Build check (ansible-test sanity) is the gate, so a bump that shows new findings stays red and is not merged.",
|
|
"groupName": "ansible tooling",
|
|
"matchDatasources": [
|
|
"pypi"
|
|
],
|
|
"matchPackageNames": [
|
|
"ansible-core",
|
|
"ansible-lint"
|
|
]
|
|
},
|
|
{
|
|
"description": "Hold ansible-lint at the newest version galaxy-importer allows. galaxy-importer 0.4.44 (the newest release, used by the Build job) declares ansible-lint<=26.10.1, so a pin above that makes pip fail with ResolutionImpossible and Lint and Build go red (seen on the 26.11.0 bump). Remove this rule, and raise the cap, once a galaxy-importer release lifts its ansible-lint limit.",
|
|
"matchDatasources": [
|
|
"pypi"
|
|
],
|
|
"matchPackageNames": [
|
|
"ansible-lint"
|
|
],
|
|
"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.",
|
|
"matchFileNames": [
|
|
".gitea/workflows/image.yml"
|
|
],
|
|
"automerge": false,
|
|
"additionalBranchPrefix": "job-container-"
|
|
},
|
|
{
|
|
"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.",
|
|
"matchPackageNames": [
|
|
"/kaniko/"
|
|
],
|
|
"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).",
|
|
"matchPackageNames": [
|
|
"git.rkdr.net/mortis/**"
|
|
],
|
|
"automerge": true
|
|
},
|
|
{
|
|
"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.",
|
|
"matchManagers": [
|
|
"pre-commit"
|
|
],
|
|
"matchDatasources": [
|
|
"github-tags"
|
|
],
|
|
"overrideDatasource": "git-tags",
|
|
"overridePackageName": "https://github.com/{{{depName}}}",
|
|
"automerge": false
|
|
}
|
|
],
|
|
"lockFileMaintenance": {
|
|
"enabled": true,
|
|
"schedule": [
|
|
"before 6am on monday"
|
|
],
|
|
"automerge": false,
|
|
"labels": [
|
|
"lock-file-maintenance"
|
|
]
|
|
}
|
|
}
|