Skip to content

Commit 2acf709

Browse files
committed
more JET tests to test group
1 parent 5a615f3 commit 2acf709

File tree

5 files changed

+32
-62
lines changed

5 files changed

+32
-62
lines changed

.github/workflows/JET.yml

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

.github/workflows/Tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
group:
3030
- "Core"
3131
- "Downstream"
32+
- "JET"
3233
uses: "SciML/.github/.github/workflows/tests.yml@v1"
3334
with:
3435
group: "${{ matrix.group }}"

Project.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "RecursiveArrayTools"
22
uuid = "731186ca-8d62-57ce-b412-fbd966d074cd"
3-
authors = ["Chris Rackauckas <accounts@chrisrackauckas.com>"]
43
version = "3.41.0"
4+
authors = ["Chris Rackauckas <accounts@chrisrackauckas.com>"]
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
@@ -48,6 +48,7 @@ DocStringExtensions = "0.9.3"
4848
FastBroadcast = "0.3.5"
4949
ForwardDiff = "0.10.38, 1"
5050
GPUArraysCore = "0.2"
51+
JET = "0.9, 0.11"
5152
KernelAbstractions = "0.9.36"
5253
LinearAlgebra = "1.10"
5354
Measurements = "2.11"
@@ -76,6 +77,7 @@ julia = "1.10"
7677
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
7778
FastBroadcast = "7034ab61-46d4-4ed7-9d0f-46aef9175898"
7879
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
80+
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
7981
KernelAbstractions = "63c18a36-062a-441e-b654-da1e3ab1ce7c"
8082
Measurements = "eff96d63-e80a-5855-80a2-b1b0885c5ab7"
8183
MonteCarloMeasurements = "0987c9cc-fe09-11e8-30f0-b96dd679fdca"
@@ -93,4 +95,4 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
9395
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
9496

9597
[targets]
96-
test = ["Aqua", "FastBroadcast", "ForwardDiff", "KernelAbstractions", "Measurements", "NLsolve", "Pkg", "Random", "SafeTestsets", "SciMLBase", "SparseArrays", "StaticArrays", "StructArrays", "Tables", "Test", "Unitful", "Zygote"]
98+
test = ["Aqua", "FastBroadcast", "ForwardDiff", "JET", "KernelAbstractions", "Measurements", "NLsolve", "Pkg", "Random", "SafeTestsets", "SciMLBase", "SparseArrays", "StaticArrays", "StructArrays", "Tables", "Test", "Unitful", "Zygote"]

test/jet_tests.jl

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using Pkg
2+
Pkg.add("JET")
3+
Pkg.instantiate()
4+
using JET
5+
using RecursiveArrayTools
6+
7+
# Get all reports first
8+
result = JET.report_package(RecursiveArrayTools; target_modules = (RecursiveArrayTools,))
9+
reports = JET.get_reports(result)
10+
11+
# Filter out similar_type inference errors from StaticArraysCore
12+
filtered_reports = filter(reports) do report
13+
s = string(report)
14+
!(occursin("similar_type", s) && occursin("StaticArraysCore", s))
15+
end
16+
17+
# Check if there are any non-filtered errors
18+
if !isempty(filtered_reports)
19+
@error "JET found errors" filtered_reports
20+
exit(1)
21+
else
22+
@info "All JET errors are filtered (similar_type related)"
23+
end

test/runtests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,8 @@ end
5656
@time @safetestset "VectorOfArray GPU" include("gpu/vectorofarray_gpu.jl")
5757
@time @safetestset "ArrayPartition GPU" include("gpu/arraypartition_gpu.jl")
5858
end
59+
60+
if GROUP == "JET" || GROUP == "All"
61+
@time @safetestset "JET Tests" include("jet_tests.jl")
62+
end
5963
end

0 commit comments

Comments
 (0)