Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ PreallocationToolsSparseConnectivityTracerExt = "SparseConnectivityTracer"
[compat]
ADTypes = "1.16"
Adapt = "4.3.0"
Aqua = "0.8.11"
ArrayInterface = "7.19.0"
ExplicitImports = "1.14.0"
ForwardDiff = "0.10.38, 1.0.1"
LabelledArrays = "1.16.0"
LinearAlgebra = "1.10"
Expand All @@ -46,8 +44,6 @@ julia = "1.10"

[extras]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
LabelledArrays = "2ee39098-c373-598a-b85f-a56591580800"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand All @@ -67,4 +63,4 @@ Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Aqua", "ADTypes", "ExplicitImports", "ForwardDiff", "Random", "LabelledArrays", "LinearAlgebra", "OrdinaryDiffEq", "OrdinaryDiffEqSDIRK", "SciMLBase", "SciMLTesting", "Test", "RecursiveArrayTools", "SafeTestsets", "Optimization", "OptimizationOptimJL", "SparseArrays", "Symbolics", "SparseConnectivityTracer"]
test = ["ADTypes", "ForwardDiff", "Random", "LabelledArrays", "LinearAlgebra", "OrdinaryDiffEq", "OrdinaryDiffEqSDIRK", "SciMLBase", "SciMLTesting", "Test", "RecursiveArrayTools", "SafeTestsets", "Optimization", "OptimizationOptimJL", "SparseArrays", "Symbolics", "SparseConnectivityTracer"]
8 changes: 0 additions & 8 deletions test/explicit_imports.jl

This file was deleted.

11 changes: 0 additions & 11 deletions test/qa.jl

This file was deleted.

16 changes: 16 additions & 0 deletions test/qa/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
PreallocationTools = "d236fae5-4411-538c-8e31-a6e3d9e00b46"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
PreallocationTools = {path = "../.."}

[compat]
Aqua = "0.8.11"
SafeTestsets = "0.1, 1"
SciMLTesting = "1.6"
Test = "1.10"
julia = "1.10"
47 changes: 47 additions & 0 deletions test/qa/qa.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
using SciMLTesting, PreallocationTools, Test

run_qa(
PreallocationTools;
explicit_imports = true,
aqua_kwargs = (; ambiguities = (; recursive = false)),
ei_kwargs = (;
# The package extensions load (and are analyzed by ExplicitImports) whenever
# their weakdeps are present in the session, e.g. on the OS lanes where QA runs
# alongside Core. The entries below cover the extension modules' legitimate uses.
no_implicit_imports = (;
ignore = (
:PreallocationTools, # extension parent package (used qualified)
:ForwardDiff, # weakdep ForwardDiff (used qualified)
:Adapt, # Adapt (extension dependency)
:ArrayInterface, # ArrayInterface (extension dependency)
:PrecompileTools, # PrecompileTools (extension dependency)
Symbol("@compile_workload"), # PrecompileTools macro
Symbol("@setup_workload"), # PrecompileTools macro
),
),
# Qualified accesses to non-public names. The package's own internals are
# extended across the package/extension boundary, and the base libraries'
# names are de-facto stable; ignore until they are declared public.
all_qualified_accesses_are_public = (;
ignore = (
:depwarn, # Base.depwarn
:parameterless_type, # ArrayInterface.parameterless_type
:restructure, # ArrayInterface.restructure
:_restructure, # PreallocationTools internal (extended in ext)
:chunksize, # PreallocationTools internal (extended in ext)
:dualarraycreator, # PreallocationTools internal (extended in ext)
:enlargediffcache!, # PreallocationTools internal (extended in ext)
:forwarddiff_compat_chunk_size, # PreallocationTools internal (extended in ext)
:Dual, # ForwardDiff.Dual (non-public, stable)
:pickchunksize, # ForwardDiff.pickchunksize (non-public, stable)
),
),
# Explicit imports of non-public names from SparseConnectivityTracer.
all_explicit_imports_are_public = (;
ignore = (
:AbstractTracer, # SparseConnectivityTracer.AbstractTracer (non-public)
:Dual, # SparseConnectivityTracer.Dual (non-public)
),
),
),
)
6 changes: 4 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ using SciMLTesting

run_tests(;
core = () -> begin
@safetestset "Quality Assurance" include("qa.jl")
@safetestset "Explicit Imports" include("explicit_imports.jl")
@safetestset "DiffCache Dispatch" include("core_dispatch.jl")
@safetestset "DiffCache ODE tests" include("core_odes.jl")
@safetestset "DiffCache Resizing" include("core_resizing.jl")
Expand All @@ -16,6 +14,10 @@ run_tests(;
@safetestset "Zero, Copy, and Fill Dispatches" include("test_zero_copy.jl")
@safetestset "Allocation Regression Tests" include("alloc_tests.jl")
end,
qa = (;
env = joinpath(@__DIR__, "qa"),
body = joinpath(@__DIR__, "qa", "qa.jl")
),
groups = Dict(
# GPU declares its own sub-env, so it runs ONLY for GROUP="GPU" and is
# excluded from "All" (matches the original `if GROUP == "GPU"` dispatch).
Expand Down
3 changes: 3 additions & 0 deletions test/test_groups.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[Core]
versions = ["lts", "1", "pre"]
os = ["ubuntu-latest", "macos-latest", "windows-latest"]

[QA]
versions = ["lts", "1"]
Loading