From 6889e0f669406bf5ab23f5cd645d4ba6504f4855 Mon Sep 17 00:00:00 2001 From: Rey Abolofia Date: Thu, 10 Apr 2025 14:13:54 -0700 Subject: [PATCH 1/2] Always publish to us-east-1. --- ci/input_files/build.yaml.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/input_files/build.yaml.tpl b/ci/input_files/build.yaml.tpl index 769f87f5..a79de0c4 100644 --- a/ci/input_files/build.yaml.tpl +++ b/ci/input_files/build.yaml.tpl @@ -138,6 +138,8 @@ publish-layer-{{ $environment_name }} ({{ $runtime.name }}-{{ $runtime.arch }}): tags: ["arch:amd64"] image: registry.ddbuild.io/images/docker:20.10-py3 rules: + - if: '"{{ $environment_name }}" == "sandbox" && $REGION == "us-east-1" && "{{ $runtime.arch }}" == "amd64"' + when: always - if: '"{{ $environment_name }}" == "sandbox"' when: manual allow_failure: true From 33568a60228de28f3a36b76cae845084feb493ad Mon Sep 17 00:00:00 2001 From: Rey Abolofia Date: Thu, 24 Apr 2025 08:52:58 -0700 Subject: [PATCH 2/2] WIP --- ci/input_files/build.yaml.tpl | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/ci/input_files/build.yaml.tpl b/ci/input_files/build.yaml.tpl index a79de0c4..2a3a7f02 100644 --- a/ci/input_files/build.yaml.tpl +++ b/ci/input_files/build.yaml.tpl @@ -3,6 +3,7 @@ stages: - test - sign - publish + - e2e .python-before-script: &python-before-script - pip install virtualenv @@ -138,7 +139,7 @@ publish-layer-{{ $environment_name }} ({{ $runtime.name }}-{{ $runtime.arch }}): tags: ["arch:amd64"] image: registry.ddbuild.io/images/docker:20.10-py3 rules: - - if: '"{{ $environment_name }}" == "sandbox" && $REGION == "us-east-1" && "{{ $runtime.arch }}" == "amd64"' + - if: '"{{ $environment_name }}" == "sandbox" && $REGION == "ap-east-1" && "{{ $runtime.arch }}" == "amd64"' when: always - if: '"{{ $environment_name }}" == "sandbox"' when: manual @@ -174,6 +175,26 @@ publish-layer-{{ $environment_name }} ({{ $runtime.name }}-{{ $runtime.arch }}): {{- end }} +run-e2e: + stage: e2e + tags: ["arch:amd64"] + image: registry.ddbuild.io/images/docker:20.10-py3 + needs: {{ range $runtime := (ds "runtimes").runtimes }} + - publish-layer-sandbox ({{ $runtime.name }}-amd64): [ap-east-1] + {{- end }} + trigger: + project: "DataDog/serverless-e2e-tests" + strategy: depend + variables: + LANGUAGES_SUBSET: python + PYTHON_38_VERSION: latest + PYTHON_39_VERSION: latest + PYTHON_310_VERSION: latest + PYTHON_311_VERSION: latest + PYTHON_312_VERSION: latest + PYTHON_313_VERSION: latest + + publish-pypi-package: stage: publish tags: ["arch:amd64"]