Skip to content

fix: Don't fail promote.yml when the RC version was never bumped - #347

Merged
scouten-adobe merged 1 commit into
mainfrom
fix-promote-rc-version-reset
Sep 22, 2026
Merged

scouten-adobe merged 1 commit into
mainfrom
fix-promote-rc-version-reset

Conversation

@scouten-adobe

Copy link
Copy Markdown
Collaborator

What

The Force-push baked train onto stable step in promote.yml unconditionally ran git commit -am ... after the version-reset step, assuming the reset always produces a diff.

Why

When a release-candidate branch's Cargo.toml version was never bumped away from the last published version (e.g. release-rc.yml didn't run when the branch was cut — as happened with 0.28.0-rc, whose version stayed at 0.27.20), the reset step is a no-op, so git commit -am fails with "nothing to commit, working tree clean" and aborts the whole promotion.

This caused https://github.com/contentauth/c2patool/actions/runs/35767798022/job/106881644896 to fail.

Fix

Only create the reset commit when the reset actually changed something; otherwise just force-push the candidate's existing commits onto stable as-is.

This needs to be backported to the 0.28.0-rc branch afterward so the pending promotion can proceed.

Co-authored-by: Copilot App [email protected]

The "Force-push baked train onto stable" step unconditionally created
a commit for the version reset done in the previous step. When the RC
branch's Cargo.toml version was never bumped away from the last
published version (e.g. because release-rc.yml didn't run when the
branch was cut), the reset is a no-op and `git commit -am` fails with
"nothing to commit", aborting the whole promotion.

Skip the commit in that case and just force-push the candidate's
existing commits onto stable as-is; the version reset only needs its
own commit when it actually changes something.

Co-authored-by: Copilot App <[email protected]>
@scouten-adobe scouten-adobe changed the title fix: don't fail promote.yml when the RC version was never bumped fix: Don't fail promote.yml when the RC version was never bumped Sep 22, 2026
@scouten-adobe
scouten-adobe merged commit c72759f into main Sep 22, 2026
28 of 29 checks passed
@scouten-adobe
scouten-adobe deleted the fix-promote-rc-version-reset branch September 22, 2026 19:13
scouten-adobe added a commit that referenced this pull request Sep 22, 2026
The "Force-push baked train onto stable" step unconditionally created
a commit for the version reset done in the previous step. When the RC
branch's Cargo.toml version was never bumped away from the last
published version (e.g. because release-rc.yml didn't run when the
branch was cut), the reset is a no-op and `git commit -am` fails with
"nothing to commit", aborting the whole promotion.

Skip the commit in that case and just force-push the candidate's
existing commits onto stable as-is; the version reset only needs its
own commit when it actually changes something.

Co-authored-by: Copilot App <[email protected]>
@codecov

codecov Bot commented Sep 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.32%. Comparing base (67ba94e) to head (c8c84bd).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #347   +/-   ##
=======================================
  Coverage   72.32%   72.32%           
=======================================
  Files           4        4           
  Lines        1066     1066           
=======================================
  Hits          771      771           
  Misses        295      295           

☔ 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.

This was referenced Sep 22, 2026
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.

1 participant