From 160b5283f1f2a49574e96cf0ab1aaefbf24c6bd9 Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Sun, 15 Oct 2023 19:58:13 +0200 Subject: [PATCH] tests: Mark `StressTest` as `"enormous"` and skip on Windows This is meant to address a high rate of flakiness in CI. --- .../jazzer/mutation/mutator/BUILD.bazel | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/code_intelligence/jazzer/mutation/mutator/BUILD.bazel b/src/test/java/com/code_intelligence/jazzer/mutation/mutator/BUILD.bazel index d88d1ec40..0c2643a40 100644 --- a/src/test/java/com/code_intelligence/jazzer/mutation/mutator/BUILD.bazel +++ b/src/test/java/com/code_intelligence/jazzer/mutation/mutator/BUILD.bazel @@ -1,10 +1,12 @@ load("@contrib_rules_jvm//java:defs.bzl", "java_junit5_test") +load("//bazel:compat.bzl", "SKIP_ON_WINDOWS") TEST_PARALLELISM = 4 java_junit5_test( name = "StressTest", - size = "large", + size = "enormous", + timeout = "long", srcs = ["StressTest.java"], env = {"JAZZER_MOCK_LIBFUZZER_MUTATOR": "true"}, jvm_flags = [ @@ -13,7 +15,11 @@ java_junit5_test( "-Djunit.jupiter.execution.parallel.config.strategy=fixed", "-Djunit.jupiter.execution.parallel.config.fixed.parallelism=" + str(TEST_PARALLELISM), ], - tags = ["cpu:" + str(TEST_PARALLELISM)], + tags = [ + "cpu:" + str(TEST_PARALLELISM), + ], + # The test is particularly slow on Windows runners and is not expected to be platform-specific. + target_compatible_with = SKIP_ON_WINDOWS, deps = [ "//src/main/java/com/code_intelligence/jazzer/api", "//src/main/java/com/code_intelligence/jazzer/driver:fuzzed_data_provider_impl",