Skip to content

Commit

Permalink
fuzz/coverage: Increase sharding for timing out tests (envoyproxy#28366)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <ryan@synca.io>
  • Loading branch information
phlax authored Jul 12, 2023
1 parent ee89444 commit 7280549
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bazel/envoy_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def envoy_cc_fuzz_test(
dictionaries = [],
repository = "",
size = "medium",
shard_count = None,
deps = [],
tags = [],
**kwargs):
Expand Down Expand Up @@ -120,6 +121,7 @@ def envoy_cc_fuzz_test(
"//conditions:default": ["$(locations %s)" % corpus_name],
}),
data = [corpus_name],
shard_count = shard_count,
# No fuzzing on macOS or Windows
deps = select({
"@envoy//bazel:apple": [repository + "//test:dummy_main"],
Expand Down
1 change: 1 addition & 0 deletions test/server/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ envoy_cc_fuzz_test(
name = "server_fuzz_test",
srcs = ["server_fuzz_test.cc"],
corpus = "server_corpus",
shard_count = 4,
deps = [
"//source/common/thread_local:thread_local_lib",
"//source/server:server_lib",
Expand Down
1 change: 1 addition & 0 deletions test/server/config_validation/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ envoy_cc_fuzz_test(
name = "config_fuzz_test",
srcs = ["config_fuzz_test.cc"],
corpus = "//test/server:server_fuzz_test_corpus",
shard_count = 4,
deps = [
"//source/common/common:thread_lib",
"//source/server/config_validation:server_lib",
Expand Down

0 comments on commit 7280549

Please sign in to comment.