Repository navigation
chore(renovate): never auto-merge generator updates - #399
Conversation
openapi-python-client writes the SDK we ship: its 0.29 update was a routine minor bump that emitted Python 3.11-only code into an SDK that supports 3.10 (#389). Hold its updates for review and label them. Renovate forces vulnerabilityAlerts over every packageRule (it appends them with `force`), so a security update to the generator still auto-merges; the required CI checks gate those. Refs #389
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the generator-specific Renovate auto-merge safeguard.
No open issues 🎉
What changed in this PR
Adds a Renovate safeguard for routine openapi-python-client updates, addressing part of #389’s recommendation to require review of changes that affect generated SDK code.
Changes:
- Disables auto-merge for the generator after the general minor/patch auto-merge rule.
- Adds the
generatorlabel to matching updates. - Documents that security updates retain the existing auto-merge policy.
| File | Description |
|---|---|
.github/renovate.json |
Adds the generator-specific auto-merge exception and review label. |
Review effort: Balanced
|
🤖 The changes in this PR were produced by nano-agent, an autonomous agent. Commits are authored under the operator's own git identity when one is resolvable (the human running the fleet), so they can satisfy CLA/DCO requirements; this note records that the work was generated by the agent. |
|
nano-ack: issuecomment-7277264721 — Acknowledged: this is the agent-attribution notice, which needs no code change. Commits stay under the operator's identity, as the notice says. |
Refs #389 (post-mortem for 9.0.2): recommendation R4
Why
openapi-python-clientwrites the SDK we ship, so updating it changes the product, not just a tool. Its 0.29 update was a routine minor bump. Renovate auto-merged it, and it emitted Python 3.11-only code (typing.Self,StrEnum,fromisoformatonZ) into an SDK that supports 3.10.What
A package rule, placed after the general auto-merge rule so it wins, that:
openapi-python-clientupdates;generator(label created: "Code generator update: changes shipped SDK code, review before merge").Renovate reads its config from the default branch only, and
baseBranchPatternsalready includesstable/9andstable/10, so this covers all three branches without a backport.Limitation: security updates
R4 also asked for this to cover
vulnerabilityAlerts. Package rules can't do that. Renovate appends each vulnerability rule after allpackageRulesand wrapsvulnerabilityAlertsinforce(seeappendVulnerabilityPackageRules/vulnerabilityToPackageRules). A security update to the generator will therefore still auto-merge, asfix(deps).The only Renovate-level switch is
vulnerabilityAlerts.automerge: false, and it applies to every dependency. That would undo the deliberate "security fixes auto-merge" policy, so I've left it as a maintainer decision. For now, the gates in #398 cover that path:smoke-wheelin CI, once they are required checks;Verification
renovate-config-validator .github/renovate.json→Config validated successfully