From f29cc8e839cd74222c880667360ee84352e9a4c3 Mon Sep 17 00:00:00 2001 From: Leonardo Graboski Veiga Date: Mon, 15 May 2023 10:20:39 -0300 Subject: [PATCH] ci: attempt to re-run failed jobs 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 --- .gitlab-ci.yml | 4 ++++ adc/.gitlab-ci.yml | 4 ++++ crank/.gitlab-ci.yml | 5 +++++ dbus/python/.gitlab-ci.yml | 4 ++++ dbus/tools/.gitlab-ci.yml | 4 ++++ debian-container/.gitlab-ci.yml | 5 +++++ dlr-gstreamer/.gitlab-ci.yml | 4 ++++ gpio/bash/.gitlab-ci.yml | 4 ++++ gpio/c/.gitlab-ci.yml | 4 ++++ gps/python/.gitlab-ci.yml | 4 ++++ grafana/.gitlab-ci.yml | 4 ++++ gstreamer/bash/simple-pipeline/.gitlab-ci.yml | 4 ++++ nodejs/.gitlab-ci.yml | 5 +++++ opencl/.gitlab-ci.yml | 4 ++++ opencv/.gitlab-ci.yml | 4 ++++ pwm/.gitlab-ci.yml | 4 ++++ python-qml/.gitlab-ci.yml | 4 ++++ sht31/flaskapp/.gitlab-ci.yml | 4 ++++ sht31/kiosk/.gitlab-ci.yml | 4 ++++ sht31/sht31-influxdb/.gitlab-ci.yml | 4 ++++ tflite/tflite-basic/.gitlab-ci.yml | 4 ++++ tflite/tflite-rtsp/.gitlab-ci.yml | 4 ++++ weather/.gitlab-ci.yml | 4 ++++ 23 files changed, 95 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a2892cf..e9aa35d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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' diff --git a/adc/.gitlab-ci.yml b/adc/.gitlab-ci.yml index 7d997ca..ad81621 100644 --- a/adc/.gitlab-ci.yml +++ b/adc/.gitlab-ci.yml @@ -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 diff --git a/crank/.gitlab-ci.yml b/crank/.gitlab-ci.yml index 2df2821..f149cf4 100644 --- a/crank/.gitlab-ci.yml +++ b/crank/.gitlab-ci.yml @@ -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: diff --git a/dbus/python/.gitlab-ci.yml b/dbus/python/.gitlab-ci.yml index 4076d5d..763863e 100644 --- a/dbus/python/.gitlab-ci.yml +++ b/dbus/python/.gitlab-ci.yml @@ -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 diff --git a/dbus/tools/.gitlab-ci.yml b/dbus/tools/.gitlab-ci.yml index 210c0b8..18e2f39 100644 --- a/dbus/tools/.gitlab-ci.yml +++ b/dbus/tools/.gitlab-ci.yml @@ -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 diff --git a/debian-container/.gitlab-ci.yml b/debian-container/.gitlab-ci.yml index 1874340..4d42e68 100644 --- a/debian-container/.gitlab-ci.yml +++ b/debian-container/.gitlab-ci.yml @@ -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: diff --git a/dlr-gstreamer/.gitlab-ci.yml b/dlr-gstreamer/.gitlab-ci.yml index fa5a8b4..068fead 100644 --- a/dlr-gstreamer/.gitlab-ci.yml +++ b/dlr-gstreamer/.gitlab-ci.yml @@ -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 diff --git a/gpio/bash/.gitlab-ci.yml b/gpio/bash/.gitlab-ci.yml index 34e5b81..9dc9dbe 100644 --- a/gpio/bash/.gitlab-ci.yml +++ b/gpio/bash/.gitlab-ci.yml @@ -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 diff --git a/gpio/c/.gitlab-ci.yml b/gpio/c/.gitlab-ci.yml index e6ba007..0244106 100644 --- a/gpio/c/.gitlab-ci.yml +++ b/gpio/c/.gitlab-ci.yml @@ -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 diff --git a/gps/python/.gitlab-ci.yml b/gps/python/.gitlab-ci.yml index 6759552..1f75b2a 100644 --- a/gps/python/.gitlab-ci.yml +++ b/gps/python/.gitlab-ci.yml @@ -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 diff --git a/grafana/.gitlab-ci.yml b/grafana/.gitlab-ci.yml index 31686b2..4dcdefa 100644 --- a/grafana/.gitlab-ci.yml +++ b/grafana/.gitlab-ci.yml @@ -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 diff --git a/gstreamer/bash/simple-pipeline/.gitlab-ci.yml b/gstreamer/bash/simple-pipeline/.gitlab-ci.yml index a7caae3..f2e1d91 100644 --- a/gstreamer/bash/simple-pipeline/.gitlab-ci.yml +++ b/gstreamer/bash/simple-pipeline/.gitlab-ci.yml @@ -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 diff --git a/nodejs/.gitlab-ci.yml b/nodejs/.gitlab-ci.yml index a9527ba..e30c85a 100644 --- a/nodejs/.gitlab-ci.yml +++ b/nodejs/.gitlab-ci.yml @@ -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 diff --git a/opencl/.gitlab-ci.yml b/opencl/.gitlab-ci.yml index bcf5da9..58e4d6a 100644 --- a/opencl/.gitlab-ci.yml +++ b/opencl/.gitlab-ci.yml @@ -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 diff --git a/opencv/.gitlab-ci.yml b/opencv/.gitlab-ci.yml index aa75ece..787ed21 100644 --- a/opencv/.gitlab-ci.yml +++ b/opencv/.gitlab-ci.yml @@ -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 diff --git a/pwm/.gitlab-ci.yml b/pwm/.gitlab-ci.yml index b71261c..f7af939 100644 --- a/pwm/.gitlab-ci.yml +++ b/pwm/.gitlab-ci.yml @@ -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 diff --git a/python-qml/.gitlab-ci.yml b/python-qml/.gitlab-ci.yml index 4e1afb1..7b973c3 100644 --- a/python-qml/.gitlab-ci.yml +++ b/python-qml/.gitlab-ci.yml @@ -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 diff --git a/sht31/flaskapp/.gitlab-ci.yml b/sht31/flaskapp/.gitlab-ci.yml index 19072af..e3795fc 100644 --- a/sht31/flaskapp/.gitlab-ci.yml +++ b/sht31/flaskapp/.gitlab-ci.yml @@ -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 diff --git a/sht31/kiosk/.gitlab-ci.yml b/sht31/kiosk/.gitlab-ci.yml index 162a110..94d06be 100644 --- a/sht31/kiosk/.gitlab-ci.yml +++ b/sht31/kiosk/.gitlab-ci.yml @@ -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 diff --git a/sht31/sht31-influxdb/.gitlab-ci.yml b/sht31/sht31-influxdb/.gitlab-ci.yml index cf27246..47b1722 100644 --- a/sht31/sht31-influxdb/.gitlab-ci.yml +++ b/sht31/sht31-influxdb/.gitlab-ci.yml @@ -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 diff --git a/tflite/tflite-basic/.gitlab-ci.yml b/tflite/tflite-basic/.gitlab-ci.yml index 74425c0..c2f65c4 100644 --- a/tflite/tflite-basic/.gitlab-ci.yml +++ b/tflite/tflite-basic/.gitlab-ci.yml @@ -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 diff --git a/tflite/tflite-rtsp/.gitlab-ci.yml b/tflite/tflite-rtsp/.gitlab-ci.yml index 8af7d5c..dd3d133 100644 --- a/tflite/tflite-rtsp/.gitlab-ci.yml +++ b/tflite/tflite-rtsp/.gitlab-ci.yml @@ -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 diff --git a/weather/.gitlab-ci.yml b/weather/.gitlab-ci.yml index 541bc76..d8081e0 100644 --- a/weather/.gitlab-ci.yml +++ b/weather/.gitlab-ci.yml @@ -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