Repository navigation
Require LinearSolve 5.6 for rank-deficient least-squares fallback - #1261
Merged
ChrisRackauckas merged 3 commits intoSep 13, 2026
Merged
ChrisRackauckas merged 3 commits into
ChrisRackauckas merged 3 commits into
Conversation
Use independent local checkouts and the public AirspeedVelocity API so Julia LTS can resolve unregistered monorepo sublibrary versions. Publish comparison tables in the job summary and preserve the result artifacts. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Codex <[email protected]> Agent-Harness: Codex CLI 0.154.0 Agent-Model: gpt-6-astra Agent-Session: local transcript /home/crackauc/.codex/sessions/2026/09/12/rollout-2026-09-12T04-30-15-01a094bd-179a-7972-97ec-36badb9448cd.jsonl
Add a default Newton regression for a rank-deficient tall Jacobian and require the first LinearSolve release with the pivoted-QR fallback. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Codex <[email protected]> Agent-Harness: Codex CLI 0.154.0 Agent-Model: gpt-6-astra Agent-Session: local transcript /home/crackauc/.codex/sessions/2026/09/12/rollout-2026-09-12T04-30-15-01a094bd-179a-7972-97ec-36badb9448cd.jsonl
This was referenced Sep 12, 2026
ChrisRackauckas
marked this pull request as ready for review
September 13, 2026 13:35
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.
Require LinearSolve 5.6 for FirstOrder's default rank-deficient least-squares solves. With the previous minimum 5.4, an unpivoted QR failure leaves the solution at zero; the first release containing the upstream pivoted-QR fallback is 5.6.0. This adds a two-assertion Newton–Raphson regression and bumps FirstOrder to 2.6.2.
This is a separate compatibility prerequisite for the bounded-method drafts. It preserves shared linear-solver selection and adds no dependency or custom factorization fallback. LinearSolve and NonlinearSolve are MIT licensed.
Verification
The regression solves
NonlinearLeastSquaresProblem((u, p) -> [u[1] + u[2] - 0.6, 0.0, 0.0], zeros(2))withNewtonRaphson()and checks both the return code and residual. Local environments develop the checkout's FirstOrder, Base, and JacobianOperators sublibraries and pin LinearSolve to the version under test.Before, on the unmodified base runtime with LinearSolve 5.4.0:
After changing the compatibility requirement and pinning LinearSolve 5.6.0, the same command and assertions pass:
The full FirstOrder Core group also passed with the new minimum (3,334 assertions summed across printed testsets):
QA on Julia 1.12.7:
Runic, spelling, and
git diff --checkpassed. The bounded-method integration suite also passed 5810/5810 with the CI minimum dependency set and LinearSolve 5.6.0 on Julia 1.10.11 (GROUP=NativeBounds, 8m26.6s). GPU, downstream, and Julia prerelease jobs were not run locally; no assertions were skipped or relaxed.Baseline investigation
An isolated clean-master reproduction independently failed 2/2 with LinearSolve 5.4 and passed 2/2 with 5.6. Historical adjacent revisions identify the removal of NonlinearSolveBase's fallback: its parent passes 2/2 with LinearSolve 3.15, while the constructor-only repair immediately after the removal fails 2/2 with residual 0.6. The replacement in LinearSolve initially covered LU failures; the later QR fix is already upstream, so no duplicate issue was opened.
Existing CI failure
The Linux LTS Core job fails the existing Watson/true-Jacobian Broyden assertion at residual
3.3209535743826133 > 0.001: https://github.com/SciML/NonlinearSolve.jl/actions/runs/34702554263/job/103576814882 . This is the already reported BLAS-kernel-sensitive failure in #1078 .I reproduced that exact residual on unchanged master
40f6f613950636e22c25077124a93b914c1df669with bothOPENBLAS_CORETYPE=SANDYBRIDGEandNEHALEM, using Julia 1.10.12 with-C generic --compiled-modules=no --check-bounds=yes. The same Watson case withHASWELLsucceeds at2.3647750424515834e-14. Dependency versions match the failing CI job, including LinearSolve 5.17.2.The historical boundary was independently verified with LinearSolve 4.3.0 held constant: parent
d616cd994succeeds at3.108624468950438e-14; 6a7687f fails at the exact CI residual. This predates the compatibility change.The full root Core group also passes locally on both unchanged master and this branch with the default BLAS kernel:
Both locally developed environments print
23 Test Problems: Broyden | 93 pass, 22 pre-existing broken, 115 totalandTesting NonlinearSolve tests passed. No Broyden code or test expectations are changed here. CI is not fully green; the existing Watson failure remains open. GitHub rejected an attempted master-job rerun with HTTP 403 because the connected account lacks the required permission.Links
Existing Watson/Broyden failure: Watson true-Jacobian Broyden is OpenBLAS-kernel sensitive after #1039 #1078
Prerequisite benchmark workflow draft: Benchmark each revision with its local sublibraries on Julia LTS #1260
Upstream QR fallback fix: Fall back to pivoted QR when the default hits a rank-deficient least-squares problem LinearSolve.jl#1139
First fixed release: https://github.com/SciML/LinearSolve.jl/releases/tag/v5.6.0
Fallback removal: eddbe86
Constructor-only repair used to isolate the regression: 505710e
Focused diff: ChrisRackauckas-Claude/NonlinearSolve.jl@5857ff3...822bbe2
Ignore this draft until reviewed by @ChrisRackauckas.
🤖 Generated with Codex CLI 0.154.0 (model: gpt-6-astra). Session: local transcript
/home/crackauc/.codex/sessions/2026/09/12/rollout-2026-09-12T04-30-15-01a094bd-179a-7972-97ec-36badb9448cd.jsonl.