Skip to content

Commit 407a198

Browse files
committed
ci: restore runners
1 parent aadfc7f commit 407a198

File tree

3 files changed

+144
-143
lines changed

3 files changed

+144
-143
lines changed

.github/workflows/CI.yml

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -38,59 +38,59 @@ jobs:
3838
strategy:
3939
fail-fast: false
4040
matrix:
41-
# version:
42-
# - "1.10"
43-
# - "1.11"
44-
# # - 'nightly'
45-
# os:
46-
# - ubuntu-24.04
47-
# # `ubuntu-22.04-arm` is considered more stable than `ubuntu-24.04-arm`:
48-
# # <https://github.com/orgs/community/discussions/148648#discussioncomment-12099554>.
49-
# - ubuntu-22.04-arm
50-
# # Disable `macOS-13` until
51-
# # <https://github.com/EnzymeAD/Reactant.jl/issues/867> is resolved.
52-
# # - macOS-13
53-
# - macOS-latest
54-
# test_group:
55-
# - core
56-
# - neural_networks
57-
# - integration
58-
# runtime:
59-
# - "PJRT"
60-
# - "IFRT"
61-
# assertions:
62-
# - false
41+
version:
42+
- "1.10"
43+
- "1.11"
44+
# - 'nightly'
45+
os:
46+
- ubuntu-24.04
47+
# `ubuntu-22.04-arm` is considered more stable than `ubuntu-24.04-arm`:
48+
# <https://github.com/orgs/community/discussions/148648#discussioncomment-12099554>.
49+
- ubuntu-22.04-arm
50+
# Disable `macOS-13` until
51+
# <https://github.com/EnzymeAD/Reactant.jl/issues/867> is resolved.
52+
# - macOS-13
53+
- macOS-latest
54+
test_group:
55+
- core
56+
- neural_networks
57+
- integration
58+
runtime:
59+
- "PJRT"
60+
- "IFRT"
61+
assertions:
62+
- false
6363
include:
64-
# - os: linux-x86-ct6e-180-4tpu
65-
# version: "1.11"
66-
# assertions: false
67-
# test_group: core
68-
# runtime: "IFRT"
69-
# - os: linux-x86-ct6e-180-4tpu
70-
# version: "1.11"
71-
# assertions: false
72-
# test_group: integration
73-
# runtime: "IFRT"
64+
- os: linux-x86-ct6e-180-4tpu
65+
version: "1.11"
66+
assertions: false
67+
test_group: core
68+
runtime: "IFRT"
69+
- os: linux-x86-ct6e-180-4tpu
70+
version: "1.11"
71+
assertions: false
72+
test_group: integration
73+
runtime: "IFRT"
7474
- os: linux-x86-ct6e-180-4tpu
7575
version: "1.11"
7676
assertions: false
7777
test_group: neural_networks
7878
runtime: "IFRT"
79-
# - os: ubuntu-24.04
80-
# version: "1.10"
81-
# assertions: true
82-
# test_group: core
83-
# runtime: "PJRT"
84-
# - os: ubuntu-24.04
85-
# version: "1.10"
86-
# assertions: true
87-
# test_group: neural_networks
88-
# runtime: "PJRT"
89-
# - os: ubuntu-24.04
90-
# version: "1.10"
91-
# assertions: true
92-
# test_group: integration
93-
# runtime: "PJRT"
79+
- os: ubuntu-24.04
80+
version: "1.10"
81+
assertions: true
82+
test_group: core
83+
runtime: "PJRT"
84+
- os: ubuntu-24.04
85+
version: "1.10"
86+
assertions: true
87+
test_group: neural_networks
88+
runtime: "PJRT"
89+
- os: ubuntu-24.04
90+
version: "1.10"
91+
assertions: true
92+
test_group: integration
93+
runtime: "PJRT"
9494
# - os: ubuntu-24.04
9595
# libReactant: packaged
9696
# version: '1.10'

.github/workflows/downgrade.yml

Lines changed: 93 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,96 @@
1-
# name: Downgrade
1+
name: Downgrade
22

