Skip to content

fix(ci): strip assets/workspace mirror leak from renovate-changelog consumer template - #918

Merged
c-vigo merged 3 commits into
release/0.4.1from
bugfix/914-renovate-template-mirror-leak
Jul 7, 2026
Merged

c-vigo merged 3 commits into
release/0.4.1from
bugfix/914-renovate-template-mirror-leak

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #914 — the manifest synced the devcontainer repo's own renovate-changelog-build.yml / -commit.yml into the consumer template verbatim, carrying the upstream-only assets/workspace/.devcontainer/CHANGELOG.md mirror plumbing. Consumers have no assets/workspace/ tree, so under set -euo pipefail those steps hard-failed on every Renovate changelog run.

Change

Added manifest transforms (scripts/manifest.toml) that strip, from the consumer template only:

  • the cp CHANGELOG.md assets/workspace/.devcontainer/CHANGELOG.md step and the assets/workspace artifact-copy block in renovate-changelog-build.yml (keeping the consumer-facing cp CHANGELOG.md changelog-artifact/ and metadata.env logic);
  • the extra ,assets/workspace/.devcontainer/CHANGELOG.md path from FILE_PATHS in renovate-changelog-commit.yml.

The devcontainer repo's own root workflows are unchanged; only the generated assets/workspace/… copies drop the mirror. Regenerated via just sync-workspace.

Verification

  • uv run pytest tests/test_transforms.py -q → 6 passed (2 new tests RED→GREEN).
  • Generated consumer workflows: grep -c assets/workspace = 0 on both; valid YAML.
  • Root workflows unchanged (empty diff).
  • Full prek run --all-files green locally (incl. sync-manifest, yamllint).

Discovered during 0.4.1-rc1 consumer-upgrade testing. Refs #874.

@c-vigo
c-vigo merged commit 392df0b into release/0.4.1 Jul 7, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/914-renovate-template-mirror-leak branch July 7, 2026 15:59
@c-vigo c-vigo mentioned this pull request Jul 8, 2026
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