Skip to content

fix(ci): sync changelog manifest in release workflows - #344

Merged
c-vigo merged 2 commits into
release/0.3.1from
bugfix/343-sync-manifest-finalize-changelog
Mar 17, 2026
Merged

c-vigo merged 2 commits into
release/0.3.1from
bugfix/343-sync-manifest-finalize-changelog

Conversation

@c-vigo

@c-vigo c-vigo commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

Description

This PR fixes release-branch CI drift caused by changelog mutations not being mirrored into assets/workspace/.devcontainer/CHANGELOG.md before API commits.

It adds explicit manifest sync steps to both release workflows so changelog writes and mirror writes stay atomic across prepare, finalize, and rollback paths.

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • .github/workflows/release.yml
    • Add Sync workspace manifest for finalized release step after changelog finalization/doc generation and before collecting file paths for API commit.
  • .github/workflows/prepare-release.yml
    • Add sync_manifest.py execution after changelog prepare and after stripping Unreleased on release branch.
    • Ensure API commit file lists include both CHANGELOG.md and assets/workspace/.devcontainer/CHANGELOG.md.
    • Sync workspace manifest in rollback path before rollback commit when changelog restore is needed.
  • assets/workspace/.devcontainer/CHANGELOG.md
    • Commit current mirrored state (## [0.3.1] - TBD) so branch starts from a synced baseline.

Changelog Entry

No changelog needed — this is a CI/workflow consistency fix on release automation and does not add user-facing runtime behavior.

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

  • Ran pre-commit checks on modified workflow files:
    • uv run pre-commit run --files .github/workflows/release.yml
    • uv run pre-commit run --files .github/workflows/prepare-release.yml
  • Verified clean working tree after commits and confirmed branch is ahead with only intended changes.

Checklist

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

Additional Notes

Refs: #343

@c-vigo c-vigo self-assigned this Mar 17, 2026
@c-vigo
c-vigo requested a review from Copilot March 17, 2026 14:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes release-branch CI drift by ensuring any CHANGELOG mutation in release automation is immediately mirrored into the workspace template (assets/workspace/.devcontainer/CHANGELOG.md) before API-based commits occur.

Changes:

  • Add sync_manifest.py sync steps in finalization (release.yml) so workspace mirror updates are included in the finalization commit.
  • Add sync_manifest.py sync steps in prepare/strip/rollback paths (prepare-release.yml) and include the mirrored changelog in API commit file lists.
  • Update the committed workspace mirrored changelog to a synced baseline for 0.3.1 (## [0.3.1] - TBD).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
assets/workspace/.devcontainer/CHANGELOG.md Updates the mirrored changelog content to match the release-branch canonical changelog state.
.github/workflows/release.yml Syncs the workspace manifest after changelog finalization so the finalization commit includes the mirrored changelog update.
.github/workflows/prepare-release.yml Syncs the workspace manifest after changelog prepare/strip and during rollback, and commits both canonical + mirrored changelog paths via API.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@c-vigo
c-vigo merged commit 451b936 into release/0.3.1 Mar 17, 2026
16 checks passed
@c-vigo
c-vigo deleted the bugfix/343-sync-manifest-finalize-changelog branch March 17, 2026 14:58
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.

2 participants