@@ -43,6 +43,7 @@ jiri=.jiri_root/bin/jiri
4343set -x
4444
4545if [ -z " $KEEP_CHECKOUT " ]; then
46+ echo " downloading jiri" && df -h /
4647 # This script will:
4748 # - create a directory named "fuchsia" if it does not exist
4849 # - download "jiri" to "fuchsia/.jiri_root/bin"
@@ -52,11 +53,13 @@ if [ -z "$KEEP_CHECKOUT" ]; then
5253
5354 cd $checkout
5455
56+ echo " running jiri init" && df -h /
5557 $jiri init \
5658 -partial=true \
5759 -analytics-opt=false \
5860 .
5961
62+ echo " running jiri import" && df -h /
6063 $jiri import \
6164 -name=integration \
6265 -revision=$INTEGRATION_SHA \
@@ -65,24 +68,41 @@ if [ -z "$KEEP_CHECKOUT" ]; then
6568 " https://fuchsia.googlesource.com/integration"
6669
6770 if [ -d " .git" ]; then
71+ echo " Wipe out any local changes" && df -h /
6872 # Wipe out any local changes if we're reusing a checkout.
6973 git checkout --force JIRI_HEAD
7074 fi
7175
76+ echo " running jiri update" && df -h /
7277 $jiri update -autoupdate=false
7378
7479 echo integration commit = $( git -C integration rev-parse HEAD)
7580
7681 for git_ref in " ${PICK_REFS[@]} " ; do
82+ echo " running git fetch" && df -h /
7783 git fetch https://fuchsia.googlesource.com/fuchsia $git_ref
84+ echo " running git cherry-pick" && df -h /
7885 git cherry-pick --no-commit FETCH_HEAD
7986 done
8087else
81- echo Reusing existing Fuchsia checkout
88+ echo Reusing existing Fuchsia checkout && df -h /
8289 cd $checkout
8390fi
8491
8592# Run the script inside the Fuchsia checkout responsible for building Fuchsia.
8693# You can change arguments to the build by setting KEEP_CHECKOUT=1 above and
8794# modifying them in build_fuchsia_from_rust_ci.sh.
95+ echo " running build_fuchsia_from_rust_ci.sh" && df -h /
96+
97+ # Start background monitoring of disk space
98+ (
99+ while true ; do
100+ df -h /
101+ sleep 20
102+ done
103+ ) &
104+ MONITOR_PID=$!
105+
88106bash scripts/rust/build_fuchsia_from_rust_ci.sh
107+
108+ kill $MONITOR_PID
0 commit comments