Skip to content

QA: run_qa v1.6 form + ExplicitImports#122

Merged
ChrisRackauckas merged 2 commits into
SciML:masterfrom
ChrisRackauckas-Claude:qa-run-qa-v16-explicit-imports
Jun 27, 2026
Merged

QA: run_qa v1.6 form + ExplicitImports#122
ChrisRackauckas merged 2 commits into
SciML:masterfrom
ChrisRackauckas-Claude:qa-run-qa-v16-explicit-imports

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Contributor

Ignore until reviewed by @ChrisRackauckas.

Brings this repo's QA onto the SciMLTesting 1.6 run_qa form with ExplicitImports enabled (converts the hand-rolled Aqua/JET test/qa/qa.jl).

ExplicitImports findings (now enabled, explicit_imports = true)

Six checks run. Four pass as-is. The two public-API checks flag only other packages' non-public names, all genuinely used (not stale), so they are ignored via ei_kwargs with the source package documented:

Check Ignored names Source pkg
all_qualified_accesses_are_public GradientConfig, derivative, gradient, gradient! ForwardDiff (not public)
plot RecipesBase (not public)
depwarn Base (not public; Julia 1.10 only)
all_explicit_imports_are_public AbstractDynamicalODEProblem, AbstractSciMLSolution, FunctionArgumentsError, NullParameters, TooFewArgumentsError, TooManyArgumentsError, numargs SciMLBase (not public)

no_implicit_imports, no_stale_explicit_imports, all_explicit_imports_via_owners, all_qualified_accesses_via_owners: pass, no ignores.

Aqua

  • stale_deps: FIXED. DiffEqCallbacks was in root [deps]/[compat] but unused anywhere in src/tests; removed. Drops the prior stale_deps @test_broken.
  • deps_compat: the prior @test_broken is now stale (the check passes); dropped.

JET

JET still reports 3 genuine errors in src/plot.jl (RecipesBase.plot has no inferable method for OrbitPlot; DiffEqPhysics.plot/plot! undefined in plot_orbits). This is JET-analysis-version dependent: JET 0.11 (the 1 lane) surfaces them; JET 0.9 (the only version installable on the lts lane — JET 0.11 needs PrecompileTools floors incompatible with Julia 1.10) does not.

Kept as a static tracked @test_broken (issue #118) rather than run_qa's version-auto-flagging jet_broken = true, which would Unexpected-Pass on lts and hard-FAIL on 1. This preserves master's existing static JET placeholder exactly. JET dropped from the qa env (no longer run there).

Other

  • Removed the orphan test/explicit_imports.jl (its two checks, previously run in the Core group, are now part of the QA run_qa six) plus the now-unused root ExplicitImports test dep.
  • test/qa/Project.toml: SciMLTesting compat -> "1.6"; dropped JET and SafeTestsets (unused); kept Aqua (the ambiguities sub-check needs Aqua a direct dep).

Verification (local, vs released SciMLTesting 1.6.0; no dev-from-branch)

release (Julia 1.12, `1` lane): Quality Assurance | 17 Pass  0 Fail/Error ; JET (broken) | 1 Broken
lts     (Julia 1.10):           Quality Assurance | 17 Pass  0 Fail/Error ; JET (broken) | 1 Broken

🤖 Generated with Claude Code

ChrisRackauckas and others added 2 commits June 25, 2026 05:41
Convert test/qa/qa.jl from the hand-rolled Aqua/JET body to the SciMLTesting
1.6 run_qa form and enable the ExplicitImports checks.

- run_qa(DiffEqPhysics; explicit_imports = true, ...): Aqua + the six
  ExplicitImports checks now run via the shared harness (Aqua and
  ExplicitImports come from SciMLTesting's own deps).
- ExplicitImports: 4 checks pass as-is. all_qualified_accesses_are_public and
  all_explicit_imports_are_public flag only OTHER packages' non-public names
  (ForwardDiff: GradientConfig/derivative/gradient/gradient!; RecipesBase: plot;
  Base: depwarn (Julia 1.10 only); SciMLBase: AbstractDynamicalODEProblem,
  AbstractSciMLSolution, FunctionArgumentsError, NullParameters,
  TooFewArgumentsError, TooManyArgumentsError, numargs). All are genuinely used
  (not stale), so they are ignored via ei_kwargs with the source pkg documented.
- Aqua stale_deps: FIXED -- DiffEqCallbacks was declared in [deps] but never
  used anywhere in src or tests; removed from root [deps]/[compat]. Drops the
  prior stale_deps @test_broken.
- Aqua deps_compat: the prior @test_broken is now stale (deps_compat passes);
  dropped.
- JET: still reports genuine errors in src/plot.jl (RecipesBase.plot has no
  inferable method for OrbitPlot; DiffEqPhysics.plot/plot! undefined in
  plot_orbits). JET 0.11 (the `1` lane) surfaces these; JET 0.9 (the only
  version installable on the `lts` lane) does not. Kept as a static tracked
  @test_broken (issue SciML#118) rather than run_qa's version-auto-flagging
  jet_broken, which would Unexpected-Pass on lts and hard-FAIL on `1`. JET
  dropped from the qa env (no longer run there).
- Removed the orphan test/explicit_imports.jl (its two checks, previously run
  in the Core group, are now part of the QA run_qa six) and the now-unused root
  ExplicitImports test dep.
- qa Project.toml: SciMLTesting compat -> "1.6"; dropped JET and SafeTestsets
  (unused); kept Aqua (the ambiguities sub-check needs it a direct dep).

Verified locally vs released SciMLTesting 1.6.0 (no dev-from-branch):
  release (Julia 1.12): Quality Assurance 17 pass / 0 fail-error; JET 1 broken.
  lts (Julia 1.10):     Quality Assurance 17 pass / 0 fail-error; JET 1 broken.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
SciMLTesting 1.7 runs the two public-API ExplicitImports checks
(all_qualified_accesses_are_public / all_explicit_imports_are_public)
only on Julia >= 1.11, and SciMLBase 3.24.0 made the previously-internal
names public. Verified on Julia 1.12 against registered releases:

- all_explicit_imports_are_public: all 7 SciMLBase names
  (AbstractDynamicalODEProblem, AbstractSciMLSolution, FunctionArgumentsError,
  NullParameters, TooFewArgumentsError, TooManyArgumentsError, numargs) are now
  public in SciMLBase 3.24.0 -> ignore-list dropped entirely.
- all_qualified_accesses_are_public: dropped :depwarn (public in Base on >=1.11);
  kept the 4 ForwardDiff names (GradientConfig/derivative/gradient/gradient!) and
  :plot (RecipesBase), which remain non-public upstream.

QA group green on 1.12 (17/17); public-API checks correctly skipped on lts.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ChrisRackauckas ChrisRackauckas marked this pull request as ready for review June 27, 2026 13:05
@ChrisRackauckas ChrisRackauckas merged commit 0c303cd into SciML:master Jun 27, 2026
9 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