Skip to content

fix(ci): Renovate changelog artifact drops the workspace mirror; metadata.env breaks on parenthesized branches #874

Closed

Description

@c-vigo

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):

  1. Workspace mirror dropped from the artifact. The build step copies assets/workspace/.devcontainer/CHANGELOG.md into changelog-artifact/, but actions/upload-artifact excludes hidden directories by default (include-hidden-files: false since v4.4). .devcontainer is a hidden directory, so the artifact only ever contains the root CHANGELOG.md + metadata.env. The commit workflow lists both paths in FILE_PATHS, but only the root changelog exists to commit — the PR branch ends up with root ≠ mirror and the sync-manifest pre-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).

  2. metadata.env breaks on Renovate group branches. The metadata is written unquoted (echo "HEAD_REF=${HEAD_REF}") and sourced by the commit workflow. Grouped Renovate branches contain parentheses (renovate/python-(minor-and-patch)), producing metadata.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

  1. Open a Renovate PR (any branch for defect 1; a grouped branch with parentheses for defect 2).
  2. Let Renovate changelog build run and Renovate changelog commit fire via workflow_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-manifest fails → 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: true to the Upload changelog artifact step.
  • Write metadata.env with printf '%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

  1. added
    bug
    priority:high
    area:ci
    semver:patch
    on Jul 6, 2026
  2. c-vigo commented on Jul 6, 2026

    @c-vigo
    ContributorAuthor

    Fix verified in production after #875 merged to dev:

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cibugpriority:highsemver:patch

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions