Skip to content

ci(deps): make Renovate cover every pin on a fixed schedule - #4952

Merged
dan-petty merged 2 commits into
mainfrom
ci/4896-make-renovate-cover-every-pin-on
Nov 12, 2026
Merged

dan-petty merged 2 commits into
mainfrom
ci/4896-make-renovate-cover-every-pin-on

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Renovate opened no pull request since 2026-10-01, and its config turned off the pep621, pip, npm and Helm managers, with no schedule, groups, CI limits or security settings.

The shared preset .github/renovate/base.json, which each Service repository extends, proposes security fixes and patch releases at once and groups the other updates of each ecosystem on Monday (UTC). Majors come one at a time; runtime and data migrations wait for a Dashboard approval. Limits and rebaseWhen: conflicted keep the load under the CI cap, and titles fit 60 characters. .github/renovate.json adds custom managers and coupled groups for every pin of this repository. Fail-to-Pass Check skips the Renovate App, release.yml pins setup-uv, and the tools lock headers use a form that the pip-compile manager reads.

Closes #4896

Change: openspec/changes/archive/2026-11-12-4896-make-renovate-cover-every-pin-on/

Add the shared preset .github/renovate/base.json and make
.github/renovate.json extend it. Turn every manager on, add custom
managers and coupled groups, a Monday schedule with patch and security
updates at once, limits for the CI cap and titles within 60 characters.
Fail-to-Pass Check skips the Renovate App. Pin setup-uv in release.yml
and fix three action version comments.
@dan-petty dan-petty added type/infra Type infra: the build, CI, images or cluster scope/deps Dependency pins, upgrades and the supply chain labels Nov 12, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 06:49
@dan-petty
dan-petty enabled auto-merge (squash) November 12, 2026 06:49
@dan-petty

Copy link
Copy Markdown
Owner Author

Verification

Validator (official, [email protected], the newest release on 2026-11-12, with RE2):

$ npx --yes --package [email protected] renovate-config-validator --strict --no-global .github/renovate.json .github/renovate/base.json
 INFO: Validating .github/renovate.json as repo config
 INFO: Validating .github/renovate/base.json as repo config
 INFO: Config validated successfully against 2 file(s)
exit=0

Fail-to-pass (uv run devops ci fail-to-pass --base origin/main): 52 failed on base (52 failed and 157 passed in tests/core/test_renovate_config.py, tests/invariants/test_workflow_contracts.py, tests/tools_lock/test_tools_lock.py; 0 errored), exit 0. On the branch: 190 passed.

Static checks: devops ci --check --only lint,format,actionlint,zizmor and --only docs pass; devops openspec check passes.

Local Renovate run ([email protected] --platform=local --dry-run=lookup on a copy of the branch, with the preset merged into the repository config, no token). Package files and dependencies that each manager extracted:

Manager Files Dependencies
argocd 32 53
devcontainer 2 9
dockerfile 2 30
github-actions 16 162
helm-values 2 2
kubernetes 49 119
nodenv 1 1
npm 3 3
pep621 1 243
pip-compile 2 75
pre-commit 1 2
pyenv 1 1
regex 22 31
terraform 6 15

The first run showed that the pip-compile manager refused the tools lock headers (Option --python-version must have equal sign '=' separating it's argument, and -o is not supported). This pull request writes them as --python-version=3.14 <name>.in --output-file=<name>.txt, which uv writes itself when it is called so; the second run read both files. The other errors of the run come from the missing GitHub token and Docker Hub limits on a shared host (lookup timeouts), not from the configuration. Local mode builds no branches, so the title length is proved by test_each_title_summary_fits_the_semantic_title_check, which builds the summary of more than 500 pinned dependencies and of each group.

Notes for the next items

  • feat(deps): repin tool downloads and their sha256 for Renovate #4902: the trivy, argo, cloudflared and gh groups wait for its binary managers (aquasecurity/trivy, argoproj/argo-workflows, cloudflare/cloudflared, cli/cli as package names).
  • feat(k8s): run self-hosted Renovate as a CronJob in devops #4905: allow the four postUpgradeTasks commands in allowedCommands (uv run --frozen devops install-tools --tool openspec, uv run --frozen devops openspec regenerate, uv run --frozen devops install-tools --tool devcontainers-cli, devcontainer upgrade --workspace-folder . --config .devcontainer/image/devcontainer.json), put the target directory of devops install-tools on PATH, and set RENOVATE_X_SUPPRESS_PRE_COMMIT_WARNING=true, else every pre-commit pull request gets an upstream note.

@dan-petty

Copy link
Copy Markdown
Owner Author

Steps for the owner

This pull request changes only files in the repository. Renovate starts to use them when the CronJob of #4905 runs with the App of #4897. Only a person can do these steps:

  1. Create the GitHub App on the personal account. Name: devops-cli-renovate. Fail-to-Pass Check of this pull request skips the login devops-cli-renovate[bot], so if you choose another name, tell the agent, and the agent changes .github/workflows/fail-to-pass.yml.
    • Homepage URL: https://github.com/dan-petty/devops-cli.
    • Webhook: clear "Active". No callback URL, no OAuth during installation, no device flow.
    • "Where can this GitHub App be installed?": Only on this account.
    • Repository permissions: Administration read-only; Checks read and write; Commit statuses read and write; Contents read and write; Dependabot alerts read-only; Issues read and write; Metadata read-only; Pull requests read and write; Workflows read and write. No organization or account permissions. Subscribe to no events.
  2. Install the App on "Only select repositories": devops-cli, vibes, homelab, devcontainer-features, dreamscaper, danielpetty.com, dotfiles. Write down the App ID and the installation ID.
  3. Keyring rows (after feat(github): write a Renovate App installation token to a file #4897 merges, because it adds the settings): generate a private key of the App, run uv run devops devcontainer unlock-keyring, then:
    • uv run devops config set renovate.github_app_id <app-id>
    • uv run devops config set renovate.github_app_installation_id <installation-id>
    • uv run devops config set renovate.github_app_private_key --from-file <key.pem>
      Then delete the downloaded key file.
  4. Push the Secret (after feat(k8s): run self-hosted Renovate as a CronJob in devops #4905 merges and Argo CD has synced Application devops): uv run devops k8s push-secrets --only devops/renovate. Run it with --plan first to see the change.
  5. Security alerts: on each of the 7 repositories, open Settings > Advanced Security, and turn on "Dependency graph" and "Dependabot alerts". Keep "Dependabot security updates" and "Dependabot version updates" off, so that Renovate is the only updater. Until then, only OSV gives security pull requests (Dependabot alerts on devops-cli return HTTP 404 today).
  6. One Renovate only: make sure that the hosted Mend Renovate app is not installed on these repositories (Settings > Applications > Installed GitHub Apps).
  7. Merges: merge the update pull requests when their checks pass. Only a person merges.

License

Renovate is not permissive. At tag 44.235.1, the GitHub license API gives AGPL-3.0 for the repository, and the npm package [email protected] declares AGPL-3.0-only. The plan measured the image label org.opencontainers.image.licenses=AGPL-3.0-only at 44.234.1. The owner accepted this on 2026-11-11 as an exception: the unmodified official image runs as a private in-cluster job. This pull request adds no Renovate code to the repository: it adds only configuration files that Renovate reads. #4905 records the exception in an ADR, k8s/README.md and CONTRIBUTING.md.

@dan-petty
dan-petty merged commit 1260bb5 into main Nov 12, 2026
31 checks passed
@dan-petty
dan-petty deleted the ci/4896-make-renovate-cover-every-pin-on branch November 12, 2026 06:54
@dan-petty

Copy link
Copy Markdown
Owner Author

Review findings of this pull request, and what was done. This pull request is merged, so the fixes are in #4987 (issue #4974).

  1. major, .github/renovate/base.json: a uv update fails test_the_pins_of_the_table_are_the_pins_of_the_dockerfile. Confirmed. With the form that Renovate writes (uv:0.13.6@sha256:<digest>) in .devcontainer/Dockerfile, the test fails on main (index 1: False != True). Fix in fix(deps): keep Renovate uv bumps green and groups on Monday #4987: the devcontainer pins the digest that the service Dockerfile pins (sha256:af22a52f…, the registry digest of 0.13.6), and the test requires @sha256: after the uv version in both files. Thus Renovate also opens no separate pinDigest pull request for this image.
  2. major, docs/SDLC.md: the CI-load claim is not correct. Confirmed. In Renovate 44.235.1, updateNotScheduled is true by default, and the branch worker skips an existing branch outside its schedule only when updateNotScheduled === false. A new release of a member changes the files of a branch, so Renovate commits to it also with rebaseWhen: conflicted. Fix in fix(deps): keep Renovate uv bumps green and groups on Monday #4987: the preset sets updateNotScheduled: false, so a Monday group changes only on Monday. A patch (at any time) and a security fix (the schedule of vulnerabilityAlerts is empty) still come at any time. docs/SDLC.md, the spec release-concurrency-and-renovate and the test docstring now say when Renovate pushes an open branch again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/deps Dependency pins, upgrades and the supply chain type/infra Type infra: the build, CI, images or cluster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(deps): make Renovate cover every pin on a fixed schedule

1 participant