Skip to content

Commit

Permalink
Fix @test_broken problems (#546)
Browse files Browse the repository at this point in the history
* Fix `@test_broken` problems

* Correct remaining tests

* Bump version
  • Loading branch information
simsurace authored Feb 6, 2024
1 parent e5696d7 commit 3b7a2df
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "KernelFunctions"
uuid = "ec8451be-7e33-11e9-00cf-bbf324bd1392"
version = "0.10.60"
version = "0.10.61"

[deps]
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
Expand Down
3 changes: 2 additions & 1 deletion test/basekernels/periodic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
TestUtils.test_interface(PeriodicKernel(; r=[0.8, 0.7]), RowVecs{Float64})

# test_ADs(r->PeriodicKernel(r =exp.(r)), log.(r), ADs = [:ForwardDiff, :ReverseDiff])
@test_broken "Undefined adjoint for Sinus metric, and failing randomly for ForwardDiff and ReverseDiff"
# Undefined adjoint for Sinus metric, and failing randomly for ForwardDiff and ReverseDiff
@test_broken false
test_params(k, (r,))
end
3 changes: 2 additions & 1 deletion test/basekernels/sm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@
end

# test_ADs(x->spectral_mixture_kernel(exp.(x[1:3]), reshape(x[4:18], 5, 3), reshape(x[19:end], 5, 3)), vcat(log.(αs₁), γs[:], ωs[:]), dims = [5,5])
@test_broken "No tests passing (BaseKernel)"
# No tests passing (BaseKernel)
@test_broken false
end
3 changes: 2 additions & 1 deletion test/basekernels/wiener.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@
TestUtils.test_interface(k2, x0, x1, x2)
TestUtils.test_interface(k3, x0, x1, x2)
# test_ADs(()->WienerKernel(i=1))
@test_broken "No tests passing"
# No tests passing
@test_broken false
end
40 changes: 32 additions & 8 deletions test/transform/selecttransform.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,41 @@
end

@testset "$(AD)" for AD in [:ReverseDiff]
@test_broken ga = gradient(AD, A) do a
testfunction(ta_row, a, 2)
@test_broken let
gx = gradient(AD, X) do x
testfunction(tx_row, x, 2)
end
ga = gradient(AD, A) do a
testfunction(ta_row, a, 2)
end
gx ga
end
@test_broken ga = gradient(AD, A) do a
testfunction(ta_col, a, 1)
@test_broken let
gx = gradient(AD, X) do x
testfunction(tx_col, x, 1)
end
ga = gradient(AD, A) do a
testfunction(ta_col, a, 1)
end
gx ga
end
@test_broken ga = gradient(AD, A) do a
testfunction(ta_row, a, B, 2)
@test_broken let
gx = gradient(AD, X) do x
testfunction(tx_row, x, Y, 2)
end
ga = gradient(AD, A) do a
testfunction(ta_row, a, B, 2)
end
gx ga
end
@test_broken ga = gradient(AD, A) do a
testfunction(ta_col, a, C, 1)
@test_broken let
gx = gradient(AD, X) do x
testfunction(tx_col, x, Z, 1)
end
ga = gradient(AD, A) do a
testfunction(ta_col, a, C, 1)
end
gx ga
end
end

Expand Down

2 comments on commit 3b7a2df

@simsurace
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/100378

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.10.61 -m "<description of version>" 3b7a2df143a6560d1dcde7534ae81ff7c45b8298
git push origin v0.10.61

Please sign in to comment.