Skip to content

chore(ci): point renovate preset extends at vig-os/devkit slug - #1334

Merged
c-vigo merged 1 commit into
devfrom
chore/1333-renovate-preset-slug
Aug 4, 2026
Merged

c-vigo merged 1 commit into
devfrom
chore/1333-renovate-preset-slug

Conversation

@c-vigo

@c-vigo c-vigo commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Description

Devkit's root renovate.json still extended the shared preset via the pre-rename repo slug (github>vig-os/devcontainer//...), working only through GitHub's rename redirect (#781). This points it at the current slug, github>vig-os/devkit//..., removing the silent-breakage risk if the old name is ever reclaimed.

Type of Change

  • chore -- Maintenance task (deps, config, etc.)

Changes Made

  • renovate.json: extends preset reference updated vig-os/devcontainer → vig-os/devkit. One line; nothing else touched.
  • Repo-wide audit of remaining vig-os/devcontainer hits performed and classified (image-name references are the GHCR image's real name and stay; other repo-slug references — flake-template URLs, docs prose, test fixtures — are listed on the issue as follow-up candidates, out of scope here).

Changelog Entry

No changelog needed -- internal CI configuration chore with no user-visible impact (root renovate.json is devkit-own, not a shipped asset).

Testing

  • Tests pass locally (prek run --all-files green, both hook groups)
  • Manual testing performed (describe below)

Manual Testing Details

  • renovate-config-validator is not available offline (renovate is not an npm dependency of this repo); JSON well-formedness verified, and the repo's renovate-validate workflow covers validation in CI.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • My changes generate no new warnings or errors
  • New and existing unit tests pass locally with my changes

Additional Notes

TDD skipped: non-testable one-line config change.

Closes #1333

Refs: #1333

The root renovate.json extended the shared preset via the pre-rename
repo slug (github>vig-os/devcontainer//...). After the devcontainer ->
devkit rename (#781) that reference only resolves through GitHub's rename
redirect; if a new repo ever claims the old vig-os/devcontainer name the
redirect breaks silently and devkit would load a foreign preset. Retarget
the extends at the canonical vig-os/devkit slug.

Refs: #1333
@c-vigo
c-vigo merged commit 31f29c1 into dev Aug 4, 2026
14 checks passed
@c-vigo
c-vigo deleted the chore/1333-renovate-preset-slug branch August 4, 2026 07:50
c-vigo added a commit that referenced this pull request Aug 4, 2026
Union-resolves the CHANGELOG conflict with PR #1334 (restores the #1330
entry this branch had accidentally displaced) and keeps both renovate.json
changes: the #1333 slug fix in extends and the #1332 re-enable rule.

Refs: #1332
c-vigo added a commit that referenced this pull request Aug 4, 2026
…ate (#1335)

## Description

Consumer repos scaffolded by devkit run Renovate against the
devkit-**managed** workflows and composite actions, opening duplicate
pin-bump PRs that the next `devkit-upgrade` regenerates over (and, when
a consumer ran ahead of a devkit train, actively downgrades). This PR
makes the shipped preset the single decision point: consumer Renovate
now ignores the managed set; devkit's own Renovate remains the sole
channel that advances those pins, shipping them with each release.

## Type of Change

- [x] `feat` -- New feature

## Changes Made

- **`assets/workspace/.github/renovate-default.json`** (managed preset,
rolls out on upgrade): trailing `enabled: false` packageRule enumerating
the 13 managed workflows (all shipped minus the consumer-owned seams
`release-extension.yml` / `prepare-release-extension.yml`) plus
`.github/actions/setup-devkit-toolchain/**` and
`.github/actions/resolve-toolchain/**`. Last on purpose: a consumer's
own later `packageRules` (preserved root `renovate.json`) win, so opting
back in stays possible.
- **`renovate.json`** (devkit root): trailing `enabled: true` rule for
`.github/workflows/**` and `.github/actions/**` — devkit extends the
same preset and shares those rooted paths, so it re-enables its own
files. The shipped copies under `assets/workspace/` were never caught
(rooted `matchFileNames` globs don't match nested paths).
- **`tests/test_renovate_preset_managed_exclusion.py`**: drift gate —
derives the managed set from the workflow directory listing minus
`PRESERVE_FILES` (via `sync_manifest.load_preserve_files`, nothing
hardcoded) and asserts both rules exist and are last (ordering is
load-bearing).
- **`docs/WORKFLOW_SECURITY.md`**: new section on upstream dependency
responsibility for managed files, the vulnerability-PR trade-off, and
the consumer opt-back-in recipe.
- `assets/workspace/.devcontainer/CHANGELOG.md`: generated sync-manifest
mirror of the CHANGELOG edit.

## Changelog Entry

### Changed
- **Consumer Renovate ignores devkit-managed workflows and actions**
([#1332](#1332))
- The shipped preset (`.github/renovate-default.json`) now disables
Renovate for the managed workflow set and the two managed composite
actions via a trailing `enabled: false` packageRule. Their SHA-pinned
action digests advance upstream in devkit and ship with each release, so
downstream Renovate no longer opens duplicate pin-bump PRs that the next
`devkit-upgrade` clobbers.
- The rule is last, so a consumer can opt a specific managed file back
in from their preserved `renovate.json` (later rules win). Devkit's own
root `renovate.json` re-enables its root workflows/actions so devkit
keeps advancing the pins it owns.

## Testing

- [x] Tests pass locally (`just test`)
- [x] Manual testing performed (describe below)

### Manual Testing Details

- TDD: drift-gate test committed RED first (3 failed), GREEN after the
config change (3 passed).
- Related unit subset (renovate preset, zizmor baseline, private-repo
guard, release/prepare extension, scaffold drift, workflow model): 76
passed, exit 0.
- `prek run --all-files`: fully green (51 hooks, exit 0).
- `renovate-config-validator` not runnable offline (renovate is not an
npm dep of this repo); JSON validity hook-checked, CI's
`renovate-validate` workflow covers schema validation.

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have updated the documentation accordingly (edit
`docs/templates/`, then run `just docs`)
- [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and
pasted the entry above)
- [x] My changes generate no new warnings or errors
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes

## Additional Notes

- Live behavior lands in consumers with the next release train via
`devkit-upgrade` (the preset is a managed file). One-time step at
rollout: close any open downstream renovate PRs touching managed
workflows — they will not be recreated.
- The issue's `baseBranchPatterns` sanity check confirmed a **separate**
pre-existing bug for trunk-model consumers (preset hardcodes `["dev"]`;
trunk repos have no `dev`, leaving Renovate inert there) — reported on
#1332 and filed independently; not addressed here (minimal diff).
- Merge-order note: #1334 also touches root `renovate.json` (its
`extends` line); whichever merges second may need a trivial rebase.

Closes #1332

Refs: #1332
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