3-
# on:
4-
# pull_request:
5-
# branches:
6-
# - main
7-
# paths:
8-
# - '.github/workflows/downgrade.yml'
9-
# - 'ext/**'
10-
# - 'lib/**'
11-
# - 'src/**'
12-
# - 'Project.toml'
13-
# push:
14-
# branches:
15-
# - main
16-
# paths:
17-
# - '.github/workflows/downgrade.yml'
18-
# - 'ext/**'
19-
# - 'lib/**'
20-
# - 'src/**'
21-
# - 'Project.toml'
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths:
8+
- '.github/workflows/downgrade.yml'
9+
- 'ext/**'
10+
- 'lib/**'
11+
- 'src/**'
12+
- 'Project.toml'
13+
push:
14+
branches:
15+
- main
16+
paths:
17+
- '.github/workflows/downgrade.yml'
18+
- 'ext/**'
19+
- 'lib/**'
20+
- 'src/**'
21+
- 'Project.toml'
2222

23-
# concurrency:
24-
# # Skip intermediate builds: always.
25-
# # Cancel intermediate builds: only if it is a pull request build.
26-
# group: ${{ github.workflow }}-${{ github.ref }}
27-
# cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
23+
concurrency:
24+
# Skip intermediate builds: always.
25+
# Cancel intermediate builds: only if it is a pull request build.
26+
group: ${{ github.workflow }}-${{ github.ref }}
27+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
2828

