diff --git a/bazel/BUILD b/bazel/BUILD index 268cdb752ec6..8f1b7f605278 100644 --- a/bazel/BUILD +++ b/bazel/BUILD @@ -277,8 +277,8 @@ config_setting( ) config_setting( - name = "enable_new_codecs_in_integration_tests", - values = {"define": "use_new_codecs_in_integration_tests=true"}, + name = "enable_legacy_codecs_in_integration_tests", + values = {"define": "use_new_codecs_in_integration_tests=false"}, ) cc_proto_library( diff --git a/bazel/envoy_select.bzl b/bazel/envoy_select.bzl index 8cbecb26075c..b0789ae51291 100644 --- a/bazel/envoy_select.bzl +++ b/bazel/envoy_select.bzl @@ -59,9 +59,9 @@ def envoy_select_wasm_wasmtime(xs): "//conditions:default": [], }) -# Select the given values if use legacy codecs in test is on in the current build. +# Select the given values by default and remove if use new codecs are disabled for current build. def envoy_select_new_codecs_in_integration_tests(xs, repository = ""): return select({ - repository + "//bazel:enable_new_codecs_in_integration_tests": xs, - "//conditions:default": [], + repository + "//bazel:enable_legacy_codecs_in_integration_tests": [], + "//conditions:default": xs, })