Skip to content

Warn when the pre-test init time becomes much slower than a worker restart - #183

Open
christiangnrd wants to merge 9 commits into
mainfrom
slowwarn
Open

christiangnrd wants to merge 9 commits into
mainfrom
slowwarn

Conversation

@christiangnrd

@christiangnrd christiangnrd commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Close #182

Screenshots:
image

image

@christiangnrd
christiangnrd added this pull request to stack #184 September 11, 2026 13:03
@giordano

Copy link
Copy Markdown
Collaborator

Haven't looked at the code, I appreciate the idea, but that message so long feels a bit too much, probably a very brief explanation and a pointer to the docs would be better

@christiangnrd

Copy link
Copy Markdown
Collaborator Author

Haven't looked at the code, I appreciate the idea, but that message so long feels a bit too much, probably a very brief explanation and a pointer to the docs would be better

I agree I'll fix it up in the near future

Comment thread src/ParallelTestRunner.jl Outdated
…start

Under macOS memory pressure (issue #124), the full GC run before each test
gets progressively slower on a long-lived worker, which is usually a sign that
there are too many workers for the available memory and can lead to hangs or
much longer test times. Track the init time of tests run on freshly spawned
workers (which already includes spawn, init_worker_code and init_code, so it is
the full cost of a restart) and, once a warm init exceeds SLOW_INIT_FACTOR times
that, print a warning (once per run) suggesting to lower JULIA_TEST_MAXRSS_MB /
max_worker_rss or the number of jobs. A testset forces a slow init to check the
warning.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@christiangnrd

Copy link
Copy Markdown
Collaborator Author

@giordano This should be ready for final review. I improved the job selection docs so that the warning message has something to refer to, and I got rid of the pointless ptr_default face.

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.

Document JULIA_TEST_MAXRSS_MB

2 participants