File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 6363 run : make install-k3d
6464
6565 - name : run integration tests
66- run : BIN_DIR="./bin" make integration-tests
66+ run : BIN_DIR="./bin" IS_CI=true make integration-tests
6767
6868 - name : run collect debug logs
6969 if : failure()
7676 name : debug-logs
7777 path : debug-logs/
7878 retention-days : 5
79-
79+ - name : Output runner storage on failure
80+ if : failure()
81+ run : df -h
8082 - name : clean up k3d
8183 if : always()
8284 run : make tests/clean
Original file line number Diff line number Diff line change 1212VERBOSE_FLAG := -vvv
1313endif
1414
15+ IS_CI ?= false
1516BIN_DIR ?=
1617
1718UNAME_S := $(shell uname -s)
@@ -52,6 +53,9 @@ unit-tests: build
5253integration-tests : prepare-cluster-and-images integration-docker-build-push-tests integration-spin-registry-push-tests
5354 echo " Integration tests complete. You may run 'make tests/clean' to clean up the test environment."
5455
56+ free-disk :
57+ ./scripts/free-disk.sh
58+
5559# integration-tests for workloads pushed using docker build push
5660integration-docker-build-push-tests :
5761 ./scripts/run-integration-tests.sh " workloads-pushed-using-docker-build-push"
@@ -126,7 +130,7 @@ deploy-workloads-pushed-using-spin-registry-push:
126130pod-terminates-test :
127131 ./scripts/pod-terminates-test.sh
128132
129- prepare-cluster-and-images : check-bins move-bins up pod-status-check
133+ prepare-cluster-and-images : check-bins move-bins up free-disk pod-status-check
130134
131135# clean
132136
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ IS_CI=${IS_CI:- false}
4+
5+ # clean up Rust builds to free space
6+ cargo install cargo-clean-all
7+ cargo clean-all -y
8+ if [ " $IS_CI " = true ]; then
9+ # remove all docker images
10+ docker system prune -af
11+ fi
You can’t perform that action at this time.
0 commit comments