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: patch releases do not change the ABI #11499

Merged
merged 2 commits into from
May 4, 2023

Conversation

coryan
Copy link
Contributor

@coryan coryan commented May 4, 2023

This change is Reviewable

Comment on lines +23 to 26
#define GOOGLE_CLOUD_CPP_VCONCAT(Ma, Mi, Pa) v##Ma##_##Mi
#define GOOGLE_CLOUD_CPP_VEVAL(Ma, Mi, Pa) GOOGLE_CLOUD_CPP_VCONCAT(Ma, Mi, Pa)
#define GOOGLE_CLOUD_CPP_NS \
GOOGLE_CLOUD_CPP_VEVAL(GOOGLE_CLOUD_CPP_VERSION_MAJOR, \
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps we should also not pass GOOGLE_CLOUD_CPP_VERSION_PATCH to GOOGLE_CLOUD_CPP_VEVAL (and GOOGLE_CLOUD_CPP_VCONCAT)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Perhaps. <lawyerly>In an abundance of caution I decided to keep the macros backwards compatible, because it is not clear if they are part of the public API or not.</lawerly>. Thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ack.

But while it might be a little hazy whether GOOGLE_CLOUD_CPP_NS itself is public, hopefully VEVAL and VCONCAT are more clearly implementation details. We should have put "INTERNAL" in their names I guess.

In the end though, I'm happy with your abundance of caution if you're unconvinced.

@codecov
Copy link

codecov bot commented May 4, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.01 ⚠️

Comparison is base (28cc2ad) 93.81% compared to head (c713792) 93.81%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11499      +/-   ##
==========================================
- Coverage   93.81%   93.81%   -0.01%     
==========================================
  Files        1808     1808              
  Lines      163469   163469              
==========================================
- Hits       153360   153355       -5     
- Misses      10109    10114       +5     
Impacted Files Coverage Δ
google/cloud/version.h 100.00% <ø> (ø)

... and 5 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@coryan coryan marked this pull request as ready for review May 4, 2023 19:41
@coryan coryan requested a review from a team as a code owner May 4, 2023 19:41
@coryan coryan enabled auto-merge (squash) May 4, 2023 19:52
@coryan coryan merged commit f25c72d into googleapis:main May 4, 2023
@coryan coryan deleted the fix-patch-releases-do-not-change-ABI branch May 4, 2023 21:42
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