Skip to content

test: call discretize through SciMLBase - #642

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:agent/use-scimlbase-discretize
Aug 17, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:agent/use-scimlbase-discretize

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

What changed

Qualify downstream discretization calls through SciMLBase, the package that owns and exports discretize. This keeps the MethodOfLines tests on public dependency API after ModelingToolkit stopped incidentally exposing the imported name in SciML/ModelingToolkit.jl@03c1307.

Please ignore this PR until it has been reviewed by @ChrisRackauckas.

Verification

Failing before the fix

Against a clean ModelingToolkit checkout at 3fe375e19031102e95c7775c4d8a6aac9895767b:

JULIA_DEPOT_PATH=../.mtk-methodoflines-depot GROUP=2D_Diffusion timeout 7200 julia +1.12 --startup-file=no --project=downstream -e 'using Pkg; Pkg.develop(PackageSpec(path="./lib/ModelingToolkitBase")); Pkg.develop(PackageSpec(path=".")); Pkg.update(); Pkg.test(coverage=true)'
Test Summary: | Error  Total  Time
2D_Diffusion  |     2      2  18.2s
ERROR: Package MethodOfLines errored during testing
UndefVarError: `discretize` not defined in `ModelingToolkit`

Passing after the fix

The same checkout, depot, and test group with this MethodOfLines branch developed:

JULIA_DEPOT_PATH=../.mtk-methodoflines-depot GROUP=2D_Diffusion timeout 7200 julia +1.12 --startup-file=no --project=../.methodoflines-discretize-fix -e 'using Pkg; Pkg.develop(PackageSpec(path="./lib/ModelingToolkitBase")); Pkg.develop(PackageSpec(path=".")); Pkg.update(); Pkg.test(coverage=true)'
Test Summary: | Pass  Total     Time
2D_Diffusion  |    2      2  4m16.3s
Testing MethodOfLines tests passed

Additional local groups against the same clean ModelingToolkit checkout:

  • GROUP=MOL_Interface1: completed without errors, 0 assertions, 12m21.2s.
  • GROUP=Nonlinear_Diffusion: 10 passed, 2 pre-existing broken, 7m08.9s.
  • GROUP=Nonlinear_Diffusion_NU: 13 passed, 2 pre-existing broken, 6m42.2s.
  • GROUP=QA: 12 passed, 6 pre-existing broken, 7m37.0s.
  • Runic 1.8.0 --check on all four changed files: exit 0.
  • typos over the zero-context diff: exit 0.
  • git diff --check: exit 0.

Not verified

@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review August 17, 2026 17:25
@ChrisRackauckas
ChrisRackauckas merged commit 5202380 into SciML:master Aug 17, 2026
45 of 69 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