skip waiting for agent

This commit is contained in:
Waylon Walker 2020-07-26 18:57:01 +00:00
parent b74b9c98b4
commit 5a9cd831e4

View file

@ -29,36 +29,37 @@ jobs:
envsubst < .github/ci/docker-compose.yml > docker-compose.yml envsubst < .github/ci/docker-compose.yml > docker-compose.yml
cat docker-compose.yml cat docker-compose.yml
docker-compose -f docker-compose.yml up -d docker-compose -f docker-compose.yml up -d
# - name: Wait for Agent to Register - name: Wait for Agent to Register
# run: | run: |
# trap 'kill $(jobs -p)' EXIT trap 'kill $(jobs -p)' EXIT
# attempt_counter=0 attempt_counter=0
# max_attempts=100 max_attempts=100
# mkdir -p build/reports/agent mkdir -p build/reports/agent
# docker-compose -f docker-compose.yml logs -f | tee build/reports/agent/log.txt& docker-compose -f docker-compose.yml logs -f | tee build/reports/agent/log.txt&
# until curl -s http://localhost:8585/api/status | jq '.registered' | grep true; do sleep 20
# if [ ${attempt_counter} -eq ${max_attempts} ]; then # until curl -s http://localhost:8585/api/status | jq '.registered' | grep true; do
# echo "Agent failed to register. Terminating..." # if [ ${attempt_counter} -eq ${max_attempts} ]; then
# exit 1 # echo "Agent failed to register. Terminating..."
# fi # exit 1
# attempt_counter=$(($attempt_counter+1)) # fi
# echo # attempt_counter=$(($attempt_counter+1))
# echo # echo
# echo ---------------------------------- # echo
# date # echo ----------------------------------
# echo attempt $attempt_counter # date
# echo status # echo attempt $attempt_counter
# curl -s http://localhost:8585/api/status || echo "8686 api not up" # echo status
# echo status # curl -s http://localhost:8585/api/status || echo "8686 api not up"
# curl -s http://localhost:8686/api/status || echo "8686 api not up" # echo status
# echo # curl -s http://localhost:8686/api/status || echo "8686 api not up"
# echo home # echo
# curl -s http://localhost:8585/ || echo "localhost:8585 is not up" # echo home
# echo home # curl -s http://localhost:8585/ || echo "localhost:8585 is not up"
# curl -s http://localhost:8686/ || echo "localhost:8686 is not up" # echo home
# curl -s http://localhost:8686/ || echo "localhost:8686 is not up"
# sleep 1 # sleep 1
# done # done
- run: pytest > pytest.log - run: pytest > pytest.log
env: env:
TP_DEV_TOKEN: ${{ secrets.TP_DEV_TOKEN }} TP_DEV_TOKEN: ${{ secrets.TP_DEV_TOKEN }}