Skip to content

runtests: prefix with the testsuite and worker number#60372

Open
IanButterworth wants to merge 2 commits into
JuliaLang:masterfrom
IanButterworth:ib/runtests_prefix
Open

runtests: prefix with the testsuite and worker number#60372
IanButterworth wants to merge 2 commits into
JuliaLang:masterfrom
IanButterworth:ib/runtests_prefix

Conversation

@IanButterworth

@IanButterworth IanButterworth commented Dec 12, 2025

Copy link
Copy Markdown
Member

Depends on JuliaLang/Distributed.jl#157

Shows the test suite name as the output prefix to make it easier to figure out which test it came from

https://buildkite.com/julialang/julia-master/builds/52736#019b13f7-46fa-4266-8d65-b785869b9c06/954-1074

Screenshot 2025-12-12 at 2 34 08 PM

@gbaraldi

Copy link
Copy Markdown
Member

What am I looking for as a difference

@IanButterworth

Copy link
Copy Markdown
Member Author

It's not currently working

From worker 4: Precompiling packages...
From worker 4:     262.0 ms  ✓ Foo51989
From worker 4:   1 dependency successfully precompiled in 0 seconds

Should look like

loading (4): Precompiling packages...
loading (4):     262.0 ms  ✓ Foo51989
loading (4):  1 dependency successfully precompiled in 0 seconds

@IanButterworth

Copy link
Copy Markdown
Member Author

@IanButterworth

Copy link
Copy Markdown
Member Author

I think it's looking good, but not sure if the changes to Distributed are the best way to do it i.e. via a global hook..
JuliaLang/Distributed.jl#157

@IanButterworth
IanButterworth marked this pull request as ready for review December 18, 2025 03:24
@IanButterworth

Copy link
Copy Markdown
Member Author

@JamesWrigley would you mind reviewing this and JuliaLang/Distributed.jl#157

@JamesWrigley

Copy link
Copy Markdown
Member

Sure, will try to give it a look over the weekend 👍

@IanButterworth

Copy link
Copy Markdown
Member Author

@JamesWrigley did you have any feedback on this? thanks

@JamesWrigley

Copy link
Copy Markdown
Member

My apologies, I forgot 🙈 Will take a look tomorrow.

@JamesWrigley JamesWrigley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

My apologies, I forgot 🙈 Will take a look tomorrow.

In my defense I had food poisoning last week 🤣

Comment thread test/runtests.jl Outdated
Comment thread test/runtests.jl Outdated
Comment thread test/runtests.jl
Comment thread test/runtests.jl Outdated
IanButterworth and others added 2 commits July 16, 2026 11:00
Label each line of a test worker's output with the test it is currently
running instead of just its worker id, making it much easier to tell which
suite a stray log line or precompile message came from.

Worker output is routed through Distributed, so an internal
`Distributed.worker_output_hook` is installed that transforms each line into a
de-emphasized `"<test> (<worker>): "` prefix (falling back to the worker id
when the worker is between tests). The node-1 tests run in-process and do not
pass through that redirection, so their stdout/stderr are captured with a
`Pipe` and prefixed the same way via `with_output_prefix`. Prefixes are styled
with `StyledStrings` so they are only colorized on IOs that support it.

The embedding test is updated for the reduced single-space default worker
prefix introduced in the corresponding Distributed change.

Depends on JuliaLang/Distributed.jl#157.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Point the bundled Distributed at JuliaLang/Distributed.jl#157, which adds the
internal `worker_output_hook` used by the test harness.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

4 participants