Skip to content

Fix umbrella precompile so documentation can build - #52

Merged
ChrisRackauckas merged 2 commits into
SciML:mainfrom
ChrisRackauckas-Claude:fix/umbrella-precompile-symbolics
Sep 11, 2026
Merged

ChrisRackauckas merged 2 commits into
SciML:mainfrom
ChrisRackauckas-Claude:fix/umbrella-precompile-symbolics

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Make the umbrella package load so documentation can build.

Docs CI failed during Pkg.develop precompile:

ERROR: LoadError: UndefVarError: `Symbolics` not defined in `OptimalUncertaintyQuantification`
in expression starting at lib/OUQBase/src/interface.jl:33

@random_variables expands to Symbolics.@variables in the caller. The umbrella now reexports Symbolics. The compile workload is reduced to that macro; 𝔼(Q) still hits a SymbolicUtils Term{Real} constructor error on the current Operator API and is left for a follow-up.

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

Verification

Julia 1.12.7, GROUP=Core.

Failing before (unfixed src + Project.toml):

ERROR: LoadError: UndefVarError: `Symbolics` not defined in `OptimalUncertaintyQuantification`
EXPECTED_FAIL

CI: https://github.com/SciML/OptimalUncertaintyQuantification.jl/actions/runs/34133599870

Passing after:

AFTER_LOAD_OK
AFTER_MACRO_OK keys=[:_Q]
Test Summary: | Pass  Total  Time
Umbrella Load |    6      6  13.4s
Testing OptimalUncertaintyQuantification tests passed

I did not run GROUP=QA or rebuild the full docs site locally.

Links

🤖 Generated with Grok Build 1.0.24 (model: grok-4.6)
Session: 01a08654-45f1-7a53-849c-56a7f1531d56 (local Grok Build session; no public conversation URL)

`@random_variables` expands to `Symbolics.@variables` in the caller
scope, so the umbrella package must import Symbolics. The previous
precompile workload then died with `UndefVarError: Symbolics not
defined`, which is what failed docs CI.

Reexport Symbolics from the umbrella and shrink the compile workload
to the macro only. Calling `𝔼(Q)` still hits a SymbolicUtils
`Term{Real}` constructor error on the current Operator API.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Grok <noreply@x.ai>
Agent-Harness: Grok Build 1.0.24
Agent-Model: grok-4.6
Agent-Session: 01a08654-45f1-7a53-849c-56a7f1531d56 (local Grok Build session; no public conversation URL)
@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member Author

The Downgrade Sublibraries / test (lib/DiscreteMeasures) failure (and IntegrationTest) already fail on main after #51. Same on the last green-docs-unrelated push: https://github.com/SciML/OptimalUncertaintyQuantification.jl/actions/runs/34133599841

OUQBase downgrade on main dies with promote_symtype(::OUQBase.𝔼_, ::Type{Real}) is ambiguous — that is the SymbolicUtils Operator API issue noted in this PR, not caused by the umbrella Symbolics import.

Runic, Spell Check, and local GROUP=Core are green on this branch.

@ChrisRackauckas

QA failed because `@reexport using Symbolics` made every Symbolics
name a public reexport without docstrings and tripped
ExplicitImports no_implicit_imports. `import Symbolics` is enough
for the `@random_variables` expansion during precompile.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Grok <noreply@x.ai>
Agent-Harness: Grok Build 1.0.24
Agent-Model: grok-4.6
Agent-Session: 01a08654-45f1-7a53-849c-56a7f1531d56 (local Grok Build session; no public conversation URL)
@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member Author

Documentation CI is green on the first commit. QA failed for three checks that were all from @reexport using Symbolics:

  • ExplicitImports no_implicit_imports (Symbolics)
  • public API has docstrings
  • no unapproved public reexports

Pushed a follow-up that uses import Symbolics instead. Local GROUP=Core still 6/6. The DiscreteMeasures/OUQBase downgrade failures remain the pre-existing main promote_symtype issue.

@ChrisRackauckas

@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review September 11, 2026 22:22
@ChrisRackauckas
ChrisRackauckas merged commit 5ee386e into SciML:main Sep 11, 2026
17 of 20 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