Skip to content

Adopt SciMLTesting 2.4 strict QA - #4832

Merged
ChrisRackauckas merged 9 commits into
SciML:masterfrom
ChrisRackauckas-Claude:agent/scimltesting-v24-strict-qa
Aug 11, 2026
Merged

ChrisRackauckas merged 9 commits into
SciML:masterfrom
ChrisRackauckas-Claude:agent/scimltesting-v24-strict-qa

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Jul 26, 2026 •

Copy link
Copy Markdown
Member

Ignore this PR until it has been reviewed by @ChrisRackauckas.

Summary

  • require SciMLTesting 2.8 in the five legacy QA test environments that previously permitted v1 or v2.1
  • leave test environments already bounded at SciMLTesting 2.4 or newer unchanged
  • preserve the existing PR content; this correction adds no source paths, source changes, or test suppressions

Local verification

  • rebased onto master at 0fc558a before push
  • parsed every SciMLTesting test Project.toml: all six environments are v2-only; five require 2.8 and the existing ModelingToolkitBase QA environment remains at 2.4
  • SciMLTesting 2.8.0 resolved from a fresh General registry in an isolated local depot
  • Runic check completed with no proposed source formatting changes
  • git diff --check passed
  • focused ModelingToolkitBase QA ran with SciMLTesting 2.8.0 and failed on the SimpleNonlinearSolve stale-dependency check and 14 piracy detections (SymbolicUtils.search_variables! and toexpr methods); no QA check was skipped, weakened, or made warn-only

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member Author

Strict-QA audit note (2026-07-30):

  • The remaining 481 root public reexports originate in the documented @reexport using Symbolics, UnPack, ModelingToolkitBase, and StructuralTransformations façades. Removing the Symbolics façade is a documented-interface decision (using ModelingToolkit is documented to reexport Symbolics), not an undocumented-reexport cleanup. This PR therefore does not add reexports_allow or weaken the check.
  • ExplicitImports reports names owned but not public in Symbolics/SymbolicUtils, SciMLBase, ModelingToolkitTearing, OffsetArrays, and Base. These need owner-side public contracts or local replacements; they are not suppressed here. The ModelingToolkitBase-to-root imports additionally need an explicit developer-API boundary.
  • Aqua reports extensions owned by SciMLBase/ModelingToolkitBase/StateSelection. Resolving those requires owner-defined extension points rather than an Aqua exception.
  • I corrected remaining package-owned Shift and Sample doctest expectations and am validating the full docs build with doctests enabled.

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member Author

Follow-up validation:

  • JULIA_DEPOT_PATH=.docs-remediation-depot julia +1.12 --project=docs docs/make.jl executed doctests, then failed strict Documenter checks. The corrected Shift and Sample doctests passed; the build proceeded through example execution and cross-reference checks.
  • Remaining strict-docs work is substantial and pre-existing: stale/unqualified @docs blocks (including external BipartiteGraphs/SciMLBase/Symbolics references), 43 local docstrings missing canonical manual entries, unresolved cross-references, and dynamic-optimization examples with @variables ambiguity after JuMP/InfiniteOpt loading. A file://.../atomic_array_dict.jl source link is also being linkchecked. None has been downgraded to warnonly or disabled.
  • Focused verified commit pushed: 90c168ed09 (Fix discrete operator doctest outputs). Local Runic and git diff --check pass. CI has started; PR remains draft and currently has an unstable merge state while checks run.

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member Author

StructuralIdentifiability's strict SciMLTesting rollout has an owner-API prerequisite here: ModelingToolkitSIExt calls ModelingToolkitBase.hasshift to dispatch ODE versus discrete identifiability, but hasshift is not public on current ModelingToolkitBase master.

Because this PR already changes lib/ModelingToolkitBase/src/discretedomain.jl, please include a focused promotion here: definition-site SciMLStyle docstring with a usage example, rendered docs entry, public declaration, and the appropriate minor version bump. StructuralIdentifiability should then remove its temporary exact :hasshift QA exception once that release is available.

Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No we need to continue using sources

Comment thread Project.toml
Comment on lines -54 to -56
[sources]
ModelingToolkitBase = {path = "lib/ModelingToolkitBase"}
SciCompDSL = {path = "lib/SciCompDSL"}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Continue using sources

@ChrisRackauckas-Claude
ChrisRackauckas-Claude force-pushed the agent/scimltesting-v24-strict-qa branch from 51d0232 to 8d49721 Compare August 9, 2026 07:24
ChrisRackauckas and others added 9 commits August 11, 2026 05:28
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Rewriting the deprecated system aliases from `@deprecate` to hand-written
`Base.depwarn` functions dropped their exports: `@deprecate` exports the
deprecated name by default, a plain function definition does not.
`NonlinearSystem` and `ODESystem` survived only because they are listed
explicitly; `DiscreteSystem` and `ImplicitDiscreteSystem` were not, so both
became unreachable and `sciml_problem_inputs.jl` failed with `UndefVarError`.

Comparing `names(ModelingToolkitBase)` and `names(ModelingToolkit)` against
master shows these two were the only names lost and none were gained; with this
change both lists match master exactly.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_019ywCW8vbGoc9X3dUbmXyme
Rewriting the independent-variable docs to attach directly to `const t_nounits`
and `const D_nounits` dropped the separate `@doc` blocks that documented the
unitful `t` and `D`. Those are distinct bindings — the DynamicQuantities
sentinels declared in `unit_check.jl` — not aliases of the `_nounits` pair, so
documenting the latter did not cover them. Both remain `@public`, which left two
public names with no docstring and failed the api-docs check.

Document them at their definition site. This takes the undocumented public API
from 11 names to 9; the remainder are the Symbolics-owned reexports this branch
intentionally stops waiving.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_019ywCW8vbGoc9X3dUbmXyme
Co-Authored-By: Chris Rackauckas <[email protected]>
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.

3 participants