Skip to content

Commit 75bec71

Browse files
ci(fix): refactor serverless-system-tests-build-layer (#16348)
## Description The definition of the ddtrace dependency in datadog-lambda-python is being modified and the build_layers.sh script in that repo is being refactored to deduplicate the use of the sed command injecting the ddtrace wheel in different repos [PR](DataDog/datadog-lambda-python#720). This PR brings dd-trace-py into compatibility with those changes. <!-- Provide an overview of the change and motivation for the change --> ## Testing <!-- Describe your testing strategy or note what tests are included --> ## Risks <!-- Note any risks associated with this change, or "None" if no risks --> ## Additional Notes <!-- Any other information that would be helpful for reviewers --> --------- Co-authored-by: Florentin Labelle <florentin.labelle@datadoghq.com>
1 parent 2a77696 commit 75bec71

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/system-tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,7 @@ jobs:
384384
- name: Build datadog_lambda layer
385385
run: |
386386
wheel_path=$(find ./artifacts -name "*.whl" | head -n 1)
387-
sed -i 's|^ddtrace =.*$|ddtrace = { file = "'"$wheel_path"'" }|' pyproject.toml
388-
ARCH=amd64 PYTHON_VERSION=3.13 ./scripts/build_layers.sh
387+
ARCH=amd64 PYTHON_VERSION=3.13 DD_TRACE_WHEEL=$wheel_path ./scripts/build_layers.sh
389388
390389
- name: Upload layer artifact
391390
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0

0 commit comments

Comments
 (0)