mirror of
https://github.com/mattermost/mattermost.git
synced 2026-11-03 12:48:37 -06:00
ci(e2e): retry image pulls before starting the E2E server
A registry outage (quay.io answering 503 for keycloak) failed three Cypress shards at create, before any test ran. Pull with the existing retry helper first: 5 tries, 30 seconds apart.
This commit is contained in:
1 parent
cab742b36b
commit
2e533bfe4f
1 file changed
+6
@@ -7,6 +7,12 @@ cd "$(dirname "$0")"
|
||||
mme2e_log "Waiting for server image to be available"
|
||||
mme2e_wait_image "$SERVER_IMAGE" 4 30
|
||||
|
||||
# Registries (quay.io, Docker Hub) answer a pull with 5xx for minutes at a time; `create` pulls once and fails the shard.
|
||||
if ! mme2e_wait_command_success "${MME2E_DC_SERVER} pull --quiet" "Pulling E2E images" 5 30; then
|
||||
mme2e_log "Pulling E2E images failed, retry attempts exhausted. Giving up." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Launch mattermost-server, and wait for it to be healthy
|
||||
mme2e_log "Starting E2E containers"
|
||||
${MME2E_DC_SERVER} create
|
||||
|
||||
Reference in new issue
Block a user