Skip to content

Julia 0.1.2: the precompile workload does not fail on a slow machine - #1033

Merged
mwadams merged 2 commits into
mainfrom
fix/julia-precompile-timing
Oct 17, 2026
Merged

mwadams merged 2 commits into
mainfrom
fix/julia-precompile-timing

Conversation

@mwadams

@mwadams mwadams commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Julia 0.1.2: the precompile workload does not fail on a slow machine

Julia runs a workload while it writes the package's image, and an error in it fails the installation. The workload of 0.1.1 sets a limit of 10 ms on a match and expects two of its matches to answer within it. Where they take longer, as in an image built for arm64 under emulation, the match reached its limit, the PatternMatchError was not caught, and Pkg.add or Pkg.precompile failed with "The following 1 package failed to precompile". This is what fails the arm64 build of the Bowtie harness (bowtie-json-schema/julia-corvus-json-schema#2).

  • precompile_workload takes the limit as a keyword (10 ms by default, as before). Each timed match ends at the limit without an error, and any other error is still thrown.
  • test/precompile.jl runs the workload with a limit of one nanosecond. It fails on 0.1.1 and passes with the fix.
  • No answer of the package changes. Version 0.1.0 is not affected.

No .NET build

The branch touches only src-jl, so it makes no .NET build and no NuGet release.

Verification

Pkg.test passes on Julia 1.13.1 and 1.10.12, with the new test. CI runs julia.yml.

After the merge

julia-publish asks JuliaRegistrator to register 0.1.2 and tags it. Then the Bowtie harness's compat goes to 0.1.2 and its CI runs again.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FLjSNeTDe88ubnjRrnsEQ3

Julia runs the package's precompile workload while it writes the package image, and an error there fails
Pkg.add. The workload of 0.1.1 set a limit of 10 ms on a match and caught PatternMatchError for only one of its
three timed matches. Under emulation (the arm64 image of the Bowtie harness, built on an x64 runner) the search of a
string of 20,000 characters reached the limit, and precompilation failed. Each timed match now ends at the limit
without an error, and the workload takes the limit as an argument, so that a test runs it with a limit of 1e-9 s
that every timed match reaches. The test failed before this change with the error CI gave, and passes after it.
0.1.0 had no timed matches in its workload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLjSNeTDe88ubnjRrnsEQ3
@mwadams
mwadams merged commit 521c768 into main Oct 17, 2026
25 checks passed
@mwadams
mwadams deleted the fix/julia-precompile-timing branch October 17, 2026 16:17
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.

1 participant