Repository navigation
Import DiscreteProblem from SciMLBase in the InterfaceII enum test - #4169
Merged
ChrisRackauckas merged 1 commit intoAug 8, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
`using OrdinaryDiffEq` no longer re-exports SciMLBase (v7), and OrdinaryDiffEqFunctionMap exports only `FunctionMap`, so test/InterfaceII/enums.jl could no longer see `DiscreteProblem`. Co-Authored-By: Chris Rackauckas <[email protected]>
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 until reviewed by @ChrisRackauckas.
What changed and why
test/InterfaceII/enums.jlusedDiscreteProblemwhile importing onlyOrdinaryDiffEq,RandomandOrdinaryDiffEqFunctionMap. OrdinaryDiffEq v7 intentionally dropped the blanket@reexport using SciMLBase(src/OrdinaryDiffEq.jl: "Load packages (no blanket @reexport)"), andOrdinaryDiffEqFunctionMapexports onlyFunctionMap, so the name became unreachable and the wholeInterfaceIIgroup aborted. This addsusing SciMLBase: DiscreteProblem, matching the migration pattern the repo already uses elsewhere (test/InterfaceI/public_api_package_split.jl,lib/OrdinaryDiffEqFunctionMap/test/discrete_algorithm_test.jl). Nosrc/change — the reexport removal is the intended v7 behavior.Failing before
Base commit:
7b1ad0368280061076d10db82b37ff747486efce("Zero AdaptiveRadau's stage-value slots at initialization (#4160)"), clean clone ofmaster, no local modifications.The group aborted at
Enum Tests, soGet du Testsnever ran.Passing after
Same command, same environment, only this commit applied:
The group now runs to completion, including
Get du Testswhich the abort previously skipped.Enum Testsreports 0 assertions becauseenums.jlcontains no@test— it is a smoke test that fails by throwing, which is exactly what regressed. I did not add assertions to it in this PR.Formatting/spelling:
Runic.main(["--check", "--diff", "test/InterfaceII/enums.jl"])exits 0;typos test/InterfaceII/enums.jlexits 0.Scope: is this the only affected test file?
I scanned every
test/directory in the repo (roottest/and alllib/*/test/) with an AST-based check: for each file, parse it, collect the modules and names its ownusing/importstatements actually make available (loading each module and takingnames(m), so blanket re-exports count), then report SciMLBase-exported names referenced bare that those imports cannot supply. QualifiedMod.nameaccesses, keyword-argument names, comments and strings do not register. The check was validated against the pre-fix file: run ongit show HEAD:test/InterfaceII/enums.jlit reportsenums.jl => DiscreteProblem, and it reports nothing for the fixed file.Only four files in the whole repo have unreachable SciMLBase names, and
test/InterfaceII/enums.jlwas the only one in a group that runs:test/InterfaceII/enums.jlDiscreteProblemtest/multithreading/ode_extrapolation_tests.jlODEFunction,ODEProblem,solvetest/multithreading/is referenced by no group intest/runtests.jland by nothing in.github/, so it never executeslib/OrdinaryDiffEqSIMDRK/test/adaptivity_tests.jlODEProblem,solvesrc/does not precompile at all (see below)lib/OrdinaryDiffEqSIMDRK/test/convergence_tests.jlODEFunction,ODEProblemlib/OrdinaryDiffEqSIMDRK/test/qa/allocation_tests.jlODEProblem,init,step!Notably
test/InterfaceI/interpolation_output_types.jl:30also callsDiscreteProblemwith no explicit import, but it loadsOrdinaryDiffEqRKN, which still does@reexport using SciMLBase, so the name is reachable and that file does not fail. I left it alone rather than widen this PR.Related breakage found but not fixed here
lib/OrdinaryDiffEqSIMDRKdoes not precompile on master, for the same root cause one level up: it does@reexport using OrdinaryDiffEqCore, butOrdinaryDiffEqCoreno longer re-exports SciMLBase, soODEFunctioninlib/OrdinaryDiffEqSIMDRK/src/perform_step.jl:45is undefined.That is a
src/fix in a different package plus three of its test files, so it is deliberately out of scope here rather than mixed into this one-line test-import change.Not verified
InterfaceIIgroup was run. No other group, no QA, no docs build, no downstream, no GPU. The change is a single addedusingline in one test file that no other file includes, so it cannot affect them, but I did not run them.pre, both of whichtest_groups.tomllists forInterfaceII.OrdinaryDiffEqSIMDRKbreakage above is reported, not fixed or CI-verified.