From 6fe17541fb7b61b8ddb194e323b98bc8f81b39d3 Mon Sep 17 00:00:00 2001 From: Chengyu HAN Date: Fri, 6 Feb 2026 17:04:13 +0800 Subject: [PATCH 1/5] test: move JET into `jet.jl`, run test if `VERSION < v"1.13"` --- test/jet.jl | 17 +++++++++++++++++ test/logabsgamma.jl | 8 -------- test/qa.jl | 8 -------- test/runtests.jl | 9 ++++++++- 4 files changed, 25 insertions(+), 17 deletions(-) create mode 100644 test/jet.jl diff --git a/test/jet.jl b/test/jet.jl new file mode 100644 index 00000000..64ab6f0b --- /dev/null +++ b/test/jet.jl @@ -0,0 +1,17 @@ +using JET: JET + +@testset "package" begin + # Check that there are no undefined global references and undefined field accesses + JET.test_package(SpecialFunctions; target_defined_modules = true, mode = :typo) + + # Analyze methods based on their declared signature + JET.report_package(SpecialFunctions; target_defined_modules = true) +end + +@testset "logabsgamma" begin + # issue #502 + JET.@test_call logabsgamma(1.0) + JET.@test_opt logabsgamma(1.0) + JET.@test_call logabsgamma(1f0) + JET.@test_opt logabsgamma(1f0) +end diff --git a/test/logabsgamma.jl b/test/logabsgamma.jl index c6ac837f..344b890b 100644 --- a/test/logabsgamma.jl +++ b/test/logabsgamma.jl @@ -156,11 +156,3 @@ x = 8.000001f0 # (i.e. prevfloat(8.000001f0) == 8.0f0) # We still check appropriate behavior at 8.0f0 @test ulp(8.0f0) < 0.4006594736129046 - -@testset "JET" begin - # issue #502 - JET.@test_call logabsgamma(1.0) - JET.@test_opt logabsgamma(1.0) - JET.@test_call logabsgamma(1f0) - JET.@test_opt logabsgamma(1f0) -end diff --git a/test/qa.jl b/test/qa.jl index e2d34159..7fbe2277 100644 --- a/test/qa.jl +++ b/test/qa.jl @@ -53,11 +53,3 @@ end # No self-qualified accesses @test ExplicitImports.check_no_self_qualified_accesses(SpecialFunctions) === nothing end - -@testset "JET" begin - # Check that there are no undefined global references and undefined field accesses - JET.test_package(SpecialFunctions; target_defined_modules = true, mode = :typo) - - # Analyze methods based on their declared signature - JET.report_package(SpecialFunctions; target_defined_modules = true) -end diff --git a/test/runtests.jl b/test/runtests.jl index 87b51d4c..ff9bc243 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -9,7 +9,6 @@ using Base.MathConstants: γ using Aqua: Aqua using ExplicitImports: ExplicitImports -using JET: JET using SpecialFunctions: AmosException, f64 @@ -50,3 +49,11 @@ for t in tests include(tp) end end + +# Update this condition when JET support new version +# https://github.com/aviatesk/JET.jl/blob/master/Project.toml +if VERSION < v"1.13" + @testset "JET" begin + include(joinpath(testdir, "jet.jl")) + end +end From 776112403947598668680fbcf9b04a4a094af4e4 Mon Sep 17 00:00:00 2001 From: Chengyu HAN Date: Mon, 9 Feb 2026 15:52:44 +0800 Subject: [PATCH 2/5] ci: skip JET with `pre` --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b0393375..7a3c5e02 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,6 +28,13 @@ jobs: with: version: ${{ matrix.version }} - uses: julia-actions/cache@v2 + - name: Remove JET + # Update this condition when JET support new version + if: matrix.version == 'pre' + shell: julia --project --color=yes {0} + run: | + using Pkg + Pkg.remove("JET") - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 From ee4168af0ec24ec8b31dde7224354ac937238e4b Mon Sep 17 00:00:00 2001 From: Chengyu HAN Date: Mon, 9 Feb 2026 15:56:12 +0800 Subject: [PATCH 3/5] ci: fix Pkg op --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a3c5e02..0f252791 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: shell: julia --project --color=yes {0} run: | using Pkg - Pkg.remove("JET") + Pkg.rm("JET") - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 From edf8abbad73ff8294c94431a9e6489c5e08fc526 Mon Sep 17 00:00:00 2001 From: Chengyu HAN Date: Thu, 12 Feb 2026 15:44:59 +0800 Subject: [PATCH 4/5] ci: Remove JET from Project.toml using sed --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f252791..0796db6c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,10 +31,12 @@ jobs: - name: Remove JET # Update this condition when JET support new version if: matrix.version == 'pre' - shell: julia --project --color=yes {0} + # JuliaLang/Pkg.jl#3741: using Pkg; Pkg.rm("JET") + shell: bash run: | - using Pkg - Pkg.rm("JET") + sed -i.bak '/JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"/d' Project.toml + sed -i.bak 's/"JET", //g' Project.toml + rm Project.toml.bak - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 From dec451431728551ec7e9aa03a849aae3e0435159 Mon Sep 17 00:00:00 2001 From: Chengyu HAN Date: Thu, 12 Feb 2026 15:51:18 +0800 Subject: [PATCH 5/5] ci: remove JET from compat --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0796db6c..cc2e3484 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: # JuliaLang/Pkg.jl#3741: using Pkg; Pkg.rm("JET") shell: bash run: | - sed -i.bak '/JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"/d' Project.toml + sed -i.bak '/^JET = "/d' Project.toml sed -i.bak 's/"JET", //g' Project.toml rm Project.toml.bak - uses: julia-actions/julia-buildpkg@v1