[build] Exclude end2end experiment variations from distribtests (#34850)

pull/34854/head
AJ Heller 1 year ago committed by GitHub
parent c85cdfe656
commit 1566fa42f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      bazel/grpc_build_system.bzl
  2. 4
      test/distrib/bazel/test_single_bazel_version.sh

@ -429,7 +429,7 @@ def expand_tests(name, srcs, deps, tags, args, exclude_pollers, uses_polling, us
env["GRPC_EXPERIMENTS"] = experiment
env["GRPC_CI_EXPERIMENTS"] = "1"
config["env"] = env
tags = config["tags"]
tags = config["tags"] + ["experiment_variation"]
for tag in must_have_tags + enabled_tags:
if tag not in tags:
tags = tags + [tag]
@ -445,7 +445,7 @@ def expand_tests(name, srcs, deps, tags, args, exclude_pollers, uses_polling, us
env["GRPC_EXPERIMENTS"] = "-" + experiment
env["GRPC_CI_EXPERIMENTS"] = "1"
config["env"] = env
tags = config["tags"]
tags = config["tags"] + ["experiment_variation"]
for tag in must_have_tags + disabled_tags:
if tag not in tags:
tags = tags + [tag]

@ -86,8 +86,8 @@ do
SHARD_RAN=""
if [ "${TEST_SHARD}" == "buildtest" ] ; then
tools/bazel version | grep "$VERSION" || { echo "Detected bazel version did not match expected value of $VERSION" >/dev/stderr; exit 1; }
tools/bazel build "${ACTION_ENV_FLAG}" -- //... "${EXCLUDED_TARGETS[@]}" || FAILED_TESTS="${FAILED_TESTS}buildtest "
tools/bazel build "${ACTION_ENV_FLAG}" --config fuzztest -- //fuzztest/... || FAILED_TESTS="${FAILED_TESTS}fuzztest_buildtest "
tools/bazel build "${ACTION_ENV_FLAG}" --build_tag_filters='-experiment_variation' -- //... "${EXCLUDED_TARGETS[@]}" || FAILED_TESTS="${FAILED_TESTS}buildtest "
tools/bazel build "${ACTION_ENV_FLAG}" --config fuzztest --build_tag_filters='-experiment_variation' -- //fuzztest/... || FAILED_TESTS="${FAILED_TESTS}fuzztest_buildtest "
SHARD_RAN="true"
fi

Loading…
Cancel
Save