Repository navigation
Preserve invalid positional solver errors after default preparation - #4257
Merged
ChrisRackauckas merged 1 commit intoAug 22, 2026
Conversation
Member
Author
|
The same solve-error regression reproduced again in SciMLBase source-triggered downstream CI: https://github.com/SciML/SciMLBase.jl/actions/runs/32365988822/job/96415492958 This matches the clean-current-master fail-before case documented in this PR; its focused fix remains the non-duplicative path. |
ChrisRackauckas-Claude
force-pushed
the
agent/fix-diffeqbase-default-prepare
branch
3 times, most recently
from
August 20, 2026 17:09
b812a37 to
e3993c9
Compare
Co-Authored-By: Chris Rackauckas <[email protected]>
ChrisRackauckas-Claude
force-pushed
the
agent/fix-diffeqbase-default-prepare
branch
from
August 20, 2026 21:53
e3993c9 to
d3dd6e0
Compare
ChrisRackauckas
marked this pull request as ready for review
August 22, 2026 07:22
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 this PR until reviewed by @ChrisRackauckas.
What changed and why
Prepare a problem-dependent default algorithm only when the caller omitted the positional algorithm or explicitly passed
nothing. Invalid positional values now continue through the normal fallback and raiseNonSolverErrorinstead of being silently replaced and dropped. The matchinginit(prob, 5.0)regression is covered alongsidesolve(prob, 5.0), and DiffEqBase is bumped to 7.18.1.An independent runtime bisect from current master 3c20997 to good 9d92d1c identified 27faa3a as the first bad commit. That commit made
prepare_algunconditional wheneverextract_algreturnednothing; for an invalid positional5.0, this installedDefaultODEAlgorithm, entered the valid-algorithm branch, and discarded the invalid argument.Failing before / passing after
On unfixed current master, both calls fail to throw:
With this patch, the complete error-handling testset and DiffEqBase downstream group pass:
Local verification
GROUP=Downstream julia +1.12 --project=lib/DiffEqBase -e 'using Pkg; Pkg.test()': passed in 1998.99 seconds. Error handling 14/14; Enzyme 5/5; Unitful 4/4; FlexUnits 3/3; all other downstream testsets completed.GROUP=QA julia +1.12 --project=lib/DiffEqBase -e 'using Pkg; Pkg.test()': Aqua 9/9; package tests passed.solve(prob, 5.0)andinit(prob, 5.0)passed after failing on the unfixed source; the completesolve_error_handling.jlfile passed 14/14.typoson all three changed files, andgit diff upstream/master --check: passed.The DiffEqBase change intentionally triggers the broad CI matrix requested for this master-failure audit. Docs, GPU, and prerelease-Julia jobs were not run locally because this changes no public API or documentation and the local target is DiffEqBase downstream/error handling.