From 647f70505ef4c0e6a2207f6f27a8f42d918b8297 Mon Sep 17 00:00:00 2001 From: konsti Date: Tue, 21 May 2024 15:19:57 +0200 Subject: [PATCH] Abort tests running for more than 60s to catch deadlocks (#3694) We observed recent deadlocks (e.g. https://github.com/astral-sh/uv/actions/runs/9173987312/job/25223866259?pr=3693) causing CI to run until the default github actions timeout. To prevent this, we add a 60s timeout in nextest. 60s should be enough both on CI and on developers' machines. --- .config/nextest.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/nextest.toml b/.config/nextest.toml index 01d7536c4..c063bb861 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -1,3 +1,4 @@ [profile.default] -# Mark tests that take longer than 10s as slow -slow-timeout = "10s" +# Mark tests that take longer than 10s as slow. +# Terminate after 90s as a stop-gap measure to terminate on deadlock. +slow-timeout = { period = "10s", terminate-after = 9 }