-
Notifications
You must be signed in to change notification settings - Fork 438
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
bump to gRPC v1.48.1 for bazel CIs #1786
Changes from 1 commit
4c3161f
d3a902a
d92975a
8e8a82a
139d7bc
238fe46
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ function run_benchmarks | |
|
||
[ -z "${BENCHMARK_DIR}" ] && export BENCHMARK_DIR=$HOME/benchmark | ||
mkdir -p $BENCHMARK_DIR | ||
bazel $BAZEL_STARTUP_OPTIONS build $BAZEL_OPTIONS_ASYNC -c opt -- \ | ||
bazel $BAZEL_STARTUP_OPTIONS build --cxxopt=-std=c++14 $BAZEL_OPTIONS_ASYNC -c opt -- \ | ||
$(bazel query 'attr("tags", "benchmark_result", ...)') | ||
echo "" | ||
echo "Benchmark results in $BENCHMARK_DIR:" | ||
|
@@ -59,7 +59,8 @@ mkdir -p "${BUILD_DIR}" | |
[ -z "${PLUGIN_DIR}" ] && export PLUGIN_DIR=$HOME/plugin | ||
mkdir -p "${PLUGIN_DIR}" | ||
|
||
BAZEL_OPTIONS="--copt=-DENABLE_LOGS_PREVIEW --copt=-DENABLE_TEST --copt=-DENABLE_METRICS_EXEMPLAR_PREVIEW" | ||
BAZEL_OPTIONS_DEFAULT="--copt=-DENABLE_LOGS_PREVIEW --copt=-DENABLE_TEST --copt=-DENABLE_METRICS_EXEMPLAR_PREVIEW" | ||
BAZEL_OPTIONS="--cxxopt=-std=c++14 $BAZEL_OPTIONS_DEFAULT" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I understand the PR description correctly, we will add the CI test for gRPC-1.46.4 ( i.e building with C++11) in separate PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes #1787, gRPC with C++11 needed to be defined in the main branch first. |
||
|
||
BAZEL_TEST_OPTIONS="$BAZEL_OPTIONS --test_output=errors" | ||
|
||
|
@@ -298,9 +299,13 @@ elif [[ "$1" == "bazel.valgrind" ]]; then | |
bazel $BAZEL_STARTUP_OPTIONS build $BAZEL_OPTIONS_ASYNC //... | ||
bazel $BAZEL_STARTUP_OPTIONS test --run_under="/usr/bin/valgrind --leak-check=full --error-exitcode=1 --suppressions=\"${SRC_DIR}/ci/valgrind-suppressions\"" $BAZEL_TEST_OPTIONS_ASYNC //... | ||
exit 0 | ||
elif [[ "$1" == "bazel.e2e" ]]; then | ||
cd examples/e2e | ||
bazel $BAZEL_STARTUP_OPTIONS build $BAZEL_OPTIONS_DEFAULT //... | ||
exit 0 | ||
elif [[ "$1" == "benchmark" ]]; then | ||
[ -z "${BENCHMARK_DIR}" ] && export BENCHMARK_DIR=$HOME/benchmark | ||
bazel $BAZEL_STARTUP_OPTIONS build $BAZEL_OPTIONS_ASYNC -c opt -- \ | ||
bazel $BAZEL_STARTUP_OPTIONS build --cxxopt=-std=c++14 $BAZEL_OPTIONS_ASYNC -c opt -- \ | ||
$(bazel query 'attr("tags", "benchmark_result", ...)') | ||
echo "" | ||
echo "Benchmark results in $BENCHMARK_DIR:" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
# include "opentelemetry/sdk/trace/tracer_provider.h" | ||
# include "opentelemetry/trace/provider.h" | ||
|
||
# include <google/protobuf/message_lite.h> | ||
# include <gtest/gtest.h> | ||
# include "gmock/gmock.h" | ||
|
||
|
@@ -466,6 +467,7 @@ TEST_F(OtlpHttpExporterTestPeer, ExportJsonIntegrationTestSync) | |
TEST_F(OtlpHttpExporterTestPeer, ExportJsonIntegrationTestAsync) | ||
{ | ||
ExportJsonIntegrationTestAsync(); | ||
google::protobuf::ShutdownProtobufLibrary(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is protobuf library loaded explicitly? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This call is needed to delete any global objects that were allocated by the Protocol Buffer: https://developers.google.com/protocol-buffers/docs/cpptutorial There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for sharing the doc. It looks optional in the doc. Also wondering whether live global objects should be considered as leak. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes it is optional, here we need it to prevent the leak report though. |
||
} | ||
# endif | ||
|
||
|
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.
repository.bzl is already using:
strip_prefix = "abseil-cpp-20220623.1",
Per the abseil release notes:
https://github.com/abseil/abseil-cpp/releases/tag/20220623.1
this is the latest abseil version using C++11.
Why do we need to use an older version ?
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.
The latest gRPC can not work with a old abseil-cpp , I think we can use a old gRPC and abseil-cpp with legacy toolchain and the latest version with modern toolchain.
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.
So, grpc-1.46.4 is the last gRPC release supporting C++11, which is dependent on abseil-cpp-20211102.0.
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.
gRPC 1.46.4 is the last with C++11 support which has dependency on abseil-cpp-20211102.0. But it seems it works with the latest abseil as well:
https://github.com/open-telemetry/opentelemetry-cpp/actions/runs/3516378955/jobs/5892867609
I'm going to remove it.