Repository navigation
Floor DiffEqDevTools RootedTrees compat at 2.8 to fix UndefVarError(RungeKuttaMethod) CI failures - #3941
Merged
ChrisRackauckas merged 1 commit intoJul 20, 2026
Conversation
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]>
3 of 4 tasks
Member
Author
|
This is now redundant: an identical change (RootedTrees compat 🤖 Generated with Claude Code |
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.
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):DiffEqDevTools.jldoesusing RootedTrees: RootedTreeIterator, RungeKuttaMethod, residual_order_condition, but the test environment resolves RootedTrees v2.6.2 (from 2021) instead of the current v2.25.3.RungeKuttaMethodwas introduced in RootedTrees v2.8.0 (absent in 2.7.0 and earlier), while the DiffEqDevTools compat wasRootedTrees = "2", so the ancient version was admissible.Root cause: DataStructures v0.19.6 (registered 2026-07-17)
The dependency chain:
OrderedCollections = "1.1, 2". All prior versions capped OrderedCollections at1.OrderedCollections = "1", so Latexify becomes unresolvable alongside OrderedCollections v2.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 predatesRungeKuttaMethod, 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()orGROUP=InterfaceI Pkg.test()) and observe the manifest containsRootedTrees v2.6.2,OrderedCollections v2.0.1, and no Latexify.Fix
Set the DiffEqDevTools compat floor to
RootedTrees = "2.8"— the first version providingRungeKuttaMethod(v2.8.0 also already has theresidual_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 theltslanes 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
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.Pkg.developed this branch'slib/DiffEqDevTools; resolution movedRootedTrees v2.6.2 -> v2.25.3, addedLatexify v0.16.11, downgradedOrderedCollections v2.0.1 -> v1.8.2, and DiffEqDevTools precompiled and loaded successfully.🤖 Generated with Claude Code