From 26a40784c4700da11788327bf17a58d6ed66e99a Mon Sep 17 00:00:00 2001 From: Leonid Shalupov Date: Thu, 13 Nov 2025 16:20:00 +0100 Subject: [PATCH] build: bazel: do not run non-sandbox tests in sandbox if sandbox parameter of jps_test is false, do not run tests in sandbox at all it's expected that tests will gradually set sandbox=True and there will be rainbows and fireworks ref IJI-2653 Bazel: prototype tests running from Bazel GitOrigin-RevId: e277fbc53d09f77e8f8d8133bd3bc448e4cc3eae --- build/tests-options.bzl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/tests-options.bzl b/build/tests-options.bzl index 9d0710e692e1..341ecf96dfa8 100644 --- a/build/tests-options.bzl +++ b/build/tests-options.bzl @@ -113,6 +113,9 @@ def jps_test(name, jvm_flags = [], runtime_deps = [], args = [], data = [], tags # so com.intellij.tests.JUnit5BazelRunner.guessBazelWorkspaceDir will find a real workspace root all_data.append("@community//:intellij.idea.community.main.iml") + if "no-sandbox" not in all_tags: + all_tags.append("no-sandbox") + # https://bazel.build/reference/be/java#java_test # https://bazel.build/reference/be/common-definitions#common-attributes-tests java_test(