Skip to content

Commit

Permalink
CI: Output disk usage
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett committed Aug 5, 2024
1 parent 17a9d88 commit be4c4ff
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
15 changes: 14 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -ex
# set -ex

export CARPETXSPACE="$PWD"
export WORKSPACE="$PWD/../workspace"
Expand Down Expand Up @@ -32,5 +32,18 @@ esac
time ./simfactory/bin/sim --machine="actions-$ACCELERATOR-$REAL_PRECISION" build "$mode" --jobs $(nproc) sim 2>&1 |
tee build.log

# TODO
du -sh $WORKSPACE
du -sh $WORKSPACE/configs/sim
du -sh $WORKSPACE/configs/sim/build
du -sh $WORKSPACE/configs/sim/lib
du -sh $WORKSPACE/configs/sim/scratch
du -sh $WORKSPACE/configs/sim/*
du -sh $WORKSPACE/configs/sim/build/*
du -sh $WORKSPACE/configs/sim/lib/*
du -sh $WORKSPACE/configs/sim/scratch/*

# Check whether the executable exists and is executable
test -x exe/cactus_sim

exit $? # TODO
16 changes: 13 additions & 3 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,21 @@ for errfile in $(find "${ONEPROC_DIR}/../.." "${TWOPROC_DIR}/../.." -name '*.err
echo '================================================================================'
done

TESTS_FAILED=False
# TESTS_FAILED=False
# for test_dir in "${ONEPROC_DIR}" "${TWOPROC_DIR}"; do
# log="${test_dir}/summary.log"
# if ! grep -q '^ Number failed -> 0$' ${log}; then
# TESTS_FAILED=True
# fi
# done
# echo "TESTS_FAILED=${TESTS_FAILED}" >>"${GITHUB_ENV}"

for test_dir in "${ONEPROC_DIR}" "${TWOPROC_DIR}"; do
log="${test_dir}/summary.log"
if ! grep -q '^ Number failed -> 0$' ${log}; then
TESTS_FAILED=True
# Failure
exit 1
fi
done
echo "TESTS_FAILED=${TESTS_FAILED}" >>"${GITHUB_ENV}"
# Success
exit 0

0 comments on commit be4c4ff

Please sign in to comment.