Add arch axis and group alias to root test-group matrix#113
Merged
ChrisRackauckas merged 1 commit intoJul 12, 2026
Merged
Conversation
The root test-group matrix (test/test_groups.toml -> grouped-tests.yml)
could express a group's version and OS axes but not its CPU architecture,
so a package that wants a 32-bit lane had to bypass the matrix and hand-add
a `tests.yml` job to its CI, defeating the point of declaring the matrix
once in test_groups.toml.
Add two root-matrix-only per-group keys:
* `arch` — string or list of Julia architectures; the group runs once per
arch (empty = the runner's native arch). Emitted as a per-cell `arch`
field that grouped-tests.yml forwards to tests.yml's `julia-arch` (empty
falls back to runner.arch).
* `group` — the GROUP env dispatched to the package's runtests.jl,
defaulting to the section name. A section named e.g. "Core 32-bit" can
dispatch the "Core" body (so its folder/core file resolves in
SciMLTesting folder-discovery mode) while carrying its own arch/os axis
and CI job name.
grouped-tests.yml forwards `julia-arch: matrix.arch` and appends the arch to
the job name when set. Existing test_groups.toml files are unaffected: no
`arch`/`group` keys means arch is "" (native) and the section name is the
dispatched group, exactly as before.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EcQkauMQ4KSytnTpJpXUZu
ChrisRackauckas
marked this pull request as ready for review
July 12, 2026 10:27
This was referenced Jul 12, 2026
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.
Summary
Adds two new root-matrix-only per-group keys to
test/test_groups.toml(consumed bygrouped-tests.yml), so a package can declare a 32-bit (or any non-native arch) test lane through the matrix instead of bypassing it with a hand-addedtests.ymljob:arch— string or list of Julia CPU architectures. The group runs once per arch; empty (the default) means the runner's native arch. Emitted as a per-cellarchfield thatgrouped-tests.ymlforwards totests.yml's existingjulia-archinput (empty string →tests.ymlfalls back torunner.arch).group— theGROUPenv value dispatched to the package'sruntests.jl, defaulting to the section name. This lets a section named e.g."Core 32-bit"dispatch the"Core"body — so its group folder / core file resolves underSciMLTestingfolder-discovery mode — while carrying its own distinctarch/osaxis and its own CI job name.grouped-tests.ymlnow forwardsjulia-arch: ${{ matrix.arch }}and appends the arch to the job name when non-empty (e.g.Core (julia 1, ubuntu-latest, x86)).Motivating example
yields the 9 native Core cells + QA exactly as before, plus a single
Core (julia 1, ubuntu-latest, x86)cell dispatchingGROUP=Core.Backward compatibility
Existing
test_groups.tomlfiles are unaffected: noarch/groupkeys meansarchis""(native) and the section name is the dispatched group — identical output to before this change.Testing
test/runtests.jlwith three new testsets covering the arch axis (single value + list fan-out), the group alias (32-bit lane dispatchingGROUP=Core), and the--root-matrixCLI emitting thearchfield.julia test/runtests.jlsuite passes locally (exit 0)..jlfiles are Runic-clean.Follow-up
This is the enabling half of a two-PR change. The consumer PR (SciML/FindFirstFunctions.jl) adopts a
"Core 32-bit"section to test 32-bit platforms, replacing a hand-addedtests-32bitjob.Please ignore until reviewed by @ChrisRackauckas.
🤖 Generated with Claude Code