Migrate AD backends to a group env (test/Extensions/Project.toml)#552
Merged
ChrisRackauckas merged 1 commit intoJul 4, 2026
Merged
Conversation
Move the heavy optional AD/analysis backends Mooncake, Zygote, and SparseConnectivityTracer out of the root package's old-style [extras]/[targets].test and into a dedicated group env test/Extensions/Project.toml (the group whose test files actually `using` them). All three are used only in test/Extensions/*.jl. This stops the root/Core Downgrade lane from floor-resolving the Mooncake/Zygote joint dependency graph: the jdc-52 downgrade harness drops these three from its "Independently downgrading N weakdep extension(s)" set (7 -> 4) and no longer writes Manifest-Mooncake, Manifest-Zygote, or Manifest-SparseConnectivityTracer, while the base project still resolves. The cross-backend AD tests are unchanged; the SciMLTesting folder harness auto-activates the group env, so runtests.jl (run_tests()) needs no wiring. All three moved packages remain [weakdeps] (they gate extensions), so their root [compat] entries are kept (no dangling-compat resolver error). No package is a pure test-only extra here, so no [compat] deletion is needed. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
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.
What
Moves the heavy optional AD/analysis backends Mooncake, Zygote, and SparseConnectivityTracer out of the root package's old-style
[extras]/[targets].testand into a dedicated group envtest/Extensions/Project.toml— the group whose test files (test/Extensions/{mooncake,zygote,sparseconnectivitytracer}_tests.jl) actuallyusingthem. All three are used only intest/Extensions/*.jl.Why
With the backends in the root test target, the root/Core Downgrade lane floor-resolves the Mooncake/Zygote joint dependency graph (the well-known Mooncake+Zygote joint-floor wall). Moving them into a group env means the root project no longer even attempts that joint floor-check.
Verified with the jdc-52 downgrade harness on Julia 1.12.6 (fresh depot each run):
Manifest-{Mooncake,Zygote,SparseConnectivityTracer}.tomlwritten?Both runs exit 0; the base project still
Successfully resolvedafter the move.How it stays correct
[weakdeps](they gateDataInterpolationsMooncakeExt/DataInterpolationsSparseConnectivityTracerExt; Zygote is a declared weakdep), so their root[compat]entries are kept — no dangling-compat resolver error. No pure test-only extra was moved, so no[compat]deletion was needed.test/runtests.jl(run_tests()) needs no wiring change.Validation (all run locally on Julia 1.12.6)
julia --project=test/Extensions -e 'using Pkg; Pkg.develop(path="."); Pkg.instantiate()'→ exit 0; resolves Mooncake 0.5.36, Zygote 0.7.11, SparseConnectivityTracer 1.2.2, ForwardDiff 1.4.1;DataInterpolationsMooncakeExt+DataInterpolationsSparseConnectivityTracerExtprecompile.GROUP=CorePkg.test(root env, without the backends): passes — extrapolation 106/106, interface 28/28, interpolation 17412 pass / 5 pre-existing broken, parameter 20/20; "Testing DataInterpolations tests passed".Please ignore until reviewed by @ChrisRackauckas.