Skip to content

Floor DiffEqDevTools RootedTrees compat at 2.8 to fix UndefVarError(RungeKuttaMethod) CI failures - #3941

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix-diffeqdevtools-rootedtrees-compat
Jul 20, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix-diffeqdevtools-rootedtrees-compat

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Note

This PR should be ignored until reviewed by @ChrisRackauckas.

Problem

Since 2026-07-17, CI on master/PRs fails for every top-level group that uses DiffEqDevTools (InterfaceI, Integrators_I, Regression_I, Regression_II, AlgConvergence_I, AlgConvergence_III):

Failed to precompile DiffEqDevTools ...
ERROR: LoadError: UndefVarError: `RungeKuttaMethod` not defined
in expression starting at .../DiffEqDevTools/src/DiffEqDevTools.jl

DiffEqDevTools.jl does using RootedTrees: RootedTreeIterator, RungeKuttaMethod, residual_order_condition, but the test environment resolves RootedTrees v2.6.2 (from 2021) instead of the current v2.25.3. RungeKuttaMethod was introduced in RootedTrees v2.8.0 (absent in 2.7.0 and earlier), while the DiffEqDevTools compat was RootedTrees = "2", so the ancient version was admissible.

Root cause: DataStructures v0.19.6 (registered 2026-07-17)

The dependency chain:

  1. DataStructures v0.19.6 (released 2026-07-17) widened its compat to OrderedCollections = "1.1, 2". All prior versions capped OrderedCollections at 1.
  2. With that cap gone, the resolver now prefers OrderedCollections v2.0.1.
  3. Latexify (all versions, incl. 0.16.11) requires OrderedCollections = "1", so Latexify becomes unresolvable alongside OrderedCollections v2.
  4. RootedTrees >= 2.6.3 depends on Latexify; v2.6.2 is the last version with no Latexify dependency.
  5. With RootedTrees = "2" in DiffEqDevTools' compat, the resolver silently falls back to RootedTrees v2.6.2 + OrderedCollections v2.0.1 instead of RootedTrees v2.25.3 + Latexify + OrderedCollections v1.8.2 — and RootedTrees 2.6.2 predates RungeKuttaMethod, so DiffEqDevTools fails to precompile.

Reproduction (Julia 1.10 LTS, also reproduces on 1.12): build the merged test env for the root package (e.g. TestEnv.activate() or GROUP=InterfaceI Pkg.test()) and observe the manifest contains RootedTrees v2.6.2, OrderedCollections v2.0.1, and no Latexify.

Fix

Set the DiffEqDevTools compat floor to RootedTrees = "2.8" — the first version providing RungeKuttaMethod (v2.8.0 also already has the residual_order_condition(t, A, b, c) method DiffEqDevTools calls, as a deprecation). This makes the broken combination unresolvable instead of silently loadable: the resolver is then forced to pick RootedTrees >= 2.8 + Latexify + OrderedCollections 1.x, which resolves fine (DataStructures 0.19.6 still allows OrderedCollections 1.1+).

DiffEqDevTools is bumped to v3.1.3.

Note for LTS CI: on Julia < 1.11 the root-package test env ignores [sources] and pulls DiffEqDevTools from the registry, so the lts lanes for the root groups will stay red until DiffEqDevTools v3.1.3 is registered. Julia 1.11+ lanes pick up the fix from this branch directly. (Longer term, Latexify gaining OrderedCollections v2 compat upstream would dissolve the conflict entirely.)

Verification

  • Julia 1.12, this branch: GROUP=InterfaceI julia +1.12 --project=. -e 'using Pkg; Pkg.test()' — previously the merged env resolved the broken combo on unmodified master (verified: RootedTrees v2.6.2, OrderedCollections v2.0.1, no Latexify); with this change the env resolves RootedTrees v2.25.3 + Latexify v0.16.11 + OrderedCollections v1.8.2, DiffEqDevTools precompiles, and the group passes.
  • Julia 1.10 LTS (emulating the post-release registry state): built the merged root test env and Pkg.developed this branch's lib/DiffEqDevTools; resolution moved RootedTrees v2.6.2 -> v2.25.3, added Latexify v0.16.11, downgraded OrderedCollections v2.0.1 -> v1.8.2, and DiffEqDevTools precompiled and loaded successfully.

🤖 Generated with Claude Code

DataStructures v0.19.6 (2026-07-17) widened its OrderedCollections
compat to "1.1, 2", letting the resolver pick OrderedCollections v2.
Latexify requires OrderedCollections 1, and RootedTrees >= 2.6.3
requires Latexify, so the test environments silently fell back to
RootedTrees v2.6.2 (2021), which predates the RungeKuttaMethod type
DiffEqDevTools imports, breaking DiffEqDevTools precompilation in
every root test group that uses it.

RungeKuttaMethod was introduced in RootedTrees v2.8.0, so floor the
compat there. This makes the broken combination unresolvable and
forces RootedTrees >= 2.8 + Latexify + OrderedCollections 1.x, which
resolves cleanly.

Co-Authored-By: Claude Fable 5 <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member Author

This is now redundant: an identical change (RootedTrees compat "2" → "2.8", version 3.1.2 → 3.1.3 in lib/DiffEqDevTools/Project.toml) merged to master as #3939 (commit 4e1a434, 2026-07-18). This PR can be closed.

🤖 Generated with Claude Code

https://claude.ai/code/session_015WU5V4PXt8SZ3BpjxdtM7d

@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review July 20, 2026 06:37
@ChrisRackauckas
ChrisRackauckas merged commit 59d884a into SciML:master Jul 20, 2026
118 of 129 checks passed
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