Skip to content

Commit ae548dc

Browse files
ChrisRackauckas-ClaudeChrisRackauckasclaude
authored
Simplify root CI to grouped-tests.yml (matrix from test/test_groups.toml) (SciML#1222)
Replace the hand-maintained group x version matrix in the root CI.yml test job with the thin grouped-tests.yml@v1 caller, which builds the matrix from test/test_groups.toml via compute_affected_sublibraries.jl --root-matrix. The root test_groups.toml is trimmed to the groups the root CI workflow actually ran (Core on lts/1/pre, QA on lts/1). The GPU group that the monorepo uniformization added speculatively is dropped because the root CI workflow never dispatched it (no self-hosted GPU job existed), so keeping it would invent a matrix cell that did not run before. coverage-directories is preserved verbatim as the only non-default with: input; group dispatch stays on the default GROUP env var, which the root runtests.jl reads, and coverage/check-bounds keep their defaults to match the old root tests.yml call. The workflow filename and name: CI are unchanged so the branch-protection status check name is preserved. Verified the computed root matrix equals the old workflow matrix exactly (5/5): {(Core,lts),(Core,1),(Core,pre),(QA,lts),(QA,1)}. Co-authored-by: ChrisRackauckas-Claude <accounts@chrisrackauckas.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent bdaa669 commit ae548dc

2 files changed

Lines changed: 2 additions & 23 deletions

File tree

.github/workflows/CI.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,8 @@ concurrency:
1414
group: ${{ github.workflow }}-${{ github.ref }}
1515
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}
1616
jobs:
17-
test:
18-
name: "Tests"
19-
strategy:
20-
fail-fast: false
21-
matrix:
22-
group:
23-
- "Core"
24-
version:
25-
- "lts"
26-
- "1"
27-
- "pre"
28-
include:
29-
- group: "QA"
30-
version: "lts"
31-
- group: "QA"
32-
version: "1"
33-
uses: "SciML/.github/.github/workflows/tests.yml@v1"
17+
tests:
18+
uses: "SciML/.github/.github/workflows/grouped-tests.yml@v1"
3419
with:
35-
julia-version: "${{ matrix.version }}"
36-
group: "${{ matrix.group }}"
3720
coverage-directories: "src,lib/OptimizationBase/src,lib/OptimizationBBO/src,lib/OptimizationCMAEvolutionStrategy/src,lib/OptimizationEvolutionary/src,lib/OptimizationGCMAES/src,lib/OptimizationIpopt/src,lib/OptimizationMadNLP/src,lib/OptimizationManopt/src,lib/OptimizationMOI/src,lib/OptimizationMetaheuristics/src,lib/OptimizationMultistartOptimization/src,lib/OptimizationNLopt/src,lib/OptimizationNOMAD/src,lib/OptimizationOptimJL/src,lib/OptimizationOptimisers/src,lib/OptimizationPolyalgorithms/src,lib/OptimizationQuadDIRECT/src,lib/OptimizationSpeedMapping/src"
3821
secrets: "inherit"

test/test_groups.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ versions = ["lts", "1", "pre"]
33

44
[QA]
55
versions = ["lts", "1"]
6-
7-
[GPU]
8-
versions = ["1"]
9-
runner = ["self-hosted", "Linux", "X64", "gpu"]

0 commit comments

Comments
 (0)