Skip to content

Commit

Permalink
do not intentionally suppress errors in precompile script from being …
Browse files Browse the repository at this point in the history
…reported or failing the result (#55909)

I was slightly annoying that the build was set up to succeed if this
step failed, so I removed the error suppression and fixed up the script
slightly
  • Loading branch information
vtjnash authored Sep 28, 2024
1 parent 00f0a6c commit 4a4ca9c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions contrib/generate_precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,7 @@ generate_precompile_statements() = try # Make sure `ansi_enablecursor` is printe
print_state("step1" => "F$n_step1")
return :ok
end
Base.errormonitor(step1)
!PARALLEL_PRECOMPILATION && wait(step1)
PARALLEL_PRECOMPILATION ? bind(statements_step1, step1) : wait(step1)

# Create a staging area where all the loaded packages are available
PrecompileStagingArea = Module()
Expand All @@ -362,7 +361,7 @@ generate_precompile_statements() = try # Make sure `ansi_enablecursor` is printe
# Make statements unique
statements = Set{String}()
# Execute the precompile statements
for sts in [statements_step1,], statement in sts
for statement in statements_step1
# Main should be completely clean
occursin("Main.", statement) && continue
Base.in!(statement, statements) && continue
Expand Down Expand Up @@ -398,6 +397,7 @@ generate_precompile_statements() = try # Make sure `ansi_enablecursor` is printe
println()
# Seems like a reasonable number right now, adjust as needed
# comment out if debugging script
have_repl = false
n_succeeded > (have_repl ? 650 : 90) || @warn "Only $n_succeeded precompile statements"

fetch(step1) == :ok || throw("Step 1 of collecting precompiles failed.")
Expand All @@ -408,7 +408,6 @@ generate_precompile_statements() = try # Make sure `ansi_enablecursor` is printe
finally
fancyprint && print(ansi_enablecursor)
GC.gc(true); GC.gc(false); # reduce memory footprint
return
end

generate_precompile_statements()
Expand Down

0 comments on commit 4a4ca9c

Please sign in to comment.