Skip to content

Conversation

@Keno
Copy link
Member

@Keno Keno commented Nov 22, 2025

precompilation has a test for the JULIA_TESTS env var that is required to get tests to work. On master, the check was removed in 42a33bb, but on 1.12 it is there and causing problems. Since this is fixed on master, I think the simplest fix is just to set JULIA_TESTS in runtests.jl also on 1.12 to avoid having to mess with the precompilation code itself.

Fixes #59887

In v1.12.1, precompilation output was only suppressed when the
JULIA_TESTS environment variable was set. While Base.runtests()
sets this variable for the main test process, subprocesses spawned
by individual tests (e.g., in test/precompile.jl) did not inherit
it, causing unexpected precompilation progress messages in stderr.

This minimal fix sets JULIA_TESTS="true" in test/runtests.jl so
that all test subprocesses inherit the variable and properly
suppress precompilation output.

Fixes #59887
@Keno Keno merged commit 708662c into release-1.12 Nov 22, 2025
7 checks passed
@Keno Keno deleted the claude/fix-1.12-precompile-output-01WvRzFWXwv3ptkBd75oeTsd branch November 22, 2025 05:58
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