Repository navigation
Fix OrdinaryDiffEqSIMDRK precompilation: explicit SciMLBase imports - #4174
Merged
ChrisRackauckas merged 1 commit intoAug 8, 2026
Conversation
OrdinaryDiffEqSIMDRK failed to precompile: src/perform_step.jl defines a method on ODEFunction, which it only reached through `@reexport using OrdinaryDiffEqCore` before Core dropped its blanket SciMLBase reexport in SciML#4119. Import ODEFunction (and ODEProblem, solve, init, step! in the three affected test files) explicitly, and add SciMLBase to [deps]/[compat] since src/ extends a SciMLBase type. Co-Authored-By: Chris Rackauckas <[email protected]>
ChrisRackauckas
marked this pull request as ready for review
August 8, 2026 12:48
ChrisRackauckas-Claude
pushed a commit
to ChrisRackauckas-Claude/OrdinaryDiffEq.jl
that referenced
this pull request
Aug 9, 2026
…leasable Registered OrdinaryDiffEqSIMDRK 2.1.1 does `@reexport using OrdinaryDiffEqCore` and uses `ODEFunction` unqualified. SciML#4119 removed Core's blanket `@reexport using SciMLBase`, so that name is no longer in Core's export surface and 2.1.1 cannot precompile against Core master. SciML#4174 fixed the source but did not bump the version, so the fix is not releasable. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01F75XsVeZ94QH3PmCuq6QUF
ChrisRackauckas
added a commit
that referenced
this pull request
Aug 9, 2026
…ble (#4183) Registered OrdinaryDiffEqSIMDRK 2.1.1 does `@reexport using OrdinaryDiffEqCore` and uses `ODEFunction` unqualified. #4119 removed Core's blanket `@reexport using SciMLBase`, so that name is no longer in Core's export surface and 2.1.1 cannot precompile against Core master. #4174 fixed the source but did not bump the version, so the fix is not releasable. Claude-Session: https://claude.ai/code/session_01F75XsVeZ94QH3PmCuq6QUF Co-authored-by: ChrisRackauckas-Claude <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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.
Please ignore until reviewed by @ChrisRackauckas.
What changed and why
OrdinaryDiffEqSIMDRKdoes not precompile at all onmaster:src/perform_step.jl:45defines a method onODEFunction, but the package reached that name only through@reexport using OrdinaryDiffEqCoreandOrdinaryDiffEqCorestopped re-exporting SciMLBase in #4119 (4ca8a4c2ca24c871b0cd9308399473ffed3a2277, 2026-08-05). This adds explicitusing SciMLBase: ...imports insrc/and in the three test files that referenced SciMLBase names the same way, plusSciMLBaseto[deps]/[compat]— the reexport removal is the intended v7 behavior, so nothing is restored inOrdinaryDiffEqCore.Failing before
Base commit:
7b1ad0368280061076d10db82b37ff747486efce("Zero AdaptiveRadau's stage-value slots at initialization (#4160)"), clean clone ofmaster, no local modifications.Its own test suite therefore never runs a single test:
Full list of unreachable names
Every SciMLBase name
lib/OrdinaryDiffEqSIMDRKreferenced without being able to reach it (found by grep plus repeated load/test attempts until the suite ran clean, so the list is closed, not just the first error):src/perform_step.jl:45(method definition)ODEFunctionusing SciMLBase: ODEFunctioninsrc/OrdinaryDiffEqSIMDRK.jltest/adaptivity_tests.jlODEProblem,solveusing SciMLBase: ODEProblem, solvetest/convergence_tests.jlODEFunction,ODEProblemusing SciMLBase: ODEFunction, ODEProblemtest/qa/allocation_tests.jlODEProblem,init,step!using SciMLBase: ODEProblem, init, step!This matches the SIMDRK rows of the repo-wide scan in #4169.
New dependency (please look at this)
SciMLBasewas not inlib/OrdinaryDiffEqSIMDRK/Project.toml; it was reached transitively throughOrdinaryDiffEqCore. Sincesrc/defines a method onSciMLBase.ODEFunction, SciMLBase is a genuine direct dependency, so this PR adds it to[deps]withSciMLBase = "3.39", the same floor every other sublibrary in the monorepo uses (OrdinaryDiffEqCore,OrdinaryDiffEqTsit5,OrdinaryDiffEqBDF, ...). Both the resolved version and the compat floor declare all five names public:(The same check against the version actually resolved here, SciMLBase v3.43.0, also returns
truefor all five.)That also means a patch release of
OrdinaryDiffEqSIMDRKis required for this to reach users — the registered v2.1.1 hasOrdinaryDiffEqCore = "4", so it is broken againstOrdinaryDiffEqCore4.14. I left the version number alone here since this repo bumps sublibrary versions in batch release PRs.Passing after
The package loads:
and its whole suite runs to completion:
The two
Brokenresults inAllocation Testsare the pre-existing@test length(allocs) == 0 broken = trueintest/qa/allocation_tests.jl; I did not add or widen anybroken/skipmarker.Re-run after rebasing onto
0651ac96544c67492d01c588fff18eaf0ae94e3e(currentmaster), same result:Formatting/spelling:
Runic.main(["--check", "--diff", <the four .jl files>])exits 0;typos lib/OrdinaryDiffEqSIMDRKexits 0.Is SIMDRK in CI? Yes — and CI caught this; the PR was merged red
This is not an un-built sublibrary.
SublibraryCIselected it (it depends on the changedOrdinaryDiffEqCore) and all three of its jobs failed on #4119 with exactly this error, and it was merged anyway:sublibrary-ci / lib/OrdinaryDiffEqSIMDRK / Julia 1 / Tests - Coresublibrary-ci / lib/OrdinaryDiffEqSIMDRK [QA] / Julia 1 / Tests - QAdowngrade-sublibraries / test (lib/OrdinaryDiffEqSIMDRK)Both
sublibrary-cilogs containERROR: LoadError: UndefVarError: `ODEFunction` not defined in `OrdinaryDiffEqSIMDRK`. So no CI wiring change is proposed here — the gap was in merging past red required-looking checks, not in coverage.Not verified
ltsorpre(SIMDRK has notest_groups.toml, so CI gives it Core on[lts, 1, pre]and QA on[lts, 1]).downgrade-sublibrariesjob was not reproduced locally; I only checked that SciMLBase 3.39.0 declares the five names public, not that the full downgraded resolve succeeds.src/change is oneusingline in a package nothing else in the monorepo depends on.