Skip to content

Commit

Permalink
Update Envoy to 9feddc1 (Aug 01, 2024) (#1202)
Browse files Browse the repository at this point in the history
- Update `@python3_11` to `@python3_12`
- Add `httpServerPropertiesCacheManager()` to `NighthawkServerInstance` (panic only) and `NighthawkServerFactoryContext` (real instance) after envoyproxy/envoy@7b8132a

Signed-off-by: eric846 <[email protected]>
  • Loading branch information
eric846 authored Aug 6, 2024
1 parent 24e74b0 commit e30a7c4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bazel/python_dependencies.bzl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@python3_11//:defs.bzl", "interpreter")
load("@python3_12//:defs.bzl", "interpreter")
load("@rules_python//python:pip.bzl", "pip_parse")

def nighthawk_python_dependencies():
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 = "3ab83eebb2b41c75d7702af3d8bf79162dc050df"
ENVOY_SHA = "40c32ed204b6b9b4e38074347efa83fe24f7c36402a9106c653ab6ef16cc6ab2"
ENVOY_COMMIT = "9feddc11baec8ee31c957e0b6b8f8988a0ef9d59"
ENVOY_SHA = "13c646959412526e5c46fa0aa72860b474089bd32de108de1cfa58307a7938fe"

HDR_HISTOGRAM_C_VERSION = "0.11.2" # October 12th, 2020
HDR_HISTOGRAM_C_SHA = "637f28b5f64de2e268131e4e34e6eef0b91cf5ff99167db447d9b2825eae6bad"
Expand Down
13 changes: 12 additions & 1 deletion source/client/process_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <random>

#include "envoy/common/optref.h"
#include "envoy/http/http_server_properties_cache.h"
#include "envoy/network/address.h"
#include "envoy/server/filter_config.h"
#include "envoy/stats/sink.h"
Expand All @@ -25,6 +26,7 @@
#include "external/envoy/source/common/config/utility.h"
#include "external/envoy/source/common/event/dispatcher_impl.h"
#include "external/envoy/source/common/event/real_time_system.h"
#include "external/envoy/source/common/http/http_server_properties_cache_manager_impl.h"
#include "external/envoy/source/common/init/manager_impl.h"
#include "external/envoy/source/common/local_info/local_info_impl.h"
#include "external/envoy/source/common/network/dns_resolver/dns_factory_util.h"
Expand Down Expand Up @@ -166,6 +168,9 @@ class NighthawkServerInstance : public Envoy::Server::Instance {
Envoy::Upstream::ClusterManager& clusterManager() override {
PANIC("NighthawkServerInstance::clusterManager not implemented");
}
Envoy::Http::HttpServerPropertiesCacheManager& httpServerPropertiesCacheManager() override {
PANIC("NighthawkServerInstance::httpServerPropertiesCacheManager not implemented");
}
const Envoy::Upstream::ClusterManager& clusterManager() const override {
PANIC("NighthawkServerInstance::clusterManager not implemented");
}
Expand Down Expand Up @@ -299,7 +304,9 @@ class NighthawkServerFactoryContext : public Envoy::Server::Configuration::Serve
: admin_(admin), api_(api), dispatcher_(dispatcher), log_manager_(log_manager),
options_(options), runtime_(runtime), singleton_manager_(singleton_manager), tls_(tls),
local_info_(local_info), validation_context_(validation_context),
grpc_context_(grpc_context), router_context_(router_context), server_scope_(server_scope) {}
grpc_context_(grpc_context), router_context_(router_context), server_scope_(server_scope),
http_server_properties_cache_manager_(
*this, Envoy::ProtobufMessage::getStrictValidationVisitor(), tls) {}

const Envoy::Server::Options& options() override { return options_; };

Expand Down Expand Up @@ -330,6 +337,9 @@ class NighthawkServerFactoryContext : public Envoy::Server::Configuration::Serve
Envoy::Upstream::ClusterManager& clusterManager() override {
PANIC("NighthawkServerFactoryContext::clusterManager not implemented");
};
Envoy::Http::HttpServerPropertiesCacheManager& httpServerPropertiesCacheManager() override {
return http_server_properties_cache_manager_;
}

Envoy::ProtobufMessage::ValidationContext& messageValidationContext() override {
return validation_context_;
Expand Down Expand Up @@ -400,6 +410,7 @@ class NighthawkServerFactoryContext : public Envoy::Server::Configuration::Serve
Envoy::Stats::Scope& server_scope_;
NighthawkLifecycleNotifierImpl lifecycle_notifier_; // A no-op object that lives here.
Envoy::Regex::GoogleReEngine regex_engine_; // Using the object created here.
Envoy::Http::HttpServerPropertiesCacheManagerImpl http_server_properties_cache_manager_;
};

/**
Expand Down

0 comments on commit e30a7c4

Please sign in to comment.