Fix Downgrade CI: raise MethodOfLines (0.11.12) and ModelingToolkit (11.27) floors#62
Merged
ChrisRackauckas merged 1 commit intoJun 24, 2026
Conversation
…11.27) floors
The Downgrade lane was RED with 413 errored examples. Root cause: at the
declared floors the resolver landed on MethodOfLines 0.11.0-0.11.8, which pulls
PDEBase 0.1.17. That PDEBase passes parameters to `ODESystem` as
`Vector{Pair{Num,_}}` (param => default), an API the MTK 9.x versions the
resolver can co-select (>= 9.49, the Symbolics-6-compatible ones) no longer
accept: MTK 9.49-9.59 map `getguess` over `ps` and hit
`getmetadata(::Pair, VariableGuess, nothing)` (no method); MTK 9.60+ reject the
pairs in `check_parameters` (`v => 1 is not a parameter`). No resolvable MTK 9.x
works with the MethodOfLines 0.11.0-0.11.8 + PDEBase 0.1.17 + Symbolics 6 stack.
MethodOfLines 0.11.10+ requires MTK 11 and pulls PDEBase 0.1.20+, which uses the
parameter API modern MTK expects (this is the same stack the green Core lts lane
resolves to: MOL 0.11.12 / MTK 11 / PDEBase 0.1.25). Raising the MethodOfLines
floor to 0.11.12 (matching Core) lets the downgrade lane resolve a working stack.
The MTK 11 floor also needs raising to 11.27: MTK 11.0-11.26 declare
`julia = "1.9.0-1"` but use `Base.ispublic` (Julia 1.11+), so they fail to
precompile on the lts (Julia 1.10) downgrade target. MTK 11.27 is the first 11.x
release whose compat correctly declares `julia = "1.10.0-1"`.
Verified locally (Julia 1.10 lts): the real julia-downgrade-compat resolution
(StefanKarpinski/Resolver.jl, --min=@deps) now lands on MethodOfLines 0.11.12,
ModelingToolkit 11.27.0, PDEBase 0.1.25, SciMLBase 3.18.0, Symbolics 7.28.1.
Running test/mol_test.jl against that pinned stack: all 427 examples run with
0 errors, 0 failures, 1 broken (adv3, intentional). Previously: 14 passed,
413 errored.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Ignore until reviewed by @ChrisRackauckas.
Problem
The
Downgrade / Downgrade Testslane on master is RED with 413 errored, 14 passed.julia-buildpkgsucceeds (the floors resolve), butjulia-runtestfails: nearly everymol_test.jlexample errors insideMethodOfLines.discretize.Root cause
At the declared floors the real
julia-downgrade-compat@v2resolution (StefanKarpinski/Resolver.jl,--min=@deps, julia=lts) lands on MethodOfLines 0.11.0-0.11.8, which pulls PDEBase 0.1.17. PDEBase 0.1.17 passes parameters toODESystemas aVector{Pair{Num,_}}(param => default):The MTK 9.x versions the resolver can co-select with MethodOfLines 0.11.8 (which needs Symbolics 6, i.e. MTK ≥ ~9.49) no longer accept pairs there:
getguessoverps, hittinggetmetadata(::Pair, VariableGuess, nothing)— no method (this is the exact CI error).check_parameters:ArgumentError: v => 1 is not a parameter.There is no resolvable MTK 9.x for the MethodOfLines 0.11.0-0.11.8 + PDEBase 0.1.17 + Symbolics 6 stack: MTK 9.x older than ~9.49 needs Symbolics 5 (incompatible with MethodOfLines 0.11.8), and ≥ 9.49 has the regression.
MethodOfLines 0.11.10+ requires MTK 11 and pulls PDEBase 0.1.20+, which uses the parameter API modern MTK expects — the same stack the green Core lts lane resolves to (MOL 0.11.12 / MTK 11.28.2 / PDEBase 0.1.25).
Fix
MethodOfLines = "0.11.12, 0.12"— floor matches the green Core lane; pulls a PDEBase whosepshandling works with MTK 11.ModelingToolkit = "9.7.1, 10, 11.27"— MTK 11.0-11.26 declarejulia = "1.9.0-1"but useBase.ispublic(Julia 1.11+), so they fail to precompile on the lts (Julia 1.10) downgrade target (UndefVarError: ispublic not defined). MTK 11.27 is the first 11.x whose compat correctly declaresjulia = "1.10.0-1".Downgrade.yml(the red was never about advdiff3).Verification (local, Julia 1.10 lts)
Real
julia-downgrade-compatresolution with the bumped floors lands on: MethodOfLines 0.11.12, ModelingToolkit 11.27.0, PDEBase 0.1.25, SciMLBase 3.18.0, Symbolics 7.28.1, OrdinaryDiffEqSDIRK 2.0.0, NonlinearSolve 4.17.1, OrdinaryDiffEq 7.0.0.Running
test/mol_test.jlagainst that pinned stack: all 427 examples run, 0 errored, 0 failed, 1 broken (adv3, intentional@test_broken).convsin— the first error in CI — now passes in 4.0s. Before: 14 passed, 413 errored.🤖 Generated with Claude Code