From 30b7f8bf3d5275f2686789a9e444cc476ff4a13e Mon Sep 17 00:00:00 2001 From: CompatHelper Julia Date: Thu, 23 Oct 2025 00:36:01 +0000 Subject: [PATCH 1/4] CompatHelper: bump compat for JET to 0.11 for package test, (drop existing compat) --- test/Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Project.toml b/test/Project.toml index 1e695bbd..06cf9003 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -11,7 +11,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" Aqua = "0.8" Documenter = "1" HTTP = "1" -JET = "0.9" +JET = "0.11" JSON = "1" JuliaFormatter = "2" Test = "1" From 49e30fe906592cea4da6d59824f7052c545662b8 Mon Sep 17 00:00:00 2001 From: Olivier Cots Date: Fri, 31 Oct 2025 10:32:19 +0100 Subject: [PATCH 2/4] remove JET --- test/Project.toml | 2 -- test/runtests.jl | 4 ++-- test/test_code_quality.jl | 6 +++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/test/Project.toml b/test/Project.toml index 286d6a76..8ad408df 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -2,7 +2,6 @@ Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3" -JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" @@ -10,6 +9,5 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" Aqua = "0.8" Documenter = "1" HTTP = "1" -JET = "0.9, 0.10, 0.11" JSON = "1" Test = "1" diff --git a/test/runtests.jl b/test/runtests.jl index cbe42373..7f18d1e4 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,8 +1,8 @@ using CTBase using Test using Aqua -using JET -#using JuliaFormatter +# using JET +# using JuliaFormatter using Documenter using HTTP using JSON diff --git a/test/test_code_quality.jl b/test/test_code_quality.jl index dd231e1e..3e3b7427 100644 --- a/test/test_code_quality.jl +++ b/test/test_code_quality.jl @@ -12,9 +12,9 @@ function test_code_quality() Aqua.test_ambiguities(CTBase) end - @testset "JET" begin - JET.test_package(CTBase; target_defined_modules=true) - end + # @testset "JET" begin + # JET.test_package(CTBase; target_defined_modules=true) + # end # @testset "JuliaFormatter" begin # @test JuliaFormatter.format(CTBase; verbose=true, overwrite=false) From ebf7e2eb93cc0336bdea182b7c7df059f5da7446 Mon Sep 17 00:00:00 2001 From: Olivier Cots Date: Fri, 31 Oct 2025 10:51:28 +0100 Subject: [PATCH 3/4] remove JET tests --- test/test_description.jl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/test_description.jl b/test/test_description.jl index fe69c077..7eec9763 100644 --- a/test/test_description.jl +++ b/test/test_description.jl @@ -9,11 +9,12 @@ function test_description() @test descriptions[2] == (:b,) end - # Type stability test for adding descriptions using the is_inferred macro - @testset "Add Descriptions Type Stability" begin - @test_opt CTBase.add((), (:a,)) - @test_inferred CTBase.add((), (:a,)) - end + # # Type stability test for adding descriptions using the is_inferred macro + # Needs JET + # @testset "Add Descriptions Type Stability" begin + # @test_opt CTBase.add((), (:a,)) + # @test_inferred CTBase.add((), (:a,)) + # end # Test building algorithm descriptions and completing partial descriptions @testset "Complete Descriptions with Algorithms" begin From 1c1d0319d83d4073d104dd9df2a18c126345fe5a Mon Sep 17 00:00:00 2001 From: Olivier Cots Date: Fri, 31 Oct 2025 10:58:14 +0100 Subject: [PATCH 4/4] remove JET tests --- test/test_description.jl | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/test/test_description.jl b/test/test_description.jl index 7eec9763..cda30245 100644 --- a/test/test_description.jl +++ b/test/test_description.jl @@ -10,7 +10,7 @@ function test_description() end # # Type stability test for adding descriptions using the is_inferred macro - # Needs JET + # # Needs JET # @testset "Add Descriptions Type Stability" begin # @test_opt CTBase.add((), (:a,)) # @test_inferred CTBase.add((), (:a,)) @@ -40,19 +40,20 @@ function test_description() (:descent, :gradient, :fixedstep) end - # Type stability test for the complete function using the is_inferred macro - @testset "Complete Descriptions Type Stability" begin - algorithms = () - algorithms = CTBase.add(algorithms, (:descent, :bfgs, :bisection)) - algorithms = CTBase.add(algorithms, (:descent, :bfgs, :backtracking)) - algorithms = CTBase.add(algorithms, (:descent, :bfgs, :fixedstep)) - algorithms = CTBase.add(algorithms, (:descent, :gradient, :bisection)) - algorithms = CTBase.add(algorithms, (:descent, :gradient, :backtracking)) - algorithms = CTBase.add(algorithms, (:descent, :gradient, :fixedstep)) + # # Type stability test for the complete function using the is_inferred macro + # # Needs JET + # @testset "Complete Descriptions Type Stability" begin + # algorithms = () + # algorithms = CTBase.add(algorithms, (:descent, :bfgs, :bisection)) + # algorithms = CTBase.add(algorithms, (:descent, :bfgs, :backtracking)) + # algorithms = CTBase.add(algorithms, (:descent, :bfgs, :fixedstep)) + # algorithms = CTBase.add(algorithms, (:descent, :gradient, :bisection)) + # algorithms = CTBase.add(algorithms, (:descent, :gradient, :backtracking)) + # algorithms = CTBase.add(algorithms, (:descent, :gradient, :fixedstep)) - @test_opt CTBase.complete((:descent,); descriptions=algorithms) - @test_inferred CTBase.complete((:descent,); descriptions=algorithms) - end + # @test_opt CTBase.complete((:descent,); descriptions=algorithms) + # @test_inferred CTBase.complete((:descent,); descriptions=algorithms) + # end # Test ambiguous or invalid description completions throw errors @testset "Ambiguous and Incorrect Description Errors" begin @@ -89,7 +90,7 @@ function test_description() # instead of @inferred, check if the type is a subtype of Tuple{Vararg{Symbol}} @test typeof(result) <: Tuple{Vararg{Symbol}} - @test_opt CTBase.remove(x, y) + # @test_opt CTBase.remove(x, y) end # Test completion with descriptions of different sizes and inclusion priority