-
Notifications
You must be signed in to change notification settings - Fork 371
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
feat!: add a dep on Abseil #4087
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4087 +/- ##
=======================================
Coverage 93.34% 93.34%
=======================================
Files 834 835 +1
Lines 64928 64884 -44
=======================================
- Hits 60607 60566 -41
+ Misses 4321 4318 -3
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 16 of 17 files at r1, 2 of 2 files at r2.
Reviewable status: 18 of 19 files reviewed, all discussions resolved
.clang-format, line 17 at r2 (raw file):
- Regex: '^\"google/cloud/' # project includes should sort first Priority: 500 - Regex: '^\"'
FYI, by including abseil using #include "abseil/...."
we are missing out on this:
That allows us to increase the warning level in our code, even if our dependencies are not ready.
super/CMakeLists.txt, line 55 at r2 (raw file):
set(GOOGLE_CLOUD_CPP_DEPENDENCIES_LIST abseil-cpp-project
FYI, when we upgrade grpc-project
we need to change its deps to add abseil-cpp-project
to them.
Including Abseil headers with angle brackets breaks the bazel builds. I know we talked about making this work with them, but it was either forgotten or it was decided not to do it. If our build breaks because of warnings in Abseil headers, we could file issues and escalate to them. They'll likely either need to fix the breakages quickly or perhaps enable angle-bracket includes. Or we could avoid the dep until they enable angle-bracket includes of their headers (Note: we currently don't support angle-bracket includes of our headers in bazel builds either). WDYT?
Gotcha. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 17 files at r1.
Reviewable status: complete! all files reviewed, all discussions resolved
.clang-format, line 17 at r2 (raw file):
Previously, devjgm (Greg Miller) wrote…
Including Abseil headers with angle brackets breaks the bazel builds. I know we talked about making this work with them, but it was either forgotten or it was decided not to do it.
If our build breaks because of warnings in Abseil headers, we could file issues and escalate to them. They'll likely either need to fix the breakages quickly or perhaps enable angle-bracket includes.
Or we could avoid the dep until they enable angle-bracket includes of their headers (Note: we currently don't support angle-bracket includes of our headers in bazel builds either).
WDYT?
SGTM. FYI, I am preparing a PR to start using -Werror
on Windows (we were not, it finds some useful stuff).
Fixes: #2309
Adds a dep on Abseil. Uses
absl::make_unique
in one test in Spanner just to show that the Abseil dep is working in all the builds.This change is