Skip to content

Raise the NonlinearSolve Core compat floor - #4324

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix/nonlinear-core-compat
Aug 22, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix/nonlinear-core-compat

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Ignore this PR until it has been reviewed by @ChrisRackauckas.

What changed and why

Raise OrdinaryDiffEqNonlinearSolve's OrdinaryDiffEqCore compatibility floor from 4.12 to 4.13. The nonlinear mass-matrix inference tests use the statically resolvable Diagonal.diag path added in OrdinaryDiffEqCore 4.13.0; the old floor let downgrade resolution select 4.12.0, where the existing Rodas4 @inferred checks infer Any.

This is a one-line compatibility-only change. It does not change source code or public API.

Failing before

I ran the repository's Julia 1.11 downgrade resolution for lib/OrdinaryDiffEqNonlinearSolve, which selected:

OrdinaryDiffEqCore v4.12.0

Running the two existing Rodas4 mass-matrix @inferred solve expressions in that exact downgraded Project/Manifest failed on the first expression:

return type ODESolution{...} does not match inferred return type Any

The solve itself returns the expected concrete ODESolution; the regression is the loss of inference under the supported 4.12 floor.

Failing CI job: https://github.com/SciML/OrdinaryDiffEq.jl/actions/runs/32391248972/job/96528442550

Passing after

With only the compat floor changed, the same downgrade resolution selected OrdinaryDiffEqCore v4.13.0. The same two Rodas4 @inferred expressions exited 0:

two Rodas4 inference checks passed

Current-master package validation:

$ GROUP=QA julia +1.12 --startup-file=no --project=lib/OrdinaryDiffEqNonlinearSolve -e 'using Pkg; Pkg.test()'
JET Tests | 13 pass, 33 broken, 46 total
Aqua      | 41 pass, 41 total
Testing OrdinaryDiffEqNonlinearSolve tests passed

$ GROUP=Core julia +1.12 --startup-file=no --project=lib/OrdinaryDiffEqNonlinearSolve -e 'using Pkg; Pkg.test()'
OrdinaryDiffEqNonlinearSolve Core | 890 pass, 40 broken, 930 total
Testing OrdinaryDiffEqNonlinearSolve tests passed

Runic --check --diff  # exit 0
typos                # exit 0
git diff --check     # exit 0

Both final package runs resolved the current-master local OrdinaryDiffEqDifferentiation v3.9.1 source.

Not verified

GPU, prerelease Julia, and GROUP=Everything were not run locally. No docs build was run because this compatibility-only change touches no public API, docstring, or documentation.

@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review August 22, 2026 07:20
@ChrisRackauckas
ChrisRackauckas merged commit 62a52b2 into SciML:master Aug 22, 2026
146 of 172 checks passed
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.

2 participants