Skip to content

Limit each test to 75 minutes instead of 5 hours - #26

Merged
samth merged 1 commit into
racket:masterfrom
samth:test-timeout-cap
Nov 6, 2026
Merged

samth merged 1 commit into
racket:masterfrom
samth:test-timeout-cap

Conversation

@samth

@samth samth commented Nov 6, 2026

Copy link
Copy Markdown
Member

DrDr killed a test only after current-make-install-timeout-seconds,
5 hours, and counted on raco test --timeout to stop it sooner. That
timer is a green thread in the test's own place, so it cannot fire
while the test blocks in C. After a test that started places
recursively blocked Racket BC's main thread in place creation, each
run lasted about 2.5 hours until BC aborted, and every build took
about 47 minutes longer:

https://drdr.racket-lang.org/74124/pkgs/racket-test/tests/racket/place-startup-ltps.rkt

Add current-test-timeout-seconds and use it for test runs. Its value,
75 minutes, exceeds the longest per-test timeout, 4000 seconds, which
drracket-test's info.rkt sets for errortrace-startup.rkt. The help page
now describes both limits.

DrDr killed a test only after `current-make-install-timeout-seconds`,
5 hours, and counted on `raco test --timeout` to stop it sooner. That
timer is a green thread in the test's own place, so it cannot fire
while the test blocks in C. After a test that started places
recursively blocked Racket BC's main thread in place creation, each
run lasted about 2.5 hours until BC aborted, and every build took
about 47 minutes longer:

https://drdr.racket-lang.org/74124/pkgs/racket-test/tests/racket/place-startup-ltps.rkt

Add `current-test-timeout-seconds` and use it for test runs. Its value,
75 minutes, exceeds the longest per-test timeout, 4000 seconds, which
drracket-test's info.rkt sets for errortrace-startup.rkt. The help page
now describes both limits.
@samth
samth merged commit 5fa3f61 into racket:master Nov 6, 2026
1 check passed
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.

1 participant