Skip to content

Canonical CI: grouped-tests.yml + root test/test_groups.toml - #453

Merged
ChrisRackauckas merged 3 commits into
SciML:masterfrom
ChrisRackauckas-Claude:grouped-tests-ci
Jun 10, 2026
Merged

ChrisRackauckas merged 3 commits into
SciML:masterfrom
ChrisRackauckas-Claude:grouped-tests-ci

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Summary

Converts the root Tests.yml workflow to the canonical SciML thin caller of grouped-tests.yml@v1, with the test matrix declared once in test/test_groups.toml.

  • .github/workflows/Tests.yml is now a thin caller: the hand-maintained group × version × os matrix job is replaced by uses: SciML/.github/.github/workflows/grouped-tests.yml@v1 with secrets: inherit. on: and concurrency: are preserved verbatim and name: "Tests" is kept. All inputs use defaults (GROUP env name, coverage on, coverage-directories: src,ext — ext/ exists), so no with: block is needed.
  • test/test_groups.toml (new, repo root) declares the matrix:
    • [Core] on ["lts", "1", "pre"]
    • [QA] on ["lts", "1"]
    • Both carry os = ["ubuntu-latest", "windows-latest", "macos-latest"] to preserve the old workflow's 3-OS coverage.
  • QA group refactor (Category B): the old inline QA-style group nopre is renamed to the canonical QA and isolated. test/nopre/ is moved to test/qa/ — test/qa/Project.toml carries the QA tooling (Aqua, ExplicitImports, JET, Test) plus the package via [sources] path = "../.." and julia = "1.10" compat; test/qa/qa.jl holds the Aqua/ExplicitImports/JET checks. test/runtests.jl keeps the functional suite under GROUP == "All"/"Core" and gates the QA checks on GROUP == "QA" (activate test/qa, Pkg.develop the package, instantiate, then include qa.jl).

Matrix match

The emitted root matrix reproduces the old Tests.yml matrix exactly (modulo the nopre → QA group rename), verified statically with compute_affected_sublibraries.jl --root-matrix:

Old Tests.yml New test_groups.toml
Core {1, lts, pre} × 3 OS = 9 Core × {lts, 1, pre} × 3 OS = 9
QA nopre × {1, lts} × 3 OS = 6 (pre excluded) QA × {lts, 1} × 3 OS = 6
Total 15 15

Set comparison of (group, version, os) triples: OLD ∖ NEW = ∅, NEW ∖ OLD = ∅ (exact match after nopre → QA). TOML and YAML files parse cleanly. Tests / Aqua / JET were not run locally — this is a structural conversion only.

Project metadata: root [compat] julia is already "1.10" (LTS floor, unchanged); every [extras] dependency already has a [compat] entry, so no metadata fixes were required.

The QA group is now wired into the standard grouped-tests flow; its Aqua/ExplicitImports/JET checks run in CI. Any findings there will be triaged in a follow-up — no checks were skipped, silenced, or excluded.

Other workflows (GPU, Downgrade, FormatCheck, etc.) are untouched.


Ignore until reviewed by @ChrisRackauckas.

🤖 Generated with Claude Code

ChrisRackauckas and others added 3 commits June 9, 2026 18:02
Convert the root Tests.yml workflow to the canonical thin caller for
SciML/.github grouped-tests.yml@v1, with the group x version (x os)
matrix declared once in test/test_groups.toml.

- Tests.yml: replace the hand-maintained group/version/os matrix job with
  a thin caller of grouped-tests.yml@v1 (secrets: inherit). on: and
  concurrency: preserved verbatim; name: kept. Defaults used (GROUP env,
  coverage on, coverage-directories src,ext), so no `with:` needed.
- test/test_groups.toml: [Core] on [lts,1,pre], [QA] on [lts,1]; both
  carry os=[ubuntu-latest,windows-latest,macos-latest] to preserve the
  old 3-OS coverage.
- Rename the inline QA group nopre -> QA: move test/nopre to test/qa with
  an isolated env (test/qa/Project.toml uses [sources] path=../.. for the
  package, julia="1.10" compat) and qa.jl holding the Aqua/ExplicitImports/
  JET checks. runtests.jl now gates these on GROUP=="QA", activating
  test/qa, developing the package, instantiating, then including qa.jl.

Matrix reproduces the old Tests.yml exactly (15 jobs: Core x{lts,1,pre}x3
OS = 9; QA x{lts,1}x3 OS = 6), modulo the nopre->QA group rename, verified
statically via compute_affected_sublibraries.jl --root-matrix.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The QA group activates test/qa and runs the qa.jl include wrapped in
`@safetestset` (runtests.jl). The @safetestset macro expands to a module
doing `using Test, SafeTestsets`, which resolves against the active
(qa) project, so SafeTestsets must be a dep of test/qa, not just the
root test env. Without it the QA group fails to load SafeTestsets.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Remove the os matrix axis from the [QA] group in test/test_groups.toml so
QA (Aqua/JET/ExplicitImports) runs only on ubuntu-latest across its
[lts, 1] versions. These checks are platform-independent, so there is no
value in running them on windows/macos. Core/functional groups keep their
full os matrix.

QA verified green locally (GROUP=QA, Julia 1.11): Quality Assurance 13/13.

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 10, 2026 09:44
@ChrisRackauckas
ChrisRackauckas merged commit d1f92d2 into SciML:master Jun 10, 2026
14 of 17 checks passed
Saswatsusmoy added a commit to Saswatsusmoy/ReservoirComputing.jl that referenced this pull request Jun 15, 2026
Resolve PR2 vs master conflicts after the SciMLTesting v1.2 migration
landed on master (PR SciML#454, SciML#453, SciML#452, SciML#451, SciML#449):

- Project.toml: keep our weakdeps (DataInterpolations, OrdinaryDiffEq,
  SciMLBase), our compat bumps (NNlib 0.9.30, PrecompileTools 1.2),
  and our test extras. Adopt master's SciMLTesting test dep, drop the
  Pkg test dep that master removed (the v1.2 harness owns Pkg ops).
- test/runtests.jl: replace the hand-rolled SafeTestsets + GROUP
  dispatch with `using SciMLTesting; run_tests()` — folder-discovery
  picks up `test/test_ode_reservoir_ext.jl` and
  `test/test_sciml_reservoir.jl` automatically.

Also follow up on Francesco's PR-wide style review:
- Rename the remaining single-letter `u` / `u_val` bindings inside
  RHS bodies in ext + tests + the docs example to `input_t` for
  consistency with the rename pass already applied PR-wide.
- Add a Lorenz chaos-forecasting eye-test section in the SciML
  reservoir tutorial that mirrors the README ESN example but feeds
  the raw leaky-integrator continuous ESN equations into a
  `SciMLProblemReservoir` (no CTESN struct yet, per Francesco's ask).

Local replay (Julia 1.10, SciMLTesting v1.2 folder-discovery):
GROUP=Core passes all groups including
`Core/test_ode_reservoir_ext.jl` 34/34 and
`Core/test_sciml_reservoir.jl` 24/24.
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