Set timeout on e2e test setup job to avoid long CI builds (#3529)

* Set job timeout to avoid long Jobs eating CI minutes
* Removing install `need` for setup stage
This commit is contained in:
Justin Dalrymple 2024-01-30 22:23:21 -05:00 committed by GitHub
parent 3715191925
commit ac33ce1a2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -131,8 +131,7 @@ format:
test:unit:setup:
stage: setup
image: alpine/curl
needs:
- install
needs: []
script:
- mkdir -p tmp/codeclimate
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./tmp/codeclimate/cc-test-reporter
@ -145,8 +144,8 @@ test:unit:setup:
test:live:setup:
stage: setup
image: gcr.io/google.com/cloudsdktool/cloud-sdk:alpine
needs:
- install
needs: []
timeout: 15m
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: on_success
@ -195,7 +194,7 @@ test:live:setup:
- echo "GITLAB_URL=${GITLAB_URL}" >> intergration.env
- echo "GITLAB_PERSONAL_ACCESS_TOKEN=${GITLAB_PERSONAL_ACCESS_TOKEN}" >> intergration.env
- echo "Waiting for service to start"
- sleep 210
- sleep 240
- attempt=1
- |
while [[ "$(curl --fail --silent -X GET "$GITLAB_URL/-/readiness?all=1" --insecure | jq -r '.master_check[0].status')" != "ok" ]]; do