Skip to content

Commit 106f50f

Browse files
committed
test: skip friendly_tangents static_scenarios on Julia 1.11
Mooncake returns raw Tangent objects instead of friendly arrays for StaticArrays on Julia 1.11. This is an upstream bug — skip the test until it is fixed.
1 parent 65997c4 commit 106f50f

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

  • DifferentiationInterface/test/Back/Mooncake

DifferentiationInterface/test/Back/Mooncake/test.jl

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,15 @@ test_differentiation(
7575
@test grad.B == ps.A
7676
end
7777

78-
test_differentiation(
79-
backends[3:4],
80-
nomatrix(static_scenarios());
81-
logging = LOGGING,
82-
excluded = SECOND_ORDER
83-
)
78+
# friendly_tangents + StaticArrays broken on Julia 1.11 (upstream Mooncake bug)
79+
@static if !(VERSION v"1.11-" && VERSION < v"1.12-")
80+
test_differentiation(
81+
backends[3:4],
82+
nomatrix(static_scenarios());
83+
logging = LOGGING,
84+
excluded = SECOND_ORDER,
85+
)
86+
end
8487

8588
@testset "Friendly tangents structured matrices" begin
8689
backend = AutoMooncake(; config = Mooncake.Config(; friendly_tangents = true))

0 commit comments

Comments
 (0)