@@ -57,11 +57,11 @@ check-layer-size ({{ $runtime.name }}-{{ $runtime.arch }}):
5757 stage: test
5858 tags: ["arch:amd64"]
5959 image: registry.ddbuild.io/images/docker:20.10
60- needs:
60+ needs:
6161 - build-layer ({ { $runtime .name } }-{ { $runtime .arch } })
6262 dependencies:
6363 - build-layer ({ { $runtime .name } }-{ { $runtime .arch } })
64- script:
64+ script:
6565 - PYTHON_VERSION={ { $runtime .python_version } } ARCH={ { $runtime .arch } } ./scripts/check_layer_size.sh
6666
6767lint python:
@@ -70,39 +70,39 @@ lint python:
7070 image: registry.ddbuild.io/images/mirror/python:{ { $runtime .image } }
7171 cache: & { { $runtime .name } }-{ { $runtime .arch } }-cache
7272 before_script: *python-before-script
73- script:
73+ script:
7474 - source venv/bin/activate
7575 - ./scripts/check_format.sh
7676
77- unit-test ({ { $runtime .name } }-{ { $runtime .arch } }):
78- stage: test
79- tags: ["arch:amd64"]
80- image: registry.ddbuild.io/images/mirror/python:{ { $runtime .image } }
81- cache: & { { $runtime .name } }-{ { $runtime .arch } }-cache
82- before_script: *python-before-script
83- script:
84- - source venv/bin/activate
85- - pytest -vv
77+ # unit-test ({ { $runtime .name } }-{ { $runtime .arch } }):
78+ # stage: test
79+ # tags: ["arch:amd64"]
80+ # image: registry.ddbuild.io/images/mirror/python:{ { $runtime .image } }
81+ # cache: & { { $runtime .name } }-{ { $runtime .arch } }-cache
82+ # before_script: *python-before-script
83+ # script:
84+ # - source venv/bin/activate
85+ # - pytest -vv
8686
87- integration-test ({ { $runtime .name } }-{ { $runtime .arch } }):
88- stage: test
89- tags: ["arch:amd64"]
90- image: registry.ddbuild.io/images/docker:20.10-py3
91- needs:
92- - build-layer ({ { $runtime .name } }-{ { $runtime .arch } })
93- dependencies:
94- - build-layer ({ { $runtime .name } }-{ { $runtime .arch } })
95- cache: & { { $runtime .name } }-{ { $runtime .arch } }-cache
96- variables:
97- CI_ENABLE_CONTAINER_IMAGE_BUILDS: "true"
98- before_script:
99- - *install-node
100- - EXTERNAL_ID_NAME=integration-test-externalid ROLE_TO_ASSUME=sandbox-integration-test-deployer AWS_ACCOUNT=425362996713 source ./ci/get_secrets.sh
101- - yarn global add serverless@^3.38.0 --prefix /usr/local
102- - yarn global add serverless-python-requirements@^6.1.1 --prefix /usr/local
103- - cd integration_tests && yarn install && cd ..
104- script:
105- - RUNTIME_PARAM={ { $runtime .python_version } } ARCH={ { $runtime .arch } } ./scripts/run_integration_tests.sh
87+ # integration-test ({ { $runtime .name } }-{ { $runtime .arch } }):
88+ # stage: test
89+ # tags: ["arch:amd64"]
90+ # image: registry.ddbuild.io/images/docker:20.10-py3
91+ # needs:
92+ # - build-layer ({ { $runtime .name } }-{ { $runtime .arch } })
93+ # dependencies:
94+ # - build-layer ({ { $runtime .name } }-{ { $runtime .arch } })
95+ # cache: & { { $runtime .name } }-{ { $runtime .arch } }-cache
96+ # variables:
97+ # CI_ENABLE_CONTAINER_IMAGE_BUILDS: "true"
98+ # before_script:
99+ # - *install-node
100+ # - EXTERNAL_ID_NAME=integration-test-externalid ROLE_TO_ASSUME=sandbox-integration-test-deployer AWS_ACCOUNT=425362996713 source ./ci/get_secrets.sh
101+ # - yarn global add serverless@^3.38.0 --prefix /usr/local
102+ # - yarn global add serverless-python-requirements@^6.1.1 --prefix /usr/local
103+ # - cd integration_tests && yarn install && cd ..
104+ # script:
105+ # - RUNTIME_PARAM={ { $runtime .python_version } } ARCH={ { $runtime .arch } } ./scripts/run_integration_tests.sh
106106
107107sign-layer ({ { $runtime .name } }-{ { $runtime .arch } }):
108108 stage: sign
@@ -115,8 +115,8 @@ sign-layer ({{ $runtime.name }}-{{ $runtime.arch }}):
115115 - build-layer ({ { $runtime .name } }-{ { $runtime .arch } })
116116 - check-layer-size ({ { $runtime .name } }-{ { $runtime .arch } })
117117 - lint python
118- - unit-test ({ { $runtime .name } }-{ { $runtime .arch } })
119- - integration-test ({ { $runtime .name } }-{ { $runtime .arch } })
118+ # - unit-test ({ { $runtime .name } }-{ { $runtime .arch } })
119+ # - integration-test ({ { $runtime .name } }-{ { $runtime .arch } })
120120 dependencies:
121121 - build-layer ({ { $runtime .name } }-{ { $runtime .arch } })
122122 artifacts: # Re specify artifacts so the modified signed file is passed
@@ -152,8 +152,8 @@ publish-layer-{{ $environment_name }} ({{ $runtime.name }}-{{ $runtime.arch }}):
152152 - build-layer ({ { $runtime .name } }-{ { $runtime .arch } })
153153 - check-layer-size ({ { $runtime .name } }-{ { $runtime .arch } })
154154 - lint python
155- - unit-test ({ { $runtime .name } }-{ { $runtime .arch } })
156- - integration-test ({ { $runtime .name } }-{ { $runtime .arch } })
155+ # - unit-test ({ { $runtime .name } }-{ { $runtime .arch } })
156+ # - integration-test ({ { $runtime .name } }-{ { $runtime .arch } })
157157{ { end } }
158158 dependencies:
159159{ { if or (eq $environment_name " prod" ) } }
@@ -179,21 +179,21 @@ run-e2e:
179179 stage: e2e
180180 tags: ["arch:amd64"]
181181 image: registry.ddbuild.io/images/docker:20.10-py3
182- needs: { { range $ runtime := (ds " runtimes " ).runtimes } }
183- - publish-layer-sandbox ( { { $ runtime .name } }-amd64): [us-west-2]
184- { {- end } }
185- trigger:
186- project: "DataDog/serverless-e2e-tests"
187- strategy: depend
188- variables:
189- LANGUAGES_SUBSET: python
190- PYTHON_38_VERSION: latest
191- PYTHON_39_VERSION : latest
192- PYTHON_310_VERSION : latest
193- PYTHON_311_VERSION : latest
194- PYTHON_312_VERSION : latest
195- PYTHON_313_VERSION : latest
196-
182+ script: echo hello world
183+ #trigger:
184+ # project: DataDog/serverless-e2e-tests
185+ # strategy: depend
186+ #needs: { { range $ runtime := (ds " runtimes " ).runtimes } }
187+ # - publish-layer-sandbox ( { { $ runtime .name } }- { { $ runtime .arch } })
188+ # { {- end } }
189+ #variables:
190+ # LANGUAGES_SUBSET: python
191+ # PYTHON_38_VERSION : latest
192+ # PYTHON_39_VERSION : latest
193+ # PYTHON_310_VERSION : latest
194+ # PYTHON_311_VERSION : latest
195+ # PYTHON_312_VERSION : latest
196+ # PYTHON_313_VERSION: latest
197197
198198publish-pypi-package:
199199 stage: publish
0 commit comments