Skip to content

chore(ci): handle version degeneracy nicely#1610

Merged
JP-Ellis merged 1 commit into
mainfrom
chore/handle-version-degeneracy
Jun 2, 2026
Merged

chore(ci): handle version degeneracy nicely#1610
JP-Ellis merged 1 commit into
mainfrom
chore/handle-version-degeneracy

Conversation

@JP-Ellis
Copy link
Copy Markdown
Member

@JP-Ellis JP-Ellis commented Jun 2, 2026

📝 Summary

If there are no substantive commits, git cliff doesn't bump the version, but the script worked on the assumption there is always a change.

🚨 Breaking Changes

🔥 Motivation

To avoid having red builds (despite not being of any relevance to the package).

🔨 Test Plan

🔗 Related issues/PRs

If there are no substantive commits, git cliff doesn't bump the version,
but the script worked on the assumption there is always a change.

Signed-off-by: JP-Ellis <josh@jpellis.me>
Copilot AI review requested due to automatic review settings June 2, 2026 07:02
@JP-Ellis JP-Ellis self-assigned this Jun 2, 2026
@JP-Ellis JP-Ellis enabled auto-merge (rebase) June 2, 2026 07:03
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74%. Comparing base (7e45e2a) to head (6dbab1a).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@         Coverage Diff          @@
##           main   #1610   +/-   ##
====================================
  Coverage    74%     74%           
====================================
  Files        36      36           
  Lines      4012    4012           
====================================
  Hits       2984    2984           
  Misses     1028    1028           
Flag Coverage Δ
examples 37% <ø> (ø)
tests 73% <ø> (ø)

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

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

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the release automation to treat “version degeneracy” from git cliff --bumped-version as a no-op: when there are no substantive unreleased commits, git cliff may return the currently released version instead of exiting non-zero, and the script now handles that gracefully to avoid failing CI runs.

Changes:

  • Extend compute_semver_version() to return None when git cliff outputs the same version currently recorded in pyproject.toml.
  • Update the method docstring to document the additional “no-op” condition.

@JP-Ellis JP-Ellis merged commit 4a8a177 into main Jun 2, 2026
42 checks passed
@JP-Ellis JP-Ellis deleted the chore/handle-version-degeneracy branch June 2, 2026 07:06
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