Skip to content

Commit 19c5004

Browse files
Move existing tests that may use Enzyme to nopre group
Instead of creating new tests, this moves existing tests that could potentially use Enzyme through default autodiff settings to the nopre group: - Basic PolyAlgorithms: Uses RobustMultiNewton() and FastShortcutNonlinearPolyalg() - PolyAlgorithms Autodiff: Tests autodiff with polyalgorithms - 23 Test Problems: PolyAlgorithms: Tests with default polyalgorithms - ForwardDiff.jl Integration: Tests with FastShortcutNonlinearPolyalg() and nothing - Ensemble Nonlinear Problems: Uses nothing as algorithm - Out-of-place Matrix Resizing: Uses polyalgorithms without explicit autodiff - Inplace Matrix Resizing: Uses polyalgorithms without explicit autodiff - Default Algorithm Singular Handling: Uses default solver These tests may trigger Enzyme usage through default autodiff backends, so moving them to nopre group ensures they don't run on Julia prerelease. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 5bd07e7 commit 19c5004

File tree

4 files changed

+8
-62
lines changed

4 files changed

+8
-62
lines changed

test/23_test_problems_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ end
3939
export test_on_library, problems, dicts
4040
end
4141

42-
@testitem "23 Test Problems: PolyAlgorithms" setup=[RobustnessTesting] tags=[:core] begin
42+
@testitem "23 Test Problems: PolyAlgorithms" setup=[RobustnessTesting] tags=[:nopre] begin
4343
alg_ops=(RobustMultiNewton(), FastShortcutNonlinearPolyalg())
4444

4545
broken_tests=Dict(alg=>Int[] for alg in alg_ops)

test/core_tests.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@test sol1.u sol2.u
1818
end
1919

20-
@testitem "Basic PolyAlgorithms" tags=[:core] begin
20+
@testitem "Basic PolyAlgorithms" tags=[:nopre] begin
2121
f(u, p) = u .* u .- 2
2222
u0 = [1.0, 1.0]
2323

@@ -60,7 +60,7 @@ end
6060
end
6161
end
6262

63-
@testitem "PolyAlgorithms Autodiff" tags=[:core] begin
63+
@testitem "PolyAlgorithms Autodiff" tags=[:nopre] begin
6464
cache = zeros(2)
6565
function f(du, u, p)
6666
cache .= u .* u
@@ -126,7 +126,7 @@ end
126126
@test SciMLBase.successful_retcode(sol.retcode)
127127
end
128128

129-
@testitem "Ensemble Nonlinear Problems" tags=[:core] begin
129+
@testitem "Ensemble Nonlinear Problems" tags=[:nopre] begin
130130
prob_func(prob, i, repeat) = remake(prob; u0 = prob.u0[:, i])
131131

132132
prob_nls_oop = NonlinearProblem((u, p) -> u .* u .- p, rand(4, 128), 2.0)
@@ -350,7 +350,7 @@ end
350350
end
351351
end
352352

353-
@testitem "Out-of-place Matrix Resizing" tags=[:core] begin
353+
@testitem "Out-of-place Matrix Resizing" tags=[:nopre] begin
354354
using StableRNGs
355355

356356
ff(u, p) = u .* u .- p
@@ -368,7 +368,7 @@ end
368368
end
369369
end
370370

371-
@testitem "Inplace Matrix Resizing" tags=[:core] begin
371+
@testitem "Inplace Matrix Resizing" tags=[:nopre] begin
372372
using StableRNGs
373373

374374
fiip(du, u, p) = (du .= u .* u .- p)
@@ -437,7 +437,7 @@ end
437437
@test sol.retcode == ReturnCode.StalledSuccess
438438
end
439439

440-
@testitem "Default Algorithm Singular Handling" tags=[:core] begin
440+
@testitem "Default Algorithm Singular Handling" tags=[:nopre] begin
441441
f(u, p) = [u[1]^2 - 2u[1] + 1, sum(u)]
442442
prob = NonlinearProblem(f, [1.0, 1.0])
443443
sol = solve(prob)

test/enzyme_tests.jl

Lines changed: 0 additions & 54 deletions
This file was deleted.

test/forward_ad_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ compatible(::KINSOL, ::Val{:oop_cache}) = false
6262
export test_f!, test_f, jacobian_f, solve_with, compatible
6363
end
6464

65-
@testitem "ForwardDiff.jl Integration" setup=[ForwardADTesting] tags=[:core] begin
65+
@testitem "ForwardDiff.jl Integration" setup=[ForwardADTesting] tags=[:nopre] begin
6666
@testset for alg in (
6767
NewtonRaphson(),
6868
TrustRegion(),

0 commit comments

Comments
 (0)