Skip to content

Raise LinearSolve floor for dual matrices - #1163

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:agent/linear-solve-dual-floor
Aug 14, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:agent/linear-solve-dual-floor

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Ignore this PR until reviewed by @ChrisRackauckas.

What changed

Raise the LinearSolve compat floor from 5.0.1/5 to 5.4 in NonlinearSolve and NonlinearSolveBase. LinearSolve 5.4 is the first release in this series that imports SciMLOperators.issquare, which is required when the downgraded NonlinearSolve Core suite initializes a LinearProblem whose matrix contains nested ForwardDiff duals.

This is a mechanical compat-only follow-up to #1162. It does not change solver behavior or tests.

Failing before

The exact downgraded Core job for #1162 resolved LinearSolve 5.0.1 and failed in test/Core/forward_ad_tests__item2.jl:

UndefVarError: `issquare` not defined in `LinearSolve`

Job: https://github.com/SciML/NonlinearSolve.jl/actions/runs/31797173617/job/94756697451

A local isolated version matrix reproduced the same UndefVarError with LinearSolve 5.0.1, 5.1.0, 5.2.0, and 5.3.0. Changing only LinearSolve to 5.4.0 made the identical dual-matrix LinearProblem initialization print linear init passed.

Passing after

I reproduced the repository's downgrade route locally on Julia 1.10:

julia +1.10 --startup-file=no .downgrade-action/downgrade.jl "" "." "alldeps" "1.10" ""
NONLINEARSOLVE_TEST_GROUP=Core julia +1.10 --startup-file=no --project=. -e 'using Pkg; Pkg.test(; allow_reresolve=false)'

The resolved manifest selected LinearSolve 5.4.0. The previously failing NLLS Hessian test passed 10/10, and the full Core group completed with:

Testing NonlinearSolve tests passed

Additional local checks:

  • GROUP=QA julia +1.12 --startup-file=no --project=. -e 'using Pkg; Pkg.test()' — QA 28/28; package tests passed.
  • typos Project.toml lib/NonlinearSolveBase/Project.toml lib/SCCNonlinearSolve/Project.toml — passed.
  • git diff --check — passed.

No documentation, public definitions, GPU paths, downstream packages, or GROUP=Everything were changed or tested.

@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review August 14, 2026 12:55
@ChrisRackauckas
ChrisRackauckas merged commit 30fd52e into SciML:master Aug 14, 2026
20 of 25 checks passed
ChrisRackauckas added a commit that referenced this pull request Aug 14, 2026
NonlinearSolveBase already requires LinearSolve 5.4 (#1163). The
FirstOrder and QuasiNewton sublibraries still declared LinearSolve 5,
so Downgrade Sublibraries pinned 5.0.0 and Pkg.test failed as
unsatisfiable.

Co-authored-by: ChrisRackauckas-Claude <[email protected]>
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