Skip to content

Commit cb85671

Browse files
authored
Merge pull request #3 from kevinjqliu/kevinjqliu/debug-docker
add debug
2 parents 3dfd6ee + c4446ea commit cb85671

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,21 @@ jobs:
226226
with:
227227
enable-cache: true
228228

229+
- name: Debug host and Docker resources (pre-build)
230+
if: inputs.build_mode == 'release'
231+
run: |
232+
set -x
233+
uname -a
234+
nproc
235+
free -h
236+
swapon --show || true
237+
ulimit -a
238+
df -h
239+
docker version
240+
docker info
241+
docker system df
242+
docker ps -a
243+
229244
- name: Build (release mode)
230245
uses: PyO3/maturin-action@v1
231246
if: inputs.build_mode == 'release'
@@ -251,6 +266,16 @@ jobs:
251266
name: dist-manylinux-aarch64
252267
path: dist/*
253268

269+
- name: Debug OOM signals (post-build)
270+
if: always() && inputs.build_mode == 'release'
271+
run: |
272+
set +e
273+
docker ps -a
274+
docker system df
275+
docker stats --no-stream
276+
sudo dmesg -T | grep -Ei 'out of memory|killed process|oom-killer|oom' | tail -n 100
277+
echo "debug step complete"
278+
254279
# ============================================
255280
# Build - macOS arm64 / Windows
256281
# ============================================

0 commit comments

Comments
 (0)