Repository navigation
Allow intentional public reexports in QA - #623
Merged
ChrisRackauckas merged 4 commits intoAug 14, 2026
Merged
ChrisRackauckas merged 4 commits into
ChrisRackauckas merged 4 commits into
Conversation
ChrisRackauckas-Claude
force-pushed
the
agent/allow-intentional-public-reexports
branch
from
August 11, 2026 09:45
5322db2 to
0dbbd2d
Compare
Member
Author
|
CI isolates the dependency on the companion QA fix exactly as expected:
|
ChrisRackauckas-Claude
force-pushed
the
agent/allow-intentional-public-reexports
branch
from
August 11, 2026 22:04
0dbbd2d to
a3fb11c
Compare
Co-Authored-By: Chris Rackauckas <[email protected]>
ChrisRackauckas-Claude
force-pushed
the
agent/allow-intentional-public-reexports
branch
from
August 11, 2026 22:08
a3fb11c to
8a099dd
Compare
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
ChrisRackauckas
marked this pull request as ready for review
August 14, 2026 14:10
ChrisRackauckas
added a commit
that referenced
this pull request
Aug 23, 2026
* Restore the SciML common interface on `using JumpProcesses`
`fdfd104` ("Allow intentional public reexports in QA", #623) replaced
`@reexport using DiffEqBase` with a plain `using DiffEqBase`, but the
`reexports_allow` list it introduced only covered the five names JumpProcesses
already exported on its own (`init`, `solve`, `solve!`, `neighbors`,
`outdegree`). Everything else that `using JumpProcesses` used to bring into
scope was dropped, so `DiscreteProblem`, `ODEProblem`, `SDEProblem`, `remake`,
the callbacks, the ensemble types and the integrator interface all became
`UndefVarError`s for downstream users.
The same commit is its own evidence: it had to add `using SciMLBase` (and
`Pkg.add("SciMLBase")`) to seven documentation pages and `SciMLBase`/
`DiffEqBase` imports to ~25 test files purely to keep them working.
Following the rule "reexport what is normal documented use, but not whole
dependencies" (SciML/Sundials.jl#553), add an explicit `export` list instead of
the blanket reexport:
* the problem/function/solution types a `JumpProblem` wraps -- `DiscreteProblem`,
`DiscreteFunction`, `ODEProblem`, `ODEFunction`, `ODESolution`, `SDEProblem`,
`SDEFunction`, `remake`, `NullParameters`;
* the callbacks -- `CallbackSet`, `ContinuousCallback`, `DiscreteCallback`,
`VectorContinuousCallback`;
* the ensemble interface -- `EnsembleProblem`, `EnsembleSolution`,
`EnsembleSummary`, `EnsembleAnalysis` and the four ensemble algorithms;
* the integrator interface a jump `affect!` drives -- `add_tstop!`,
`add_saveat!`, `savevalues!`, `set_proposed_dt!`, `set_t!`, `set_u!`,
`reinit!`, `step!`, `terminate!`, `u_modified!`,
`derivative_discontinuity!`;
* `ReturnCode` and `successful_retcode`.
The names are now imported from their owner `SciMLBase` rather than through
DiffEqBase's re-export, the allow-list in `test/qa.jl` is kept in sync with the
`export` block, and the documentation pages go back to the documented
`using JumpProcesses`.
Restoring previously exported names is additive, so this is not breaking.
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude <[email protected]>
Claude-Session: https://claude.ai/code/session_01Rmh6B9eoW3N8oCbuuVPVxJ
* docs: document the reexported SciML common interface
Add a "Reexported SciML common interface" section to docs/src/api.md listing the
names `using JumpProcesses` provides on top of its own API, grouped by role
(problems, functions, solutions, ensemble algorithms, solving, integrator
interface, return status, callbacks) with SciMLBase named as their owner and
links to the upstream documentation for each group.
The section states the boundary explicitly -- everything else from SciMLBase must
be imported from SciMLBase directly -- and notes that `SSAStepper` only supports
`DiscreteCallback`s, so the continuous callbacks are re-exported for the ODE/SDE
integrators a `JumpProblem` can be paired with.
The docs list, the `export` block in src/JumpProcesses.jl and the
`REEXPORTED_API` tuple in test/qa.jl are now the same list in three places, so a
future QA sweep can see the surface is deliberate.
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude <[email protected]>
Claude-Session: https://claude.ai/code/session_01Rmh6B9eoW3N8oCbuuVPVxJ
---------
Co-authored-by: Claude <[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.
Important
Please ignore this PR until it has been reviewed by @ChrisRackauckas.
What changed
2.8.@reexport using DiffEqBaseand the directReexportdependency.(:init, :solve, :solve!, :neighbors, :outdegree).SciMLBasedirectly and adds it to the docs environments.DiscreteProblemorDiscreteFunctionthrough the former JumpProcesses facade. The package source now importsDiscreteProblemdirectly from its owner,SciMLBase.init,solve, andsolve!remain explicitly exported solver entry points.neighborsandoutdegreeremain the Graphs generic functions extended for JumpProcesses spatial grids. No other DiffEqBase facade binding is public fromJumpProcesses.DiscreteProblem classification
DiscreteProblemandDiscreteFunctionare publicSciMLBaseconstructors. They are inputs to the documented JumpProcesses workflow, not JumpProcesses API. The revised tutorials explicitly install and load the owner withusing JumpProcesses, SciMLBase.Accordingly, this PR does not reexport
DiscreteProblem. The direct owner check confirmsSciMLBase.DiscreteProblemis public,JumpProcesses.DiscreteProblemis not exported, and its binding is owned bySciMLBase.Regression evidence
Removing the blanket reexport exposed test files that had imported only
JumpProcesses:test/functionwrappers.jl:14withUndefVarError: DiscreteProblem not defined.test/ensemble_uniqueness.jl:8with the same error.DiscreteFunctionmissing intest/jprob_symbol_indexing.jl:10.The follow-up replaces those implicit facade uses with direct
SciMLBaseimports. It adds no dynamic allowlist and no blanket reexport.Verification
Runic was run over all changed Julia files. It reports existing whole-file formatting suggestions outside the 30 changed import lines; this focused behavior PR deliberately does not mix in a large formatting migration. The earlier docs build reached strict document checks and then failed only at external link checking because the ColPrac GitHub URL returned HTTP 429; no docs settings were weakened. Docs were not rerun for this import-only follow-up.
The PR branch and base were fetched before the normal fast-forward push. No rebase or force-push was used.