Skip to content

Remove docs DiffEqDevTools dependency - #4729

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:agent/mtk-docs-drop-diffeqdevtools
Jul 12, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:agent/mtk-docs-drop-diffeqdevtools

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Ignore this PR until reviewed by @ChrisRackauckas.

Summary

  • Remove DiffEqDevTools from the docs environment.
  • Update the dynamic optimization tutorial to use JuMPCollocation(Ipopt.Optimizer) with its default tableau instead of importing constructRadauIIA5.

Root Cause

The docs environment pulled DiffEqDevTools, which pulled NLsolve and constrained NLSolversBase to 7.10.0. The current Optimization/Optim stack requires NLSolversBase 8.0.0, so the docs build dependency resolution failed before the docs could run.

Verification

  • DISPLAY=:0 timeout 3600 xvfb-run -s '-screen 0 1024x768x24' env JULIA_DEPOT_PATH=/home/crackauc/sandbox/tmp_20260708_121627_10236/julia_depot_mtk_docs_drop_diffeqdevtools julia +1.10 --startup-file=no --project=docs/ -e 'using Pkg; Pkg.develop([PackageSpec(path=pwd()), PackageSpec(path=joinpath(pwd(), "lib", "ModelingToolkitBase")), PackageSpec(path=joinpath(pwd(), "lib", "SciCompDSL"))]); Pkg.instantiate()'\n - exited 0\n - resolved NLSolversBase v8.0.0, Optim v2.2.1, Optimization v5.6.4, and OptimizationOptimJL v0.4.15\n - existing Attractors / AttractorsVisualizations precompile failures still appear, but this install command does not fail on them\n- git diff --check\n- timeout 3600 julia +1 --startup-file=no --project=/home/crackauc/sandbox/tmp_20260708_121627_10236/runic_env -e 'using Runic; exit(Runic.main(["--check", "--verbose", "."]))'\n- DISPLAY=:0 timeout 3600 xvfb-run -s '-screen 0 1024x768x24' env JULIA_DEPOT_PATH=/home/crackauc/sandbox/tmp_20260708_121627_10236/julia_depot_mtk_docs_drop_diffeqdevtools julia +1.10 --startup-file=no --project=docs/ -e 'using ModelingToolkit, InfiniteOpt, Ipopt; JuMPCollocation(Ipopt.Optimizer);'

Co-Authored-By: Chris Rackauckas <[email protected]>

Copy link
Copy Markdown
Member Author

Local CI investigation results (Julia 1.10.11):

Exact resolver reproduction

At current master ee7dd34d8b7cfe8a085e0fa04cec28a607053f66, I ran the workflow's install command in a fresh isolated depot:

DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' \
  julia +1.10 --startup-file=no --project=docs/ -e '
    using Pkg
    Pkg.develop([
      PackageSpec(path=pwd()),
      PackageSpec(path=joinpath(pwd(), "lib", "ModelingToolkitBase")),
      PackageSpec(path=joinpath(pwd(), "lib", "SciCompDSL")),
    ])
    Pkg.instantiate()
  '

It exited 1 with the same NLSolversBase incompatibility as master run 29186963962: DiffEqDevTools → NLsolve requires NLSolversBase 7, while OptimizationOptimJL → Optim 2 requires NLSolversBase 8.

I then applied this PR's commit ffb7fe1d0338ffa378236b68469fabbaa96ff452 to that exact master SHA and reran the same command. It exited 0 and printed:

CURRENT_MASTER_PLUS_PR4729_RESOLVER_OK
NLSolversBase v8.0.0
Optim v2.2.1
Optimization v5.6.4
OptimizationOptimJL v0.4.15

DiffEqDevTools was absent. This verifies that #4729 fixes the current resolver failure, not only the older PR base.

Introducing boundary

A controlled before/after reproduction identifies ModelingToolkit commit 7ff6026db1d893b18d2e927421516ff85c08abda ("Require SciMLBase 3.18...") as the dependency boundary. I applied the same later docs unblockers (allow BifurcationKit 0.8 and remove FMIZoo) on both sides:

  • Parent 6bf8a2056b454b64040b5cfe30582d9e6961e251: install exited 0 with SciMLBase 2.155.1, OptimizationOptimJL 0.4.8, Optim 1.13.3, NLSolversBase 7.10.0, and DiffEqDevTools 2.53.0.
  • 7ff6026db: install exited 1 in the NLsolve/NLSolversBase resolver chain.

The package-version boundary is OptimizationOptimJL 0.4.12 (General registry commit d9cdffddbd93a3d2680177e5efbed63bdd645f5a, registered 2026-04-23): it is the first line that supports SciMLBase 3, while OptimizationOptimJL 0.4.9+ requires Optim 2. Optim 2 requires NLSolversBase 8; NLsolve 4 requires NLSolversBase 7.

Later documentation failure

The resolver fix is distinct from the later failure in PR run 29185508887. Its install step succeeds, then the full docs build reports multiple unrelated @example failures:

  • tearing_parallelism.md: incidence_matrix undefined.
  • attractors.md: Attractors precompile/API failures (beginning with recursivecopy/the first example, followed by cascading undefined names).
  • bifurcation_diagram_computation.md: PeriodicOrbitOCollProblem undefined.
  • discrete_system.md: FunctionMap undefined.
  • ode_modeling.md: three uses of Rodas4() are undefined under OrdinaryDiffEq 7's reduced umbrella exports.

The final makedocs error is therefore [:example_block], not a remaining resolver problem. I did not add a one-off Rodas change here because it would not make the docs job pass and would broaden this focused dependency PR; the post-resolver failures need a separate coordinated docs/API compatibility repair. No tests were skipped, disabled, or downgraded to warnings.

@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review July 12, 2026 12:30
@ChrisRackauckas
ChrisRackauckas merged commit 7a1f575 into SciML:master Jul 12, 2026
3 of 4 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