Repository navigation
ci: reusable sublibrary-project-tests.yml (change detection + full test_groups matrix) - #54
Merged
ChrisRackauckas merged 3 commits intoJun 5, 2026
Conversation
Factor the per-repo SublibraryCI "list lib/* -> matrix -> tests.yml" logic into one reusable workflow so each monorepo's caller is just its branch triggers + concurrency + a single `uses:`. Lists every lib/<name> with a Project.toml and runs each via tests.yml with project=lib/<name>, coverage directories pointed at the sublibrary. Complements sublibrary-tests.yml (the GROUP-dispatch / change-detection variant for very large monorepos). Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This was referenced Jun 5, 2026
Merged
Merged
Add a detect job that runs only the lib/<name> sublibraries affected by the diff, reusing the same dependency-graph reachability as sublibrary-tests.yml. compute_affected_sublibraries.jl gains a --projects mode that emits the affected "lib/<pkg>" paths (union of directly-changed and transitively- affected) instead of the GROUP/version matrix; the existing matrix output is unchanged. A test-all input forces every sublibrary for scheduled/manual full runs. This lets the project-model workflow scale to large monorepos without running every sublibrary on every PR. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
… GPU, timeouts)
Give the project-model sublibrary workflow the same per-sublibrary matrix as
the GROUP-dispatch sublibrary-tests.yml, so it can serve every monorepo
(including OrdinaryDiffEq) from one inherited workflow:
- compute_affected_sublibraries.jl gains --projects-matrix, emitting one entry
per affected sublibrary x test group x version with {project, group, version,
runner, timeout, num_threads} -- reusing test_groups.toml (versions, custom/
GPU runners, timeout, num_threads, local_only), the downstream-only-on-v1
rule, and EXCLUDES. No test_groups.toml -> default Core[lts,1.11,1,pre]+QA[1].
- tests.yml gains runner (JSON labels, e.g. self-hosted GPU), timeout-minutes,
check-bounds, allow-reresolve, and group-env-name (set the group under a
configurable env var, e.g. ODEDIFFEQ_TEST_GROUP). All defaults preserve
existing caller behavior.
- sublibrary-project-tests.yml consumes the matrix and forwards each entry to
tests.yml (project=lib/X + group via group-env-name). test-all runs the full
matrix for every sublibrary.
Verified --projects-matrix locally against OrdinaryDiffEq: GPU groups land on
the self-hosted GPU runner with timeout 60, Core spans lts/1.11/1(/pre minus
EXCLUDES), reverse-deps come in as downstream on v1, no-toml sublibs get the
default Core+QA. Existing group-matrix and --projects outputs unchanged.
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
ChrisRackauckas
marked this pull request as ready for review
June 5, 2026 08:33
This was referenced Jun 5, 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.
One inherited workflow for all monorepo sublibrary CI — dependency-graph change detection and the full per-sublibrary
test_groups.tomlmatrix, so it serves everything from the small monorepos up to OrdinaryDiffEq.Caller stays a thin
uses:(+ optional knobs for repos like ODE):Detection (
compute_affected_sublibraries.jl --projects-matrix): the changed sublibraries + their transitive reverse-deps, expanded into{project, group, version, runner, timeout, num_threads}per test group. Reusestest_groups.toml(multi-version, custom/GPU runners, timeout, num_threads,local_only), the downstream→v1 rule, and EXCLUDES. Notest_groups.toml→ defaultCore[lts,1.11,1,pre]+QA[1].test-all: trueforces the full matrix.Execution is the project model:
tests.yml@v1withproject: lib/X, the group passed viagroup-env-name(defaultGROUP; ODE usesODEDIFFEQ_TEST_GROUP). This is behaviorally equivalent to ODE's root-runtests.jldispatcher (Pkg.activate(lib/X)+ transitive[sources]develop +withenv(ODEDIFFEQ_TEST_GROUP) Pkg.test).tests.yml gains (all defaults preserve existing callers):
runner(JSON labels, e.g. self-hosted GPU),timeout-minutes,check-bounds,allow-reresolve,group-env-name.Verified locally with
--projects-matrixagainst OrdinaryDiffEq: GPU groups land on[self-hosted,Linux,X64,gpu]withtimeout:60; Core spanslts/1.11/1(predropped by EXCLUDES for BDF); reverse-deps come in as downstream on1; no-toml sublibs getCore[lts,1.11,1,pre]+QA[1]. Existing group-matrix and--projectsoutputs unchanged.Callers (need this merged +
v1retag): BoundaryValueDiffEq#499, NonlinearSolve#954, Corleone#77, DataDrivenDiffEq#611, RecursiveArrayTools#605, LinearSolve#1006, NeuralLyapunov#187, DiffEqProblemLibrary#192, Optimization#1216 (+ OrdinaryDiffEq, pending).🤖 Generated with Claude Code