Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
8756572
Automator: update envoy@ in istio/proxy@release-1.22 (#5755)
istio-testing Aug 24, 2024
41f0598
[release-1.22] istio_build metric should not expiry (#5763)
istio-testing Aug 27, 2024
ce1cc7c
Automator: update envoy@ in istio/proxy@release-1.22 (#5791)
istio-testing Sep 15, 2024
88bfab6
Automator: update envoy@ in istio/proxy@release-1.22 (#5804)
istio-testing Sep 17, 2024
d5092eb
Automator: update envoy@ in istio/proxy@release-1.22 (#5807)
istio-testing Sep 18, 2024
80aadf2
Automator: update envoy@ in istio/proxy@release-1.22 (#5813)
istio-testing Sep 20, 2024
383e680
Automator: update envoy@ in istio/proxy@release-1.22 (#5819)
istio-testing Sep 21, 2024
cf9fa35
Automator: update envoy@ in istio/proxy@release-1.22 (#5830)
istio-testing Sep 25, 2024
04ddb4f
Automator: update envoy@ in istio/proxy@release-1.22 (#5838)
istio-testing Sep 28, 2024
06f84c3
Automator: update envoy@ in istio/proxy@release-1.22 (#5846)
istio-testing Oct 2, 2024
7fb2528
Automator: update envoy@ in istio/proxy@release-1.22 (#5865)
istio-testing Oct 16, 2024
5908017
Automator: update envoy@ in istio/proxy@release-1.22 (#5873)
istio-testing Oct 18, 2024
7509aa2
Automator: update envoy@ in istio/proxy@release-1.22 (#5880)
istio-testing Oct 23, 2024
1169703
Automator: update envoy@ in istio/proxy@release-1.22 (#5882)
istio-testing Oct 24, 2024
1e99232
Automator: update envoy@ in istio/proxy@release-1.22 (#5886)
istio-testing Oct 25, 2024
5342c20
Automator: update envoy@ in istio/proxy@release-1.22 (#5894)
istio-testing Oct 29, 2024
483d1da
Automator: update envoy@ in istio/proxy@release-1.22 (#5897)
istio-testing Oct 31, 2024
1afb724
Automator: update envoy@ in istio/proxy@release-1.22 (#5926)
istio-testing Nov 9, 2024
16e0b50
Automator: update envoy@ in istio/proxy@release-1.22 (#5939)
istio-testing Nov 19, 2024
666d640
Automator: update envoy@ in istio/proxy@release-1.22 (#5946)
istio-testing Nov 21, 2024
44e35b4
Automator: update envoy@ in istio/proxy@release-1.22 (#5950)
istio-testing Nov 22, 2024
26b42fb
Automator: update envoy@ in istio/proxy@release-1.22 (#5957)
istio-testing Nov 26, 2024
00bc6ce
Automator: update envoy@ in istio/proxy@release-1.22 (#5961)
istio-testing Nov 27, 2024
e255f61
Automator: update envoy@ in istio/proxy@release-1.22 (#5973)
istio-testing Dec 3, 2024
ca46cf4
Automator: update common-files@release-1.22 in istio/proxy@release-1.…
istio-testing Dec 5, 2024
362e755
Automator: update envoy@ in istio/proxy@release-1.22 (#5990)
istio-testing Dec 9, 2024
41fcc90
Automator: update envoy@ in istio/proxy@release-1.22 (#5994)
istio-testing Dec 10, 2024
3a5ace8
Automator: update envoy@ in istio/proxy@release-1.22 (#6015)
istio-testing Dec 19, 2024
b795025
Automator: update envoy@ in istio/proxy@release-1.22 (#6045)
istio-testing Jan 3, 2025
407b673
Automator: merge upstream changes to alauda-mesh/proxy@istio-1.22
alauda-mesh-bot Jan 13, 2025
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
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "istio build-tools",
"image": "gcr.io/istio-testing/build-tools:release-1.22-02098ccc0766fde1c577cf9f9258fb43a08ec8c8",
"image": "gcr.io/istio-testing/build-tools:release-1.22-70caecf3832f7f72fccfc9aaa536acb3a69bdc6a",
"privileged": true,
"remoteEnv": {
"USE_GKE_GCLOUD_AUTH_PLUGIN": "True",
Expand Down
6 changes: 3 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# 1. Determine SHA256 `wget https://github.com/envoyproxy/envoy/archive/$COMMIT.tar.gz && sha256sum $COMMIT.tar.gz`
# 2. Update .bazelversion, envoy.bazelrc and .bazelrc if needed.
#
# Commit date: 2024-07-23
ENVOY_SHA = "fa2490559658e10ecd6f963fae500ecbbed54cc2"
# Commit date: 2025-01-02
ENVOY_SHA = "583d388e5f7175453ab0acd7fc8c6f31732c2747"

ENVOY_SHA256 = "222a61a21e4e21d24059a6789f03e4bb3fce199c13d84c274caa7dcd6fe49fe2"
ENVOY_SHA256 = "a92e968ef1bfbd8eed052c7f82a95123bda1bb8b20c4150bd1689afd6a75486c"

ENVOY_ORG = "envoyproxy"

Expand Down
2 changes: 1 addition & 1 deletion common/.commonfiles.sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2f988bb7f975a3426624f4d9e92ea26d542b1b6f
2c0d7e2143bb1e1f698b4ec4c2d586340a8d21b9
2 changes: 1 addition & 1 deletion common/scripts/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fi
TOOLS_REGISTRY_PROVIDER=${TOOLS_REGISTRY_PROVIDER:-gcr.io}
PROJECT_ID=${PROJECT_ID:-istio-testing}
if [[ "${IMAGE_VERSION:-}" == "" ]]; then
IMAGE_VERSION=release-1.22-02098ccc0766fde1c577cf9f9258fb43a08ec8c8
IMAGE_VERSION=release-1.22-70caecf3832f7f72fccfc9aaa536acb3a69bdc6a
fi
if [[ "${IMAGE_NAME:-}" == "" ]]; then
IMAGE_NAME=build-tools
Expand Down
47 changes: 27 additions & 20 deletions envoy.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ build:windows --action_env=PATH --host_action_env=PATH
# Requires setting `BAZEL_VOLATILE_DIRTY` in the env.
build --action_env=BAZEL_VOLATILE_DIRTY --host_action_env=BAZEL_VOLATILE_DIRTY

# Prevent stamped caches from busting (eg in PRs)
# Requires setting `BAZEL_FAKE_SCM_REVISION` in the env.
build --action_env=BAZEL_FAKE_SCM_REVISION --host_action_env=BAZEL_FAKE_SCM_REVISION

build --test_summary=terse

build:docs-ci --action_env=DOCS_RST_CHECK=1 --host_action_env=DOCS_RST_CHECK=1
Expand Down Expand Up @@ -406,9 +402,9 @@ build:remote-ci --config=ci
build:remote-ci --remote_download_minimal

# Note this config is used by mobile CI also.
build:ci --noshow_progress
build:ci --noshow_loading_progress
build:ci --test_output=errors
common:ci --noshow_progress
common:ci --noshow_loading_progress
common:ci --test_output=errors

# Fuzz builds

Expand Down Expand Up @@ -523,19 +519,29 @@ build:rbe-engflow --bes_timeout=3600s
build:rbe-engflow --bes_upload_mode=fully_async
build:rbe-engflow --nolegacy_important_outputs

build:cache-envoy-engflow --google_default_credentials=false
build:cache-envoy-engflow --remote_cache=grpcs://morganite.cluster.engflow.com
build:cache-envoy-engflow --remote_timeout=3600s
build:cache-envoy-engflow --credential_helper=*.engflow.com=%workspace%/bazel/engflow-bazel-credential-helper.sh
build:cache-envoy-engflow --grpc_keepalive_time=30s
build:bes-envoy-engflow --bes_backend=grpcs://morganite.cluster.engflow.com/
build:bes-envoy-engflow --bes_results_url=https://morganite.cluster.engflow.com/invocation/
build:bes-envoy-engflow --bes_timeout=3600s
build:bes-envoy-engflow --bes_upload_mode=fully_async
build:rbe-envoy-engflow --config=cache-envoy-engflow
build:rbe-envoy-engflow --config=bes-envoy-engflow
build:rbe-envoy-engflow --remote_executor=grpcs://morganite.cluster.engflow.com
build:rbe-envoy-engflow --remote_default_exec_properties=container-image=docker://docker.io/envoyproxy/envoy-build-ubuntu:f94a38f62220a2b017878b790b6ea98a0f6c5f9c@sha256:2dd96b6f43c08ccabd5f4747fce5854f5f96af509b32e5cf6493f136e9833649
# RBE (Engflow Envoy)
common:common-envoy-engflow --google_default_credentials=false
common:common-envoy-engflow --credential_helper=*.engflow.com=%workspace%/bazel/engflow-bazel-credential-helper.sh
common:common-envoy-engflow --grpc_keepalive_time=30s

common:cache-envoy-engflow --remote_cache=grpcs://mordenite.cluster.engflow.com
common:cache-envoy-engflow --remote_timeout=3600s
common:bes-envoy-engflow --bes_backend=grpcs://mordenite.cluster.engflow.com/
common:bes-envoy-engflow --bes_results_url=https://mordenite.cluster.engflow.com/invocation/
common:bes-envoy-engflow --bes_timeout=3600s
common:bes-envoy-engflow --bes_upload_mode=fully_async
common:bes-envoy-engflow --nolegacy_important_outputs
common:rbe-envoy-engflow --remote_executor=grpcs://mordenite.cluster.engflow.com
common:rbe-envoy-engflow --remote_default_exec_properties=container-image=docker://gcr.io/envoy-ci/envoy-build@sha256:7adc40c09508f957624c4d2e0f5aeecb73a59207ee6ded53b107eac828c091b2
common:rbe-envoy-engflow --jobs=200
common:rbe-envoy-engflow --define=engflow_rbe=true

common:remote-envoy-engflow --config=common-envoy-engflow
common:remote-envoy-engflow --config=cache-envoy-engflow
common:remote-envoy-engflow --config=rbe-envoy-engflow

common:remote-cache-envoy-engflow --config=common-envoy-engflow
common:remote-cache-envoy-engflow --config=cache-envoy-engflow

#############################################################################
# debug: Various Bazel debugging flags
Expand All @@ -559,6 +565,7 @@ common:debug --config=debug-sandbox
common:debug --config=debug-coverage
common:debug --config=debug-tests

try-import %workspace%/repo.bazelrc
try-import %workspace%/clang.bazelrc
try-import %workspace%/user.bazelrc
try-import %workspace%/local_tsan.bazelrc
7 changes: 3 additions & 4 deletions source/extensions/filters/http/istio_stats/istio_stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ struct Config : public Logger::Loggable<Logger::Id::filter> {
disable_host_header_fallback_(proto_config.disable_host_header_fallback()),
report_duration_(
PROTOBUF_GET_MS_OR_DEFAULT(proto_config, tcp_reporting_duration, /* 5s */ 5000)) {
recordVersion(factory_context);
reporter_ = Reporter::ClientSidecar;
switch (proto_config.reporter()) {
case stats::Reporter::UNSPECIFIED:
Expand Down Expand Up @@ -763,13 +764,13 @@ struct Config : public Logger::Loggable<Logger::Id::filter> {
bool evaluated_{false};
};

void recordVersion() {
void recordVersion(Server::Configuration::FactoryContext& factory_context) {
Stats::StatNameTagVector tags;
tags.push_back({context_->component_, context_->proxy_});
tags.push_back({context_->tag_, context_->istio_version_.empty() ? context_->unknown_
: context_->istio_version_});

Stats::Utility::gaugeFromStatNames(*scope(),
Stats::Utility::gaugeFromStatNames(factory_context.scope(),
{context_->stat_namespace_, context_->istio_build_},
Stats::Gauge::ImportMode::Accumulate, tags)
.set(1);
Expand Down Expand Up @@ -1266,7 +1267,6 @@ absl::StatusOr<Http::FilterFactoryCb> IstioStatsFilterConfigFactory::createFilte
CustomStatNamespace);
ConfigSharedPtr config = std::make_shared<Config>(
dynamic_cast<const stats::PluginConfig&>(proto_config), factory_context);
config->recordVersion();
return [config](Http::FilterChainFactoryCallbacks& callbacks) {
auto filter = std::make_shared<IstioStatsFilter>(config);
callbacks.addStreamFilter(filter);
Expand All @@ -1286,7 +1286,6 @@ IstioStatsNetworkFilterConfigFactory::createFilterFactoryFromProto(
CustomStatNamespace);
ConfigSharedPtr config = std::make_shared<Config>(
dynamic_cast<const stats::PluginConfig&>(proto_config), factory_context);
config->recordVersion();
return [config](Network::FilterManager& filter_manager) {
filter_manager.addReadFilter(std::make_shared<IstioStatsFilter>(config));
};
Expand Down
1 change: 1 addition & 0 deletions test/envoye2e/stats_plugin/stats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,7 @@ func TestStatsExpiry(t *testing.T) {
&driver.Sleep{Duration: 4 * time.Second},
&driver.Stats{AdminPort: params.Ports.ClientAdmin, Matchers: map[string]driver.StatMatcher{
"istio_requests_total": &driver.MissingStat{Metric: "istio_requests_total"},
"istio_build": &driver.ExactStat{Metric: "testdata/metric/istio_build.yaml"},
}},
},
}).Run(params); err != nil {
Expand Down