Skip to content

Commit 936cc49

Browse files
Merge branch 'main' into rithika.narayan/APMSVLS-301-ddtrace-4
2 parents d99fdd5 + 8395f83 commit 936cc49

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.gitlab-ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
variables:
2+
SKIP_E2E_TESTS: "false"
3+
14
stages:
25
- pre
36
- build
@@ -25,5 +28,7 @@ build-layers:
2528
- artifact: ci/build-pipeline.yaml
2629
job: generator
2730
strategy: depend
31+
forward:
32+
pipeline_variables: true
2833
rules:
29-
- when: on_success
34+
- when: on_success

ci/input_files/build.yaml.tpl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ 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+
timeout: 15m
58+
retry: 2
5759

5860
check-layer-size ({{ $runtime.name }}-{{ $runtime.arch }}):
5961
stage: test
@@ -85,11 +87,16 @@ unit-test ({{ $runtime.name }}-{{ $runtime.arch }}):
8587
script:
8688
- source venv/bin/activate
8789
- pytest -vv
90+
retry: 2
8891

8992
integration-test ({{ $runtime.name }}-{{ $runtime.arch }}):
9093
stage: test
9194
tags: ["arch:amd64"]
9295
image: registry.ddbuild.io/images/docker:20.10-py3
96+
rules:
97+
- if: '$SKIP_E2E_TESTS == "true"'
98+
when: never
99+
- when: on_success
93100
needs:
94101
- build-layer ({{ $runtime.name }}-{{ $runtime.arch }})
95102
dependencies:
@@ -105,6 +112,7 @@ integration-test ({{ $runtime.name }}-{{ $runtime.arch }}):
105112
- cd integration_tests && yarn install && cd ..
106113
script:
107114
- RUNTIME_PARAM={{ $runtime.python_version }} ARCH={{ $runtime.arch }} ./scripts/run_integration_tests.sh
115+
retry: 2
108116

109117
sign-layer ({{ $runtime.name }}-{{ $runtime.arch }}):
110118
stage: sign
@@ -142,6 +150,8 @@ publish-layer-{{ $environment_name }} ({{ $runtime.name }}-{{ $runtime.arch }}):
142150
tags: ["arch:amd64"]
143151
image: registry.ddbuild.io/images/docker:20.10-py3
144152
rules:
153+
- if: '$SKIP_E2E_TESTS == "true"'
154+
when: never
145155
- if: '"{{ $environment_name }}" == "sandbox" && $REGION == "{{ $e2e_region }}" && "{{ $runtime.arch }}" == "amd64"'
146156
when: on_success
147157
- if: '"{{ $environment_name }}" == "sandbox"'
@@ -247,6 +257,10 @@ e2e-test:
247257
trigger:
248258
project: DataDog/serverless-e2e-tests
249259
strategy: depend
260+
rules:
261+
- if: '$SKIP_E2E_TESTS == "true"'
262+
when: never
263+
- when: on_success
250264
variables:
251265
LANGUAGES_SUBSET: python
252266
# These env vars are inherited from the dotenv reports of the publish-layer jobs
@@ -267,6 +281,10 @@ e2e-test-status:
267281
image: registry.ddbuild.io/images/docker:20.10-py3
268282
tags: ["arch:amd64"]
269283
timeout: 3h
284+
rules:
285+
- if: '$SKIP_E2E_TESTS == "true"'
286+
when: never
287+
- when: on_success
270288
script: |
271289
GITLAB_API_TOKEN=$(aws ssm get-parameter --region us-east-1 --name "ci.${CI_PROJECT_NAME}.serverless-e2e-gitlab-token" --with-decryption --query "Parameter.Value" --out text)
272290
URL="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${CI_PIPELINE_ID}/bridges"

0 commit comments

Comments
 (0)