Repository navigation
test: uniformize monorepo onto OrdinaryDiffEq canonical structure - #961
Merged
ChrisRackauckas merged 14 commits intoJun 8, 2026
Merged
ChrisRackauckas merged 14 commits into
ChrisRackauckas merged 14 commits into
Conversation
ChrisRackauckas
marked this pull request as ready for review
June 8, 2026 09:30
Convert the NonlinearSolve.jl monorepo to the OrdinaryDiffEq.jl canonical
style: SafeTestsets group-dispatch testing (no ReTestItems/@testitem), test
deps in [extras]+[targets].test (no test/Project.toml), and centralized CI
threaded with a repo-specific group env var.
Tests / framework
- Replace ReTestItems/TestItemRunner with SafeTestsets across the root and all
10 sublibraries. Every `@testitem`/`@testsnippet`/`@testsetup` is rewritten:
each test item becomes `@safetestset "<title>" include("<file>__itemN.jl")`,
with the item body run at module top level (matches the original @testitem
semantics — required for BenchmarkTools `@ballocated f($cache)` interpolation
to resolve package globals). `@testsetup`/`@testsnippet` modules are extracted
to `setup_<name>.jl` and included per item. Test bodies are preserved
byte-for-byte (then Runic-formatted).
- Each runtests.jl reads `NONLINEARSOLVE_TEST_GROUP` (falling back to `GROUP`)
and group-guards its includes. Root files carry per-item group guards so the
mixed core/downstream/nopre/bounds/etc. tagging is preserved exactly.
- Root test/runtests.jl is now a `_detect_sublibrary_group` dispatcher (mirrors
OrdinaryDiffEq): a GROUP naming a lib/<X> activates that sublibrary, develops
its in-repo [sources] (transitively, incl. the umbrella root for leaf libs),
and Pkg.tests it with the sublib group env set; otherwise it runs the root's
own @safetestset groups. Heavy/optional group deps (ModelingToolkit,
Enzyme/Mooncake/SciMLSensitivity, CUDA) are still Pkg.add-ed on demand.
Project.toml
- Drop ReTestItems/TestItemRunner from every [compat]/[extras]/[targets].test;
add SafeTestsets. No test/Project.toml anywhere (the trim/ trimming
subproject is unrelated and left untouched). No [compat] floors lowered.
test_groups.toml
- Added per sublibrary so the project-model matrix matches real groups:
NonlinearSolveSciPy declares only `wrappers` (it has no Core tests);
Bracketing/SimpleNonlinearSolve add `adjoint`; the rest declare `Core` on
[lts,1.11,1,pre] (their Aqua/ExplicitImports run inside Core, so no spurious
empty QA job).
Workflows
- SublibraryCI.yml: group-env-name=NONLINEARSOLVE_TEST_GROUP, check-bounds=auto.
- DowngradeSublibraries.yml: group-env-name/value=Core (no allow-reresolve;
auto-discovers lib/*; sibling+stdlib skip list kept).
- CI_NonlinearSolve.yml (root, GROUP-dispatched root groups): thread
group-env-name=NONLINEARSOLVE_TEST_GROUP, check-bounds=auto. No hardcoded
sublibrary rows (sublibs are covered by SublibraryCI's project model).
- Downgrade.yml already uses downgrade.yml@v1 with group=core, no
allow-reresolve — unchanged.
- GPU.yml left as-is: the SimpleNonlinearSolve CUDA path could move into the
project model via a `cuda` test_groups runner, but the root NonlinearSolve
CUDA job is not a sublibrary, so both bespoke gpu-v100 jobs are kept (they set
GROUP=cuda, which the new runtests honor). See PR notes.
Root [sources] note: the 4 not-yet-listed sublibraries are intentionally not
added. SciMLJacobianOperators is only a transitive dep (via FirstOrder), like
RosenbrockTableaus in OrdinaryDiffEq, which is not hoisted to root [sources];
SCCNonlinearSolve/NonlinearSolveHomotopyContinuation/NonlinearSolveSciPy are
leaf libraries that depend back on the umbrella root (`<root> = {path="../.."}`),
so adding root->leaf edges would create cycles in the path graph. All 10
sublibraries are still discovered and tested by SublibraryCI's lib/* scan.
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Drop the lowercase() wrapping around the group env read in every test/runtests.jl (root and lib/*) and convert all group-name string comparisons, defaults, and gates to canonical Title-case (All, Core, QA-style) to match SciML/OrdinaryDiffEq.jl. The _detect_sublibrary_group default sub-group is now "Core". Custom group keys in test_groups.toml ([Adjoint], [Wrappers]) are aligned to the same casing as their @safetestset gates. No dispatch logic, env var names, fallback chains, deps, [sources], assertions, or workflow callers were changed. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Make workflow group inputs match the canonical-capitalized group names compared in runtests.jl / test files (case-sensitive): - CI_NonlinearSolve.yml matrix.group: core/downstream/wrappers/misc/nopre/trim -> Core/Downstream/Wrappers/Misc/NoPre/Trim - GPU.yml GROUP: cuda -> CUDA - Downgrade.yml group: core -> Core Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
… sources - TagBot.yml: add the 2 missing registered libs (NonlinearSolveHomotopyContinuation, NonlinearSolveSciPy) so all 10 registered sublibraries are tagged - NonlinearSolveSciPy test_groups.toml: declare [Core] so basic_tests.jl (the package-load/algorithm-defined checks) actually runs in SublibraryCI; previously only [Wrappers] was declared and the default Core group found nothing - NonlinearSolveBase Project.toml: add [sources] for the in-repo SciMLJacobianOperators so the umbrella resolves the local path on Julia < 1.11 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
- Rename plain LICENSE -> LICENSE.md at the root and in the 9 sublibraries that still used the extensionless name (NonlinearSolveSciPy already had LICENSE.md), matching OrdinaryDiffEq's canonical layout. Pure renames; no content change. - Add root .codecov.yml with 'comment: false', matching OrdinaryDiffEq. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Add OrdinaryDiffEq-style sublibrary READMEs (Zulip + Global Docs + ColPrac + SciML Code Style badge block, plus the 'component of the NonlinearSolve.jl monorepo' wording) to the seven sublibraries that lacked a README: NonlinearSolveBase, NonlinearSolveFirstOrder, NonlinearSolveHomotopyContinuation, NonlinearSolveQuasiNewton, NonlinearSolveSciPy, NonlinearSolveSpectralMethods, SCCNonlinearSolve. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…Newton/SpectralMethods Move the Aqua + ExplicitImports QA tests for BracketingNonlinearSolve, NonlinearSolveFirstOrder, NonlinearSolveQuasiNewton and NonlinearSolveSpectralMethods into an isolated test/qa sub-environment, mirroring SciML/OrdinaryDiffEq.jl's canonical structure. Each test/qa holds its own Project.toml (QA tools + the package + in-repo siblings + Test, with [sources] path deps and full [compat]), a qa.jl (the existing Aqua calls verbatim) and explicit_imports.jl (the existing ExplicitImports checks verbatim). runtests.jl gains activate_qa_env() (Pkg.activate test/qa, develop in-repo path deps on Julia < 1.11, instantiate) and runs the QA safetestsets last within the existing Core group, preserving the test-group casing contract. Aqua and ExplicitImports are removed from each main Project.toml [extras]/[targets]/[compat] (they now live only in the qa env); Pkg is added where runtests newly needs it. No QA coverage was added or removed. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…d root Complete the QA isolation by moving the remaining packages' QA tests into an isolated test/qa sub-environment mirroring SciML/OrdinaryDiffEq.jl: - SCCNonlinearSolve, SimpleNonlinearSolve: Aqua + ExplicitImports. - NonlinearSolveBase: Aqua + ExplicitImports (previously inline in runtests.jl). - NonlinearSolveHomotopyContinuation: Aqua only (no ExplicitImports). - root NonlinearSolve: Aqua + ExplicitImports (the umbrella package; the qa env develops the umbrella plus all six in-repo sublibraries and pulls the eight solver-wrapper extension packages the QA imports). Each test/qa holds its own Project.toml (QA tools + the package + in-repo siblings + Test, with [sources] path deps and full [compat]), a qa.jl carrying the existing Aqua calls verbatim, and (where applicable) explicit_imports.jl carrying the existing ExplicitImports checks verbatim. runtests.jl gains activate_qa_env() (Pkg.activate test/qa, develop in-repo path deps on Julia < 1.11, instantiate) and runs the QA safetestsets last within the same group as before, preserving the canonical Title-case test-group casing contract (root QA stays gated on the Misc group). Aqua and ExplicitImports are removed from every main Project.toml [extras]/[targets]/[compat]; Pkg is added where runtests newly needs it. No QA coverage was added or removed; the dead SimpleNonlinearSolve core/allocation_tests.jl (never wired into runtests) is left untouched. Verified in an isolated depot on Julia 1.10: every test/qa env instantiates and resolves (root, SCC, Base, Homotopy, Simple, and the batch-1 sublibs); NonlinearSolveBase QA runs green in the isolated env (Aqua 11/11, Explicit Imports 3/3). Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
SciMLJacobianOperators ran its QA (Aqua + ExplicitImports) inline inside core_tests.jl (as the "Aqua" and "Explicit Imports" @safetestset items, files core_tests__item4.jl / core_tests__item5.jl), so it was not caught by the earlier qa_tests.jl sweep. Move it to the same isolated test/qa structure as the other packages: test/qa/Project.toml (Aqua + ExplicitImports + the package via [sources] + Test, full [compat]), qa.jl (Aqua.test_all verbatim) and explicit_imports.jl (the ExplicitImports checks verbatim). core_tests.jl drops the two QA items; runtests.jl gains activate_qa_env() and runs the QA safetestsets last within the existing Core group. Aqua/ExplicitImports removed from the main Project.toml [extras]/[targets]/[compat]; Pkg added for runtests. Verified in the isolated depot on Julia 1.10: the qa env instantiates/resolves and the QA runs green (Aqua 11/11, Explicit Imports 3/3). Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Move the flat retestitems-style root test files into per-group folders (test/<Group>/), matching the OrdinaryDiffEq canonical structure where each test file belongs to exactly one group: - Base groups (run in the main test env, part of the All run): Core/, NoPre/, Verbosity/ -- no test/<Group>/Project.toml - Dep-adding groups (isolated sub-envs, excluded from All): Downstream/ (ModelingToolkit, OrdinaryDiffEqTsit5, SymbolicIndexingInterface), Bounds/ (Enzyme, PreallocationTools), Adjoint/ (Enzyme/Mooncake/ SciMLSensitivity/ReverseDiff/Tracker/Zygote), Wrappers/ (FastLevenbergMarquardt/ MINPACK/LeastSquaresOptim/NLSolvers/NLsolve/SIAMFANLEquations/SpeedMapping/ FixedPointAcceleration/Sundials), gpu/ (CUDA) -- each with test/<Group>/Project.toml ([sources] to the in-repo umbrella + sublibs, the extra deps, Test, and [compat]). runtests.jl now runs the base groups inline in the main env (All = base groups only) and activates+instantiates each dep-adding group's sub-env when that group is selected, mirroring OrdinaryDiffEq's dispatcher. Every original @safetestset (57 item files) is preserved verbatim and assigned to exactly one group; no test is dropped, skipped, or loosened. The single forward_ad item that pulls the wrapper stack (MINPACK/NLsolve/Sundials via setup_forwardadtesting) is reassigned from NoPre to the Wrappers dep-adding group so the base env stays light. Lighten the main [extras]/[targets].test to the base test set only (InteractiveUtils, NaNMath, NonlinearProblemLibrary, Pkg, PolyesterForwardDiff, Random, SafeTestsets, SciMLLogging, StableRNGs, StaticArrays, Test); the heavy deps now live in the per-group sub-envs. Orphaned [compat] entries for the removed test-only extras (BandedMatrices, BenchmarkTools, Hwloc, ReverseDiff, SparseConnectivityTracer, SparseMatrixColorings, Zygote -- none of them deps or weakdeps) are dropped; weakdep [compat] is left intact. CI_NonlinearSolve.yml: add the new groups to the matrix with the standard version set (lts/1/pre; QA=Misc on lts/1; Adjoint/Bounds skip pre; Trim on 1/pre) and fold a CUDA group onto a self-hosted GPU runner via the centralized tests.yml@v1 `runner` input. Verified on an isolated depot (Julia 1.11): all 37 Project.toml/test_groups.toml parse; test/Bounds and test/Downstream sub-envs instantiate/resolve (with ModelingToolkit 11); the base test env resolves with the lightened extras. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
… GPU/Adjoint Remove the bespoke GPU.yml workflow. Its two CUDA jobs are folded into the canonical dep-adding [CUDA] group mechanism: - Root NonlinearSolve CUDA tests run via the CUDA matrix entry added to CI_NonlinearSolve.yml (self-hosted GPU runner, version 1), backed by test/gpu/Project.toml (committed previously). - SimpleNonlinearSolve CUDA tests now run through SublibraryCI: its test_groups.toml declares a [CUDA] group with runner = ["self-hosted","Linux","X64","gpu"] and timeout, which the centralized sublibrary-project-tests.yml@v1 expands onto the GPU runner. SimpleNonlinearSolve dep-adding groups are made canonical: - Adjoint tests moved from test/core/ to test/adjoint/ with their own test/adjoint/Project.toml ([sources] + SciMLSensitivity/ReverseDiff/Tracker/ Zygote/ForwardDiff + Test + [compat]). - CUDA tests gain test/gpu/Project.toml ([sources] + CUDA + StaticArrays/ADTypes/ LineSearch + Test + [compat]). - runtests.jl activates+instantiates the adjoint/gpu/qa sub-envs instead of Pkg.add'ing SciMLSensitivity/CUDA into the main resolve, keeping the Core env light. All = Core only; Adjoint and CUDA are separate group runs. - test_groups.toml Core versions set to [lts,1,pre]; [Adjoint]=[1]; [CUDA]=[1] on the GPU runner. No test is dropped: every former GPU.yml job and every adjoint @safetestset still runs, now via the standard group mechanism. Verified on an isolated depot (Julia 1.11): test/adjoint and test/gpu sub-envs resolve; all SimpleNonlinearSolve group Project.toml/test_groups.toml parse. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Drop the non-matrix "1.11" entry from every sublibrary's [Core] test group so the standard groups run the canonical [lts, 1, pre] version set (matching the OrdinaryDiffEq monorepo matrix and the root CI_NonlinearSolve.yml). Adjoint and Wrappers groups keep their existing restricted version lists. No groups or tests are added or removed; only the Julia version matrix is aligned. All test_groups.toml parse. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…A out of All Canonical-conformance fixes for the monorepo test layout: - SimpleNonlinearSolve: the allocation test (formerly test/core/allocation_tests.jl, written with the `@itesitem` typo that TestItemRunner never collected, so it had silently never run) is now a real `@safetestset` item under test/alloc/ with its own dep-adding sub-env (test/alloc/Project.toml adds AllocCheck) and an [Alloc] entry in test_groups.toml. Pinned to ["1"] because AllocCheck's codegen introspection is Julia-version sensitive (SimpleHalley scalar allocates under 1.10 codegen but is allocation-free on the current release; verified 18/18 pass on release). - QA reconciled into one clean dep-adding group across every sublibrary that ships it (NonlinearSolveBase, Bracketing, SCC, SciMLJacobianOperators, FirstOrder, QuasiNewton, SpectralMethods, HomotopyContinuation, SimpleNonlinearSolve): QA was previously run inside the Core/All block via activate_qa_env(); it is now gated on GROUP == "QA" (excluded from All) with a [QA] group in each test_groups.toml, matching the canonical "dep-adding group with its own Project.toml is excluded from All" rule. The root QA group is renamed Misc -> QA for consistency (runtests + CI matrix). Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
TagBot.yml: replace direct JuliaRegistries/TagBot@v1 steps with the canonical SciML/.github thin caller plus a tagbot-subpackages matrix over the 10 registered lib/<Name> sublibraries. Downgrade.yml: drop the stdlib-only skip (Pkg,TOML — both auto-populated now) and the single-element julia-version matrix; pin julia-version to lts. DowngradeSublibraries.yml: drop the hand-listed skip (stdlibs + in-repo sublibs + caller pkg), all auto-populated by the centralized workflow. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
ChrisRackauckas-Claude
force-pushed
the
uniformize-monorepo-structure
branch
from
June 8, 2026 09:41
e51ae34 to
d5f13c6
Compare
BatchZero
added a commit
to BatchZero/NonlinearSolve.jl
that referenced
this pull request
Jun 10, 2026
Follow the post-SciML#961 canonical structure: each former @testitem in test/homotopy_sweep_tests.jl becomes a standalone test/Core/homotopy_sweep_tests__itemN.jl, registered via @safetestset in the Core group block of test/runtests.jl. Test bodies are unchanged (14 items, 45 assertions).
ChrisRackauckas
pushed a commit
that referenced
this pull request
Jun 11, 2026
…opyProblem` (#962) * feat: add HomotopySweep algorithm struct Adds `HomotopySweep <: AbstractNonlinearSolveAlgorithm`, a natural-parameter continuation solver stub for `SciMLBase.HomotopyProblem`. Wires include/export in the main module and adds a construction test (9 assertions, all passing). * feat: HomotopySweep solve — monotone λ sweep with warm-start Add _lambda_setter helpers (integer-index and symbolic-SII variants) and CommonSolve.solve(::HomotopyProblem, ::HomotopySweep) that sweeps λ from λspan[1] to λspan[2] in nsteps steps, warm-starting each inner NonlinearProblem solve from the previous step's solution. Also imports HomotopyProblem from SciMLBase into the NonlinearSolve module. Happy-path test (oop, λ in p by index) converges u → √c = 2.0 for c = 4.0. * refactor: HomotopySweep use setp_oop, guard nsteps, clarify loop comments * test: HomotopySweep out-of-basin rescue (MTK-free acceptance test) * feat: HomotopySweep surfaces inner retcode on failure; add failure tests * test: HomotopySweep composable inner solver * docs: document HomotopySweep * fix: HomotopySweep λ-setter promotes integer-eltype p (avoid InexactError) * feat: HomotopyProblem defaults to HomotopySweep when no algorithm is given * refactor: move HomotopySweep into NonlinearSolveBase (algorithms live in sublibs, not core src/) * refactor: adopt λ-separated HomotopyProblem API + review fixes Review feedback (#962): - λ is a separate scalar argument now: each step wraps f with FixLambda (a named callable, so the inner solver compiles once) and hands the inner solver a plain NonlinearProblem with the user's p untouched; _lambda_setter machinery removed - copy(last_sol.u): sol.u may alias solver-internal storage that the next inner solve can mutate (kwargs incl. alias_u0 are forwarded), which would corrupt the last-converged-iterate guarantee of the failure path - step-size kwargs per review: nsteps = nothing + initial_step_factor = 0.1 defaults; adaptive = false requires explicit nsteps - min_dλ = nothing resolves to sqrt(eps(typeof(λ))) so the floor scales with the working precision instead of a fixed 1e-3 * test: convert homotopy sweep tests to the grouped safetestset layout Follow the post-#961 canonical structure: each former @testitem in test/homotopy_sweep_tests.jl becomes a standalone test/Core/homotopy_sweep_tests__itemN.jl, registered via @safetestset in the Core group block of test/runtests.jl. Test bodies are unchanged (14 items, 45 assertions). * build: require SciMLBase 3.19; cut NonlinearSolveBase 2.31.0 / NonlinearSolve 4.20.0 HomotopyProblem ships in SciMLBase 3.19.0, so the minimum moves to 3.19 in the root and NonlinearSolveBase Project.tomls (as requested in review). NonlinearSolveBase gains HomotopySweep (feature -> 2.31.0); the root re-exports it and its Core test group references it, so the root NonlinearSolveBase floor rises to 2.31 (-> 4.20.0). The lts grids and the root Downgrade job resolve NonlinearSolveBase from the registry and stay red until 2.31.0 is registered, then heal automatically. * test(qa): treat SciMLBase.HomotopyProblem as own in the piracy check The HomotopySweep default-algorithm entry points solve(::HomotopyProblem, ::Nothing, ...) and solve(::HomotopyProblem; ...) are all-foreign signatures, so Aqua.test_piracies flags them. Add HomotopyProblem to treat_as_own, matching the existing NonlinearProblem entry (Aqua matches treat_as_own exactly and does not expand subtypes, so the AbstractNonlinearProblem entry does not cover it).
This was referenced Jun 12, 2026
Open
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.
Uniformizes the NonlinearSolve.jl monorepo onto the OrdinaryDiffEq.jl canonical structure: SafeTestsets group-dispatch testing (no ReTestItems), all test deps in
[extras]/[targets].test(notest/Project.toml), and centralized CI workflows threaded with a repo-specific group env var.Canonicalization done
Tests / framework (ReTestItems -> SafeTestsets)
@testitem/@testsetup/@testsnippet/@run_package_tests/ReTestItems/TestItemRunnerusage from the root and all 10 sublibraries.@safetestset "<title>" include("<file>__itemN.jl"). The item body runs at module top level (matching the original@testitemsemantics) — this is required so BenchmarkTools@ballocated solve!($cache)interpolation resolves the package globals; an inline@safetestset begin ... endevaluates the interpolation in the wrong module and fails. Test bodies are preserved byte-for-byte, then Runic-formatted.@testsetup/@testsnippetmodules are extracted tosetup_<name>.jlandincluded by the items that referenced them viasetup=[...].runtests.jlreadsNONLINEARSOLVE_TEST_GROUP(falling back toGROUP) and group-guards its includes. Root test files carry per-item group guards so the mixedcore/downstream/nopre/bounds/verbosity/cudatagging is preserved exactly.test/runtests.jlis now a_detect_sublibrary_groupdispatcher (mirrors OrdinaryDiffEq): aGROUPnaming alib/<X>activates that sublibrary, develops its in-repo[sources]transitively (incl. the umbrella root for leaf libs), andPkg.tests it with the sublib group env set; otherwise it runs the root's own@safetestsetgroups. Heavy/optional group deps (ModelingToolkit, Enzyme/Mooncake/SciMLSensitivity, CUDA) remainPkg.add-on-demand to keep the default matrix light.Project.toml
ReTestItems/TestItemRunnerfrom every[compat]/[extras]/[targets].test; addedSafeTestsets. Notest/Project.tomlanywhere (thetest/trim/trimming subproject is unrelated and untouched). No[compat]floors lowered.test_groups.toml (added per sublibrary so the project-model matrix matches real groups)
NonlinearSolveSciPy: onlywrappers(it has no Core tests — critical, else the default Core job would run nothing).BracketingNonlinearSolve,SimpleNonlinearSolve:Core+adjoint.Coreon[lts,1.11,1,pre](Aqua/ExplicitImports run inside Core; declaring real groups avoids a spurious empty QA job).Workflows
SublibraryCI.yml:group-env-name: NONLINEARSOLVE_TEST_GROUP,check-bounds: auto.DowngradeSublibraries.yml:group-env-name/group-env-value: Core(noallow-reresolve; auto-discoverslib/*; sibling+stdlib skip list kept).CI_NonlinearSolve.yml(root, GROUP-dispatched over the root's own groups): threadedgroup-env-name: NONLINEARSOLVE_TEST_GROUP,check-bounds: auto. No hardcoded sublibrary rows — sublibs are covered by SublibraryCI's project model.Downgrade.yml: alreadydowngrade.yml@v1,group: core, noallow-reresolve— unchanged.GPU.yml: kept as-is. The SimpleNonlinearSolve CUDA path could move into the project model via acudatest_groups.tomlrunner entry, but the root NonlinearSolve CUDA job is not a sublibrary, so both bespokegpu-v100jobs are kept. They setGROUP=cuda, which the new runtests honor via theGROUPfallback.Root
[sources](the 4 "missing" sublibraries are intentionally NOT added)SciMLJacobianOperatorsis only a transitive dep (viaNonlinearSolveFirstOrder), likeRosenbrockTableausin OrdinaryDiffEq, which is not hoisted into root[sources].SCCNonlinearSolve,NonlinearSolveHomotopyContinuation,NonlinearSolveSciPyare leaf libraries that depend back on the umbrella root (<root> = {path = "../.."}). Adding root->leaf edges would create cycles in the path graph (forbidden by the audit's rule B). All 10 sublibraries are still discovered and tested by SublibraryCI'slib/*scan.Verified locally (isolated depot, Julia 1.11)
Project.toml; confirmed all[targets].testdeps appear in[extras]/[deps], zerotest/Project.tomlremain, zero@testitem/@testsnippet/ReTestItemsremain. YAML-parsed all changed workflows; parsed alltest_groups.toml; parse-checked all 217 converted.jlfiles. Runic-checked all 210 changed.jl(pass).[sources]path graph resolves.NONLINEARSOLVE_TEST_GROUP=Core:Testing NonlinearSolveBase tests passed(Aqua 11/11, Explicit Imports 3/3, Banded vcat 1/1, Termination 1/1, standardize_forwarddiff_tag 2/2, maybe_wrap_nonlinear_f 4/4, EnzymeExt 6/6 + 4/4, PolyAlgorithm 9/9, Bounds transform 8/8).@testsetup+@ballocated $cache):tests passed(DFSane 12/12, Iterator 2/2, NewtonRaphson Fails 2/2, Kwargs 3/3, Termination 27/27).@testsnippet):tests passed(Interval Nonlinear Problems 17861/17861, Muller 13/13, Aqua 11/11, etc.).GROUP=misc):Testing NonlinearSolve tests passed(Aqua 10/10, Explicit Imports 3/3) — confirms per-item group guards select onlymiscitems._detect_sublibrary_group/_find_librouting (e.g.scimljacobianoperators-> sublib,simplenonlinearsolve_adjoint-> SimpleNonlinearSolve/adjoint,core/misc-> root-own).What CI must confirm
GPU.ymlCUDA jobs on the self-hosted runner.