Skip to content

Commit aea43a6

Browse files
committed
Split JET tests to separate nopre test group with own Project.toml
- Create test/nopre/ directory with dedicated Project.toml for JET - Add activate_nopre_env() function in runtests.jl - Remove JET from main Project.toml extras/targets/compat - Add nopre test group to CI matrix, excluded from Julia pre-release - This matches OrdinaryDiffEq's pattern for tests that shouldn't run on pre Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0dd38ef commit aea43a6

5 files changed

Lines changed: 24 additions & 10 deletions

File tree

.github/workflows/CI.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ jobs:
2222
- DataDrivenSR
2323
- DataDrivenSparse
2424
- DataDrivenLux
25+
- nopre
2526
version:
2627
- '1'
2728
- 'lts'
2829
- 'pre'
30+
exclude:
31+
- group: nopre
32+
version: 'pre'
2933
steps:
3034
- uses: actions/checkout@v6
3135
- uses: julia-actions/setup-julia@v2

Project.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ CommonSolve = "0.2"
3030
DataInterpolations = "4, 5, 6, 7, 8"
3131
DiffEqBase = "6"
3232
DocStringExtensions = "0.7, 0.8, 0.9"
33-
JET = "0.9, 0.10, 0.11"
3433
MLUtils = "0.3, 0.4"
3534
ModelingToolkit = "11"
3635
OrdinaryDiffEqTsit5 = "1"
@@ -49,12 +48,11 @@ Symbolics = "7"
4948
julia = "1.10"
5049

5150
[extras]
52-
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
5351
OrdinaryDiffEqTsit5 = "b1df2697-797e-41e3-8120-5422d3b24e4a"
5452
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
5553
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
5654
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
5755
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
5856

5957
[targets]
60-
test = ["Test", "Random", "SafeTestsets", "Pkg", "OrdinaryDiffEqTsit5", "JET"]
58+
test = ["Test", "Random", "SafeTestsets", "Pkg", "OrdinaryDiffEqTsit5"]

test/nopre/Project.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[deps]
2+
DataDrivenDiffEq = "2445eb08-9709-466a-b3fc-47e12bd697a2"
3+
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
4+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
5+
6+
[compat]
7+
JET = "0.9, 0.10, 0.11"

test/runtests.jl

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ function activate_subpkg_env(subpkg)
1616
return Pkg.instantiate()
1717
end
1818

19+
function activate_nopre_env()
20+
Pkg.activate(joinpath(@__DIR__, "nopre"))
21+
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
22+
return Pkg.instantiate()
23+
end
24+
1925
@time begin
2026
if GROUP == "All" || GROUP == "Core" || GROUP == "Downstream"
2127
@testset "All" begin
@@ -41,13 +47,12 @@ end
4147
include("./commonsolve/commonsolve.jl")
4248
end
4349
end
44-
45-
# Run JET analysis tests only in CI or when GROUP explicitly includes JET
46-
# Note: JET tests may take longer due to static analysis overhead
47-
if get(ENV, "CI", "false") == "true" || get(ENV, "RUN_JET_TESTS", "false") == "true"
48-
@safetestset "JET Static Analysis" begin
49-
include("./jet_tests.jl")
50-
end
50+
elseif GROUP == "nopre"
51+
# nopre tests are excluded from Julia pre-release versions in CI
52+
# to avoid failures from upstream changes (e.g., JET type inference)
53+
activate_nopre_env()
54+
@safetestset "JET Static Analysis" begin
55+
include("nopre/jet_tests.jl")
5156
end
5257
else
5358
dev_subpkg(GROUP)

0 commit comments

Comments
 (0)