Skip to content

Commit a4dfeb1

Browse files
committed
Merge branch 'main' into chore/debugger-improve-flush-logging
2 parents ed8480b + 2c76e72 commit a4dfeb1

File tree

260 files changed

+9053
-2129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

260 files changed

+9053
-2129
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
1-
## Checklist
2-
- [ ] PR author has checked that all the criteria below are met
3-
- The PR description includes an overview of the change
4-
- The PR description articulates the motivation for the change
5-
- The change includes tests OR the PR description describes a testing strategy
6-
- The PR description notes risks associated with the change, if any
7-
- Newly-added code is easy to change
8-
- The change follows the [library release note guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html)
9-
- The change includes or references documentation updates if necessary
10-
- Backport labels are set (if [applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))
1+
## Description
112

12-
## Reviewer Checklist
13-
- [ ] Reviewer has checked that all the criteria below are met
14-
- Title is accurate
15-
- All changes are related to the pull request's stated goal
16-
- Avoids breaking [API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces) changes
17-
- Testing strategy adequately addresses listed risks
18-
- Newly-added code is easy to change
19-
- Release note makes sense to a user of the library
20-
- If necessary, author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment
21-
- Backport labels are set in a manner that is consistent with the [release branch maintenance policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)
3+
<!-- Provide an overview of the change and motivation for the change -->
4+
5+
## Testing
6+
7+
<!-- Describe your testing strategy or note what tests are included -->
8+
9+
## Risks
10+
11+
<!-- Note any risks associated with this change, or "None" if no risks -->
12+
13+
## Additional Notes
14+
15+
<!-- Any other information that would be helpful for reviewers -->

.github/workflows/build_deploy.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,57 @@ on:
2424
- cron: 0 2 * * 2-6
2525

2626
jobs:
27+
compute_version:
28+
name: Compute Library Version
29+
runs-on: ubuntu-latest
30+
outputs:
31+
library_version: ${{ steps.compute-version.outputs.library_version }}
32+
steps:
33+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
34+
# Include all history and tags
35+
with:
36+
persist-credentials: false
37+
fetch-depth: 0
38+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
39+
name: Install Python
40+
with:
41+
python-version: '3.12'
42+
- name: Compute Version
43+
id: compute-version
44+
run: |
45+
pip install "setuptools_scm[toml]>=4"
46+
47+
# If we are on the main or release branch, strip away the dev version
48+
if [[ "$GITHUB_REF_NAME" == "main" || \
49+
"$GITHUB_REF_NAME" =~ ^[0-9]+\.[0-9]+$ || \
50+
"$GITHUB_REF_NAME" =~ ^[0-9]+\.x$ ]]; then
51+
LIBRARY_VERSION=$(setuptools-scm --strip-dev)
52+
else
53+
# All else, maintain the dev version
54+
LIBRARY_VERSION=$(setuptools-scm)
55+
fi
56+
57+
echo "${LIBRARY_VERSION}" | tee version.txt
58+
echo "library_version=${LIBRARY_VERSION}" >> $GITHUB_OUTPUT
59+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
60+
with:
61+
name: library-version
62+
path: version.txt
63+
2764
build_wheels:
65+
needs: [ "compute_version" ]
2866
uses: ./.github/workflows/build_python_3.yml
2967
with:
3068
cibw_build: 'cp38* cp39* cp310* cp311* cp312* cp313*'
3169
cibw_skip: 'cp38-win_arm64 cp39-win_arm64 cp310-win_arm64'
70+
library_version: ${{ needs.compute_version.outputs.library_version }}
3271

3372
build_sdist:
73+
needs: [ "compute_version" ]
3474
name: Build source distribution
3575
runs-on: ubuntu-latest
76+
env:
77+
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_DDTRACE: ${{ needs.compute_version.outputs.library_version }}
3678
steps:
3779
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3880
# Include all history and tags

.github/workflows/build_python_3.yml

Lines changed: 40 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,39 @@ on:
1212
cibw_prerelease_pythons:
1313
required: false
1414
type: string
15+
library_version:
16+
required: false
17+
type: string
1518

