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

Update Envoy to d417618 2024/04/15 #1133

Merged
merged 11 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ build:sanitizer --linkopt -ldl
build:clang --action_env=BAZEL_COMPILER=clang
build:clang --action_env=CC=clang --action_env=CXX=clang++
build:clang --linkopt=-fuse-ld=lld
build:clang --action_env=CC=clang --host_action_env=CC=clang
build:clang --action_env=CXX=clang++ --host_action_env=CXX=clang++

# Flags for Clang + PCH
build:clang-pch --spawn_strategy=local
Expand All @@ -116,7 +118,6 @@ build:clang-tidy --output_groups=report
build:clang-tidy --build_tag_filters=-notidy

# Basic ASAN/UBSAN that works for gcc
build:asan --action_env=ENVOY_ASAN=1
build:asan --config=sanitizer
# ASAN install its signal handler, disable ours so the stacktrace will be printed by ASAN
build:asan --define signal_trace=disabled
Expand All @@ -141,11 +142,19 @@ build:asan --copt -O1
build:asan --copt -fno-optimize-sibling-calls

# Clang ASAN/UBSAN
build:clang-asan --config=clang
build:clang-asan --config=asan
build:clang-asan --linkopt -fuse-ld=lld
build:clang-asan --linkopt --rtlib=compiler-rt
build:clang-asan --linkopt --unwindlib=libgcc
build:clang-asan-common --config=clang
build:clang-asan-common --config=asan
build:clang-asan-common --linkopt -fuse-ld=lld
build:clang-asan-common --linkopt --rtlib=compiler-rt
build:clang-asan-common --linkopt --unwindlib=libgcc

build:clang-asan --config=clang-asan-common
build:clang-asan --linkopt='-L/opt/llvm/lib/clang/14.0.0/lib/x86_64-unknown-linux-gnu' # unique
build:clang-asan --linkopt=-l:libclang_rt.ubsan_standalone.a
build:clang-asan --linkopt=-l:libclang_rt.ubsan_standalone_cxx.a
build:clang-asan --action_env=ENVOY_UBSAN_VPTR=1
build:clang-asan --copt=-fsanitize=vptr,function
build:clang-asan --linkopt=-fsanitize=vptr,function

# macOS
build:macos --cxxopt=-std=c++20 --host_cxxopt=-std=c++20
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 = "1ae6fb29cab8043cc23e070b118fa25c79f7f7d8"
ENVOY_SHA = "15d19b258d3f0f2c0b13e0aca307d127c326a891d3183ecc0a711b7e9c01dee6"
ENVOY_COMMIT = "d41761887ee34c8d015e2fd8272d118d14912081"
ENVOY_SHA = "4d3a7a59717f4c5bd3a006d63575c2cc1d2e3146e787117c190788d344532181"

HDR_HISTOGRAM_C_VERSION = "0.11.2" # October 12th, 2020
HDR_HISTOGRAM_C_SHA = "637f28b5f64de2e268131e4e34e6eef0b91cf5ff99167db447d9b2825eae6bad"
Expand Down
2 changes: 1 addition & 1 deletion ci/run_envoy_docker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -e

Expand Down
6 changes: 6 additions & 0 deletions source/client/process_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,12 @@ bool ProcessImpl::runInternal(OutputCollector& collector, const UriPtr& tracing_
}
ENVOY_LOG(debug, "Computed configuration: {}", absl::StrCat(bootstrap_));
cluster_manager_ = cluster_manager_factory_->clusterManagerFromProto(bootstrap_);
absl::Status status = cluster_manager_->initialize(bootstrap_);
if (!status.ok()) {
ENVOY_LOG(error, "cluster_manager initialize failed. Received bad status: {}",
status.message());
return false;
}
maybeCreateTracingDriver(bootstrap_.tracing());
cluster_manager_->setInitializedCb(
[this]() -> void { init_manager_.initialize(init_watcher_); });
Expand Down
7 changes: 7 additions & 0 deletions source/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ bazel-bin/nighthawk_test_server [--stats-tag <string>] ...
[--allow-unknown-fields] [--config-yaml
<string>] [-c <string>] [--concurrency
<uint32_t>] [--base-id-path <string>]
[--skip-hot-restart-on-no-parent]
[--use-dynamic-base-id] [--base-id
<uint32_t>] [--] [--version] [-h]

Expand Down Expand Up @@ -324,6 +325,12 @@ Path to configuration file
--base-id-path <string>
Path to which the base ID is written

--skip-hot-restart-on-no-parent
When hot restarting with epoch>0, the default behavior is for the
child to crash if the connection to the parent cannot be established.
Set this to true to instead continue with a regular startup, while
retaining the new epoch value.

--use-dynamic-base-id
The server chooses a base ID dynamically. Supersedes a static base ID.
May not be used when the restart epoch is non-zero.
Expand Down
6 changes: 0 additions & 6 deletions tools/code_format/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ paths:
- source/common/config/utility.h
- source/common/matcher/map_matcher.h
- source/common/matcher/field_matcher.h
- source/common/protobuf/visitor_helper.h
- source/extensions/common/matcher/trie_matcher.h
- envoy/common/exception.h
# legacy core files which throw exceptions. We can add to this list but strongly prefer
Expand All @@ -110,22 +109,17 @@ paths:
- source/common/network/address_impl.cc
- source/common/network/utility.cc
- source/common/network/dns_resolver/dns_factory_util.cc
- source/common/ssl/tls_certificate_config_impl.cc
- source/common/formatter/http_specific_formatter.cc
- source/common/formatter/stream_info_formatter.h
- source/common/formatter/stream_info_formatter.cc
- source/common/formatter/substitution_formatter.h
- source/common/formatter/substitution_format_utility.cc
- source/common/formatter/substitution_format_string.h
- source/common/stats/tag_extractor_impl.cc
- source/common/stats/tag_producer_impl.cc
- source/common/http/http2/codec_impl.cc
- source/common/http/hash_policy.cc
- source/common/http/conn_manager_utility.cc
- source/common/protobuf/yaml_utility.cc
- source/common/protobuf/visitor.cc
- source/common/protobuf/utility.cc
- source/common/protobuf/message_validator_impl.cc
- source/common/quic/quic_server_transport_socket_factory.cc
- source/common/secret/secret_manager_impl.cc
- source/common/grpc/google_grpc_utils.cc
Expand Down