Skip to content

Commit 4662373

Browse files
committed
auto-merge envoyproxy/envoy[release/v1.32] into envoyproxy/envoy-openssl[release/v1.32]
* upstream/release/v1.32: ci/cache: Shift cache create action to do_ci.sh (#39845) Commit Message: Add support for building envoy against newer releases of BoringCrypto FIPS via override_repository coverage: Disable large tests Don't build WASM for fuzz-coverage tests (#39296) ci/coverage: Fix path repo: Dev v1.32.7 Signed-off-by: tedjpoole <[email protected]>
2 parents 45889dd + 0d009cf commit 4662373

File tree

13 files changed

+70
-20
lines changed

13 files changed

+70
-20
lines changed

.bazelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,11 @@ build:test-coverage --test_tag_filters=-nocoverage,-fuzz_target
247247
build:fuzz-coverage --config=plain-fuzzer
248248
build:fuzz-coverage --run_under=@envoy//bazel/coverage:fuzz_coverage_wrapper.sh
249249
build:fuzz-coverage --test_tag_filters=-nocoverage
250+
build:fuzz-coverage --define=dynamic_link_tests=true
251+
# Existing fuzz tests don't need a full WASM runtime and in generally we don't really want to
252+
# fuzz dependencies anyways. On the other hand, disabling WASM reduces the build time and
253+
# resources required to build and run the tests.
254+
build:fuzz-coverage --define=wasm=disabled
250255

251256
build:cache-local --remote_cache=grpc://localhost:9092
252257

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.32.6
1+
1.32.7-dev

changelogs/1.32.6.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
date: May 7, 2025
2+
3+
bug_fixes:
4+
- area: url_template
5+
change: |
6+
Included the asterisk ``*`` in the match pattern when using the * or ** operators in the URL template.
7+
This behavioral change can be temporarily reverted by setting runtime guard
8+
``envoy.reloadable_features.uri_template_match_on_asterisk`` to ``false``.

changelogs/current.yaml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
date: May 7, 2025
1+
date: Pending
2+
3+
behavior_changes:
4+
# *Changes that are expected to cause an incompatibility if applicable; deployment changes are likely required*
5+
6+
minor_behavior_changes:
7+
# *Changes that may cause incompatibilities for some users, but should not for most*
28

39
bug_fixes:
4-
- area: url_template
5-
change: |
6-
Included the asterisk ``*`` in the match pattern when using the * or ** operators in the URL template.
7-
This behavioral change can be temporarily reverted by setting runtime guard
8-
``envoy.reloadable_features.uri_template_match_on_asterisk`` to ``false``.
10+
# *Changes expected to improve the state of the world and are unlikely to have negative effects*
11+
12+
removed_config_or_runtime:
13+
# *Normally occurs at the end of the* :ref:`deprecation period <deprecated>`
14+
15+
new_features:
16+
17+
deprecated:

ci/do_ci.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,27 @@ case $CI_TARGET in
379379
# fi
380380
;;
381381

382+
cache-create)
383+
if [[ -z "${ENVOY_CACHE_TARGETS}" ]]; then
384+
echo "ENVOY_CACHE_TARGETS not set" >&2
385+
exit 1
386+
fi
387+
if [[ -z "${ENVOY_CACHE_ROOT}" ]]; then
388+
echo "ENVOY_CACHE_ROOT not set" >&2
389+
exit 1
390+
fi
391+
BAZEL_BUILD_OPTIONS=()
392+
setup_clang_toolchain
393+
echo "Fetching cache: ${ENVOY_CACHE_TARGETS}"
394+
bazel --output_user_root="${ENVOY_CACHE_ROOT}" \
395+
--output_base="${ENVOY_CACHE_ROOT}/base" \
396+
aquery "deps(${ENVOY_CACHE_TARGETS})" \
397+
--repository_cache="${ENVOY_REPOSITORY_CACHE}" \
398+
"${BAZEL_BUILD_OPTIONS[@]}" \
399+
"${BAZEL_BUILD_EXTRA_OPTIONS[@]}" \
400+
> /dev/null
401+
;;
402+
382403
format-api|check_and_fix_proto_format)
383404
setup_clang_toolchain
384405
echo "Check and fix proto format ..."