1619
jobs:
20+
compute_version:
21+
name: Compute Library Version
22+
runs-on: ubuntu-latest
23+
outputs:
24+
library_version: ${{ steps.compute-version.outputs.library_version }}
25+
steps:
26+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
27+
# Include all history and tags
28+
with:
29+
persist-credentials: false
30+
fetch-depth: 0
31+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
32+
name: Install Python
33+
with:
34+
python-version: '3.12'
35+
- name: Compute Version
36+
id: compute-version
37+
run: |
38+
if [ -n "${{ inputs.library_version}}" ]; then
39+
LIBRARY_VERSION="${{ inputs.library_version}}"
40+
else
41+
pip install "setuptools_scm[toml]>=4"
42+
LIBRARY_VERSION=$(setuptools-scm)
43+
fi
44+
45+
echo "${LIBRARY_VERSION}"
46+
echo "library_version=${LIBRARY_VERSION}" >> $GITHUB_OUTPUT
47+
1748
build-wheels-matrix:
1849
runs-on: ubuntu-latest
1950
outputs:
@@ -32,26 +63,27 @@ jobs:
3263
run: |
3364
MATRIX_INCLUDE=$(
3465
{
35-
cibuildwheel --print-build-identifiers --platform linux --archs x86_64,i686 | jq -cR '{only: ., os: "ubuntu-latest"}' \
36-
&& cibuildwheel --print-build-identifiers --platform linux --archs aarch64 | jq -cR '{only: ., os: "ubuntu-24.04-arm"}' \
66+
cibuildwheel --print-build-identifiers --platform linux --archs x86_64,i686 | jq -cR '{only: ., os: "ubuntu-latest-16-cores"}' \
67+
&& cibuildwheel --print-build-identifiers --platform linux --archs aarch64 | jq -cR '{only: ., os: "arm-8core-linux"}' \
3768
&& cibuildwheel --print-build-identifiers --platform windows --archs AMD64,x86 | jq -cR '{only: ., os: "windows-latest"}' \
3869
&& cibuildwheel --print-build-identifiers --platform windows --archs ARM64 | jq -cR '{only: ., os: "windows-11-arm"}' \
39-
&& cibuildwheel --print-build-identifiers --platform macos --archs x86_64 | jq -cR '{only: ., os: "macos-13"}' \
40-
&& cibuildwheel --print-build-identifiers --platform macos --archs arm64 | jq -cR '{only: ., os: "macos-latest"}'
70+
&& cibuildwheel --print-build-identifiers --platform macos --archs x86_64 | jq -cR '{only: ., os: "macos-15-large"}' \
71+
&& cibuildwheel --print-build-identifiers --platform macos --archs arm64 | jq -cR '{only: ., os: "macos-15-xlarge"}'
4172
} | jq -sc
4273
)
4374
echo $MATRIX_INCLUDE
4475
echo "include=${MATRIX_INCLUDE}" >> $GITHUB_OUTPUT
4576
4677
build:
47-
needs: build-wheels-matrix
78+
needs: ["compute_version", "build-wheels-matrix" ]
4879
runs-on: ${{ matrix.os }}
4980
name: Build ${{ matrix.only }}
5081
strategy:
5182
fail-fast: false
5283
matrix:
5384
include: ${{ fromJson(needs.build-wheels-matrix.outputs.include) }}
5485
env:
86+
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_DDTRACE: ${{ needs.compute_version.outputs.library_version }}
5587
CIBW_SKIP: ${{ inputs.cibw_skip }}
5688
CIBW_PRERELEASE_PYTHONS: ${{ inputs.cibw_prerelease_pythons }}
5789
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
@@ -66,11 +98,12 @@ jobs:
6698
fi
6799
curl -sSf https://sh.rustup.rs | sh -s -- -y;
68100
fi
69-
CIBW_ENVIRONMENT_LINUX: PATH=$HOME/.cargo/bin:$PATH CMAKE_BUILD_PARALLEL_LEVEL=24 CMAKE_ARGS="-DNATIVE_TESTING=OFF"
101+
CIBW_ENVIRONMENT_LINUX: PATH=$HOME/.cargo/bin:$PATH CMAKE_BUILD_PARALLEL_LEVEL=24 CMAKE_ARGS="-DNATIVE_TESTING=OFF" SETUPTOOLS_SCM_PRETEND_VERSION_FOR_DDTRACE=${{ needs.compute_version.outputs.library_version }}
70102
# SYSTEM_VERSION_COMPAT is a workaround for versioning issue, a.k.a.
71103
# `platform.mac_ver()` reports incorrect MacOS version at 11.0
72104
# See: https://stackoverflow.com/a/65402241
73-
CIBW_ENVIRONMENT_MACOS: CMAKE_BUILD_PARALLEL_LEVEL=24 SYSTEM_VERSION_COMPAT=0 CMAKE_ARGS="-DNATIVE_TESTING=OFF"
105+
CIBW_ENVIRONMENT_MACOS: CMAKE_BUILD_PARALLEL_LEVEL=24 SYSTEM_VERSION_COMPAT=0 CMAKE_ARGS="-DNATIVE_TESTING=OFF" SETUPTOOLS_SCM_PRETEND_VERSION_FOR_DDTRACE=${{ needs.compute_version.outputs.library_version }}
106+
CIBW_ENVIRONMENT_WINDOWS: SETUPTOOLS_SCM_PRETEND_VERSION_FOR_DDTRACE=${{ needs.compute_version.outputs.library_version }}
74107
# cibuildwheel repair will copy anything's under /output directory from the
75108
# build container to the host machine. This is a bit hacky way, but seems
76109
# to be the only way getting debug symbols out from the container while

