From d8a0a96b3cd58d7586411e5f25707909252f07e3 Mon Sep 17 00:00:00 2001 From: Chengyu HAN Date: Fri, 6 Feb 2026 16:31:02 +0800 Subject: [PATCH 1/3] dep: Remove JET --- Project.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index 18b70268..5bcf9171 100644 --- a/Project.toml +++ b/Project.toml @@ -21,7 +21,7 @@ ChainRulesCore = "0.9.44, 0.10, 1" ChainRulesTestUtils = "0.6.8, 0.7, 1" ExplicitImports = "1.13.2" IrrationalConstants = "0.1, 0.2" -JET = "0.9, 0.10" + LogExpFunctions = "0.3.2" OpenLibm_jll = "0.7, 0.8" OpenSpecFun_jll = "0.5" @@ -34,9 +34,9 @@ Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" ChainRulesTestUtils = "cdddcdb0-9152-4a09-a978-84456f9df70a" ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7" -JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" + Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Aqua", "ChainRulesCore", "ChainRulesTestUtils", "ExplicitImports", "JET", "Random", "Test"] +test = ["Aqua", "ChainRulesCore", "ChainRulesTestUtils", "ExplicitImports", "Random", "Test"] From bd601783f1ce08ec66f50c77518586c3f2bdb421 Mon Sep 17 00:00:00 2001 From: Chengyu HAN Date: Fri, 6 Feb 2026 16:31:11 +0800 Subject: [PATCH 2/3] test: move JET into `jet.jl` --- test/jet.jl | 17 +++++++++++++++++ test/logabsgamma.jl | 8 -------- test/qa.jl | 8 -------- test/runtests.jl | 1 - 4 files changed, 17 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..38ec9064 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 From 639edf0319da30b0ab4799a258cec8633c6a002a Mon Sep 17 00:00:00 2001 From: Chengyu HAN Date: Fri, 6 Feb 2026 16:31:34 +0800 Subject: [PATCH 3/3] ci: add JET CI --- .github/workflows/jet.yml | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/jet.yml diff --git a/.github/workflows/jet.yml b/.github/workflows/jet.yml new file mode 100644 index 00000000..44db0f5c --- /dev/null +++ b/.github/workflows/jet.yml @@ -0,0 +1,44 @@ +name: JET + +on: + push: + branches: [master] + tags: ["*"] + pull_request: + +jobs: + jet: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: + - 'min' + - 'lts' + - '1' + # Latest JET support version + # https://github.com/aviatesk/JET.jl/blob/master/Project.toml + - '1.12' + os: + - ubuntu-latest + - macOS-latest + - windows-latest + steps: + - uses: actions/checkout@v6 + - uses: julia-actions/setup-julia@v2 + with: + version: ${{ matrix.version }} + - uses: julia-actions/cache@v2 + - uses: julia-actions/julia-buildpkg@v1 + - name: Install JET + shell: julia --project --color=yes {0} + run: | + using Pkg + Pkg.add("JET") + - name: Run JET + shell: julia --project --color=yes {0} + run: | + using JET, Test + using SpecialFunctions + include("test/jet.jl")