From a6b53b4b7c0d9a885ec6bf4378a3e81d139e9e82 Mon Sep 17 00:00:00 2001 From: Waylon Walker Date: Sun, 26 Jul 2020 18:59:56 +0000 Subject: [PATCH] run without agent alias --- .github/ci/docker-compose.yml | 1 - .github/workflows/test-waylonwalker-com.yml | 45 ++++++++++----------- 2 files changed, 22 insertions(+), 24 deletions(-) diff --git a/.github/ci/docker-compose.yml b/.github/ci/docker-compose.yml index 84c0dea..947ef48 100644 --- a/.github/ci/docker-compose.yml +++ b/.github/ci/docker-compose.yml @@ -8,7 +8,6 @@ services: - firefox environment: TP_API_KEY: "${TP_API_KEY}" - TP_AGENT_ALIAS: "GitHub Action Agent" TP_AGENT_TEMP: "true" TP_SDK_PORT: "8686" CHROME: "chrome:4444" diff --git a/.github/workflows/test-waylonwalker-com.yml b/.github/workflows/test-waylonwalker-com.yml index a25336d..3bdb80e 100644 --- a/.github/workflows/test-waylonwalker-com.yml +++ b/.github/workflows/test-waylonwalker-com.yml @@ -36,30 +36,29 @@ jobs: max_attempts=100 mkdir -p build/reports/agent docker-compose -f docker-compose.yml logs -f | tee build/reports/agent/log.txt& - sleep 20 - # until curl -s http://localhost:8585/api/status | jq '.registered' | grep true; do - # if [ ${attempt_counter} -eq ${max_attempts} ]; then - # echo "Agent failed to register. Terminating..." - # exit 1 - # fi - # attempt_counter=$(($attempt_counter+1)) - # echo - # echo - # echo ---------------------------------- - # date - # echo attempt $attempt_counter - # echo status - # curl -s http://localhost:8585/api/status || echo "8686 api not up" - # echo status - # curl -s http://localhost:8686/api/status || echo "8686 api not up" - # echo - # echo home - # curl -s http://localhost:8585/ || echo "localhost:8585 is not up" - # echo home - # curl -s http://localhost:8686/ || echo "localhost:8686 is not up" + until curl -s http://localhost:8585/api/status | jq '.registered' | grep true; do + if [ ${attempt_counter} -eq ${max_attempts} ]; then + echo "Agent failed to register. Terminating..." + exit 1 + fi + attempt_counter=$(($attempt_counter+1)) + echo + echo + echo ---------------------------------- + date + echo attempt $attempt_counter + echo status + curl -s http://localhost:8585/api/status || echo "8686 api not up" + echo status + curl -s http://localhost:8686/api/status || echo "8686 api not up" + echo + echo home + curl -s http://localhost:8585/ || echo "localhost:8585 is not up" + echo home + curl -s http://localhost:8686/ || echo "localhost:8686 is not up" - # sleep 1 - # done + sleep 1 + done - run: pytest > pytest.log env: TP_DEV_TOKEN: ${{ secrets.TP_DEV_TOKEN }}