Skip to content

Commit 09e64ae

Browse files
committed
Debug GitHub low disk space error
1 parent f0b486d commit 09e64ae

File tree

3 files changed

+31
-5
lines changed

3 files changed

+31
-5
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
run: |
3838
python -m pip install --upgrade pip
3939
pip install -r .github/workflows/requirements.txt
40+
- name: Check disk space
41+
run: ./check-disk-space
42+
shell: bash
4043
- name: Execute test-all
4144
run: ./test-all
4245
shell: bash

check-disk-space

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
df -h || true
6+
du -sh || true
7+
du -sh /* || true

test-all

+21-5
Original file line numberDiff line numberDiff line change
@@ -51,28 +51,43 @@ export RUSTFLAGS="-Awarnings"
5151
# Keras format, which the C API can't read:
5252
# https://github.com/tensorflow/tensorflow/issues/70514
5353
TF_USE_LEGACY_KERAS=1 run python3 examples/mobilenetv3/create_model.py
54+
run df -h
5455
# TODO(#391): Re-enable: (cd test_resources/library && ./build-test-op)
5556
run cargo fmt --all -- --check
57+
run df -h
5658
run cargo test -vv -j 2
59+
run df -h
5760
run cargo test -vv -j 2 --features eager
61+
run df -h
5862
run cargo test -vv -j 2 --features tensorflow_unstable
63+
run df -h
5964
run cargo test -vv -j 2 --features ndarray
65+
run df -h
6066
run cargo run --example regression
67+
run df -h
6168
run cargo run --example xor
69+
run df -h
6270
run cargo run --features tensorflow_unstable --example expressions
71+
run df -h
6372
run cargo run --features eager --example mobilenetv3
73+
run df -h
6474
run cargo doc --features experimental,tensorflow_unstable,ndarray,eager
75+
run df -h
6576
run cargo doc --features experimental,tensorflow_unstable,ndarray,eager,private-docs-rs
77+
run df -h
6678
# TODO(#66): Re-enable: (cd tensorflow-sys && cargo test -vv -j 1)
6779
(cd tensorflow-sys && run cargo run --example multiplication)
80+
run df -h
6881
(cd tensorflow-sys && run cargo run --example tf_version)
82+
run df -h
6983
(cd tensorflow-sys && run cargo doc -vv)
84+
run df -h
7085

71-
run cargo clippy
72-
(cd tensorflow-sys && run cargo clippy)
73-
(cd tensorflow-op-codegen && run cargo clippy)
74-
(cd tensorflow-proto-codegen && run cargo clippy)
75-
(cd tensorflow-internal-macros && run cargo clippy)
86+
# run cargo clippy
87+
# (cd tensorflow-sys && run cargo clippy)
88+
# (cd tensorflow-op-codegen && run cargo clippy)
89+
# (cd tensorflow-proto-codegen && run cargo clippy)
90+
# (cd tensorflow-internal-macros && run cargo clippy)
7691

7792
for file in $(find . -name target -prune -o -name '*.rs' -print); do
7893
bad_deprecations="$(rustfmt --emit stdout --config max_width=1000 "$file" | grep '#\[deprecated' | grep -E -v '([^"\\]|\\.|"([^"\\]|\\.)*")*since' || true)"
@@ -88,3 +103,4 @@ for file in $(find . -name target -prune -o -name '*.rs' -print); do
88103
exit 1
89104
fi
90105
done
106+
run df -h

0 commit comments

Comments
 (0)