Skip to content

RATIS-2437. make_rc.sh version check prevents releasing subsequent RCs#1376

Open
OneSizeFitsQuorum wants to merge 1 commit intoapache:masterfrom
OneSizeFitsQuorum:jira2437
Open

RATIS-2437. make_rc.sh version check prevents releasing subsequent RCs#1376
OneSizeFitsQuorum wants to merge 1 commit intoapache:masterfrom
OneSizeFitsQuorum:jira2437

Conversation

@OneSizeFitsQuorum
Copy link
Contributor

Signed-off-by: OneSizeFitsQuorum <tanxinyu@apache.org>
echo 'ratis-bom not updated by `mvn versions:set`' >&2
exit 1
fi
git commit --allow-empty -a -m "Change version for the version $RATISVERSION $RC"
Copy link
Contributor

Choose a reason for hiding this comment

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

If version is already set, this empty commit is unnecessary. So I guess we can have two cases:

  • versions:set introduces change => expect change of ratis-bom and do commit
  • otherwise => skip both check and commit

Copy link
Contributor Author

@OneSizeFitsQuorum OneSizeFitsQuorum Mar 14, 2026

Choose a reason for hiding this comment

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

Well, we need a commit to contains messages such as Change version for the version 3.2.2 rc2 even if nothing in pom has changed, that's why we need a --allow-empty flag.
You could see 45a30d8

Copy link
Contributor

Choose a reason for hiding this comment

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

I see the empty commit, but I think it's unnecessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess it’s fine either way, but it’s definitely clearer with it. Otherwise, the latest commits might look like they're still on RC1, and we won't know if that's a mistake or not.

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