chore(renovate): three night runs, automerge for dev tooling, explicit pnpm gate #894

Sammanfogat
supernaut sammanfogade 4 incheckningar från chore/renovate-tuning in i main 2026-11-16 10:19:24 +00:00
Ägare

What

  1. Renovate runs three times a night, at 00:30, 01:30 and 02:30 (renovate_on_calendar: "*-*-* 00..02:30"). The last run ends before the 03:30 backup.
  2. This repo extends local>bitborg/bitborg-docs:automerge-safe, with an override that keeps customManager and Terraform updates out of automerge.
  3. minimumReleaseAge: 1440 is set explicitly in pnpm-workspace.yaml. Stale minimumReleaseAgeExclude entries are removed.

Why

  1. Every npm PR touches pnpm-lock.yaml, so each merge outdates its siblings. One run a night merged one PR per repo. Later runs rebase the rest.
  2. Dev tooling updates ship nothing. Image tags and customManager pins stay human-reviewed.
  3. A pnpm update must not change the release-age gate unseen. All excluded versions were gone from the lock file.

How it was checked

  • systemd-analyze calendar '*-*-* 00..02:30' --iterations=4 in a Debian container: fires 00:30, 01:30, 02:30, then next day 00:30.
  • Unit timeout 40m fits inside the hour (renovate_timeout 30m, normal runs 2 to 3 min). Worst case the 02:30 run ends at 03:15, with the 5 min randomised delay.
  • check-alert-rules.py (ansible interpreter): 89 rules render and parse. check-renovate-annotations.py: OK. pnpm ansible:check: syntax OK. pnpm format:check: OK. renovate.json parses as JSON.
  • pnpm install --frozen-lockfile passes with the new workspace file.
  • Automerge: config-level proof, no Renovate dry run. Rules in automerge-safe.json match only devDependencies (lefthook, markdownlint-cli2, prettier, sort-package-json), depNames node/pnpm/docker.io/library/node, and lockFileMaintenance. No docker.io/library/node pin exists under ansible/.
  • The node depName also matches the customManager pin in scripts/bake-runner-image.sh. The new last packageRule sets automerge: false for custom.regex and terraform managers. A grouped toolchain branch that contains that pin therefore needs a human merge.

Not changed

  • No github.com token wiring. ADR 0023 says no RENOVATE_GITHUB_COM_TOKEN (principle 1). The planned opt-in is per-tenant encrypted host rules, not a global operator token. Release notes stay best-effort.

After merge (operator)

  • Apply: pnpm ansible -- --tags renovate (renovate role). Add --tags monitoring for the alert description text.
  • Confirm: systemctl --user list-timers bitborg-renovate.timer shows the next run at 00:30, 01:30 or 02:30.
  • No vault change needed.
## What 1. Renovate runs three times a night, at 00:30, 01:30 and 02:30 (`renovate_on_calendar: "*-*-* 00..02:30"`). The last run ends before the 03:30 backup. 2. This repo extends `local>bitborg/bitborg-docs:automerge-safe`, with an override that keeps customManager and Terraform updates out of automerge. 3. `minimumReleaseAge: 1440` is set explicitly in `pnpm-workspace.yaml`. Stale `minimumReleaseAgeExclude` entries are removed. ## Why 1. Every npm PR touches `pnpm-lock.yaml`, so each merge outdates its siblings. One run a night merged one PR per repo. Later runs rebase the rest. 2. Dev tooling updates ship nothing. Image tags and customManager pins stay human-reviewed. 3. A pnpm update must not change the release-age gate unseen. All excluded versions were gone from the lock file. ## How it was checked - `systemd-analyze calendar '*-*-* 00..02:30' --iterations=4` in a Debian container: fires 00:30, 01:30, 02:30, then next day 00:30. - Unit timeout 40m fits inside the hour (renovate_timeout 30m, normal runs 2 to 3 min). Worst case the 02:30 run ends at 03:15, with the 5 min randomised delay. - `check-alert-rules.py` (ansible interpreter): 89 rules render and parse. `check-renovate-annotations.py`: OK. `pnpm ansible:check`: syntax OK. `pnpm format:check`: OK. `renovate.json` parses as JSON. - `pnpm install --frozen-lockfile` passes with the new workspace file. - Automerge: config-level proof, no Renovate dry run. Rules in `automerge-safe.json` match only devDependencies (lefthook, markdownlint-cli2, prettier, sort-package-json), depNames `node`/`pnpm`/`docker.io/library/node`, and lockFileMaintenance. No `docker.io/library/node` pin exists under `ansible/`. - The `node` depName also matches the customManager pin in `scripts/bake-runner-image.sh`. The new last packageRule sets `automerge: false` for `custom.regex` and `terraform` managers. A grouped toolchain branch that contains that pin therefore needs a human merge. ## Not changed - No github.com token wiring. ADR 0023 says no `RENOVATE_GITHUB_COM_TOKEN` (principle 1). The planned opt-in is per-tenant encrypted host rules, not a global operator token. Release notes stay best-effort. ## After merge (operator) - Apply: `pnpm ansible -- --tags renovate` (renovate role). Add `--tags monitoring` for the alert description text. - Confirm: `systemctl --user list-timers bitborg-renovate.timer` shows the next run at 00:30, 01:30 or 02:30. - No vault change needed.
supernaut lade till 4 incheckningar 2026-11-16 09:51:20 +00:00
supernaut sammanfogade incheckning aaabfdef93 till main 2026-11-16 10:19:24 +00:00
supernaut tog bort grenen chore/renovate-tuning 2026-11-16 10:19:24 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra!894
Ingen beskrivning angiven.