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

Will robolectric-bazel follow KSP's release rule for extra bazel related patch version? #95

Closed
utzcoz opened this issue Feb 15, 2024 · 17 comments

Comments

@utzcoz
Copy link
Member

utzcoz commented Feb 15, 2024

See #92, #92 (comment).

This idea was brought by @Bencodes , and it looks great to me, and sometimes we need to release new versions for bazel related patches only.

@utzcoz
Copy link
Member Author

utzcoz commented Feb 15, 2024

What do you think about it @brettchabot @hoisie ?

@Bencodes
Copy link
Collaborator

Bencodes commented Mar 1, 2024

Shall we press forward with this? Easy enough to roll back to the old versioning if we decide in the future that it's not worth it or adds too much overhead.

@utzcoz
Copy link
Member Author

utzcoz commented Mar 1, 2024

@Bencodes I think this new version schema proposal is great. But I think it might require extra approvals from Robolectric's leader @hoisie @brettchabot . If they don't response, I will ping them with email again this weekend.

@hoisie
Copy link

hoisie commented Mar 1, 2024

This all SGTM, thanks @Bencodes for taking the lead on this. I am happy to proceed.

@utzcoz
Copy link
Member Author

utzcoz commented Mar 1, 2024

@hoisie Thanks for showing your suggestion. @Bencodes Maybe we can start to land a new version with this new schema.

@Bencodes
Copy link
Collaborator

Bencodes commented Mar 8, 2024

Just pushed a release with the new versioning. Thanks @hoisie and @utzcoz!

@Bencodes Bencodes closed this as completed Mar 8, 2024
@Bencodes Bencodes reopened this Mar 8, 2024
@Bencodes
Copy link
Collaborator

Bencodes commented Mar 8, 2024

Found an issue with this approach. The BCR treats the -1.0.0 as a pre-release rather than a new release.

bazelbuild/bazel-central-registry#1595 (comment)

@Bencodes
Copy link
Collaborator

Bencodes commented Mar 8, 2024

Looking at the tests this versioning strategy will work as expected if we clean-cut to a new major release. But this doesn't solve the immediate problem of us needing to do a version bump on the Bazel rules.

https://github.com/bazelbuild/bazel-central-registry/blob/ddc9cd60dcd11a65e200dd2275c4babd837fe928/tools/version_test.py#L8

@utzcoz
Copy link
Member Author

utzcoz commented Mar 9, 2024

@Bencodes Maye we can use the version like 4.11.1.1?

@utzcoz
Copy link
Member Author

utzcoz commented Mar 9, 2024

@Bencodes
Copy link
Collaborator

4.11.1.1 would work, it just has more opportunity to conflict with the upstream Robolectric releases, which wouldn't be ideal and potentially cause confusion.

@utzcoz
Copy link
Member Author

utzcoz commented Mar 21, 2024

@Bencodes I think Robolectric will bump to Robolectric 4.11.2 instead of 4.11.1.1 for a minor patch version. Maybe it is safe to use this patch format in Bazel library?

@Bencodes
Copy link
Collaborator

@utzcoz that works for me!

@utzcoz
Copy link
Member Author

utzcoz commented Mar 22, 2024

@hoisie Can we confirm that the Robolectric maven only uses three version numbers, and the last one is left to Robolectric Bazel? It's better we can give a confirmation for this decision.

@utzcoz
Copy link
Member Author

utzcoz commented Mar 31, 2024

@Bencodes I give my +1 for new versioning. So we can use new versioning for later patch version.

@utzcoz
Copy link
Member Author

utzcoz commented Dec 3, 2024

I will release 4.14.1.1 for #121 based on new patch versioning.

@utzcoz
Copy link
Member Author

utzcoz commented Dec 3, 2024

I close this issue as I think we reached a consensus for bazel's patch version, and 4.14.1.1 is an example. Anyone can reopen this issue, if you want to discuss more with a better solution.

@utzcoz utzcoz closed this as completed Dec 3, 2024
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

No branches or pull requests

3 participants