Skip to content

ci(scripts): drop bump_decdn's changelog step now every artifact is released - #151

Merged
thiras merged 1 commit into
mainfrom
fix/drop-bump-changelog-step
Oct 13, 2026
Merged

thiras merged 1 commit into
mainfrom
fix/drop-bump-changelog-step

Conversation

@thiras

@thiras thiras commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Why

The scripts job failed on main after the first releases (node-collection-v0.1.0, publisher-collection-v0.1.0, decdn-node-0.1.3). Three tests in scripts/tests/test_bump_decdn.py (the Changelog class) copy the real collection changelogs and expect an ## [Unreleased] section; the release commits turned those into dated ## [0.1.0] sections.

bump_decdn.py changelog only wrote a bump entry under [Unreleased], until each collection's first release (its own comment says so). release.sh writes every later section from PR titles. Every artifact is now released, so the step can never write again: removing it, not faking a fixture for dead code.

What

  • scripts/bump_decdn.py: drop the changelog subcommand, CHANGELOGS and changelog().
  • scripts/tests/test_bump_decdn.py: drop the Changelog tests. Keep test_leaves_the_changelogs (rewrite must not touch a changelog) with a test-local list of the three changelogs, now the chart's too, and plant the image digest as well as the sums digest.
  • scripts/open-decdn-bump.sh: drop the bump changelog call.
  • decdn_node and sponsord READMEs: drop the bump checklist's [Unreleased] entry text.

ci type so the title stays out of the collection changelogs (cliff.toml skips it): nothing here changes what an operator runs.

Checks

  • make test-scripts passes (only the UPSTREAM generators skipped).
  • bump_decdn unit tests: 18 OK. With the CHANGELOG.md filter removed from tracked_files, test_leaves_the_changelogs fails and nothing else does.
  • pre-commit clean on the changed files.

🤖 Generated with Claude Code

…eleased

The `scripts` job failed on main after the first releases: the Changelog
tests in scripts/tests/test_bump_decdn.py copy the real collection
changelogs and expected an [Unreleased] section, which the release commits
turned into dated 0.1.0 sections.

`bump_decdn.py changelog` only ever wrote an entry under [Unreleased],
until each collection's first release; release.sh writes every later
section from the PR titles. Both collections and the chart are released,
so the step can never write again. Remove the subcommand, its tests, its
call in open-decdn-bump.sh and the checklist text in the decdn_node and
sponsord READMEs.

test_leaves_the_changelogs stays, with its own list of the three
changelogs (now the chart's too), and also plants the image digest, so
rewrite's CHANGELOG.md exclusion is checked for both digests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 13, 2026 15:09

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.

🟢 Approval recommended

The obsolete path is removed consistently across implementation, caller, tests, and documentation.

0 open findings

What changed in this PR

Removes obsolete pre-release changelog handling now that all artifacts use release-generated changelogs.

Changes:

  • Removes the changelog command and invocation.
  • Updates tests to ensure pin rewrites leave all changelogs untouched.
  • Updates release-bump documentation.
File Description
scripts/​bump_decdn.py Removes changelog mutation support.
scripts/​open-decdn-bump.sh Stops invoking changelog updates.
scripts/​tests/​test_bump_decdn.py Removes obsolete tests and strengthens changelog preservation coverage.
ansible/​roles/​decdn_node/​README.md Updates the bump checklist.
ansible/​roles/​sponsord/​README.md Removes first-release instructions.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@thiras
thiras merged commit 9d95091 into main Oct 13, 2026
55 checks passed
@thiras
thiras deleted the fix/drop-bump-changelog-step branch October 13, 2026 15:26
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