Skip to content

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

Merged
christiangnrd merged 4 commits into
mainfrom
slowwarn
Sep 20, 2026
Merged

christiangnrd merged 4 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
@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.

@giordano giordano left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, apart from making default_njobs private

Comment thread docs/src/api.md Outdated
```@docs
ParsedArgs
WorkerTestSet
default_njobs

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uhm, default_njobs used to be non-internal, and I'm already using it in the wild 🥲 it's useful to query what would be the default number of jobs

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’ll revert that

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed this up. I somehow missed that this had been purposely made public so I also reverted the docstring changes I made in #142

@christiangnrd

christiangnrd commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator Author

I'm going to clean up the commits and merge with rebase since I snuck in a few unrelated changes (like getting rid of the :ptr_default face)

@christiangnrd
christiangnrd merged commit 942008d into main Sep 20, 2026
18 checks passed
@christiangnrd
christiangnrd deleted the slowwarn branch September 20, 2026 16:24
@giordano

giordano commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator

Uhm, I'm seeing the warning at https://buildkite.com/clima/oceananigans/builds/33771#01a0c0e5-d574-45c1-b8fd-2abf0eb504b8/L719, but I don't think the machine is memory-constrained, GC time is good, following jobs have ~stable init time.

@christiangnrd

Copy link
Copy Markdown
Collaborator Author

Maybe I should increase the multiplier threshold to 3x?

@christiangnrd

Copy link
Copy Markdown
Collaborator Author

Or maybe same multipler but also a minimum threshold of 5 or 10 seconds or so

@giordano

Copy link
Copy Markdown
Collaborator

Yeah, another warning at https://buildkite.com/clima/oceananigans/builds/33771#01a0c0e5-d573-476c-bf5f-64e2bd93153e/L713, but there are only 11 concurrent workers out of 32 available cores at the moment, and memory usage is expected and well below critical values.

Maybe I should increase the multiplier threshold to 3x?

For the numbers I've seen so far 3x should suffice in these jobs, I'm now getting worried that any factor could have counterexamples 😕

@giordano

Copy link
Copy Markdown
Collaborator

Or maybe same multipler but also a minimum threshold of 5 or 10 seconds or so

A threshold may help

@christiangnrd

christiangnrd commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator Author

Once I’m at my computer I’ll try threshold I have a feeling this is only a problem for fast init time testsuites. But that’s probably most.

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