Skip to content

Commit

Permalink
Update Envoy to fbc6ee2 (Sep 08, 2024) (#1219)
Browse files Browse the repository at this point in the history
- Update the ENVOY_COMMIT and ENVOY_SHA in bazel/repositories.bzl to the latest Envoy's commit.
- Update .bazelrc to envoyproxy/envoy#35978
- Update ci/run_envoy_docker.sh to envoyproxy/envoy#35926 and envoyproxy/envoy#35660
- Update tools/gen_compilation_database.py to envoyproxy/envoy#36018 and envoyproxy/envoy#35811
- Update source/client/process_impl.cc to match interface change in envoyproxy/envoy#35912

Signed-off-by: Tom Zhang <[email protected]>
  • Loading branch information
tomjzzhang committed Sep 10, 2024
1 parent bb29935 commit d8407d9
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,14 @@ build:rbe-toolchain-clang --platforms=@envoy_build_tools//toolchains:rbe_linux_c
build:rbe-toolchain-clang --host_platform=@envoy_build_tools//toolchains:rbe_linux_clang_platform
build:rbe-toolchain-clang --crosstool_top=@envoy_build_tools//toolchains/configs/linux/clang/cc:toolchain
build:rbe-toolchain-clang --extra_toolchains=@envoy_build_tools//toolchains/configs/linux/clang/config:cc-toolchain
build:rbe-toolchain-clang --action_env=CC=clang --action_env=CXX=clang++ --action_env=PATH=/usr/sbin:/usr/bin:/sbin:/bin:/opt/llvm/bin
build:rbe-toolchain-clang --action_env=CC=clang --action_env=CXX=clang++

build:rbe-toolchain-clang-libc++ --config=rbe-toolchain
build:rbe-toolchain-clang-libc++ --platforms=@envoy_build_tools//toolchains:rbe_linux_clang_libcxx_platform
build:rbe-toolchain-clang-libc++ --host_platform=@envoy_build_tools//toolchains:rbe_linux_clang_libcxx_platform
build:rbe-toolchain-clang-libc++ --crosstool_top=@envoy_build_tools//toolchains/configs/linux/clang_libcxx/cc:toolchain
build:rbe-toolchain-clang-libc++ --extra_toolchains=@envoy_build_tools//toolchains/configs/linux/clang_libcxx/config:cc-toolchain
build:rbe-toolchain-clang-libc++ --action_env=CC=clang --action_env=CXX=clang++ --action_env=PATH=/usr/sbin:/usr/bin:/sbin:/bin:/opt/llvm/bin
build:rbe-toolchain-clang-libc++ --action_env=CC=clang --action_env=CXX=clang++
build:rbe-toolchain-clang-libc++ --action_env=CXXFLAGS=-stdlib=libc++
build:rbe-toolchain-clang-libc++ --action_env=LDFLAGS=-stdlib=libc++
build:rbe-toolchain-clang-libc++ --define force_libcpp=enabled
Expand Down
4 changes: 2 additions & 2 deletions bazel/repositories.bzl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

ENVOY_COMMIT = "b661f52c82218f1d1159ed1c5bd4c6436649d350"
ENVOY_SHA = "08c88e49d00d46380419a3d81901d14927a6fc126abf3945392dda9afacd55f9"
ENVOY_COMMIT = "fbc6ee2ed5b858c842999c688504fd133008868a"
ENVOY_SHA = "5afbcfb875d41f7ecf7851b04ba43d1e1810bc1bc5a0da813cd82a0ee579ad2f"

HDR_HISTOGRAM_C_VERSION = "0.11.2" # October 12th, 2020
HDR_HISTOGRAM_C_SHA = "637f28b5f64de2e268131e4e34e6eef0b91cf5ff99167db447d9b2825eae6bad"
Expand Down
6 changes: 6 additions & 0 deletions ci/run_envoy_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ VOLUMES=(
-v "${ENVOY_DOCKER_BUILD_DIR}":"${BUILD_DIR_MOUNT_DEST}"
-v "${SOURCE_DIR}":"${SOURCE_DIR_MOUNT_DEST}")

if [[ -n "$MOUNT_GPG_HOME" ]]; then
VOLUMES+=(
-v "${HOME}/.gnupg:${BUILD_DIR_MOUNT_DEST}/.gnupg")
fi

if ! is_windows; then
export BUILD_DIR="${BUILD_DIR_MOUNT_DEST}"
fi
Expand Down Expand Up @@ -155,6 +160,7 @@ docker run --rm \
-e ENVOY_PUBLISH_DRY_RUN \
-e ENVOY_REPO \
-e ENVOY_TARBALL_DIR \
-e ENVOY_GEN_COMPDB_OPTIONS \
-e SYSTEM_PULLREQUEST_PULLREQUESTNUMBER \
-e GCS_ARTIFACT_BUCKET \
-e GITHUB_REF_NAME \
Expand Down
6 changes: 4 additions & 2 deletions source/client/process_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,9 @@ class ClusterManagerFactory : public Envoy::Upstream::ProdClusterManagerFactory
const Envoy::Network::ConnectionSocket::OptionsSharedPtr& options,
const Envoy::Network::TransportSocketOptionsConstSharedPtr& transport_socket_options,
Envoy::TimeSource& time_source, Envoy::Upstream::ClusterConnectivityState& state,
Envoy::Http::PersistentQuicInfoPtr& quic_info) override {
Envoy::Http::PersistentQuicInfoPtr& quic_info,
Envoy::OptRef<Envoy::Quic::EnvoyQuicNetworkObserverRegistry> network_observer_registry)
override {
// This changed in
// https://github.com/envoyproxy/envoy/commit/93ee668a690d297ab5e8bd2cbf03771d852ebbda ALPN may
// be set up to negotiate a protocol, in which case we'd need a HttpConnPoolImplMixed. However,
Expand Down Expand Up @@ -545,7 +547,7 @@ class ClusterManagerFactory : public Envoy::Upstream::ProdClusterManagerFactory
}
return Envoy::Upstream::ProdClusterManagerFactory::allocateConnPool(
dispatcher, host, priority, protocols, alternate_protocol_options, options,
transport_socket_options, time_source, state, quic_info);
transport_socket_options, time_source, state, quic_info, network_observer_registry);
}

void setConnectionReuseStrategy(
Expand Down
8 changes: 4 additions & 4 deletions tools/gen_compilation_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ def generate_compilation_database(args):
if args.exclude_contrib:
source_dir_targets.remove("//contrib/...")

subprocess.check_call([args.bazel, *bazel_startup_options, "build"] + bazel_options + [
subprocess.check_call(["bazel", *bazel_startup_options, "build"] + bazel_options + [
"--aspects=@bazel_compdb//:aspects.bzl%compilation_database_aspect",
"--output_groups=compdb_files,header_files"
] + source_dir_targets)

execroot = subprocess.check_output([
args.bazel, *bazel_startup_options, "info", *bazel_options, "execution_root", *bazel_options
]).decode().strip()
execroot = subprocess.check_output(
["bazel", *bazel_startup_options, "info", *bazel_options,
"execution_root"]).decode().strip()

db_entries = []
for db in Path(execroot).glob('**/*.compile_commands.json'):
Expand Down

0 comments on commit d8407d9

Please sign in to comment.