Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug info if repeated precompilation is hit in tests #3565

Merged
merged 5 commits into from
Aug 2, 2023
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion test/api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,17 @@ end
Pkg.precompile(io=iob)
@test occursin("Precompiling", String(take!(iob)))
Pkg.precompile(io=iob) # should be a no-op
@test !occursin("Precompiling", String(take!(iob)))
if !occursin("Precompiling", String(take!(iob)))
@test true
else
# helpful for debugging why on CI
IanButterworth marked this conversation as resolved.
Show resolved Hide resolved
println(“Repeated precompilation detected. Running again with loading debugging on”)
withenv(“JULIA_DEBUG” => “loading”) do
IanButterworth marked this conversation as resolved.
Show resolved Hide resolved
Pkg.precompile(io=iob)
println(String(take!(iob)))
@test false
end
end
end end
end
end
Expand Down
Loading