Repository navigation
Add the missing ChainRulesCore test dependency - #1582
Merged
ChrisRackauckas merged 1 commit intoSep 7, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
`test/downstream/remake_autodiff.jl` has used `ChainRulesCore` since SciML#1567, but it was never added to `test/downstream/Project.toml`. `GROUP=DownstreamAD` fails on master with Autodiff Remake: Error During Test LoadError: ArgumentError: Package ChainRulesCore not found in current path. Autodiff Remake is the group's first testset, so the error aborts the run before the rest of the group executes. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019wKpyZHy9u4QhR4ePiVmam
This was referenced Sep 6, 2026
ChrisRackauckas
marked this pull request as ready for review
September 7, 2026 01:00
ChrisRackauckas
referenced
this pull request
Sep 7, 2026
`plot(integrator)` threw for any system carrying symbolic metadata, and it could not resolve observed equations at all: the recipe indexed `integrator.u` directly, labelled the independent variable by indexing `variable_symbols` at `0`, never wrapped a scalar `idxs`, shared one label buffer across series, and dropped the plot function from an `idxs` tuple. Symbolic values now resolve through `SymbolicIndexingInterface`, matching the solution recipe, so the same `idxs` produces the same series and labels for an integrator as for a solution. The lookup is exposed as the public, documented `SciMLBase.symbolic_interpolation(integrator, t, idxs)`, the integrator analogue of `sol(t; idxs)`, so solver packages can route `integrator(t; idxs)` to it. `getindepsym(::DEIntegrator)` returns the first independent variable rather than the whole vector, matching its own docstring and every other method; without this, naming the independent variable in `idxs` is never recognised as the time axis. `plot_analytic = true` now raises `ArgumentError` rather than `UndefVarError` from a branch that referenced names SciMLBase does not define. Claude-Session: https://claude.ai/code/session_019wKpyZHy9u4QhR4ePiVmam Co-authored-by: ChrisRackauckas-Claude <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This was referenced Sep 7, 2026
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.
What changed and why
test/downstream/remake_autodiff.jlhas doneusing ChainRulesCoresince#1567, but
ChainRulesCorewas never added totest/downstream/Project.toml.GROUP=DownstreamADtherefore fails on master, and becauseAutodiff Remakeis the group's first testset the error aborts the run before anything elsein the group executes.
This adds the dependency and its compat bound (
1.18, matching the rootProject.toml).Two lines, nothing else.
Verification
Pre-existing on master, not introduced by any open PR. The DownstreamAD jobs on master's own
run at
2f74543d(https://github.com/SciML/SciMLBase.jl/actions/runs/34027316086) fail with:Locally on unmodified master, same error,
DSAD exit=1.After,
GROUP=DownstreamAD julia +release --project -e 'using Pkg; Pkg.test()'on Julia1.12.6:
Read that
Autodiff Remake | 0carefully. The body ofremake_autodiff.jlis gatedbehind
if VERSION < v"1.12", so on 1.12 the file loads and runs zero tests. This run provesthe group no longer aborts at load; it does not exercise the tests this PR unblocks. The
group's other files do run and pass.
This unblocks a test that then fails, and I have not fixed that here
On Julia LTS the gated body does run, and the testset added by #1567 — which has never
executed even once, because the missing dependency always aborted the file first — errors:
That is tracked and fixed in #1583 and
#1584, which stacks on this PR.
For the record, the cause is not what the thunk in that message suggests. The test called
ChainRulesCore.rrule(getindex, sol, x, 1)with noRuleConfig, so it never dispatched toSciMLBase's
ODESolutionrule at all and fell through to the genericChainRulesAbstractArraygetindexrule, whose cotangent is anInplaceableThunk. Unthunking it doesnot help — it then throws
ArgumentError: invalid index: x(t). Passing a config exposes agenuine library bug in
SciMLBaseChainRulesCoreExt, which #1584 fixes.So expect the LTS DownstreamAD check on this PR to be red, on that assertion rather than on
the load error. That is the point of the change: the group can now reach its tests, and the
first thing it finds is a genuine pre-existing bug that was invisible before.
Not verified
Julia LTS end-to-end green on this PR alone; that needs #1584 as well.
This PR should be ignored until reviewed by @ChrisRackauckas.
🤖 Generated with Claude Code
https://claude.ai/code/session_019wKpyZHy9u4QhR4ePiVmam