skip waiting for agent
This commit is contained in:
parent
2cfc44e23d
commit
b74b9c98b4
1 changed files with 29 additions and 29 deletions
58
.github/workflows/test-waylonwalker-com.yml
vendored
58
.github/workflows/test-waylonwalker-com.yml
vendored
|
|
@ -29,36 +29,36 @@ jobs:
|
|||
envsubst < .github/ci/docker-compose.yml > docker-compose.yml
|
||||
cat docker-compose.yml
|
||||
docker-compose -f docker-compose.yml up -d
|
||||
- name: Wait for Agent to Register
|
||||
run: |
|
||||
trap 'kill $(jobs -p)' EXIT
|
||||
attempt_counter=0
|
||||
max_attempts=100
|
||||
mkdir -p build/reports/agent
|
||||
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
|
||||
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"
|
||||
# - name: Wait for Agent to Register
|
||||
# run: |
|
||||
# trap 'kill $(jobs -p)' EXIT
|
||||
# attempt_counter=0
|
||||
# max_attempts=100
|
||||
# mkdir -p build/reports/agent
|
||||
# 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
|
||||
# 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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue