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

Fix release script, derive current version from pypi #1393

Merged
merged 3 commits into from
Feb 13, 2025

Conversation

nnarayen
Copy link
Contributor

@nnarayen nnarayen commented Feb 13, 2025

🚀 What

My recent attempt to improve the release flow had a slight bug which caused us to skip a version number. The root cause is we create RCs off the next intended version, which my script didn't account for. Instead of trying to bake that logic into the script, I actually think it's better to derive the current version from PyPI rather than try to parse it from pyproject.toml

💻 How

🔬 Testing

Created #1394

@nnarayen nnarayen requested review from marius-baseten and squidarth and removed request for marius-baseten February 13, 2025 16:05
@nnarayen nnarayen force-pushed the nikhil/fix-release-script branch from 36b45ec to 33a1624 Compare February 13, 2025 16:11
@@ -25,9 +25,15 @@ jobs:
run: |
curl -sSL https://install.python-poetry.org | python3 -

- name: Get current Truss version
Copy link
Contributor Author

@nnarayen nnarayen Feb 13, 2025

Choose a reason for hiding this comment

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

This should fetch the latest stable release (ignores rcs), regardless of yank status which is actually what we want. Therefore, it should be safe to rely on this as the current version number to bump from.

@nnarayen nnarayen mentioned this pull request Feb 13, 2025
# ./bump_version.sh minor # bumps the minor version (resets patch to 0)
# ./bump_version.sh 0.9.60 # bumps the patch (micro) version by default
# ./bump_version.sh 0.9.60 major # bumps the major version (resets minor and patch to 0)
# ./bump_version.sh 0.9.60 minor # bumps the minor version (resets patch to 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Add expected new versions, just to be explicit.

@nnarayen nnarayen merged commit e4b4fb9 into main Feb 13, 2025
5 checks passed
@nnarayen nnarayen deleted the nikhil/fix-release-script branch February 13, 2025 18:01
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