From 392dab6e9049ba837d431d2e3a35a3f4df77d04e Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Sat, 16 Aug 2025 17:52:17 +0200 Subject: [PATCH 1/6] chore: put test deps into `test/Project.toml` --- .github/workflows/Test.yml | 4 +- DifferentiationInterface/Project.toml | 58 ------------------- DifferentiationInterface/test/Project.toml | 26 +++++++++ DifferentiationInterfaceTest/Project.toml | 55 ------------------ .../test/Project.toml | 29 ++++++++++ 5 files changed, 57 insertions(+), 115 deletions(-) create mode 100644 DifferentiationInterface/test/Project.toml create mode 100644 DifferentiationInterfaceTest/test/Project.toml diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml index 995e97165..3f2067a5f 100644 --- a/.github/workflows/Test.yml +++ b/.github/workflows/Test.yml @@ -128,9 +128,9 @@ jobs: Pkg.Registry.update(); Pkg.develop(path="./DifferentiationInterface"); if ENV["JULIA_DI_PR_DRAFT"] == "true"; - Pkg.test("DifferentiationInterfaceTest"; coverage=true, julia_args=["-O1"]); + Pkg.test("DifferentiationInterfaceTest"; allow_reresolve=false, coverage=true, julia_args=["-O1"]); else; - Pkg.test("DifferentiationInterfaceTest"; coverage=true); + Pkg.test("DifferentiationInterfaceTest"; allow_reresolve=false, coverage=true); end;' - uses: julia-actions/julia-processcoverage@v1 with: diff --git a/DifferentiationInterface/Project.toml b/DifferentiationInterface/Project.toml index aae70a9d6..e110a0a82 100644 --- a/DifferentiationInterface/Project.toml +++ b/DifferentiationInterface/Project.toml @@ -57,7 +57,6 @@ DifferentiationInterfaceZygoteExt = ["Zygote", "ForwardDiff"] [compat] ADTypes = "1.17.0" -Aqua = "0.8.12" ChainRulesCore = "1.23.0" ComponentArrays = "0.15.27" DataFrames = "1.7.0" @@ -73,73 +72,16 @@ FiniteDifferences = "0.12.31" ForwardDiff = "0.10.36,1" GPUArraysCore = "0.2" GTPSA = "1.4.0" -JET = "0.9" JLArrays = "0.2.0" LinearAlgebra = "1" Mooncake = "0.4.147" -Pkg = "1" PolyesterForwardDiff = "0.1.2" -Random = "1" ReverseDiff = "1.15.1" SparseArrays = "1" SparseConnectivityTracer = "0.6.14, 1" SparseMatrixColorings = "0.4.9" -StableRNGs = "1.0.1" StaticArrays = "1.9.7" Symbolics = "5.27.1, 6" -Test = "1" Tracker = "0.2.33" Zygote = "0.6.69, 0.7" julia = "1.10" - -[extras] -ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b" -Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" -ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" -ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66" -DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" -Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" -Diffractor = "9f5e2b26-1114-432f-b630-d3fe2085c51c" -Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9" -ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7" -FastDifferentiation = "eb9bf01b-bf85-4b60-bf87-ee5de06c00be" -FiniteDiff = "6a86dc24-6348-571c-b903-95158fe2bd41" -FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000" -ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210" -GTPSA = "b27dd330-f138-47c5-815b-40db9dd9b6e8" -JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" -JLArrays = "27aeb0d3-9eb9-45fb-866b-73c2ecf80fcb" -Mooncake = "da2b9cff-9c12-43a0-ae48-6db2b0edb7d6" -Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" -PolyesterForwardDiff = "98d1487c-24ca-40b6-b7ab-df2af84e126b" -Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" -ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267" -SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" -SparseConnectivityTracer = "9f842d2f-2579-4b1d-911e-f412cf18a3f5" -SparseMatrixColorings = "0a514795-09f3-496d-8182-132a7b665d35" -StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3" -StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" -Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7" -Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" -Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c" -Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" - -[targets] -test = [ - "ADTypes", - "Aqua", - "ComponentArrays", - "DataFrames", - "Dates", - "ExplicitImports", - "JET", - "JLArrays", - "Pkg", - "Random", - "SparseArrays", - "SparseConnectivityTracer", - "SparseMatrixColorings", - "StableRNGs", - "StaticArrays", - "Test", -] diff --git a/DifferentiationInterface/test/Project.toml b/DifferentiationInterface/test/Project.toml new file mode 100644 index 000000000..c7eeb7742 --- /dev/null +++ b/DifferentiationInterface/test/Project.toml @@ -0,0 +1,26 @@ +[deps] +ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b" +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" +ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66" +DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" +Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" +ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7" +JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" +JLArrays = "27aeb0d3-9eb9-45fb-866b-73c2ecf80fcb" +Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" +Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" +SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" +SparseConnectivityTracer = "9f842d2f-2579-4b1d-911e-f412cf18a3f5" +SparseMatrixColorings = "0a514795-09f3-496d-8182-132a7b665d35" +StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3" +StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[compat] +Aqua = "0.8.12" +ExplicitImports = "1.10.1" +JET = "0.9" +Pkg = "1" +Random = "1" +StableRNGs = "1.0.1" +Test = "1" diff --git a/DifferentiationInterfaceTest/Project.toml b/DifferentiationInterfaceTest/Project.toml index e0fb1e147..f6616fff0 100644 --- a/DifferentiationInterfaceTest/Project.toml +++ b/DifferentiationInterfaceTest/Project.toml @@ -43,7 +43,6 @@ DifferentiationInterfaceTestLuxExt = [ DifferentiationInterfaceTestStaticArraysExt = "StaticArrays" [compat] -Aqua = "0.8.12" ADTypes = "1.7.0" AllocCheck = "0.2" Chairmarks = "1.2.1" @@ -51,8 +50,6 @@ ComponentArrays = "0.15" DataFrames = "1.6.1" DifferentiationInterface = "0.7.0" DocStringExtensions = "0.8,0.9" -ExplicitImports = "1.10.1" -FiniteDiff = "2.27.0" FiniteDifferences = "0.12" Flux = "0.16" ForwardDiff = "0.10.36,1" @@ -62,62 +59,10 @@ JLArrays = "0.1, 0.2" LinearAlgebra = "1" Lux = "1.1.0" LuxTestUtils = "1.3.1" -Pkg = "1" ProgressMeter = "1" Random = "1" SparseArrays = "1" -SparseConnectivityTracer = "0.5.0,0.6,1" -SparseMatrixColorings = "0.4.9" StaticArrays = "1.9" Statistics = "1" -Test = "1" Zygote = "0.6, 0.7" julia = "1.10" - -[extras] -ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b" -Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" -ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66" -DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" -DifferentiationInterface = "a0c0ee7d-e4b9-4e03-894e-1c5f64a51d63" -ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7" -FiniteDiff = "6a86dc24-6348-571c-b903-95158fe2bd41" -FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000" -Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c" -ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210" -JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" -JLArrays = "27aeb0d3-9eb9-45fb-866b-73c2ecf80fcb" -Lux = "b2108857-7c20-44ae-9111-449ecde12c47" -LuxTestUtils = "ac9de150-d08f-4546-94fb-7472b5760531" -Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" -Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" -SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" -SparseConnectivityTracer = "9f842d2f-2579-4b1d-911e-f412cf18a3f5" -SparseMatrixColorings = "0a514795-09f3-496d-8182-132a7b665d35" -StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" -Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" -Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" - -[targets] -test = [ - "ADTypes", - "Aqua", - "ComponentArrays", - "DataFrames", - "DifferentiationInterface", - "ExplicitImports", - "FiniteDiff", - "FiniteDifferences", - "Flux", - "ForwardDiff", - "JET", - "JLArrays", - "Pkg", - "Random", - "SparseArrays", - "SparseConnectivityTracer", - "SparseMatrixColorings", - "StaticArrays", - "Test", - "Zygote", -] diff --git a/DifferentiationInterfaceTest/test/Project.toml b/DifferentiationInterfaceTest/test/Project.toml new file mode 100644 index 000000000..ef23f65e6 --- /dev/null +++ b/DifferentiationInterfaceTest/test/Project.toml @@ -0,0 +1,29 @@ +[deps] +ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b" +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" +ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66" +DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" +DifferentiationInterface = "a0c0ee7d-e4b9-4e03-894e-1c5f64a51d63" +ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7" +FiniteDiff = "6a86dc24-6348-571c-b903-95158fe2bd41" +FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000" +Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c" +ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210" +JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" +JLArrays = "27aeb0d3-9eb9-45fb-866b-73c2ecf80fcb" +Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" +Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" +SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" +SparseConnectivityTracer = "9f842d2f-2579-4b1d-911e-f412cf18a3f5" +SparseMatrixColorings = "0a514795-09f3-496d-8182-132a7b665d35" +StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" +Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" + + +[compat] +Aqua = "0.8.12" +ExplicitImports = "1.10.1" +FiniteDiff = "2.27.0" +SparseConnectivityTracer = "0.5.0,0.6,1" +SparseMatrixColorings = "0.4.9" From 9c87fd0d73d931fa37c6b962b5652f45be580bd8 Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Sat, 16 Aug 2025 17:55:33 +0200 Subject: [PATCH 2/6] Fix compat --- DifferentiationInterface/Project.toml | 3 --- DifferentiationInterface/test/Project.toml | 2 ++ DifferentiationInterfaceTest/test/Project.toml | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/DifferentiationInterface/Project.toml b/DifferentiationInterface/Project.toml index e110a0a82..554776cc6 100644 --- a/DifferentiationInterface/Project.toml +++ b/DifferentiationInterface/Project.toml @@ -58,21 +58,18 @@ DifferentiationInterfaceZygoteExt = ["Zygote", "ForwardDiff"] [compat] ADTypes = "1.17.0" ChainRulesCore = "1.23.0" -ComponentArrays = "0.15.27" DataFrames = "1.7.0" Dates = "1" DiffResults = "1.1.0" Diffractor = "=0.2.6" Enzyme = "0.13.39" EnzymeCore = "0.8.8" -ExplicitImports = "1.10.1" FastDifferentiation = "0.4.3" FiniteDiff = "2.27.0" FiniteDifferences = "0.12.31" ForwardDiff = "0.10.36,1" GPUArraysCore = "0.2" GTPSA = "1.4.0" -JLArrays = "0.2.0" LinearAlgebra = "1" Mooncake = "0.4.147" PolyesterForwardDiff = "0.1.2" diff --git a/DifferentiationInterface/test/Project.toml b/DifferentiationInterface/test/Project.toml index c7eeb7742..c20546674 100644 --- a/DifferentiationInterface/test/Project.toml +++ b/DifferentiationInterface/test/Project.toml @@ -18,8 +18,10 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [compat] Aqua = "0.8.12" +ComponentArrays = "0.15.27" ExplicitImports = "1.10.1" JET = "0.9" +JLArrays = "0.2.0" Pkg = "1" Random = "1" StableRNGs = "1.0.1" diff --git a/DifferentiationInterfaceTest/test/Project.toml b/DifferentiationInterfaceTest/test/Project.toml index ef23f65e6..2b439cfd4 100644 --- a/DifferentiationInterfaceTest/test/Project.toml +++ b/DifferentiationInterfaceTest/test/Project.toml @@ -20,7 +20,6 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" - [compat] Aqua = "0.8.12" ExplicitImports = "1.10.1" From fb7ef0f0d879e7de112678d27edc2e904ab76c8f Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Sat, 16 Aug 2025 17:58:12 +0200 Subject: [PATCH 3/6] Fix more compat --- DifferentiationInterface/Project.toml | 2 -- DifferentiationInterface/test/Project.toml | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DifferentiationInterface/Project.toml b/DifferentiationInterface/Project.toml index 554776cc6..011d4308d 100644 --- a/DifferentiationInterface/Project.toml +++ b/DifferentiationInterface/Project.toml @@ -58,8 +58,6 @@ DifferentiationInterfaceZygoteExt = ["Zygote", "ForwardDiff"] [compat] ADTypes = "1.17.0" ChainRulesCore = "1.23.0" -DataFrames = "1.7.0" -Dates = "1" DiffResults = "1.1.0" Diffractor = "=0.2.6" Enzyme = "0.13.39" diff --git a/DifferentiationInterface/test/Project.toml b/DifferentiationInterface/test/Project.toml index c20546674..9acc9afa0 100644 --- a/DifferentiationInterface/test/Project.toml +++ b/DifferentiationInterface/test/Project.toml @@ -19,6 +19,8 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [compat] Aqua = "0.8.12" ComponentArrays = "0.15.27" +DataFrames = "1.7.0" +Dates = "1" ExplicitImports = "1.10.1" JET = "0.9" JLArrays = "0.2.0" From 8cf7cf7b75c4f3d75c480f1cc1282df107689304 Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Sat, 16 Aug 2025 18:03:39 +0200 Subject: [PATCH 4/6] Add Linalg --- DifferentiationInterface/test/Project.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/DifferentiationInterface/test/Project.toml b/DifferentiationInterface/test/Project.toml index 9acc9afa0..7fea60c1e 100644 --- a/DifferentiationInterface/test/Project.toml +++ b/DifferentiationInterface/test/Project.toml @@ -7,6 +7,7 @@ Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7" JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" JLArrays = "27aeb0d3-9eb9-45fb-866b-73c2ecf80fcb" +LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" From 6c4b709164e007859125c96b17d7aa91c6bdb455 Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Sat, 16 Aug 2025 18:35:33 +0200 Subject: [PATCH 5/6] Compat --- DifferentiationInterfaceTest/Project.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/DifferentiationInterfaceTest/Project.toml b/DifferentiationInterfaceTest/Project.toml index f6616fff0..85659b1e9 100644 --- a/DifferentiationInterfaceTest/Project.toml +++ b/DifferentiationInterfaceTest/Project.toml @@ -64,5 +64,6 @@ Random = "1" SparseArrays = "1" StaticArrays = "1.9" Statistics = "1" +Test = "1" Zygote = "0.6, 0.7" julia = "1.10" From d8b1287c7e59c1bdab1f3d38e56ffc65de7a893c Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Sat, 16 Aug 2025 19:03:20 +0200 Subject: [PATCH 6/6] No fail if codecov errors --- .github/workflows/Test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml index 3f2067a5f..388bbb3ff 100644 --- a/.github/workflows/Test.yml +++ b/.github/workflows/Test.yml @@ -86,7 +86,7 @@ jobs: files: lcov.info flags: DI token: ${{ secrets.CODECOV_TOKEN }} - fail_ci_if_error: true + fail_ci_if_error: false test-DIT: name: ${{ matrix.version }} - DIT (${{ matrix.group }}) @@ -140,4 +140,4 @@ jobs: files: lcov.info flags: DIT token: ${{ secrets.CODECOV_TOKEN }} - fail_ci_if_error: true + fail_ci_if_error: false