Skip to content

chore(cargo-anvil): release v0.9.0 - #164

Merged
martin-kolinek merged 1 commit into
mainfrom
u/st-dev-gh/anvil-0.9
Sep 8, 2026
Merged

chore(cargo-anvil): release v0.9.0#164
martin-kolinek merged 1 commit into
mainfrom
u/st-dev-gh/anvil-0.9

Conversation

@st-dev-gh

@st-dev-gh st-dev-gh commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

[copilot speaking]

Summary

Release cargo-anvil 0.9.0 from the complete set of cargo-anvil changes merged since the 0.8.0 tag, repair the missing 0.8.0 changelog history, and add a reproducible changelog-backfill mode to the release script.

cargo-anvil 0.9.0

The generated 0.9.0 changelog contains every commit touching the crate since cargo-anvil-v0.8.0:

Bug fixes

Performance

Build system

The crate manifest, workspace lockfile, generated crate README, and .anvil.lock metadata are updated for 0.9.0. Applying cargo-anvil records tool_version = "0.9.0" while preserving the catalog checksum generated by current main.

Reconstructed 0.8.0 history

The cargo-anvil-v0.8.0 tag existed without a corresponding changelog section. This PR reconstructs that section from the authoritative range:

cargo-anvil-v0.7.0..cargo-anvil-v0.8.0

The section records the breaking ADO stage-identification change (#154), the aggregate CI gate (#158), and container-based MSRV resolution (#155).

Changelog backfill support

release-crate.ps1 now supports:

.\scripts\release-crate.ps1 <crate> -BackfillVersion <version>

Backfill mode:

  • requires an existing target release tag and preceding semantic-version tag
  • derives the commit range from those tags
  • reuses Conventional Commit grouping and PR-link formatting
  • inserts or replaces the version section in semantic-version order
  • changes only the crate changelog
  • produces stable output when repeated
  • rejects combination with -Version or -Bump

The normal release path also no longer fabricates an “Initial release” section when an established changelog contains a historical gap.

Validation

  • cargo-anvil dry-run reports no generated repository drift
  • formatting and spelling checks pass
  • crate READMEs were regenerated
  • repeated backfill produces identical output
  • invalid tags and conflicting release options are rejected

Copilot AI lite review requested due to automatic review settings September 7, 2026 13:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The changes are consistent with a release PR (version/lock/README regeneration) and the new -BackfillVersion mode is implemented with clear validation and bounded behavior.

Pull request overview

This PR prepares the cargo-anvil v0.9.0 release by updating crate/version artifacts, regenerating generated docs, and enhancing the release automation script to support reconstructing missing changelog entries from existing git tags.

Changes:

  • Add an idempotent -BackfillVersion mode to scripts/release-crate.ps1 to reconstruct an already-tagged version’s changelog section from the previous semver tag through the target tag.
  • Regenerate crates/cargo-anvil/CHANGELOG.md (including backfilled 0.8.0) and refresh generated README link/version metadata for 0.9.0.
  • Bump cargo-anvil to 0.9.0 and update Cargo.lock accordingly.
File summaries
File Description
scripts/release-crate.ps1 Adds -BackfillVersion flow and improves changelog “initial release” detection behavior when there are version gaps.
README.md Documents how to use -BackfillVersion to reconstruct a missing changelog section for a tagged release.
crates/cargo-anvil/README.md Regenerated README metadata/links to point at 0.9.0 docs.
crates/cargo-anvil/CHANGELOG.md Adds Unreleased, records 0.9.0, and includes reconstructed 0.8.0 section.
crates/cargo-anvil/Cargo.toml Bumps crate version from 0.8.0 to 0.9.0.
Cargo.lock Updates the locked cargo-anvil package version to 0.9.0.
Review details
  • Files reviewed: 5/6 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov-commenter

Codecov Comments Bot (codecov-commenter) commented Sep 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.5%. Comparing base (26e5c60) to head (8edc524).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##            main    #164     +/-   ##
=======================================
- Coverage   97.5%   97.5%   -0.1%     
=======================================
  Files        300     300             
  Lines      68538   68538             
=======================================
- Hits       66876   66873      -3     
- Misses      1662    1665      +3     
Flag Coverage Δ
linux 97.5% <ø> (ø)
linux-arm 97.5% <ø> (+<0.1%) ⬆️
scheduled ?
windows 97.7% <ø> (+<0.1%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@st-dev-gh
st-dev-gh force-pushed the u/st-dev-gh/anvil-0.9 branch from b9d4bd2 to 3cbf2b1 Compare September 7, 2026 15:02
Copilot AI review requested due to automatic review settings September 7, 2026 15:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The changes are consistent with the stated release goals, and the new backfill workflow is clearly validated, isolated, and documented.

Review details
  • Files reviewed: 5/7 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@st-dev-gh
st-dev-gh enabled auto-merge (squash) September 7, 2026 16:35

@Vaiz Evgenii (Vaiz) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

st-dev-gh, could we merge #159 & #162 first?

@martintmk

Copy link
Copy Markdown
Member

And also this one:

#166

(blocks our oxidizer PRs)

@Vaiz

Copy link
Copy Markdown
Contributor

and #167 :D

@Vaiz Evgenii (Vaiz) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you can ignore #162

@st-dev-gh
st-dev-gh marked this pull request as draft September 8, 2026 14:14
auto-merge was automatically disabled September 8, 2026 14:14

Pull request was converted to draft

@st-dev-gh

Copy link
Copy Markdown
Contributor Author

st-dev-gh, could we merge #159 & #162 first?

Let's include #159.

#162 is draft again and I think it can wait for another release-train if needed.

@Vaiz

Copy link
Copy Markdown
Contributor

#159 has been merged

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ad83c731-5326-43e7-84fe-3aef46ef031f
@st-dev-gh
st-dev-gh force-pushed the u/st-dev-gh/anvil-0.9 branch from 3cbf2b1 to 8edc524 Compare September 8, 2026 15:49
@st-dev-gh
st-dev-gh marked this pull request as ready for review September 8, 2026 16:07
Copilot AI review requested due to automatic review settings September 8, 2026 16:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

It modifies the release script and multiple release-critical artifacts (versions, lockfiles, changelog, and generated documentation), which warrants final human verification before merging.

Review details
  • Files reviewed: 5/7 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@martin-kolinek
martin-kolinek enabled auto-merge (squash) September 8, 2026 16:58
@martin-kolinek
martin-kolinek merged commit 3bf8d54 into main Sep 8, 2026
49 of 53 checks passed
@martin-kolinek
martin-kolinek deleted the u/st-dev-gh/anvil-0.9 branch September 8, 2026 17:25
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.

6 participants