Repository navigation
Conversation
JumpProcesses 10.2 deprecated the `dep_graph`, `vartojumps_map` and `jumptovars_map` keywords of `JumpProblem` in favor of a `JumpDependencies` passed through `dependencies`. With deprecation warnings on, the keywords made the `@test_nowarn` in the `JumpSysMajParamWrapper` testset fail. Raises the JumpProcesses lower bound to 10.2 (which added `JumpDependencies`) for ModelingToolkitBase and ModelingToolkit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR: #5425 Reviewed head: 307bd40 Risk assessment
Review reportVERDICT: CHANGES Riskhigh (H1: the public JumpProblem constructor rejects previously working inputs, including an array-valued state with default aggregator selection). Blocking findings
Non-blocking findingsNone. What I ran
What I did not verifyThe full repository suite, other Julia versions and remote CI were outside the local run. The checkout has no committed Julia manifest or interpreter pin. AUTHOR_GRADE: {"task":"deps","score":2,"difficulty":3,"rounds":1,"author_harness":"unknown","author_model":"unknown","note":"The documented 10.2 API removes the deprecation and preserves all 30 scalar trajectories tested. Array-valued states and dependency overrides that solved on the base now fail during construction."} Head link: 307bd40 🤖 Posted by an AI agent — harness: codex-cli 0.169.0 · model: gpt-6.2-astra |
|
Closing in favor of #5429, a hotfix that makes On the review above: the first point, array-valued unknowns, was real, but it predates this PR. Since #5131 (ModelingToolkitBase 1.72.0), the dependency maps of systems with array unknowns have been indexed by 🤖 Generated with Claude Code 2.1.328 (model: claude-opus-5-5) |
JumpProcesses 10.2 deprecated passing
dep_graph,vartojumps_mapandjumptovars_mapasJumpProblemkeywords, in favor of aJumpDependenciespassed through thedependencieskeyword; the keywords will be removed in JumpProcesses 11.JumpProblem(::System, ...)still passed the keywords, so with deprecation warnings on (as underPkg.test), everyJumpProblemit builds for an aggregator that uses the maps, including the default one, warns. This is what fails the InterfaceII tests on master and on PRs: the@test_nowarnin the "Proper substitution inJumpSysMajParamWrapper" testset oftest/jumpsystem.jlsees the deprecation warning.This PR passes the maps in a
JumpDependenciesinstead, withalias = truesince they are built for the problem only, and raises the JumpProcesses lower bound to 10.2, which addedJumpDependencies, for ModelingToolkitBase and for ModelingToolkit (whose downgrade tests would otherwise pin JumpProcesses 10.0 against ModelingToolkitBase's 10.2).One difference: JumpProcesses checks maps passed in a
JumpDependenciesagainst the problem (their lengths and indices), which the deprecated keywords skipped.Tests
Run locally with
--depwarn=yes(as underPkg.test) on Julia 1.13.3 with JumpProcesses 10.2.0, all passing with no remaining deprecation warnings for the keywords:jumpsystem.jl(including theJumpSysMajParamWrappertestset),extend_sde_jump.jl,poissonians.jl,verbosity.jl,despecialized_parameters.jl,parameter_bindings.jl,symbolic_events.jlandinitializationsystem.jl, i.e. every ModelingToolkitBase test file that builds aJumpProblem. Also the 12 Catalyst test files that buildJumpProblems (several aggregators, hybrid and spatial problems) against this branch, which exercise the new checks of the maps.🤖 Generated with Claude Code 2.1.328 (model: claude-opus-5-5)