From: Zack Cerza Date: Fri, 22 Jul 2022 17:51:19 +0000 (-0600) Subject: docs/docker-compose: Ensure we actually schedule X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8d1d7047f6baf592036d0b74bb8da3ff554c562c;p=teuthology.git docs/docker-compose: Ensure we actually schedule This should have failed: https://github.com/ceph/teuthology/pull/1776/checks Signed-off-by: Zack Cerza --- diff --git a/docs/docker-compose/start.sh b/docs/docker-compose/start.sh index b5baec7370..871258c5be 100755 --- a/docs/docker-compose/start.sh +++ b/docs/docker-compose/start.sh @@ -41,9 +41,8 @@ if [ -z "$TEUTHOLOGY_WAIT" ]; then fi export TEUTHOLOGY_WAIT -set +e trap "docker-compose down" SIGINT docker-compose up \ --build \ $DC_EXIT_FLAG -$DC_AUTO_DOWN_CMD \ No newline at end of file +$DC_AUTO_DOWN_CMD diff --git a/docs/docker-compose/teuthology/teuthology.sh b/docs/docker-compose/teuthology/teuthology.sh index 85029b975b..bb58903310 100755 --- a/docs/docker-compose/teuthology/teuthology.sh +++ b/docs/docker-compose/teuthology/teuthology.sh @@ -1,4 +1,5 @@ #!/usr/bin/bash +set -e # We don't want -x yet, in case the private key is sensitive if [ -n "$SSH_PRIVKEY_FILE" ]; then echo "$SSH_PRIVKEY" > $HOME/.ssh/$SSH_PRIVKEY_FILE @@ -33,8 +34,10 @@ if [ -z "$TEUTHOLOGY_WAIT" ]; then --force-priority \ $CUSTOM_CONF DISPATCHER_EXIT_FLAG='--exit-on-empty-queue' + teuthology-queue -m $MACHINE_TYPE -s | \ + python3 -c "import sys, json; assert json.loads(sys.stdin.read())['count'] > 0, 'queue is empty!'" fi teuthology-dispatcher -v \ --log-dir /teuthology/log \ --tube $MACHINE_TYPE \ - $DISPATCHER_EXIT_FLAG \ No newline at end of file + $DISPATCHER_EXIT_FLAG