Skip to content

Commit

Permalink
ci: attempt to re-run failed jobs
Browse files Browse the repository at this point in the history
Due to instabilities with Docker, sometimes jobs fail when running in
parallel. Just retry them a couple of times before failing definitively.

Signed-off-by: Leonardo Graboski Veiga <[email protected]>
  • Loading branch information
leograba authored and brunoaamello committed May 30, 2023
1 parent 02d92f5 commit f29cc8e
Show file tree
Hide file tree
Showing 23 changed files with 95 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ variables:
# see https://docs.gitlab.com/ee/ci/runners/configure_runners.html#job-stages-attempts
GET_SOURCES_ATTEMPTS: 5

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

# Only run branch pipelines
include:
- template: 'Workflows/Branch-Pipelines.gitlab-ci.yml'
Expand Down
4 changes: 4 additions & 0 deletions adc/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ include:

# Jobs

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

dockerfile-lint-adc:
extends: .dockerfile-lint
stage: lint
Expand Down
5 changes: 5 additions & 0 deletions crank/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ variables:
APP_NAME: "crank-storyboard"

# Jobs

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

push-arm32v7:
extends: .tcb-push-to-platform-services
before_script:
Expand Down
4 changes: 4 additions & 0 deletions dbus/python/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ include:

# Jobs

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

dockerfile-lint-dbus-python:
extends: .dockerfile-lint
stage: lint
Expand Down
4 changes: 4 additions & 0 deletions dbus/tools/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ include:

# Jobs

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

dockerfile-lint-dbus-tools:
extends: .dockerfile-lint
stage: lint
Expand Down
5 changes: 5 additions & 0 deletions debian-container/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ variables:
APP_NAME: "portainer"

# Jobs

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

push-nogpu-arm32v7:
extends: .tcb-push-to-platform-services
before_script:
Expand Down
4 changes: 4 additions & 0 deletions dlr-gstreamer/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ include:
# Jobs
# Only for 64-bit vivante arch

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

dockerfile-lint-dlr-gstreamer:
extends: .dockerfile-lint
stage: lint
Expand Down
4 changes: 4 additions & 0 deletions gpio/bash/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ include:

# Jobs

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

dockerfile-lint-gpio-bash:
extends: .dockerfile-lint
stage: lint
Expand Down
4 changes: 4 additions & 0 deletions gpio/c/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ include:

# Jobs

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

dockerfile-lint-gpio-c:
extends: .dockerfile-lint
stage: lint
Expand Down
4 changes: 4 additions & 0 deletions gps/python/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ include:

# Jobs

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

dockerfile-lint-uart-gps-python:
extends: .dockerfile-lint
stage: lint
Expand Down
4 changes: 4 additions & 0 deletions grafana/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ include:

# Jobs

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

dockerfile-lint-collectd:
extends: .dockerfile-lint
stage: lint
Expand Down
4 changes: 4 additions & 0 deletions gstreamer/bash/simple-pipeline/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ include:

# Jobs

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

dockerfile-lint-gstreamer-simple-pipeline:
extends: .dockerfile-lint
stage: lint
Expand Down
5 changes: 5 additions & 0 deletions nodejs/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ include:
- /.gitlab-ci-scripts.yml

# Jobs

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

dockerfile-lint-nodejs:
extends: .dockerfile-lint
stage: lint
Expand Down
4 changes: 4 additions & 0 deletions opencl/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ include:
# Jobs
# Only for 64-bit vivante arch

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

dockerfile-lint-opencl:
extends: .dockerfile-lint
stage: lint
Expand Down
4 changes: 4 additions & 0 deletions opencv/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ include:
# Jobs
# Only for 64-bit vivante arch

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

dockerfile-lint-opencv:
extends: .dockerfile-lint
stage: lint
Expand Down
4 changes: 4 additions & 0 deletions pwm/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ include:

# Jobs

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

dockerfile-lint-pwm:
extends: .dockerfile-lint
stage: lint
Expand Down
4 changes: 4 additions & 0 deletions python-qml/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ include:

# Jobs

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

dockerfile-lint-qt5-python-qml:
extends: .dockerfile-lint
stage: lint
Expand Down
4 changes: 4 additions & 0 deletions sht31/flaskapp/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ include:

# Jobs

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

dockerfile-lint-uart-sht31-flask-app:
extends: .dockerfile-lint
stage: lint
Expand Down
4 changes: 4 additions & 0 deletions sht31/kiosk/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ include:

# Jobs

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

dockerfile-lint-uart-sht31-kiosk:
extends: .dockerfile-lint
stage: lint
Expand Down
4 changes: 4 additions & 0 deletions sht31/sht31-influxdb/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ include:

# Jobs

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

dockerfile-lint-uart-sht31-influxdb:
extends: .dockerfile-lint
stage: lint
Expand Down
4 changes: 4 additions & 0 deletions tflite/tflite-basic/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ include:

# Jobs

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

dockerfile-lint-tflite:
extends: .dockerfile-lint
stage: lint
Expand Down
4 changes: 4 additions & 0 deletions tflite/tflite-rtsp/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ include:
# Jobs
# Only for 64-bit vivante arch

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

dockerfile-lint-tflite:
extends: .dockerfile-lint
stage: lint
Expand Down
4 changes: 4 additions & 0 deletions weather/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ include:

# Jobs

default:
# retry failed jobs, since Docker is not very stable when running many jobs in parallel
retry: 2

dockerfile-lint-weather:
extends: .dockerfile-lint
stage: lint
Expand Down

0 comments on commit f29cc8e

Please sign in to comment.