Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 36 additions & 3 deletions .github/workflows/system-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,42 @@ jobs:
name: logs_parametric
path: artifact.tar.gz

download-serverless-s3-wheels:
needs: [should-run]
if: needs.should-run.outputs.run == 'true' && (github.event_name != 'schedule' || github.event.repository.fork == false)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Resolve commit SHA
id: resolve-sha
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
echo "sha=${{ github.event.pull_request.head.sha }}" >> "$GITHUB_OUTPUT"
else
echo "sha=${{ github.sha }}" >> "$GITHUB_OUTPUT"
fi

- name: Download wheels from S3
run: |
bash scripts/download-s3-wheels.sh \
"${{ steps.resolve-sha.outputs.sha }}" \
./wheels \
serverless
Comment thread
florentinl marked this conversation as resolved.

- name: Upload artifact
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: serverless-wheels
path: ./wheels/*.whl
if-no-files-found: error

serverless-system-tests-build-layer:
runs-on: ubuntu-latest
needs: [download-s3-wheels]
needs: [download-serverless-s3-wheels]
steps:
- name: Checkout datadog-lambda-python
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand All @@ -404,12 +437,12 @@ jobs:
- name: Download wheel to binaries directory
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: wheels-manylinux_x86_64
name: serverless-wheels
path: artifacts/

- name: Build datadog_lambda layer
run: |
wheel_path=$(find ./artifacts -name "*cp313*manylinux*.whl" | head -n 1)
wheel_path=$(find ./artifacts -name "*cp313*manylinux2014_x86_64.whl" | head -n 1)
ARCH=amd64 PYTHON_VERSION=3.13 DD_TRACE_WHEEL=$wheel_path ./scripts/build_layers.sh

- name: Upload layer artifact
Expand Down
6 changes: 3 additions & 3 deletions .gitlab/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,15 @@ variables:
"upload serverless":
extends: .upload_wheels_base
needs:
- job: "build linux"
- job: "build linux serverless"
artifacts: true
parallel:
matrix:
- ARCH_TAG: "amd64"
PYTHON_TAG: "cp311-cp311"
PYTHON_TAG: ["cp311-cp311", "cp313-cp313"]
IMAGE_TAG: "v85383392-751efc0-manylinux2014_x86_64"
- ARCH_TAG: "arm64"
PYTHON_TAG: "cp311-cp311"
PYTHON_TAG: ["cp311-cp311", "cp313-cp313"]
IMAGE_TAG: "v85383414-751efc0-manylinux2014_aarch64"
- job: "package version"
variables:
Expand Down
Loading