QA: run_qa v1.6 form + ExplicitImports#157
Merged
ChrisRackauckas merged 1 commit intoJun 27, 2026
Merged
Conversation
Convert test/qa/qa.jl from the hand-rolled Aqua.test_all + JET.test_package body to the SciMLTesting 1.6 `run_qa` form with ExplicitImports enabled. - qa.jl now calls `run_qa(FEniCS; explicit_imports = true, ei_kwargs = ...)`. Aqua and ExplicitImports come from SciMLTesting's own deps; `using JET` triggers the JET weakdep extension so the JET check still runs (clean, 0 reports under run_qa's default target_modules=(FEniCS,) config — and also under the old target_defined_modules=true config). - Fold the six ExplicitImports checks into the QA group. The standalone test/explicit_imports.jl (run in Core via core.jl) only ran two of them (no_implicit_imports, no_stale_explicit_imports); run_qa runs all six, so the Core-group include and the file are removed and ExplicitImports drops from the root [extras]/[targets].test (now supplied transitively in the QA env via SciMLTesting). - Only ExplicitImports finding: `all_qualified_accesses_are_public` flags `getdoc`, which is not public in `Base.Docs`. FEniCS extends `Base.Docs.getdoc(::fenicsobject)` (src/FEniCS.jl) to surface a wrapped PyObject's docstring; extending a Base-internal method requires naming it and there is nothing to make public, so it is ignored via ei_kwargs = (; all_qualified_accesses_are_public = (; ignore = (:getdoc,))). All other five EI checks, Aqua (test_all, 11/11) and JET pass with no kwargs. - test/qa/Project.toml: bump SciMLTesting compat to "1.6"; drop ExplicitImports (transitive via SciMLTesting); keep Aqua (test_all's ambiguities sub-check), JET, SafeTestsets (run_tests wraps each group body in @safetestset). Verified locally against released SciMLTesting 1.6.0 (resolved from the registry, no dev-from-branch) inside the CI fenics container: QA group 18/18 Pass, 0 Fail, 0 Error, 0 Broken (11 Aqua + 1 JET + 6 ExplicitImports). Control run without the getdoc ignore errors on exactly getdoc, confirming the ignore is load-bearing and the check genuinely runs. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please ignore until reviewed by @ChrisRackauckas.
Brings this repo's QA onto the SciMLTesting 1.6
run_qaform with ExplicitImports enabled (mode: hand-rolled →run_qa).test/qa/qa.jlBefore: hand-rolled
Aqua.test_all(FEniCS)+JET.test_package(FEniCS; target_defined_modules = true).After:
Aqua + ExplicitImports come from SciMLTesting's own deps;
using JETtriggers the JET weakdep extension so the JET check still runs.ExplicitImports findings (enabled here for the first time at the run_qa level)
Ran all six EI checks against released SciMLTesting 1.6.0:
no_implicit_importsno_stale_explicit_importsall_explicit_imports_via_ownersall_qualified_accesses_via_ownersall_qualified_accesses_are_publicall_explicit_imports_are_publicThe single finding is
getdoc, which is not public inBase.Docs. FEniCS extendsBase.Docs.getdoc(::fenicsobject)(src/FEniCS.jl:85) to surface a wrapped PyObject's docstring. Extending a Base-internal method requires naming it and there is nothing to make public, so it is ignored (not skipped) viaei_kwargs, documented with its source module. Noaqua_broken/jet_broken/ei_brokenmarkers are needed — Aqua (test_all, 11/11) and JET (0 reports) are clean.Other changes
test/explicit_imports.jl(run in the Core group viacore.jl) only ran two of the six checks;run_qaruns all six, so that include + the file are removed, andExplicitImportsdrops from the root[extras]/[targets].test(now supplied transitively in the QA env via SciMLTesting).test/qa/Project.toml: SciMLTesting compat →"1.6"; drop ExplicitImports (transitive via SciMLTesting); keep Aqua (test_all's ambiguities sub-check), JET, and SafeTestsets (run_testswraps each group body in@safetestset).Verification
Run locally against released SciMLTesting 1.6.0 (resolved from the registry, no dev-from-branch) inside the CI
cmhyett/julia-fenicscontainer sousing FEniCS(PyCall → condafenics) succeeds, on Julia 1.10.11:18 = 11 Aqua + 1 JET + 6 ExplicitImports. 0 Fail / 0 Error / 0 Broken. A control run without the
getdocignore errors on exactlygetdoc, confirming the ignore is load-bearing and the check genuinely runs.🤖 Generated with Claude Code