Skip to content

Commit

Permalink
[nfc] lower test timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
mikea committed Aug 21, 2024
1 parent 94c859e commit a59d094
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
8 changes: 7 additions & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
common --enable_platform_specific_config
build --verbose_failures
build --build_tag_filters=-off-by-default,-slow
test --test_tag_filters=-off-by-default,-slow
test --test_tag_filters=-off-by-default

# use lower test timeouts: https://bazel.build/reference/test-encyclopedia#role-test-runner
# corrseponds to small,medium,large,enormous tests (medium is default)
test --test_timeout=1,15,60,240
# do not run enormous tests by default
test --test_size_filters=-enormous

# Not using bzlmod for dependencies yet
common --noenable_bzlmod
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ jobs:
run: |
cat <<EOF >> .bazelrc
build --build_tag_filters=-off-by-default
test --test_tag_filters=-off-by-default
test --test_tag_filters=-off-by-default --test_size_filters=small,medium,large,enormous
EOF
- name: Generate list of excluded Bazel targets
# Exclude large benchmarking binaries created in debug and asan configurations to avoid
Expand Down
2 changes: 1 addition & 1 deletion src/workerd/server/tests/compile-tests/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sh_test(
name = "helloworld_compile_test",
size = "small",
size = "medium",
srcs = ["compile-test.sh"],
args = [
"$(location //src/workerd/server:workerd)",
Expand Down
3 changes: 1 addition & 2 deletions src/workerd/server/tests/python/import_tests.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,17 @@ def gen_import_tests(to_test):
name = worker_py_fname + "@rule",
out = worker_py_fname,
content = [generate_import_py_file(to_test[lib])],
tags = ["slow"],
)
write_file(
name = wd_test_fname + "@rule",
out = wd_test_fname,
content = [generate_wd_test_file(lib)],
tags = ["slow"],
)

py_wd_test(
src = wd_test_fname,
args = ["--experimental", "--pyodide-package-disk-cache-dir", "../all_pyodide_wheels"],
data = [worker_py_fname, "@all_pyodide_wheels//:whls"],
tags = ["slow"],
size = "enormous",
)

0 comments on commit a59d094

Please sign in to comment.