Repository navigation
Julia 0.1.2: the precompile workload does not fail on a slow machine - #1033
Merged
Merged
Conversation
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
This was referenced Nov 1, 2026
Open
This was referenced Nov 9, 2026
Merged
Bump Corvus.Json.Validator and meziantou.framework.nugetpackagevalidation.tool
Joseleno/Incognito#75
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
PatternMatchErrorwas not caught, andPkg.addorPkg.precompilefailed 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_workloadtakes 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.jlruns the workload with a limit of one nanosecond. It fails on 0.1.1 and passes with the fix.No .NET build
The branch touches only
src-jl, so it makes no .NET build and no NuGet release.Verification
Pkg.testpasses 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
compatgoes to 0.1.2 and its CI runs again.🤖 Generated with Claude Code
https://claude.ai/code/session_01FLjSNeTDe88ubnjRrnsEQ3