29-
# jobs:
30-
# downgrade:
31-
# # if: ${{ !contains(github.event.head_commit.message, '[skip tests]') && github.base_ref == github.event.repository.default_branch }}
32-
# timeout-minutes: 90
33-
# runs-on: ubuntu-latest
34-
# strategy:
35-
# fail-fast: false
36-
# matrix:
37-
# test_group:
38-
# - core
39-
# - neural_networks
40-
# - integration
41-
# runtime:
42-
# - PJRT
43-
# - IFRT
44-
# env:
45-
# TMPDIR: ${{ github.workspace }}/tmp
46-
# steps:
47-
# - uses: actions/checkout@v4
48-
# - name: Create TMPDIR
49-
# run: |
50-
# mkdir -p ${{ env.TMPDIR }}
51-
# - uses: julia-actions/setup-julia@v2
52-
# with:
53-
# version: "1.10"
54-
# - uses: julia-actions/cache@v2
55-
# - uses: julia-actions/julia-downgrade-compat@v2
56-
# with:
57-
# skip: "ReactantCore"
58-
# - name: "Setup Runtime Preferences"
59-
# uses: "DamianReeves/write-file-action@master"
60-
# with:
61-
# path: "LocalPreferences.toml"
62-
# write-mode: "overwrite"
63-
# contents: |
64-
# [Reactant]
65-
# xla_runtime = "${{ matrix.runtime }}"
66-
# - name: "Install Dependencies and Run Tests"
67-
# run: |
68-
# import Pkg
69-
# Pkg.Registry.update()
70-
# # Install packages present in subdirectories
71-
# dev_pks = Pkg.PackageSpec[]
72-
# for path in ("lib/ReactantCore",)
73-
# push!(dev_pks, Pkg.PackageSpec(; path))
74-
# end
75-
# Pkg.develop(dev_pks)
76-
# Pkg.test(; coverage="user")
77-
# shell: julia --color=yes --code-coverage=user --depwarn=yes --project=. {0}
78-
# id: run_tests
79-
# env:
80-
# JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager
81-
# REACTANT_TEST_GROUP: ${{ matrix.test_group }}
82-
# XLA_FLAGS: "--xla_force_host_platform_device_count=12"
83-
# JULIA_DEBUG: "Reactant,Reactant_jll"
84-
# - name: Upload MLIR modules
85-
# uses: actions/upload-artifact@v4
86-
# timeout-minutes: 10
87-
# if: ${{ always() }}
88-
# with:
89-
# name: "mlir-downgrade-${{ matrix.test_group }}-${{ matrix.runtime }}-${{ github.event_name }}"
90-
# path: "**/*.mlir"
91-
# retention-days: 90
92-
# overwrite: false
93-
# - uses: julia-actions/julia-processcoverage@v1
94-
# - uses: codecov/codecov-action@v5
95-
# with:
96-
# files: lcov.info
29+
jobs:
30+
downgrade:
31+
# if: ${{ !contains(github.event.head_commit.message, '[skip tests]') && github.base_ref == github.event.repository.default_branch }}
32+
timeout-minutes: 90
33+
runs-on: ubuntu-latest
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
test_group:
38+
- core
39+
- neural_networks
40+
- integration
41+
runtime:
42+
- PJRT
43+
- IFRT
44+
env:
45+
TMPDIR: ${{ github.workspace }}/tmp
46+
steps:
47+
- uses: actions/checkout@v4
48+
- name: Create TMPDIR
49+
run: |
50+
mkdir -p ${{ env.TMPDIR }}
51+
- uses: julia-actions/setup-julia@v2
52+
with:
53+
version: "1.10"
54+
- uses: julia-actions/cache@v2
55+
- uses: julia-actions/julia-downgrade-compat@v2
56+
with:
57+
skip: "ReactantCore"
58+
- name: "Setup Runtime Preferences"
59+
uses: "DamianReeves/write-file-action@master"
60+
with:
61+
path: "LocalPreferences.toml"
62+
write-mode: "overwrite"
63+
contents: |
64+
[Reactant]
65+
xla_runtime = "${{ matrix.runtime }}"
66+
- name: "Install Dependencies and Run Tests"
67+
run: |
68+
import Pkg
69+
Pkg.Registry.update()
70+
# Install packages present in subdirectories
71+
dev_pks = Pkg.PackageSpec[]
72+
for path in ("lib/ReactantCore",)
73+
push!(dev_pks, Pkg.PackageSpec(; path))
74+
end
75+
Pkg.develop(dev_pks)
76+
Pkg.test(; coverage="user")
77+
shell: julia --color=yes --code-coverage=user --depwarn=yes --project=. {0}
78+
id: run_tests
79+
env:
80+
JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager
81+
REACTANT_TEST_GROUP: ${{ matrix.test_group }}
82+
XLA_FLAGS: "--xla_force_host_platform_device_count=12"
83+
JULIA_DEBUG: "Reactant,Reactant_jll"
84+
- name: Upload MLIR modules
85+
uses: actions/upload-artifact@v4
86+
timeout-minutes: 10
87+
if: ${{ always() }}
88+
with:
89+
name: "mlir-downgrade-${{ matrix.test_group }}-${{ matrix.runtime }}-${{ github.event_name }}"
90+
path: "**/*.mlir"
91+
retention-days: 90
92+
overwrite: false
93+
- uses: julia-actions/julia-processcoverage@v1
94+
- uses: codecov/codecov-action@v5
95+
with:
96+
files: lcov.info

test/runtests.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,14 @@ const REACTANT_TEST_GROUP = lowercase(get(ENV, "REACTANT_TEST_GROUP", "all"))
5050
@safetestset "Random" include("integration/random.jl")
5151
@safetestset "Python" include("integration/python.jl")
5252
@safetestset "Optimisers" include("integration/optimisers.jl")
53+
@safetestset "FillArrays" include("integration/fillarrays.jl")
5354
end
5455

5556
if REACTANT_TEST_GROUP == "all" || REACTANT_TEST_GROUP == "neural_networks"
56-
# @safetestset "NNlib Primitives" include("nn/nnlib.jl")
57-
# @safetestset "Flux.jl Integration" include("nn/flux.jl")
57+
@safetestset "NNlib Primitives" include("nn/nnlib.jl")
58+
@safetestset "Flux.jl Integration" include("nn/flux.jl")
5859
if Sys.islinux()
59-
# @safetestset "LuxLib Primitives" include("nn/luxlib.jl")
60+
@safetestset "LuxLib Primitives" include("nn/luxlib.jl")
6061
@safetestset "Lux Integration" include("nn/lux.jl")
6162
end
6263
end

0 commit comments

Comments
 (0)