Skip to content

Commit

Permalink
tests: Mark StressTest as "exclusive" and skip on Windows
Browse files Browse the repository at this point in the history
This is meant to address a high rate of flakiness in CI.
  • Loading branch information
fmeum committed Oct 16, 2023
1 parent 91555d2 commit 38eb6c9
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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 = [
Expand All @@ -13,7 +15,12 @@ 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),
"exclusive",
],
# 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",
Expand Down

0 comments on commit 38eb6c9

Please sign in to comment.