Skip to content

OrdinaryDiffEqDefault: require OrdinaryDiffEqCore 4.17.1 (fixes registry precompile failure) - #4520

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:odedefault-core-compat-floor
Sep 12, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:odedefault-core-compat-floor

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Draft — please ignore until reviewed by @ChrisRackauckas.

What changed and why

lib/OrdinaryDiffEqDefault/src/OrdinaryDiffEqDefault.jl:11 imports _is_identity_massmatrix from OrdinaryDiffEqCore, and default_alg.jl:161 calls it. That binding was added to OrdinaryDiffEqCore in 4.17.1, by "Make mass-matrix identity/zero/diagonal checks GPU-safe" (#4502, c44595df7). But lib/OrdinaryDiffEqDefault/Project.toml declares OrdinaryDiffEqCore = "4.11", so the resolver is free to pair OrdinaryDiffEqDefault 2.6.1 with an older Core, and the package then fails to precompile.

In-repo CI cannot catch this: [sources] points OrdinaryDiffEqDefault at ../OrdinaryDiffEqCore, so every in-repo run gets the local 4.17.1. Only registry users hit it. OrdinaryDiffEq 7.8.1 declares OrdinaryDiffEqCore = "4.15.1", so a real environment can and does settle on Core 4.17.0 with Default 2.6.1 — that is how I hit it, resolving ModelingToolkitBase's test environment.

This raises the declared floor to 4.17.1 so the bound matches what the code actually needs, and bumps OrdinaryDiffEqDefault to 2.6.2 so a release carries the corrected bound.

Verification

Reproduction on Julia 1.12.7 with the registry as of 2026-09-12 — pin Core to 4.17.0, then add Default 2.6.1. The resolver accepts the pair, because the current bound permits it, and precompilation then fails:

using Pkg
Pkg.activate(mktempdir())
Pkg.add(name = "OrdinaryDiffEqCore", version = "4.17.0")
Pkg.add(name = "OrdinaryDiffEqDefault", version = "2.6.1")
OrdinaryDiffEqCore v4.17.0
OrdinaryDiffEqDefault v2.6.1
WARNING: Imported binding OrdinaryDiffEqCore._is_identity_massmatrix was undeclared at import time during import to OrdinaryDiffEqDefault.
ERROR: LoadError: UndefVarError: `_is_identity_massmatrix` not defined in `OrdinaryDiffEqDefault`
Failed to precompile OrdinaryDiffEqDefault [50262376-6c5a-4cf5-baba-aaf4f84d72d7]

Confirming the version boundary: _is_identity_massmatrix is absent from the sources of OrdinaryDiffEqCore 4.15.3, 4.16.0, 4.16.1 and 4.17.0, and present in 4.17.1. It is used by OrdinaryDiffEqDefault 2.6.1 and by no earlier Default release.

What I did not verify

This is a compat-bound change only, with no code change, so I ran no test group; in-repo tests resolve Core through [sources] and are unaffected by the bound either way. I also did not construct a registry-side resolution test proving the new bound excludes Core 4.17.0 — Pkg.develop of a path package does not exercise registry resolution, so I am asserting the bound's effect from its semantics rather than from an experiment.

For the reviewer

The floor could instead be set to whichever Core release you consider the supported minimum, as long as it is ≥ 4.17.1. I picked the exact version that introduced the binding.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FeJYXni9MkJhPFA9yxYvfn

`_is_identity_massmatrix` is imported from OrdinaryDiffEqCore but was only
added there in 4.17.1 (SciML#4502). The declared bound of "4.11" lets the resolver
pick an older Core, and the package then fails to precompile with
`UndefVarError: _is_identity_massmatrix`. In-repo CI never sees this because
`[sources]` supplies the local Core.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FeJYXni9MkJhPFA9yxYvfn
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review September 12, 2026 11:34
@ChrisRackauckas
ChrisRackauckas merged commit ecd449f into SciML:master Sep 12, 2026
136 of 139 checks passed
ChrisRackauckas added a commit that referenced this pull request Sep 13, 2026
- qa: allow JET 0.12 in OrdinaryDiffEqCore/BDF/NonlinearSolve QA envs (#4516)
- Add regression tests for issues verified fixed in recent releases (#4517)
- fix: save all simultaneous events in a VCC (#4129)
- Add 4th-order Friedli Exponential Runge-Kutta solver (#4481)
- Release DiffEqBase 7.21.1 (#4521)
- Fix BDF rejected-step controller for backward (tdir < 0) solves (#4519)
- Require OrdinaryDiffEqCore 4.17.1 where its new internals are used (#4525)
- OrdinaryDiffEqDefault: require OrdinaryDiffEqCore 4.17.1 (#4520)
- Add adaptive step size control to SDC (#4346)
- Allow JET 0.12 in every QA test environment (#4513)



Agent-Harness: Claude Code
Agent-Model: claude-opus-5[1m]
Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
ChrisRackauckas added a commit that referenced this pull request Sep 13, 2026
- OrdinaryDiffEqDefault: require OrdinaryDiffEqCore 4.17.1 (#4520)
- Add adaptive step size control to SDC (#4346)
- Allow JET 0.12 in every QA test environment (#4513)
- Resolve OrdinaryDiffEqDefault against the local sublibraries (#4514)
- NonlinearSolveAlg: stale-Jacobian retry + rejected-step W reassembly (carries #4282 to current master) (#4505)
- Do not seed a retry from the previous-step interpolant (#4473)
- Say why the linear path ignores new_W_dt_cutoff (#4527)
- Carry the QNDF2 difference array across steps (#4526)
- Pass Θ = 0, not the absolute time, to the AN5 startup interpolant (#4534)
- Make the stabilized-RK step cap and eigenvalue tolerance direction-agnostic (#4536)



Agent-Harness: Claude Code
Agent-Model: claude-opus-5[1m]
Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants