Skip to content

Commit

Permalink
Add nextest override for flaky tests
Browse files Browse the repository at this point in the history
- Kill tests after 6 minutes, the slowest tests in the default set take
  about 2 minutes.
  • Loading branch information
sveitser committed Dec 5, 2024
1 parent 647e6c3 commit afd110f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
[profile.default]
slow-timeout = "2m"
# Kill tests after 3 periods of 2m, because they are probably hanging
slow-timeout = { period = "2m", terminate-after = 3 }
default-filter = 'not (test(slow_) | package(tests))'
retries = 2

[[profile.default.overrides]]
# This test is fast if it works (usually about 150ms) but sometimes hangs,
# especially when running concurrently with other tests. Kill it after 500ms and
# retry up to 10 times.
filter = 'test(test_process_client_handling_stream_subscribe_node_identity)'
slow-timeout = { period = "500ms", terminate-after = 1 }
retries = 10

# The restart tests run an entire sequencing network, and so are quite resource intensive.
[[profile.default.overrides]]
filter = 'test(slow_test_restart)'
Expand Down

0 comments on commit afd110f

Please sign in to comment.