Skip to content

fix: return warnings on promoting lower semver verisonLabel#750

Open
nvanthao wants to merge 3 commits into
mainfrom
gerard/sc-136313/promote-release-lower-semver
Open

fix: return warnings on promoting lower semver verisonLabel#750
nvanthao wants to merge 3 commits into
mainfrom
gerard/sc-136313/promote-release-lower-semver

Conversation

@nvanthao
Copy link
Copy Markdown
Member

@nvanthao nvanthao commented May 28, 2026

Fix: https://app.shortcut.com/replicated/story/136313/cli-reports-success-when-channel-promotion-is-silently-rejected-by-semver-ordering

We still allow promoting release with lower semver than latest release in semver channel, e.g. for patch release.
Just show a warning messages if any since the release get promoted but not gonna be the latest release due to semver order.

e.g.

replicated release promote 21 3DFXkTmfxiUyocBEU9TFEpw7w3w

Warning: Release 0.0.1 was promoted to channel "Unstable", but 6.0.0 remains the latest release because the channel is sorted by semver.
REPLICATED_OUTPUT=json replicated release promote 21 3DFXkTmfxiUyocBEU9TFEpw7w3w
{
  "channel": "3DFXkTmfxiUyocBEU9TFEpw7w3w",
  "release_sequence": 21,
  "version_label": "",
  "warnings": [
    "Release 0.0.1 was promoted to channel \"Unstable\", but 6.0.0 remains the latest release because the channel is sorted by semver."
  ]
}
replicated release create --version 5.4.0 --promote Unstable

  • Packaging charts ✓
  • Copying packaged charts to staging directory ✓
  • Collecting manifest files ✓
  • Copying manifests to staging directory ✓
  • Reading manifests from staging directory ✓
  • Creating Release ✓
    • SEQUENCE: 23
  • Promoting ✓
    • Warning: Release 5.4.0 was promoted to channel "Unstable", but 6.0.0 remains the latest release because the channel is sorted by semver.

@nvanthao nvanthao added the bug label May 28, 2026
Comment thread cli/cmd/release_create.go Outdated
Comment thread cli/cmd/release_promote.go Outdated
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit a051a72. Configure here.

Comment thread cli/cmd/release_promote.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant