diff --git a/.bazelversion b/.bazelversion index dfda3e0b4f0..91e4a9f2622 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -6.1.0 +6.3.2 diff --git a/WORKSPACE b/WORKSPACE index 0c22a5028f7..2892602252f 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -34,10 +34,10 @@ bind( # 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: 2023-08-09 -ENVOY_SHA = "1e9631a119edfb83a5985259f7c285ee62168ac9" +# Commit date: 2023-08-16 +ENVOY_SHA = "f44887ff8a412fd8ef27afa38d359754e5157019" -ENVOY_SHA256 = "3dac2882823c77dd509cd1dce53484502cc1c626d226dda25561c784509f176a" +ENVOY_SHA256 = "a7c66c7f1dd6663fcc18b192d4cfdedf2d388c1cd285e49a548d01121bfc0b37" ENVOY_ORG = "envoyproxy" diff --git a/envoy.bazelrc b/envoy.bazelrc index e49155fa1a6..69b1729bb78 100644 --- a/envoy.bazelrc +++ b/envoy.bazelrc @@ -9,7 +9,9 @@ # The number 3G is chosen heuristically to both support large VM and small VM with RBE. # Startup options cannot be selected via config. startup --host_jvm_args=-Xmx3g +startup --host_jvm_args=-XX:MaxDirectMemorySize=512m +fetch --color=yes run --color=yes build --color=yes @@ -23,12 +25,19 @@ build --platform_mappings=bazel/platform_mappings build --copt=-DABSL_MIN_LOG_LEVEL=4 build --define envoy_mobile_listener=enabled build --experimental_repository_downloader_retries=2 +build --enable_platform_specific_config -# Pass PATH, CC, CXX and LLVM_CONFIG variables from the environment. +# Pass CC, CXX and LLVM_CONFIG variables from the environment. +# We assume they have stable values, so this won't cause action cache misses. build --action_env=CC --host_action_env=CC build --action_env=CXX --host_action_env=CXX build --action_env=LLVM_CONFIG --host_action_env=LLVM_CONFIG -build --action_env=PATH --host_action_env=PATH +# Do not pass through PATH however. +# It tends to have machine-specific values, such as dynamically created temp folders. +# This would make it impossible to share remote action cache hits among machines. +# build --action_env=PATH --host_action_env=PATH +# To make our own CI green, we do need that flag on Windows though. +build:windows --action_env=PATH --host_action_env=PATH # Allow stamped caches to bust when local filesystem changes. # Requires setting `BAZEL_VOLATILE_DIRTY` in the env. @@ -38,7 +47,6 @@ build --action_env=BAZEL_VOLATILE_DIRTY --host_action_env=BAZEL_VOLATILE_DIRTY # Requires setting `BAZEL_FAKE_SCM_REVISION` in the env. build --action_env=BAZEL_FAKE_SCM_REVISION --host_action_env=BAZEL_FAKE_SCM_REVISION -build --enable_platform_specific_config build --test_summary=terse # TODO(keith): Remove once these 2 are the default @@ -186,6 +194,7 @@ build --test_env=HEAPCHECK=normal --test_env=PPROF_PATH # Coverage options coverage --config=coverage coverage --build_tests_only + build:coverage --action_env=BAZEL_USE_LLVM_NATIVE_COVERAGE=1 build:coverage --action_env=GCOV=llvm-profdata build:coverage --copt=-DNDEBUG @@ -194,15 +203,16 @@ build:coverage --test_timeout=390,750,1500,5700 build:coverage --define=dynamic_link_tests=true build:coverage --define=ENVOY_CONFIG_COVERAGE=1 build:coverage --cxxopt="-DENVOY_CONFIG_COVERAGE=1" -build:coverage --coverage_support=@envoy//bazel/coverage:coverage_support -build:coverage --test_env=CC_CODE_COVERAGE_SCRIPT=bazel/coverage/collect_cc_coverage.sh build:coverage --test_env=HEAPCHECK= build:coverage --combined_report=lcov build:coverage --strategy=TestRunner=sandboxed,local build:coverage --strategy=CoverageReport=sandboxed,local build:coverage --experimental_use_llvm_covmap +build:coverage --experimental_generate_llvm_lcov build:coverage --collect_code_coverage -build:coverage --instrumentation_filter="//source(?!/common/quic/platform)[/:],//envoy[/:],//contrib(?!/.*/test)[/:]" +build:coverage --instrumentation_filter="^//source(?!/common/quic/platform)[/:],^//envoy[/:],^//contrib(?!/.*/test)[/:]" +build:coverage --remote_download_toplevel +build:coverage --define=tcmalloc=gperftools build:test-coverage --test_arg="-l trace" build:test-coverage --test_arg="--log-path /dev/null" @@ -473,7 +483,7 @@ build:rbe-engflow --remote_cache=grpcs://envoy.cluster.engflow.com build:rbe-engflow --remote_executor=grpcs://envoy.cluster.engflow.com build:rbe-engflow --bes_backend=grpcs://envoy.cluster.engflow.com/ build:rbe-engflow --bes_results_url=https://envoy.cluster.engflow.com/invocation/ -build:rbe-engflow --experimental_credential_helper=%workspace%/bazel/engflow-bazel-credential-helper.sh +build:rbe-engflow --credential_helper=*.engflow.com=%workspace%/bazel/engflow-bazel-credential-helper.sh build:rbe-engflow --grpc_keepalive_time=30s build:rbe-engflow --remote_timeout=3600s build:rbe-engflow --bes_timeout=3600s