Skip to content

Analyze the Extrapolation Polyester extension in the QA lane - #4273

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix/extrapolation-polyester-ext-qa
Aug 17, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix/extrapolation-polyester-ext-qa

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Ignore until reviewed by @ChrisRackauckas.

What / why

lib/OrdinaryDiffEqExtrapolation's Pkg.test() (default GROUP=ALL) fails on master in the QA lane while GROUP=QA and GROUP=Core each pass on their own. The Core group's threading_linsolve_tests.jl does using Polyester, which loads OrdinaryDiffEqExtrapolationPolyesterExt into the process; the QA group then runs ExplicitImports.check_all_explicit_imports_are_public, which analyzes any loaded extension of the package, and flags the extension's import OrdinaryDiffEqExtrapolation: _polyester_foreach because ExplicitImports treats an extension as a separate module root (so a package-internal hook looks like a non-public cross-package import). CI is green only because it runs Core and QA in separate jobs; the extension is never analyzed in the QA job. Introduced with the extension in #4135.

Change (test-only, 10 lines):

  • test/qa/qa.jl: using Polyester so the extension always exists and is analyzed in the QA lane, and add _polyester_foreach to the all_explicit_imports_are_public ignore list. It is a package-internal hook implemented by the extension (same shape as OrdinaryDiffEqCore._polyester_batch, deliberately not public).
  • test/qa/Project.toml: add Polyester (already a weakdep of the package) to the QA env with compat 0.7.

Found while working on #4269 (that branch's full Pkg.test() for the sublibrary tripped over it).

Verification (Julia 1.12.4, SciMLTesting v2.10.0, ExplicitImports v1.15.0)

All commands run from lib/OrdinaryDiffEqExtrapolation with julia --project -e 'using Pkg; Pkg.test()'.

Clean master, GROUP=QA — passes (extension not loaded, so not analyzed):

Test Summary: | Pass  Total     Time
Aqua          |   21     21  1m17.0s
     Testing OrdinaryDiffEqExtrapolation tests passed

Clean master, GROUP=ALL — fails (reproduces the report):

all_explicit_imports_are_public: Error During Test at .../SciMLTesting/LsNsx/src/SciMLTesting.jl:1109
  NonPublicExplicitImportsException
  Module `OrdinaryDiffEqExtrapolationPolyesterExt` has explicit imports of names from modules in which they are not public (i.e. exported or declared public in Julia 1.11+):
  - `_polyester_foreach` is not public in `OrdinaryDiffEqExtrapolation` but it was imported from `OrdinaryDiffEqExtrapolation` at `.../lib/OrdinaryDiffEqExtrapolation/ext/OrdinaryDiffEqExtrapolationPolyesterExt.jl:4:37`
ERROR: LoadError: Some tests did not pass: 20 passed, 0 failed, 1 errored, 0 broken.
ERROR: Package OrdinaryDiffEqExtrapolation errored during testing

Discriminating before/after on this branch, GROUP=QA:

Before (qa.jl with using Polyester but without the ignore) — the test now fails on its own:

    ExplicitImports                            |    5      1      6    33.7s
      all_explicit_imports_are_public          |           1      1     3.4s
ERROR: LoadError: Some tests did not pass: 20 passed, 0 failed, 1 errored, 0 broken.

After (this commit):

Test Summary: | Pass  Total     Time
Aqua          |   21     21  1m34.0s
     Testing OrdinaryDiffEqExtrapolation tests passed

This branch, GROUP=ALL — the original failure mode passes:

Extrapolation Utility Tests |   14     14  2.9s
Extrapolation Tests |  284    284  6m26.0s
Threading Linear Solver Tests |   32     32  1m33.5s
Allocation Tests |      7      7  2m07.5s   (7 pre-existing @test_broken)
JET Tests     |    1      1  39.9s
Aqua          |   21     21  1m06.7s
     Testing OrdinaryDiffEqExtrapolation tests passed

Runic --check and typos on the changed files: clean.

Not verified

  • Julia 1.10 (LTS) QA lane: not run locally. The two public-API ExplicitImports checks are skipped on < 1.11 by SciMLTesting, so the ignore is inert there; using Polyester in the QA env is the only new behavior on 1.10.
  • Docs build (no docstrings/public API touched).
  • Whether OrdinaryDiffEqCore has the same latent shape (OrdinaryDiffEqCorePolyesterExt imports the non-public _polyester_batch, OrdinaryDiffEqCoreSparseArraysExt imports _isdiag etc.) when its extensions are loaded before its QA lane runs — out of scope here, flagging for a follow-up.

Reviewer judgment call

Approving the internal hook via an ignore rather than declaring _polyester_foreach public. Core keeps its equivalent _polyester_batch out of the public solver-author API on purpose, so I kept this consistent; say the word if you'd rather make it public.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WiHL8AqRSy2VQZF6j68ovM

`Pkg.test()` for OrdinaryDiffEqExtrapolation (GROUP=ALL) fails while
GROUP=QA and GROUP=Core each pass: the Core group loads Polyester, so
the QA group's ExplicitImports run then analyzes
OrdinaryDiffEqExtrapolationPolyesterExt and flags its import of the
package-internal `_polyester_foreach` hook as a non-public import
(an extension is a separate module root to ExplicitImports).

Load Polyester in qa.jl so the extension is always analyzed, and
approve the internal hook in the all_explicit_imports_are_public
ignore list.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WiHL8AqRSy2VQZF6j68ovM
@ChrisRackauckas-Claude
ChrisRackauckas-Claude force-pushed the fix/extrapolation-polyester-ext-qa branch from 7cffc23 to 241521b Compare August 16, 2026 09:49
@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member Author

Rebased and pushed as 241521b05bcadb66690d5567699bfdf782f77cbc onto current master (523c650cb).

Local verification on the pushed commit:

  • GROUP=QA /home/crackauc/.juliaup/bin/julia +release --startup-file=no --project -e "using Pkg; Pkg.test()": passed, Quality Assurance Tests 90/90.
  • SciML Runic check: passed, 1068/1068 files.
  • Changed-file typos check: passed.
  • git diff --check: passed.

No documentation or public API definitions are changed by this QA-only PR, so no docs build was required.

@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review August 17, 2026 07:33
@ChrisRackauckas
ChrisRackauckas merged commit 54f7d0e into SciML:master Aug 17, 2026
109 of 132 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