Repository navigation
Re-export the SciMLBase common interface from leaf solver sublibraries, chosen by a documented rule - #4272
Conversation
|
CI triage (142 pass / 23 fail / 2 pending GPU). Every job that exercises the changed sublibraries is green: 42/43
Also found while running the touched suites locally: the Extrapolation |
f9293b1 to
31168ba
Compare
|
Pushed 31168ba: switched from the blanket |
|
Thanks for starting to work on this so quickly. I don't want to rush you, @ChrisRackauckas , but it would be great if you could prioritize this PR, since the issue let's our CI fail and I don't like merging PRs with failing CI... |
Before the change to remove everything, one could also setup a
Why should there be callback constructors but not the methods needed for programming callbacks (like |
5a8726c to
388f872
Compare
|
Rebased onto current upstream Local verification after the rebase:
The new hosted checks are running on commit ChrisRackauckas-Claude@388f872. |
388f872 to
09ce3f5
Compare
|
Rebased this branch onto current The docs examples now exercise the leaf-package API directly:
Local verification after the rebase:
The earlier broad CI failures were from the older base and included existing numerical/AD failures and stale QA metadata; this push should provide a fresh result on current master. |
|
@ranocha both points taken — pushed a11137f, which replaces the hand-picked list with a rule. The rule (documented in the new
Everything else stays behind That answers both of your questions directly:
The rule is enforced, not just written down — Not blanket Sublibraries that still re-export all of SciMLBase (Tsit5, Verner, BDF, …) are a superset of this list, so they are unaffected; migrating them to the rule narrows exports and is a separate, mechanical PR rather than something to mix into a regression fix. Verification on this branch (Julia 1.12.4): full |
eeebe3a to
5dff2a6
Compare
|
Rebased onto master |
|
Second master-side blocker found while triaging this branch's CI: |
|
CI triage. Every failing check on this branch also fails on PRs that touch none of this code, so none is caused by the re-export change. Cross-checked against #4334 (a one-identifier rename) and the unrelated #4333 / #4328 / #4327 / #4325:
Updated as later jobs finished; no new failure has been attributable to this PR. Green here and directly relevant: all 42 Local verification of this branch (Julia 1.12.4): |
|
@ranocha fine with this contract? |
The rule looks reasonable, thanks 👍 |
|
CI has finished on all three branches, so the attribution is now exact rather than provisional. Failing-check sets, compared against two branches that change essentially nothing (#4334 renames one local; #4336 changes one compat entry): 16 of the 17 failures are byte-identical to the ones a one-identifier rename produces. The remaining one is the Aqua persistent-tasks failure tracked in #4277 — red on master since 2026-08-03, and red on #4327 as well; it is absent from #4334/#4336 only because Master-side fixes opened while triaging this branch, each with failing-before / passing-after evidence:
With those three merged, |
5dff2a6 to
eba4e25
Compare
eba4e25 to
e7a8ed2
Compare
|
The failed Julia LTS Evidence:
The initial direct 1.10.12 single-file attempt used a cross-version manifest/depot and is not valid evidence; the clean-depot full-group run above is authoritative. AI-Agent: OpenAI Codex |
The public-API hardening PRs (SciML#4123, SciML#4124, SciML#4126, SciML#4128, SciML#4131, SciML#4132, sublibraries, so `using OrdinaryDiffEqFeagin` (and the others) no longer provides `ODEProblem`/`solve`. Re-export the names needed for ordinary ODE usage (problem/function types, solve/init/step!, remake, ReturnCode, callbacks) rather than the whole SciMLBase surface, add Reexport back as a dependency, approve exactly those names in each QA config, and test that they are exported. Patch-bump the seven sublibraries that already shipped the regression. Fixes SciML#4269 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude <[email protected]> Claude-Session: https://claude.ai/code/session_01WiHL8AqRSy2VQZF6j68ovM
Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude <[email protected]> Claude-Session: https://claude.ai/code/session_01WiHL8AqRSy2VQZF6j68ovM
Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude <[email protected]> Claude-Session: https://claude.ai/code/session_01WiHL8AqRSy2VQZF6j68ovM
Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude <[email protected]> Claude-Session: https://claude.ai/code/session_01WiHL8AqRSy2VQZF6j68ovM
Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude <[email protected]> Claude-Session: https://claude.ai/code/session_01WiHL8AqRSy2VQZF6j68ovM
Review asked two things: cover everything a user needs to set up any problem these solvers accept, and replace the case-by-case name list with a rule that can be stated and does not depend on what each package happened to export in the past. The rule: a SciMLBase name is re-exported iff it is part of the user-facing common interface, in five closed categories -- every concrete problem and function type, the solve and solution-inspection API, callbacks, the integrator interface, and ensembles. Solver-author API (traits, `build_solution`, wrappers, macros), abstract types, and internal dispatch tags stay behind the `SciMLBase.` qualifier. That covers the surface DifferentialEquations.jl exposes, so `SplitODEProblem` and the callback-authoring verbs such as `u_modified!` are available from every sublibrary rather than only from the one that solves that problem type. docs/src/api/reexports.md states the rule and lists the names, and the list is now identical in all nine sublibraries. test/qa/qa_tests.jl enforces it: it re-derives the mechanical category (concrete problem and function types) from a live SciMLBase, and checks the sublibraries and the docs page against each other, so a new SciMLBase problem type or a drifting sublibrary fails CI instead of surprising a user. Minor-bump the four sublibraries whose registered version predates these exports; the other five already have a pending minor bump. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude <[email protected]> Claude-Session: https://claude.ai/code/session_01WiHL8AqRSy2VQZF6j68ovM
Use the documented Common Interface as the exact source of problem and function reexports, and enforce the contract across all selective solver packages. Codex-Session-ID: 01a03a11-47c2-77e0-858b-167004f0b79c Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude <[email protected]> Claude-Session: https://claude.ai/code/session_01WiHL8AqRSy2VQZF6j68ovM
e7a8ed2 to
4997b0a
Compare
|
CI audit for The reexport-specific verification is green:
All 24 red checks reproduce independently of this reexport diff:
Workflow runs:
OpenAI Codex Session ID: |
…n interface (#4395) #4272 restored a uniform SciMLBase reexport surface across nine leaf solver packages via `@reexport using SciMLBase: ...` (~60 names each). That grows the public API, so these are minor bumps. Three of them had been given patch bumps, which understates newly exported public API and leaves downstreams unable to floor on it; corrected to minor here. Feagin, FunctionMap and PRK were already bumped correctly and are untouched. Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R Co-authored-by: Claude <[email protected]>
Ignore until reviewed by @ChrisRackauckas.
Fixes #4269
What changed and why
Nine leaf solver packages stopped re-exporting SciMLBase's user-facing interface when their imports were hardened, breaking code such as
using OrdinaryDiffEqFeagin; ODEProblem(...). This PR restores a uniform, deliberately limited interface across those packages.The problem/function portion now follows real OrdinaryDiffEq usage: it is exactly the concrete SciMLBase problem and function types rendered in
docs/src/api/common_interface.md. That leaves 12 relevant names (ODEProblem,SplitODEProblem,DAEProblem, discrete/dynamical/second-order variants, their function types, andEnsembleProblem) and removes unrelated optimization, nonlinear-equation, SDE, DDE, BVP, integral, and linear-problem APIs. The remaining reexports are the common solve, callback, integrator, and ensemble interfaces.test/qa/reexport_tests.jlchecks the documented list against the Common Interface, the live SciMLBase exports, and all nine selective packages. Extrapolation's implementation genuinely usesLinearProblem, so it now imports that public API explicitly without re-exporting it.The package version bumps remain minor because this adds public API relative to the currently registered leaf releases. Selective reexports remain identical in Default, Extrapolation, Feagin, FunctionMap, IMEXMultistep, PDIRK, PRK, QPRK, and TaylorSeries.
Failing before / passing after
With the new contract test present and the unfixed broad list still in place:
On rebased commit
4997b0a669bc74f8932d4609726b4d142b799954:Verification
Targeted
GROUP=Coresuites passed for Default, Extrapolation, Feagin, FunctionMap, IMEXMultistep, PRK, QPRK, and TaylorSeries. The Extrapolation Core suite was rerun in full after making itsLinearProblemimport explicit.PDIRK Core has an unrelated failure on an unmodified base checkout: the argument-guard test added by e4f0c5e resolves registered
OrdinaryDiffEqNonlinearSolve2.9.0 instead of the monorepo's 2.9.1 becauselib/OrdinaryDiffEqPDIRK/Project.tomllacks a[sources]entry. A clean-base bisect identified that commit; adding the local source mapping makes PDIRK Core pass 10/10. That unrelated fix is intentionally not mixed into this PR.Leaf QA passed for Default, Extrapolation, and Feagin. The other six leaf QA invocations reached their allocation checks but JET could not start a filesystem monitor because this host had all 128/128 per-user inotify instances occupied (
IOError: FolderMonitor (start): too many open files). No tests were disabled or silenced.Not verified locally
julia pre, and downstream-package jobs.Reviewer note
The judgment call is the Common Interface page as the source of truth for problem/function types. Adding a concrete SciMLBase type to that page makes the contract fail until the nine selective packages and the reexport documentation are updated together.
AI agent continuation: OpenAI Codex
Codex-Session-ID: 01a03a11-47c2-77e0-858b-167004f0b79c
🤖 Generated with Claude Code
https://claude.ai/code/session_01WiHL8AqRSy2VQZF6j68ovM