check that connector-proxy-demo can run when releasing new tags w/ burnettk
This commit is contained in:
parent
85d522d2a4
commit
40b02ae488
|
@ -115,10 +115,13 @@ jobs:
|
||||||
run: ./bin/run_arena_with_docker_compose
|
run: ./bin/run_arena_with_docker_compose
|
||||||
- name: wait_for_backend
|
- name: wait_for_backend
|
||||||
working-directory: ./spiffworkflow-backend
|
working-directory: ./spiffworkflow-backend
|
||||||
run: ./bin/wait_for_server_to_be_up 5 8000
|
run: ./bin/wait_for_backend_to_be_up 5 8000
|
||||||
- name: wait_for_frontend
|
- name: wait_for_frontend
|
||||||
working-directory: ./spiffworkflow-frontend
|
working-directory: ./spiffworkflow-frontend
|
||||||
run: ./bin/wait_for_frontend_to_be_up 5 8001
|
run: ./bin/wait_for_frontend_to_be_up 5 8001
|
||||||
|
- name: wait_for_connector
|
||||||
|
working-directory: ./connector-proxy-demo
|
||||||
|
run: ./bin/wait_for_connector_to_be_up 5 8004
|
||||||
- name: Cypress run
|
- name: Cypress run
|
||||||
uses: cypress-io/github-action@v5
|
uses: cypress-io/github-action@v5
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -226,7 +226,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
SPIFFWORKFLOW_BACKEND_RUN_DATA_SETUP: "false"
|
SPIFFWORKFLOW_BACKEND_RUN_DATA_SETUP: "false"
|
||||||
- name: wait_for_backend
|
- name: wait_for_backend
|
||||||
run: ./bin/wait_for_server_to_be_up 5
|
run: ./bin/wait_for_backend_to_be_up 5
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -376,7 +376,7 @@ jobs:
|
||||||
run: ./bin/build_and_run_with_docker_compose
|
run: ./bin/build_and_run_with_docker_compose
|
||||||
- name: wait_for_backend
|
- name: wait_for_backend
|
||||||
working-directory: ./spiffworkflow-backend
|
working-directory: ./spiffworkflow-backend
|
||||||
run: ./bin/wait_for_server_to_be_up 5
|
run: ./bin/wait_for_backend_to_be_up 5
|
||||||
- name: wait_for_frontend
|
- name: wait_for_frontend
|
||||||
# working-directory: ./spiffworkflow-frontend
|
# working-directory: ./spiffworkflow-frontend
|
||||||
run: ./bin/wait_for_frontend_to_be_up 5
|
run: ./bin/wait_for_frontend_to_be_up 5
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
function error_handler() {
|
||||||
|
>&2 echo "Exited with BAD EXIT CODE '${2}' in ${0} script at line: ${1}."
|
||||||
|
exit "$2"
|
||||||
|
}
|
||||||
|
trap 'error_handler ${LINENO} $?' ERR
|
||||||
|
set -o errtrace -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
|
max_attempts="${1:-100}"
|
||||||
|
port="${2:-7004}"
|
||||||
|
|
||||||
|
echo "waiting for connector to come up..."
|
||||||
|
attempts=0
|
||||||
|
while [[ "$(curl -s -o /dev/null -w '%{http_code}' "http://localhost:${port}/v1/liveness")" != "200" ]]; do
|
||||||
|
if [[ "$attempts" -gt "$max_attempts" ]]; then
|
||||||
|
>&2 echo "ERROR: Server not up after $max_attempts attempts. There is probably a problem"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
attempts=$(( attempts + 1 ))
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
echo "connector up"
|
|
@ -637,7 +637,7 @@ spiffworkflow-connector-command = {git = "https://github.com/sartography/spiffwo
|
||||||
type = "git"
|
type = "git"
|
||||||
url = "https://github.com/sartography/spiffworkflow-proxy"
|
url = "https://github.com/sartography/spiffworkflow-proxy"
|
||||||
reference = "HEAD"
|
reference = "HEAD"
|
||||||
resolved_reference = "25afae5b4c703971aa7bb68030dc127ddb6bb920"
|
resolved_reference = "d64ae29fcc911fefc1a6209bab76948e5e25f627"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "typing-extensions"
|
name = "typing-extensions"
|
||||||
|
|
|
@ -35,7 +35,7 @@ if [[ "${SPIFFWORKFLOW_BACKEND_RECREATE_DATABASE:-}" == "true" ]]; then
|
||||||
# the volume would work around that case, if the volumes are not cleaned up in
|
# the volume would work around that case, if the volumes are not cleaned up in
|
||||||
# CI. also removing the wait prevents it from hanging forever in the case where
|
# CI. also removing the wait prevents it from hanging forever in the case where
|
||||||
# the backend crashes, so then we'll just wait for the timeout to happen in the
|
# the backend crashes, so then we'll just wait for the timeout to happen in the
|
||||||
# bin/wait_for_server_to_be_up script.
|
# bin/wait_for_backend_to_be_up script.
|
||||||
docker volume rm spiffworkflow-backend_spiffworkflow_backend || echo 'docker volume not found'
|
docker volume rm spiffworkflow-backend_spiffworkflow_backend || echo 'docker volume not found'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@ jobs:
|
||||||
run: ./bin/build_and_run_with_docker_compose
|
run: ./bin/build_and_run_with_docker_compose
|
||||||
- name: wait_for_backend
|
- name: wait_for_backend
|
||||||
working-directory: ./spiffworkflow-backend
|
working-directory: ./spiffworkflow-backend
|
||||||
run: ./bin/wait_for_server_to_be_up 5
|
run: ./bin/wait_for_backend_to_be_up 5
|
||||||
- name: wait_for_frontend
|
- name: wait_for_frontend
|
||||||
working-directory: ./spiffworkflow-frontend
|
working-directory: ./spiffworkflow-frontend
|
||||||
run: ./bin/wait_for_frontend_to_be_up 5
|
run: ./bin/wait_for_frontend_to_be_up 5
|
||||||
|
|
Loading…
Reference in New Issue