Skip to content

qa: approve newly exported Symbolics API - #5050

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:codex/fix-public-reexports-qa
Aug 31, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:codex/fix-public-reexports-qa

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

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

What changed and why

Add Unknown, scalarize, shape, and unwrap to ModelingToolkit's version-controlled list of intentional public reexports. Symbolics v7.38.0 deliberately changed these names from public-only to exported in JuliaSymbolics/Symbolics.jl#1957, so they now flow through ModelingToolkitBase and ModelingToolkit's facade reexports.

The Symbolics v7.38.0 release notes explicitly identify this API expansion: https://github.com/JuliaSymbolics/Symbolics.jl/releases/tag/v7.38.0. Removing or hiding these names in ModelingToolkit would conflict with that upstream public-API decision; approving them in the existing facade audit records the dependency-driven expansion for review.

Failing before

On unmodified ModelingToolkit commit 6b06080fe1c19a0fc99f5e1e32ed3309b847e201, with Symbolics 7.39.0 and SciMLTesting 2.13.0:

No unapproved public reexports: Test Failed
  Expression: isempty(reexported)
   Evaluated: isempty([:Unknown, :scalarize, :shape, :unwrap])

Test Summary: | Pass  Fail  Total     Time
QA            |   39     1     40  4m34.8s

A version-boundary probe with SymbolicUtils 4.46.1 confirmed that a facade using @reexport using Symbolics exposes none of the four names with Symbolics 7.37.0, while all four are exported and public through the same facade with Symbolics 7.38.0. The introducing commit is JuliaSymbolics/Symbolics.jl@de0731d.

Passing after

export JULIA_DEPOT_PATH="$PWD/../../validation-depots/ModelingToolkitPublicReexports:/home/crackauc/.julia"
export TMPDIR="$PWD/../../work-tmp/ModelingToolkitPublicReexports"
export JULIA_NUM_PRECOMPILE_TASKS=1
export GROUP=QA
~/.juliaup/bin/julia +release --project -e 'using Pkg; Pkg.test()'
Test Summary: | Pass  Total     Time
QA            |   40     40  4m30.9s
     Testing ModelingToolkit tests passed

Additional checks:

Runic 1.10.0 --check test/qa/qa.jl: exit 0
typos test/qa/qa.jl: exit 0
git diff --check: exit 0

Post-push CI has also passed the targeted QA job, Runic check, and spelling check.

The independent Optimization job on Julia 1 is red. The same job was already red on both the immediately preceding homotopy PR and Runic-only PR; it is not changed or suppressed here.

Not verified

The documentation build, GPU tests, downstream tests, and non-QA test groups were not run locally. This changes only the QA allow-list; it does not change implementation code, documentation, dependencies, or public declarations. The four names are documented by their owning packages, and the passing QA run includes both public API documentation checks.

Reviewer judgment

This PR treats Symbolics' explicitly exported names as intentional ModelingToolkit facade API, consistent with the existing REEXPORTED_API policy. A reviewer should push back if ModelingToolkit should instead stop forwarding some of Symbolics' exported surface in a separate, potentially breaking API change.

🤖 Generated with Codex CLI 0.151.0 (model: unknown; session: local session ID 01a04fa1-cfe0-7260-b416-72fe8a15d17d).

Symbolics 7.38 promoted Unknown, scalarize, shape, and unwrap from public-only names to explicit exports. Record that intentional facade surface in the strict reexport audit.

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

Co-Authored-By: OpenAI Codex <[email protected]>

Agent-Harness: Codex CLI 0.151.0

Agent-Model: unknown

Agent-Session: local session ID 01a04fa1-cfe0-7260-b416-72fe8a15d17d
@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member Author

Clean fresh-depot control at this PR's exact commit bdcf5350f81d6be02d497229809d13241b013b57 now resolves Symbolics v7.39.0 and reaches an independent ExplicitImports error:

ImplicitImportsException
Module `ModelingToolkitBase` is relying on the following implicit imports:
* `UnPack` which is exported by `UnPack`

Test Summary: | Pass  Error  Total     Time
Aqua Tests    |   18      1     19  5m13.3s

JET passed 54/54 in 9m50.8s; Aqua stale-dependencies and persistent-tasks both passed. Overall exit was 1 after 933.17s. This is current resolver/reexport drift, not caused by the downgrade workflow metadata bug being fixed separately.

The same run also confirmed the pre-existing 31-warning package-wide JET overwrite block; that independent QA-harness defect is tracked at #5052.

Control commit: bdcf535

@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review August 31, 2026 16:07
@ChrisRackauckas
ChrisRackauckas merged commit 5509368 into SciML:master Aug 31, 2026
79 of 84 checks passed
ChrisRackauckas added a commit that referenced this pull request Sep 7, 2026
- qa: approve newly exported Symbolics API (#5050)
- Update redirected documentation links (#5054)
- qa: fix ModelingToolkitBase import checks (#5028)
- docs: replace stale Pantelides link (#5056)
- Precompile ODEProblem construction and DAE initialization in MTK workloads (#5061)
- Release 11.41.0 (#5069)



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]>
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