Skip to content

chore(renovate): never auto-merge generator updates - #399

Merged
jwulf merged 1 commit into
mainfrom
chore/renovate-generator-review
Nov 30, 2026
Merged

jwulf merged 1 commit into
mainfrom
chore/renovate-generator-review

Conversation

@jwulf

@jwulf jwulf commented Nov 12, 2026

Copy link
Copy Markdown
Member

Refs #389 (post-mortem for 9.0.2): recommendation R4

Why

openapi-python-client writes 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, fromisoformat on Z) into an SDK that supports 3.10.

What

A package rule, placed after the general auto-merge rule so it wins, that:

  • never auto-merges openapi-python-client updates;
  • labels them generator (label created: "Code generator update: changes shipped SDK code, review before merge").

Renovate reads its config from the default branch only, and baseBranchPatterns already includes stable/9 and stable/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 all packageRules and wraps vulnerabilityAlerts in force (see appendVulnerabilityPackageRules / vulnerabilityToPackageRules). A security update to the generator will therefore still auto-merge, as fix(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:

  • the real 3.10 leg and smoke-wheel in CI, once they are required checks;
  • the pre-tag and pre-upload wheel smoke tests in publish.

Verification

  • renovate-config-validator .github/renovate.json → Config validated successfully

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
@jwulf jwulf self-assigned this Nov 12, 2026
Copilot AI balanced review requested due to automatic review settings November 12, 2026 05:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 generator label 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

@jwulf

jwulf commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

🤖 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.

@jwulf

jwulf commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

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.

@jwulf
jwulf merged commit efe3874 into main Nov 30, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants