Skip to content

Conversation

@ilyagr
Copy link
Contributor

@ilyagr ilyagr commented Sep 22, 2025

No description provided.

@ilyagr ilyagr marked this pull request as ready for review September 22, 2025 21:06
@ilyagr ilyagr requested a review from a team as a code owner September 22, 2025 21:06
@ilyagr
Copy link
Contributor Author

ilyagr commented Sep 23, 2025

Thanks Austin! I'll wait for an out-of-ERSC approval as well.

This makes it so that tests that last longer than 10s are marked as
"SLOW" in nextest UI. This does not terminate them. We already have this
enabled in CI, but it seems nice to enable for everybody.  On my
machine, `test_concurrent_read_write_commit` sometimes deadlocks, and
this helps see which test is troublesome.

I erred on the side of a higher timeout, following the principle that
it's more important that warnings are actionable than to miss some
warnings. If somebody is debugging slow tests, they'll know to lower the
value.

See the CI config or the next commit for what a config that also
terminates tests if they run too long looks like.
@ilyagr ilyagr force-pushed the ig/nextest-timeout branch 2 times, most recently from 56dd534 to 8a8fbf8 Compare September 24, 2025 04:02
Previously, nextest marked tests slow in CI when they run for more
than 5 seconds. This makes it so that this happens after 10 seconds.

I did *not* change the timeout for when tests are actually *terminated*
for being too slow. It remains at 100s. It might make sense to increase
it (keeping the `terminate-after` multiplier at 10).

This is just adjusting to taste, but I find the number of SLOWs in
https://github.com/jj-vcs/jj/actions/runs/17843955040/job/50747342340?pr=7549
distracting, and most of the slow tests on Windows last more than 10s
anyway.

We could also do this only on Windows if people prefer, but
I think doing it everywhere is simpler.
@ilyagr ilyagr enabled auto-merge September 24, 2025 04:25
@ilyagr ilyagr added this pull request to the merge queue Sep 24, 2025
Merged via the queue into main with commit 4e09ad9 Sep 24, 2025
29 checks passed
@ilyagr ilyagr deleted the ig/nextest-timeout branch September 24, 2025 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants