From 076546f91b5da6044a97cbbd5088b1e623818b89 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Sun, 6 Dec 2026 17:02:21 +0000 Subject: [PATCH] docs(contributing): point renovate.json syntax at Lint's validator job Syntax is now checked by Lint's renovate-config job; a local renovate --platform=local run stays for behaviour changes. making-a-change.md also gains the two review-held rules for renovate.json: descriptions of at most two short sentences, and a test or check before an automerge exception. Refs: #172 Refs: #188 Assisted-by: Claude Code --- AGENTS.md | 5 +++-- docs/contributing/making-a-change.md | 15 ++++++++++++--- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 43a7fc7..bc92852 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -107,5 +107,6 @@ renovate.json dependency automation - Changing a workflow: read [.gitea/workflows/AGENTS.md](.gitea/workflows/AGENTS.md) first. - Changing an image or an image-smoke scenario: read [images/AGENTS.md](images/AGENTS.md) first. - Before writing an ADR: read [docs/adr/AGENTS.md](docs/adr/AGENTS.md) first. -- Before changing `renovate.json`: read its rule descriptions, and test with `renovate --platform=local` - at the version in `.gitea/workflows/renovate.yml`. +- Before changing `renovate.json`: read its rule descriptions. Lint's `renovate-config` job checks + its syntax; test a behaviour change with `renovate --platform=local` at the version in + `.gitea/workflows/renovate.yml`. diff --git a/docs/contributing/making-a-change.md b/docs/contributing/making-a-change.md index fc74cbc..bdd9e06 100644 --- a/docs/contributing/making-a-change.md +++ b/docs/contributing/making-a-change.md @@ -107,8 +107,17 @@ limit), [.gitea/workflows/AGENTS.md](../../.gitea/workflows/AGENTS.md) (workflow bot-diff check `scripts/check_bot_pr_diff.py`) and [docs/adr/AGENTS.md](../adr/AGENTS.md) (decision records). -- **Test a change to `renovate.json` before the merge with `renovate --platform=local`** (the version - in `.gitea/workflows/renovate.yml`), which reads your checkout. +- **Test a change to how Renovate behaves before the merge with `renovate --platform=local`** (the + version in `.gitea/workflows/renovate.yml`), which reads your checkout. Syntax needs no local run. *Reason:* a dry run in Actions (Run workflow with `dry_run=true`) reads `renovate.json` from `main`, so it cannot test a pull request's change. - *Held by:* review (`renovate.json` is under `CODEOWNERS`). + *Held by:* control for the syntax (Lint's `renovate-config` job runs `renovate-config-validator + --strict`); review for the behaviour (`renovate.json` is under `CODEOWNERS`). +- **Every description in `renovate.json` is at most two short sentences: why the rule exists, plus + how it works when that is not obvious.** Investigation notes stay in the pull request. + *Reason:* the descriptions are read on every change to the config, and notes age into noise. + *Held by:* review. +- **A broken unattended merge is fixed with a test or a check; an automerge exception is added only + when no test can catch it, and its description names the failure it prevents.** + *Reason:* an exception costs a manual review on every later update, a test does not. + *Held by:* review.