source/common/tls/context_impl.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -571,10 +571,6 @@ void ContextImpl::logHandshake(SSL* ssl) const {
571571
stats_.no_certificate_.inc();
572572
}
573573

574-
#if defined(BORINGSSL_FIPS) && BORINGSSL_API_VERSION >= 18
575-
#error "Delete preprocessor check below; no longer needed"
576-
#endif
577-
578574
#if BORINGSSL_API_VERSION >= 18
579575
// Increment the `was_key_usage_invalid_` stats to indicate the given cert would have triggered an
580576
// error but is allowed because the enforcement that rsa key usage and tls usage need to be

test/config_test/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ envoy_cc_test(
4141
"GODEBUG": "cgocheck=0",
4242
},
4343
rbe_pool = "6gig",
44+
tags = ["nocoverage"],
4445
deps = [
4546
":example_configs_test_lib",
4647
],

test/exe/BUILD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ envoy_cc_test(
125125
size = "large",
126126
srcs = ["extra_extensions_test.cc"],
127127
rbe_pool = "6gig",
128+
# output is too large for workers
129+
tags = ["nocoverage"],
128130
deps = [
129131
"//test/test_common:environment_lib",
130132
] + select({
@@ -154,6 +156,7 @@ envoy_cc_test(
154156
"//source/extensions:extensions_metadata.yaml",
155157
],
156158
rbe_pool = "6gig",
159+
tags = ["nocoverage"],
157160
deps = [
158161
"//test/test_common:environment_lib",
159162
] + select({

test/integration/BUILD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,10 @@ envoy_sh_test(
419419
"//test/config/integration:server_config_files",
420420
],
421421
rbe_pool = "6gig",
422-
tags = ["skip_on_windows"],
422+
tags = [
423+
"nocoverage",
424+
"skip_on_windows",
425+
],
423426
)
424427

425428
envoy_cc_test(

test/per_file_coverage.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,38 @@ declare -a KNOWN_LOW_COVERAGE=(
1515
"source/common/memory:74.5" # tcmalloc code path is not enabled in coverage build, only gperf tcmalloc, see PR#32589
1616
"source/common/network:94.4" # Flaky, `activateFileEvents`, `startSecureTransport` and `ioctl`, listener_socket do not always report LCOV
1717
"source/common/network/dns_resolver:91.4" # A few lines of MacOS code not tested in linux scripts. Tested in MacOS scripts
18-
"source/common/quic:93.6"
18+
"source/common/quic:93.1"
1919
"source/common/secret:95.4"
2020
"source/common/signal:87.2" # Death tests don't report LCOV
2121
"source/common/thread:0.0" # Death tests don't report LCOV
2222
"source/common/tls:95.3"
2323
"source/common/tls/cert_validator:94.4"
2424
"source/common/tls/private_key:88.9"
2525
"source/common/watchdog:58.6" # Death tests don't report LCOV
26-
"source/exe:94.2" # increased by #32346, need coverage for terminate_handler and hot restart failures
26+
"source/exe:87.3" # increased by #32346, need coverage for terminate_handler and hot restart failures
27+
"source/extensions/common/aws:96.4"
2728
"source/extensions/common/proxy_protocol:93.8" # Adjusted for security patch
2829
"source/extensions/common/tap:94.6"
2930
"source/extensions/common/wasm:95.0" # flaky: be careful adjusting
3031
"source/extensions/common/wasm/ext:92.0"
32+
"source/extensions/filters/http/alternate_protocols_cache:95.3"
3133
"source/extensions/filters/common/fault:94.5"
3234
"source/extensions/filters/common/rbac:90.8"
3335
"source/extensions/filters/http/cache:95.4"
36+
"source/extensions/filters/http/csrf:96.5"
3437
"source/extensions/filters/http/grpc_json_transcoder:94.2" # TODO(#28232)
3538
"source/extensions/filters/http/ip_tagging:88.2"
3639
"source/extensions/filters/http/kill_request:91.7" # Death tests don't report LCOV
3740
"source/extensions/filters/listener/original_src:92.1"
3841
"source/extensions/filters/network/mongo_proxy:96.1"
3942
"source/extensions/filters/network/sni_cluster:88.9"
43+
"source/extensions/matching/actions:87.0"
44+
"source/extensions/matching/actions/format_string:87.0"
4045
"source/extensions/rate_limit_descriptors:95.0"
4146
"source/extensions/rate_limit_descriptors/expr:95.0"
4247
"source/extensions/stat_sinks/graphite_statsd:82.8" # Death tests don't report LCOV
4348
"source/extensions/stat_sinks/statsd:85.2" # Death tests don't report LCOV
49+
"source/extensions/stat_sinks/wasm:88.0"
4450
"source/extensions/tracers/opencensus:94.0"
4551
"source/extensions/tracers/zipkin:95.8"
4652
"source/extensions/transport_sockets:97.4"

test/run_envoy_bazel_coverage.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ else
113113
cp bazel-out/_coverage/_coverage_report.dat "${COVERAGE_DATA}"
114114
fi
115115

116-
COVERAGE_VALUE="$(genhtml --prefix "${PWD}" --output "${COVERAGE_DIR}" "${COVERAGE_DATA}" | tee /dev/stderr | grep lines... | cut -d ' ' -f 4)"
116+
COVERAGE_VALUE="$(genhtml --prefix "${PWD}" --output "${COVERAGE_DIR}/html" "${COVERAGE_DATA}" | tee /dev/stderr | grep lines... | cut -d ' ' -f 4)"
117117
COVERAGE_VALUE=${COVERAGE_VALUE%?}
118118

119119
echo "Compressing coveraged data"
120120
if [[ "${FUZZ_COVERAGE}" == "true" ]]; then
121121
if [[ -n "${ENVOY_FUZZ_COVERAGE_ARTIFACT}" ]]; then
122-
tar cf - -C "${COVERAGE_DIR}" --transform 's/^\./fuzz_coverage/' . \
122+
tar cf - -C "${COVERAGE_DIR}/html" --transform 's/^\./fuzz_coverage/' . \
123123
| bazel run "${BAZEL_BUILD_OPTIONS[@]}" //tools/zstd -- \
124124
- -T0 -o "${ENVOY_FUZZ_COVERAGE_ARTIFACT}"
125125
fi
@@ -128,7 +128,7 @@ elif [[ -n "${ENVOY_COVERAGE_ARTIFACT}" ]]; then
128128
rm "${ENVOY_COVERAGE_ARTIFACT}"
129129
fi
130130

131-
tar cf - -C "${COVERAGE_DIR}" --transform 's/^\./coverage/' . \
131+
tar cf - -C "${COVERAGE_DIR}/html" --transform 's/^\./coverage/' . \
132132
| bazel run "${BAZEL_BUILD_OPTIONS[@]}" //tools/zstd -- \
133133
- -T0 -o "${ENVOY_COVERAGE_ARTIFACT}"
134134
fi
@@ -168,4 +168,4 @@ if [[ -e ./test/per_file_coverage.sh ]]; then
168168
else
169169
echo "No per-file-coverage file found"
170170
fi
171-
echo "HTML coverage report is in ${COVERAGE_DIR}/index.html"
171+
echo "HTML coverage report is in ${COVERAGE_DIR}/html/index.html"

test/server/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,6 @@ envoy_cc_fuzz_test(
320320
size = "large",
321321
srcs = ["server_fuzz_test.cc"],
322322
corpus = "server_corpus",
323-
rbe_pool = "6gig",
324323
deps = [
325324
"//source/common/thread_local:thread_local_lib",
326325
"//source/server:server_lib",

test/server/config_validation/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ envoy_cc_fuzz_test(
9393
size = "large",
9494
srcs = ["config_fuzz_test.cc"],
9595
corpus = "//test/server:server_fuzz_test_corpus",
96-
rbe_pool = "6gig",
9796
deps = [
9897
"//source/common/common:thread_lib",
9998
"//source/server/config_validation:server_lib",

0 commit comments

Comments
 (0)