Skip to content

Commit 169b182

Browse files
committed
ci: upload failing mlir
1 parent 4ae4f55 commit 169b182

File tree

4 files changed

+62
-20
lines changed

4 files changed

+62
-20
lines changed

.github/workflows/CI-localjll.yml

+18
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,15 @@ jobs:
9797
JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager
9898
XLA_FLAGS: "--xla_force_host_platform_device_count=12"
9999
JULIA_DEBUG: "Reactant,Reactant_jll"
100+
- name: Upload MLIR modules (PJRT)
101+
uses: actions/upload-artifact@v4
102+
timeout-minutes: 10
103+
if: ${{ always() }}
104+
with:
105+
name: "simulation-mlir- downgrade - PJRT - ${{ github.event_name }}"
106+
path: "**/*.mlir"
107+
retention-days: 90
108+
overwrite: false
100109
- name: "Setup Runtime Preferences"
101110
run: |
102111
import Pkg
@@ -117,6 +126,15 @@ jobs:
117126
JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager
118127
XLA_FLAGS: "--xla_force_host_platform_device_count=12"
119128
JULIA_DEBUG: "Reactant,Reactant_jll"
129+
- name: Upload MLIR modules (IFRT)
130+
uses: actions/upload-artifact@v4
131+
timeout-minutes: 10
132+
if: ${{ always() }}
133+
with:
134+
name: "simulation-mlir- downgrade - IFRT - ${{ github.event_name }}"
135+
path: "**/*.mlir"
136+
retention-days: 90
137+
overwrite: false
120138
- uses: julia-actions/julia-processcoverage@v1
121139
- uses: codecov/codecov-action@v5
122140
with:

.github/workflows/CI.yml

+29-20
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@ name: CI
33
on:
44
pull_request:
55
paths:
6-
- '.github/workflows/CI.yml'
7-
- 'ext/**'
8-
- 'lib/**'
9-
- 'src/**'
10-
- 'test/**'
11-
- 'Project.toml'
6+
- ".github/workflows/CI.yml"
7+
- "ext/**"
8+
- "lib/**"
9+
- "src/**"
10+
- "test/**"
11+
- "Project.toml"
1212
push:
1313
branches:
1414
- main
1515
- release-*
16-
tags: '*'
16+
tags: "*"
1717
paths:
18-
- '.github/workflows/CI.yml'
19-
- 'ext/**'
20-
- 'lib/**'
21-
- 'src/**'
22-
- 'test/**'
23-
- 'Project.toml'
18+
- ".github/workflows/CI.yml"
19+
- "ext/**"
20+
- "lib/**"
21+
- "src/**"
22+
- "test/**"
23+
- "Project.toml"
2424

2525
concurrency:
2626
# Skip intermediate builds: always.
@@ -37,8 +37,8 @@ jobs:
3737
fail-fast: false
3838
matrix:
3939
version:
40-
- '1.10'
41-
- '1.11'
40+
- "1.10"
41+
- "1.11"
4242
# - 'nightly'
4343
os:
4444
- ubuntu-24.04
@@ -60,17 +60,17 @@ jobs:
6060
- false
6161
include:
6262
- os: ubuntu-24.04
63-
version: '1.10'
63+
version: "1.10"
6464
assertions: true
6565
test_group: core
6666
runtime: "PJRT"
6767
- os: ubuntu-24.04
68-
version: '1.10'
68+
version: "1.10"
6969
assertions: true
7070
test_group: neural_networks
7171
runtime: "PJRT"
7272
- os: ubuntu-24.04
73-
version: '1.10'
73+
version: "1.10"
7474
assertions: true
7575
test_group: integration
7676
runtime: "PJRT"
@@ -96,9 +96,9 @@ jobs:
9696
- uses: actions/checkout@v4
9797
if: ${{ matrix.assertions }}
9898
with:
99-
repository: 'JuliaLang/julia'
99+
repository: "JuliaLang/julia"
100100
ref: release-${{ matrix.version }}
101-
path: 'julia'
101+
path: "julia"
102102
- name: Compile Julia
103103
if: ${{ matrix.assertions }}
104104
run: |
@@ -141,6 +141,15 @@ jobs:
141141
REACTANT_TEST_GROUP: ${{ matrix.test_group }}
142142
XLA_FLAGS: "--xla_force_host_platform_device_count=12"
143143
JULIA_DEBUG: "Reactant,Reactant_jll"
144+
- name: Upload MLIR modules
145+
uses: actions/upload-artifact@v4
146+
timeout-minutes: 10
147+
if: ${{ always() }}
148+
with:
149+
name: "simulation-mlir-${{ matrix.version }} - ${{ matrix.test_group }} - ${{ matrix.os }} - ${{ matrix.runtime }} - assertions=${{ matrix.assertions }} - ${{ github.event_name }}"
150+
path: "**/*.mlir"
151+
retention-days: 90
152+
overwrite: false
144153
- uses: julia-actions/julia-processcoverage@v1
145154
- uses: codecov/codecov-action@v5
146155
with:

.github/workflows/downgrade.yml

+9
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,15 @@ jobs:
7676
REACTANT_TEST_GROUP: ${{ matrix.test_group }}
7777
XLA_FLAGS: "--xla_force_host_platform_device_count=12"
7878
JULIA_DEBUG: "Reactant,Reactant_jll"
79+
- name: Upload MLIR modules
80+
uses: actions/upload-artifact@v4
81+
timeout-minutes: 10
82+
if: ${{ always() }}
83+
with:
84+
name: "simulation-mlir- downgrade - ${{ matrix.test_group }} - ${{ matrix.runtime }} - ${{ github.event_name }}"
85+
path: "**/*.mlir"
86+
retention-days: 90
87+
overwrite: false
7988
- uses: julia-actions/julia-processcoverage@v1
8089
- uses: codecov/codecov-action@v5
8190
with:

test/runtests.jl

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
using Reactant, SafeTestsets, Test
22

3+
# If we are in GitHub Actions, make `TMPDIR` be a local directory from which we
4+
# can upload artifacts at the end.
5+
if get(ENV, "GITHUB_ACTIONS", "false") == "true"
6+
ENV["TMPDIR"] = mkpath(joinpath(@__DIR__, "..", "tmp"))
7+
end
8+
39
# parse some command-line arguments
410
function extract_flag!(args, flag, default=nothing; typ=typeof(default))
511
for f in args

0 commit comments

Comments
 (0)