Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: update-versions bug fixes #98010

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

renatolabs
Copy link
Contributor

This fixes two issues found in the update-versions automation found while attempting to run it in the process of releasing 22.2.6.

  • the isLatestStableBranch function would only consider the current released version to be the latest if it is greater than the last known release. However, this automation is run after the release is published and the corresponding tag created, so the comparison should actually be that the released version be greater than or equal to the latest release.

  • the set-cockroach-version part of the update should only run if we are releasing something v23 or newer. This updates the logic to ignore version.txt related updates otherwise.

Epic: none

Release note: None

This fixes two issues found in the `update-versions` automation found
while attempting to run it in the process of releasing 22.2.6.

* the `isLatestStableBranch` function would only consider the current
released version to be the latest if it is greater than the last known
release. However, this automation is run after the release is
published and the corresponding tag created, so the comparison should
actually be that the released version be greater than or equal to the
latest release.

* the `set-cockroach-version` part of the update should only run if we
are releasing something v23 or newer. This updates the logic to ignore
`version.txt` related updates otherwise.

Epic: none

Release note: None
@renatolabs renatolabs requested a review from a team as a code owner March 3, 2023 22:38
@blathers-crl
Copy link

blathers-crl bot commented Mar 3, 2023

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@renatolabs
Copy link
Contributor Author

@renatolabs
Copy link
Contributor Author

@rail friendly ping. Could you take a look when you get the chance, please?

@rail
Copy link
Member

rail commented Mar 10, 2023

Sure!

@rail rail self-requested a review March 10, 2023 21:23
@renatolabs
Copy link
Contributor Author

bors r=rail

TFTR!

@craig
Copy link
Contributor

craig bot commented Mar 10, 2023

Build succeeded:

@craig craig bot merged commit 77674ed into cockroachdb:master Mar 10, 2023
@renatolabs renatolabs deleted the rc/update-versions-fixes branch April 28, 2023 18:56
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.

3 participants