Skip to content

fix(renovate): cover smoke-test Python and Rust in vulnerability-fix PRs - #1764

Merged
c-vigo merged 3 commits into
devfrom
bugfix/1763-renovate-vuln-coverage
Sep 29, 2026
Merged

c-vigo merged 3 commits into
devfrom
bugfix/1763-renovate-vuln-coverage

Conversation

@c-vigo

@c-vigo c-vigo commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes the Renovate vulnerability-fix coverage gaps in the shipped config (vig-os/org-config#307 moves vulnerability fixes from Dependabot security updates to Renovate):

  • assets/smoke-test/renovate.json: enabledManagers now ["github-actions", "pep621"]. The smoke overlay is overwritten on every deploy, which reverted the hand fix in devkit-smoke-test#221.
  • assets/workspace/renovate.json: adds cargo (a no-op where there is no Cargo.toml).
  • assets/workspace/.github/renovate-default.json: new cargo packageRule (build(cargo)), placed before the managed-exclusion rule, which stays last. New explicit vulnerabilityAlerts block labelled security, placed after lockFileMaintenance. No osvVulnerabilityAlerts.
  • Docs: a "Vulnerability-fix PRs" section in docs/WORKFLOW_SECURITY.md, and a docs/MIGRATION.md step for existing Rust consumers, whose preserved renovate.json needs cargo added by hand. CHANGELOG entry under ### Fixed.

Devkit's root renovate.json extends the asset preset directly (there is no mirrored copy), so it picks up both changes and needs no edit.

Test evidence

  • TDD: tests/test_renovate_vulnerability_coverage.py committed failing first (3 failed, 2 passed), then green after the fix. The approved-types check imports vig_utils.validate_commit_msg.DEFAULT_APPROVED_TYPES as the SSoT.
  • uv run pytest tests/test_renovate_vulnerability_coverage.py tests/test_renovate_preset_managed_exclusion.py tests/test_workflow_model.py tests/test_transforms.py: 84 passed, exit 0
  • just test-renovate (renovate-config-validator --strict on smoke, preset, root): exit 0. The templated workspace renovate.json, validated with the placeholder substituted: exit 0
  • just precommit (all files): exit 0

Refs: #1763

@c-vigo
c-vigo merged commit cd4475d into dev Sep 29, 2026
16 checks passed
@c-vigo
c-vigo deleted the bugfix/1763-renovate-vuln-coverage branch September 29, 2026 12:02
c-vigo added a commit to vig-os/devkit-smoke-test that referenced this pull request Sep 29, 2026
…oad (#439)

## Description

Drops the unused `dev`, `science` and `all` optional extras and the
`[tool.uv] constraint-dependencies` block from `pyproject.toml`, then
regenerates `uv.lock`. They are left over from the devkit Python
template, which devkit retired in vig-os/devkit@a026454e. `dependencies
= []` and the `dev` dependency group are unchanged.

Refs: #438

## Changes

- `pyproject.toml`: remove `[project.optional-dependencies]` and
`[tool.uv] constraint-dependencies`
- `uv.lock`: regenerated with plain `uv lock` (uv 0.12.17, no
`--upgrade`, so no unrelated pins move). The lock goes from 122 to 15
packages. The 3 platform-conditional `resolution-markers` entries also
disappear: they came from the jupyter/numpy platform variants.
- `CHANGELOG.md`: Security entry under `## Unreleased`

## Verification

- `uv export --frozen --all-groups` no longer contains anyio, tornado,
mistune, jupyterlab or soupsieve: every package behind the 14 open
Dependabot alerts is gone
- `just lint`, `just test` and `just precommit` (full `prek run
--all-files`) pass locally

## Notes

- Ownership: devkit never ships or overwrites this repo's
`pyproject.toml`/`uv.lock` (they are in `PRESERVE_FILES`, and the deploy
rsync runs without `--delete`), so a later deploy PR cannot revert this.
- The alerts and #433-#437 resolve once this reaches `main` with the
next devkit release train.
- The issue's note about Renovate is outdated: smoke `renovate.json`
already enables `pep621` on both `dev` and `main` (vig-os/devkit#1764).
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.

1 participant