Repository navigation
Description
Description
Re-enabling the Renovate changelog automation after #863/#864 surfaced two residual defects in renovate-changelog-build.yml, verified on the live PR queue (#861, #862, #865, #866):
-
Workspace mirror dropped from the artifact. The build step copies
assets/workspace/.devcontainer/CHANGELOG.mdintochangelog-artifact/, butactions/upload-artifactexcludes hidden directories by default (include-hidden-files: falsesince v4.4)..devcontaineris a hidden directory, so the artifact only ever contains the rootCHANGELOG.md+metadata.env. The commit workflow lists both paths inFILE_PATHS, but only the root changelog exists to commit — the PR branch ends up with root ≠ mirror and thesync-manifestpre-commit gate fails Project Checks (observed on build(pip): pin python to ==3.14.6 #861/chore(deps): update github/codeql-action digest to 99df26d #862 after runs 28799680160 → commit 6a94cee, artifact verified to lack the mirror). -
metadata.envbreaks on Renovate group branches. The metadata is written unquoted (echo "HEAD_REF=${HEAD_REF}") andsourced by the commit workflow. Grouped Renovate branches contain parentheses (renovate/python-(minor-and-patch)), producingmetadata.env: line 3: syntax error near unexpected token '('— the commit stage crashes before pushing anything (runs 28799792964, 28799804936 for build(pip): update dependency numpy to v2.5.1 #865/ci(actions): update github-actions (minor and patch) #866).
Steps to Reproduce
- Open a Renovate PR (any branch for defect 1; a grouped branch with parentheses for defect 2).
- Let
Renovate changelog buildrun andRenovate changelog commitfire viaworkflow_run.
Expected Behavior
One bot commit per PR updating both CHANGELOG.md and assets/workspace/.devcontainer/CHANGELOG.md; commit stage succeeds regardless of branch-name characters.
Actual Behavior
- Paren-free branches: bot commit contains only the root changelog →
sync-manifestfails → red CI. - Parenthesized branches: commit stage crashes sourcing
metadata.env→ no changelog entry at all (PR can go green while silently missing its entry).
Environment
dev @ 694c979 (post-#873 sync, workflow re-enabled 2026-07-06).
Additional Context
Second half of #863 resurfacing: #864 fixed the copy into the artifact staging dir but the upload silently dropped it. Remediation for the four open Renovate PRs after this lands: re-tick their rebase checkboxes so Renovate rewrites the branches and the fixed automation re-adds entries.
Possible Solution
In .github/workflows/renovate-changelog-build.yml (sync-manifest propagates to the shipped workspace copy):
- Add
include-hidden-files: trueto theUpload changelog artifactstep. - Write
metadata.envwithprintf '%s=%q\n'so sourced values survive shell metacharacters.
TDD note: workflow-YAML-only change — TDD exception applies (non-testable config).
Changelog Category
Fixed
Activity
fix(ci): upload hidden changelog mirror and quote renovate metadata.env
fix(ci): upload hidden changelog mirror and quote renovate metadata.e…
c-vigo commentedon Jul 6, 2026
Fix verified in production after #875 merged to dev:
renovate/python-(minor-and-patch)— parenthesized branch): changelog build + commit succeeded, bot commit 4fe42a1 touches bothCHANGELOG.mdandassets/workspace/.devcontainer/CHANGELOG.md, all checks green. Both defects exercised and gone.Remaining flake on #866 was a Renovate double-force-push race (build succeeded on f8b3fe0, superseded by c7d1617 before the commit stage), resolved by re-ticking the rebase box — not a workflow defect.
fix(ci): strip assets/workspace mirror leak from renovate-changelog c…
chore: release 0.4.1 (#202)
chore: release 0.4.1 (#898)