Skip to content

Use SciMLTesting v1.2 (folder-based run_tests) - #1390

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:sciml-testing-rollout
Jun 14, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:sciml-testing-rollout

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Converts test/runtests.jl to SciMLTesting v1.2.

This repo's per-GROUP behavior cannot use bare folder-discovery, so it uses the v1.2 explicit-args run_tests (the same backward-compatible path OrdinaryDiffEq.jl uses), restructured to mirror the original dispatch exactly:

  • The SymbolicIndexingInterface group is a mixed-env group: it runs remake_tests.jl in the main test env and five downstream/*.jl files in the downstream sub-env. Folder-discovery can activate at most one sub-env per group folder, so it cannot express this.
  • The downstream/ folder is sliced across two groups (Downstream = 21 files, SymbolicIndexingInterface = 5 files) that share one downstream/Project.toml env.
  • The per-file is_APPVEYOR guards on Remake/Downstream/SII/Python cannot be expressed by folder-discovery.

What changed

  • runtests.jl → run_tests(; core, groups, qa, all, umbrellas):
    • core = the 15 Core files + remake_tests.jl (main env), is_APPVEYOR guard on Remake kept verbatim.
    • groups["Downstream"] / groups["Python"] = thunks that call activate_downstream_env() / activate_python_env() inside the !is_APPVEYOR guard (not env= GroupSpecs, to preserve the original conditional activation and <1.11 resolution).
    • groups["SII_Remake"] + groups["SII_Downstream"] joined by umbrellas["SymbolicIndexingInterface"] → remake in the main env first, then the five files in the downstream env (original ordering and per-file env).
    • qa = aqua.jl in the main test env (there is no qa sub-env; Aqua is in the root [extras]).
    • all = ["Core"] → GROUP=All runs only Core + remake, matching the original.
  • Deps: SciMLTesting (compat 1) added to the root test deps and to test/downstream/Project.toml + test/python/Project.toml (with SafeTestsets + Test). Pkg is retained — aqua.jl uses Pkg.Types.EnvCache and the activate_*_env helpers use Pkg.
  • test/test_groups.toml unchanged.

Verification

  • TOML.parsefile on every Project.toml + test_groups.toml; Meta.parseall on runtests.jl, aqua.jl, and every included Core file.
  • A dry-run over every GROUP value (All/Core/QA/Downstream/SymbolicIndexingInterface/Python) confirms the fired @safetestset set, order, and per-file active env are byte-equivalent to the previous dispatcher (counts: 18/18/1/21/6/1).
  • Runic-formatted.

Ignore until reviewed by @ChrisRackauckas.

🤖 Generated with Claude Code

Convert test/runtests.jl to SciMLTesting v1.2. This repo's per-GROUP
behavior cannot use bare folder-discovery (the SymbolicIndexingInterface
group runs remake_tests.jl in the MAIN env *plus* five downstream/*.jl in
the downstream sub-env — a mixed-env group — and the downstream/ folder is
sliced across the Downstream and SII groups sharing one env), so it uses
the v1.2 explicit-args run_tests over the existing file layout, mirroring
the OrdinaryDiffEq.jl conversion:

  * core thunk = the 15 Core files + remake_tests.jl (main env), keeping the
    is_APPVEYOR guard on Remake verbatim.
  * groups Downstream / Python = thunks that activate their sub-env inside
    the !is_APPVEYOR guard (not env= GroupSpecs, to preserve the original
    conditional activation).
  * SymbolicIndexingInterface = an umbrella over SII_Remake (remake in main
    env) then SII_Downstream (five files in the downstream env), exactly the
    original ordering and per-file env.
  * qa thunk = aqua.jl in the main test env (no qa sub-env exists; Aqua is
    in the root [extras]).
  * curated all = ["Core"] so GROUP=All runs only the Core set + remake,
    matching the original (Downstream/SII/Python/QA excluded from All).

Adds SciMLTesting (compat 1) to the root test deps and to the downstream
and python sub-envs (with SafeTestsets + Test). Pkg is RETAINED: aqua.jl
uses Pkg.Types.EnvCache directly and the activate_*_env helpers use Pkg.
test_groups.toml unchanged. A dry-run over every GROUP value confirms the
fired @safetestset set and per-file active env are byte-equivalent to the
previous dispatcher.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review June 14, 2026 23:54
@ChrisRackauckas
ChrisRackauckas merged commit 942e6f4 into SciML:master Jun 14, 2026
32 of 62 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