Commit b4af6b4
authored
fix(renovate): major-only Python lower-bound bumps + 30-day major grace (#344)
* fix(renovate): major-only Python lower-bound bumps + 30-day major grace
PR #343 made `rangeStrategy: bump` apply to every release for
pep621/pip_requirements/pip_setup/poetry/pipenv, so the `>=` floor moved
on minor and patch releases too. That floods consumer repos with PRs
that only re-state the floor at the latest pinpoint version — no
security or compatibility signal behind them.
Two changes:
1. 30-day grace period for any major-version update, org-wide. Gives
upstream ecosystems time to surface breaking regressions before we
adopt. CVE bumps still bypass via `vulnerabilityAlerts` (0 days).
2. Restrict the Python `>=` bump rule to `matchUpdateTypes: ["major"]`.
Minor/patch updates now fall back to Renovate's default `replace`
strategy, which no-ops when the existing range already satisfies the
new version — exactly what we want for security/compatibility floors.
After this, Renovate still produces `>=N.M.P` (e.g. `>=1.16.1`) on
major bumps. Follow-up: a reusable normalization workflow that rewrites
those to `>=N.0.0` so floors only express the major version.
* docs(renovate): spell out CVE-pin exception to major-only floor policy
The bump rule now states the full policy:
- Default: floors are `>=N.0.0` (major only).
- CVE exception: pin to the OLDEST secure version (not latest) and
document every CVE in an inline comment block above the floor.
- Normalizer must preserve floors preceded by such a comment block.
Canonical pattern lives in mlx-benchmarks/space/requirements.txt
(pyarrow, pillow, orjson, idna).1 parent 5c5ce28 commit b4af6b4
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
| |||
230 | 235 | | |
231 | 236 | | |
232 | 237 | | |
233 | | - | |
| 238 | + | |
234 | 239 | | |
| 240 | + | |
235 | 241 | | |
236 | 242 | | |
237 | 243 | | |
| |||
0 commit comments