Commit b3c5c8a
Move heavy AD backends out of root [extras] into group envs (#62)
FastPower's optional AD backends (Enzyme, ForwardDiff, Mooncake,
ReverseDiff, Tracker) plus their test-only support deps (EnzymeTestUtils,
StableRNGs) were declared in the root Project.toml's [extras]/[targets].test.
Because the folder-model Core group and the Enzyme group folder both run in
the main test env, this pulled the full joint AD graph into every
root/Core resolve — including the Downgrade lane, which had to floor-resolve
all five backends together against the base package.
Move each backend into the group env whose files actually `using` it:
* test/AD/Project.toml (new) — ForwardDiff/ReverseDiff/Tracker/Mooncake for
the relocated test/AD/other_ad_engines_tests.jl (was a loose top-level Core
file, now its own AD group declared in test_groups.toml).
* test/Enzyme/Project.toml (new) — Enzyme/EnzymeTestUtils/StableRNGs for the
existing test/Enzyme/ group folder (which previously had no Project.toml and
so resolved against the root env).
Root [extras]/[targets].test keeps only SafeTestsets/SciMLTesting/Test (the
harness + Core deps). Weakdep [compat] entries (Enzyme, ForwardDiff, Mooncake,
ReverseDiff, Tracker) stay since they still gate package extensions; the
extra-only compats (EnzymeTestUtils, StableRNGs) are removed to avoid dangling.
Under the folder-discovery harness each group folder auto-activates its own
Project.toml, so no runtests.jl wiring changes are needed. The root/Core
Downgrade lane no longer floor-resolves any AD backend; cross-backend AD tests
are unchanged (AD 4/4, Enzyme 88/88, Core 1205/1205 all pass locally).
Co-authored-by: ChrisRackauckas-Claude <accounts@chrisrackauckas.com>1 parent b6bd454 commit b3c5c8a
5 files changed
Lines changed: 48 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 40 | | |
48 | 41 | | |
49 | | - | |
50 | 42 | | |
51 | | - | |
52 | 43 | | |
53 | 44 | | |
54 | | - | |
| 45 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| |||
0 commit comments