Skip to content

Commit

Permalink
Fix example tests that hang due to long builds
Browse files Browse the repository at this point in the history
It looks like the script that tests the examples in the documentation
is failing because it doesn't get any terminal output from wallaroo-up
for 10 minutes. Dipin thought this might be happening because the
build takes a long time. This commit adds some echo statements which
should hopefully reset the timer and cause the tests to pass.
  • Loading branch information
aturley committed Oct 9, 2018
1 parent 26cf1d0 commit 340a8c5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions misc/wallaroo-up.sh
@@ -1,7 +1,7 @@
#!/bin/bash

# md5 for validatiing script checksum
MD5="9ed08a26f9ff0625495bab93504450ec -"
MD5="0432d71ded8669380afee2b02965dee8 -"

set -eEuo pipefail

Expand Down Expand Up @@ -681,10 +681,16 @@ configure_wallaroo() {
log "Compiling Machida for running Python Wallaroo Applications..."
fi

run_cmd "make ${CUSTOM_WALLAROO_BUILD_ARGS:-} build-machida-all build-machida3-all resilience=on $REDIRECT"
echo "building machida with resilience"
run_cmd "make ${CUSTOM_WALLAROO_BUILD_ARGS:-} build-machida-all resilience=on $REDIRECT"
echo "building machida3 with resilience"
run_cmd "make ${CUSTOM_WALLAROO_BUILD_ARGS:-} build-machida3-all resilience=on $REDIRECT"
run_cmd "mv machida/build/machida bin/machida-resilience $REDIRECT"
run_cmd "mv machida3/build/machida3 bin/machida3-resilience $REDIRECT"
run_cmd "make ${CUSTOM_WALLAROO_BUILD_ARGS:-} build-machida-all build-machida3-all $REDIRECT"
echo "building machida without resilience"
run_cmd "make ${CUSTOM_WALLAROO_BUILD_ARGS:-} build-machida-all $REDIRECT"
echo "building machida3 without resilience"
run_cmd "make ${CUSTOM_WALLAROO_BUILD_ARGS:-} build-machida3-all $REDIRECT"
run_cmd "cp machida/build/machida bin $REDIRECT"
run_cmd "cp machida3/build/machida3 bin $REDIRECT"
run_cmd "cp -r machida/lib bin/pylib $REDIRECT"
Expand Down

0 comments on commit 340a8c5

Please sign in to comment.