Repository navigation
Fix SciCompDSL model macro hygiene - #5058
ChrisRackauckas merged 1 commit into
Conversation
|
A second clean docs build reached
No doctest, example, cross-reference, or document-check failure was reported before link checking. I am not rerunning the same external network checks a third time. The failing Optimization CI lanes are the already-reproduced clean-master CasADi 1.3.0 regression, not this SciCompDSL-only diff. The merged CasADi source fix and fully green release draft are at SciML/CasADi.jl#44; current ModelingToolkit master failure evidence is https://github.com/SciML/ModelingToolkit.jl/actions/runs/33444273161/job/99660311800. I am independently reproducing the downgrade-MTKBase QA lane on the unchanged current master tree before classifying that remaining failure. |
|
Downstream confirmation from SciMLBenchmarks' current ParameterEstimation migration: I ran the same FitzHugh–Nagumo Registered SciCompDSL v1.0.3: With this PR's SciCompDSL source at commit This PR is therefore a concrete blocker for moving the ParameterEstimation benchmark from ModelingToolkit 9 / OrdinaryDiffEq 6 to ModelingToolkit 11 / OrdinaryDiffEq 7. I am continuing with the complete three-page downstream weave against this source revision. |
Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude <[email protected]> Claude-Session: https://chatgpt.com/codex/tasks/01a03a17-ad6f-7131-82fc-d0fd57ea6512
80e7de8 to
d3db185
Compare
|
This PR now blocks the SciMLBenchmarks ParameterEstimation migration to the v7 stack. Its only red check is the downgraded ModelingToolkitBase QA lane: Aqua reports stale test dependencies and a circular-precompile I attempted Downstream context: https://github.com/SciML/SciMLBenchmarks.jl |
- Add constraints_to_penalties: lower constraints to quadratic penalty costs (#5111) - Fix QA: approve the `limited`/`constraints_to_penalties` API additions (#5116) - Concretize initialization problems once at construction (#5062) - Make tovar public (#5120) - Fix SciCompDSL model macro hygiene (#5058) - Release ModelingToolkitBase 1.71.0 (#5126) - Forward ProblemTypeCtx metadata to OptimizationProblem (#5115) - Release ModelingToolkitBase 1.71.1 (#5127) Agent-Harness: Claude Code Agent-Model: claude-opus-5[1m] Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Summary
SciCompDSL's
@mtkmodelexpansion emitted unqualified names from its own implementation into the caller module. A caller that imported only SciCompDSL therefore failed unless it happened to bind ModelingToolkitBase, Equation, Num, and setmetadata under the expected names.This captures those owner-module bindings when the macro expands and adds a caller-hygiene regression covering an empty model, equations/defaults, and custom model metadata. No public API is added or changed.
Please ignore this draft until it has been reviewed by @ChrisRackauckas.
Failing before / passing after
I ran the new test against the unfixed source, then restored the source change and ran the identical test:
With this commit:
The test imports SciCompDSL and selected public ModelingToolkitBase names, but deliberately does not bind the ModelingToolkitBase module name.
Verification
Observed locally with Julia 1.12.7:
The full docs build completed the examples and document checks, then failed during final link checking because this unchanged external URL did not answer within the configured 10 seconds:
A retry is running; this change does not touch docs, docstrings, or public API.
Review notes
The interpolated bindings are public/exported from their owning modules. The change does not reach through a re-exporter and does not add a dependency.
🤖 Generated with Claude Code
https://chatgpt.com/codex/tasks/01a03a17-ad6f-7131-82fc-d0fd57ea6512