Skip to content

Commit fb2137a

Browse files
Add retries to build, unit test, and integration test Gitlab jobs
1 parent 73650f9 commit fb2137a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ci/input_files/build.yaml.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ build-layer ({{ $runtime.name }}-{{ $runtime.arch }}):
5454
CI_ENABLE_CONTAINER_IMAGE_BUILDS: "true"
5555
script:
5656
- PYTHON_VERSION={{ $runtime.python_version }} ARCH={{ $runtime.arch }} ./scripts/build_layers.sh
57+
retry: 2
5758

5859
check-layer-size ({{ $runtime.name }}-{{ $runtime.arch }}):
5960
stage: test
@@ -85,6 +86,7 @@ unit-test ({{ $runtime.name }}-{{ $runtime.arch }}):
8586
script:
8687
- source venv/bin/activate
8788
- pytest -vv
89+
retry: 2
8890

8991
integration-test ({{ $runtime.name }}-{{ $runtime.arch }}):
9092
stage: test
@@ -105,6 +107,7 @@ integration-test ({{ $runtime.name }}-{{ $runtime.arch }}):
105107
- cd integration_tests && yarn install && cd ..
106108
script:
107109
- RUNTIME_PARAM={{ $runtime.python_version }} ARCH={{ $runtime.arch }} ./scripts/run_integration_tests.sh
110+
retry: 2
108111

109112
sign-layer ({{ $runtime.name }}-{{ $runtime.arch }}):
110113
stage: sign

0 commit comments

Comments
 (0)