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

Simplify gem versioning #210

Merged
merged 2 commits into from
May 13, 2024
Merged

Simplify gem versioning #210

merged 2 commits into from
May 13, 2024

Conversation

carlosantoniodasilva
Copy link
Member

This builds on top of #209, and is based on our discussion from a previous attempt in #208 (comment)

We currently keep gems in sync and bump all of them together to improve the experience and facilitate maintenance. However that required manually syncing versions before a release, and we were looking for ways to automate that step.

Instead, we're going to try eliminating the need to sync versions by having a single VERSION string, managed by judoscale-ruby, which gets automatically bumped by release-please for new releases. The gemspec and adapters were updated to refer to that single constant / source of truth, and gems will be built based on that, meaning bumping it will automatically work across all gems for new releases going forward.

It does make the fact that we report the same adapter_version across all adapters a bit unnecessary, but it's not much overhead and it's consistent with other adapters. The only drawback is in case we decide to circle back on the decision to use the same version across the board, but we'll cross that bridge if it gets here.

Copy link
Collaborator

@adamlogic adamlogic left a comment

Choose a reason for hiding this comment

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

So much simpler. 💯

Base automatically changed from ca-gemspec-improvements to main May 13, 2024 13:30
Rely on a single VERSION constant from judoscale-ruby, require that
relatively to the specific lib gemspec so we can properly build the gem
when releasing (which gets generated automatically via release-please).

This means we don't need to "sync" gem versions anymore manually, or try
to automate that as part of our release-please workflows, since there's
a single source of truth for the version, and all libs share / release
the same version anyway, even if there are no changes, let's just always
require / use that single version file.
By keeping a single VERSION string/file, we don't need to sync versions
across gems anymore.
@carlosantoniodasilva carlosantoniodasilva merged commit efc61b6 into main May 13, 2024
126 checks passed
@carlosantoniodasilva carlosantoniodasilva deleted the ca-simplify-versioning branch May 13, 2024 13:34
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