Skip to content

Commit 5b364ce

Browse files
committed
ci: run under gdb (drop me)
1 parent dbf3266 commit 5b364ce

File tree

1 file changed

+60
-51
lines changed

1 file changed

+60
-51
lines changed

.github/workflows/CI.yml

Lines changed: 60 additions & 51 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'
@@ -110,6 +110,10 @@ jobs:
110110
# https://github.com/actions/runner/issues/2058
111111
run: |
112112
echo "TMPDIR=${GITHUB_WORKSPACE}/tmp" >> ${GITHUB_ENV}
113+
- name: Install GDB
114+
run: |
115+
apt update
116+
apt install -y gdb
113117
- uses: actions/checkout@v4
114118
- name: Create TMPDIR
115119
run: |
@@ -157,10 +161,15 @@ jobs:
157161
- name: "Run Tests"
158162
timeout-minutes: 60
159163
run: |
160-
import Pkg
161-
Pkg.Registry.update()
162-
Pkg.test(; coverage="user")
163-
shell: julia --color=yes --code-coverage=user --depwarn=yes --project=. {0}
164+
echo 'run' > gdb_cmds
165+
echo 'bt' >> gdb_cmds
166+
echo 'quit' >> gdb_cmds
167+
gdb -q -batch -x gdb_cmds --args julia --color=yes --code-coverage=user --depwarn=yes --project=. -e '
168+
import Pkg;
169+
Pkg.Registry.update();
170+
Pkg.test(; coverage="user");
171+
'
172+
# shell: julia --color=yes --code-coverage=user --depwarn=yes --project=. {0}
164173
id: run_tests
165174
env:
166175
JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager

0 commit comments

Comments
 (0)