.github/workflows/require-checklist.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/requirements-locks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
2626

2727
- name: Set python interpreters
28-
run: pyenv global 3.10 3.8 3.9 3.11 3.12 3.13
28+
run: pyenv global 3.10 3.8 3.9 3.11 3.12 3.13 3.14.0rc1
2929

3030
- name: Install Dependencies
3131
run: pip install --upgrade pip && pip install riot==0.20.1 && pip install toml==0.10.2

.github/workflows/system-tests.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
persist-credentials: false
4848
repository: 'DataDog/system-tests'
4949
# Automatically managed, use scripts/update-system-tests-version to update
50-
ref: 'e13ccb562e9e060317b173e25b1e638d89f9df3b'
50+
ref: '4bece37901d6241526eb788bdac6f2887251cdcd'
5151

5252
- name: Download wheels to binaries directory
5353
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
@@ -94,7 +94,7 @@ jobs:
9494
persist-credentials: false
9595
repository: 'DataDog/system-tests'
9696
# Automatically managed, use scripts/update-system-tests-version to update
97-
ref: 'e13ccb562e9e060317b173e25b1e638d89f9df3b'
97+
ref: '4bece37901d6241526eb788bdac6f2887251cdcd'
9898

9999
- name: Build runner
100100
uses: ./.github/actions/install_runner
@@ -225,6 +225,10 @@ jobs:
225225
if: always() && steps.docker_load.outcome == 'success' && matrix.scenario == 'appsec-1'
226226
run: ./run.sh APPSEC_RASP
227227

228+
- name: Run APPSEC_STANDALONE_RASP
229+
if: always() && steps.docker_load.outcome == 'success' && matrix.scenario == 'appsec-1'
230+
run: ./run.sh APPSEC_STANDALONE_RASP
231+
228232
- name: Run DEBUGGER_PROBES_STATUS
229233
if: always() && steps.docker_load.outcome == 'success' && matrix.scenario == 'debugger-1'
230234
run: ./run.sh DEBUGGER_PROBES_STATUS
@@ -279,7 +283,7 @@ jobs:
279283
persist-credentials: false
280284
repository: 'DataDog/system-tests'
281285
# Automatically managed, use scripts/update-system-tests-version to update
282-
ref: 'e13ccb562e9e060317b173e25b1e638d89f9df3b'
286+
ref: '4bece37901d6241526eb788bdac6f2887251cdcd'
283287
- name: Download wheels to binaries directory
284288
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
285289
with:

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ variables:
1414
DD_VPA_TEMPLATE: "vpa-template-cpu-p70-10percent-2x-oom-min-cap"
1515
# CI_DEBUG_SERVICES: "true"
1616
# Automatically managed, use scripts/update-system-tests-version to update
17-
SYSTEM_TESTS_REF: "e13ccb562e9e060317b173e25b1e638d89f9df3b"
17+
SYSTEM_TESTS_REF: "4bece37901d6241526eb788bdac6f2887251cdcd"
1818

1919
default:
2020
interruptible: true

0 commit comments

Comments
 (0)