Skip to content

Commit 00b7640

Browse files
authored
Merge branch 'main' into wantsui/celery-chain-task
2 parents 00fd8c8 + a4f0e38 commit 00b7640

File tree

116 files changed

+2349
-735
lines changed

Some content is hidden

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

116 files changed

+2349
-735
lines changed

.circleci/config.templ.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ mongo_image: &mongo_image mongo:3.6@sha256:19c11a8f1064fd2bb713ef1270f79a742a184
1616
httpbin_image: &httpbin_image kennethreitz/httpbin@sha256:2c7abc4803080c22928265744410173b6fea3b898872c01c5fd0f0f9df4a59fb
1717
vertica_image: &vertica_image vertica/vertica-ce:latest
1818
rabbitmq_image: &rabbitmq_image rabbitmq:3.7-alpine
19-
testagent_image: &testagent_image ghcr.io/datadog/dd-apm-test-agent/ddapm-test-agent:v1.17.0
19+
testagent_image: &testagent_image ghcr.io/datadog/dd-apm-test-agent/ddapm-test-agent:v1.20.0
2020

2121
parameters:
2222
coverage:

.github/workflows/build_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- uses: actions/setup-python@v5
4141
name: Install Python
4242
with:
43-
python-version: '3.7'
43+
python-version: '3.12'
4444
- name: Build sdist
4545
run: |
4646
pip install "setuptools_scm[toml]>=4" "cython" "cmake>=3.24.2,<3.28" "setuptools-rust"
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Pytorch Unit Tests (with GPU)
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- 'mq-working-branch**'
8+
paths:
9+
- 'ddtrace/profiling/collector/pytorch.py'
10+
pull_request:
11+
paths:
12+
- 'ddtrace/profiling/collector/pytorch.py'
13+
workflow_dispatch:
14+
15+
jobs:
16+
unit-tests:
17+
runs-on: APM-4-CORE-GPU-LINUX
18+
steps:
19+
- uses: actions/checkout@v4
20+
# Include all history and tags
21+
with:
22+
persist-credentials: false
23+
fetch-depth: 0
24+
25+
- uses: actions/setup-python@v5
26+
name: Install Python
27+
with:
28+
python-version: '3.12'
29+
30+
- uses: actions-rust-lang/setup-rust-toolchain@v1
31+
- name: Install latest stable toolchain and rustfmt
32+
run: rustup update stable && rustup default stable && rustup component add rustfmt clippy
33+
34+
- name: Install hatch
35+
uses: pypa/hatch@install
36+
with:
37+
version: "1.12.0"
38+
39+
- name: Install PyTorch
40+
run: pip install torch
41+
42+
- name: Run tests
43+
run: hatch run profiling_pytorch:test

.gitlab/services.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
DD_REMOTE_CONFIGURATION_REFRESH_INTERVAL: 5s
1313
DD_DOGSTATSD_NON_LOCAL_TRAFFIC: true
1414
testagent:
15-
name: registry.ddbuild.io/images/mirror/dd-apm-test-agent/ddapm-test-agent:v1.17.0
15+
name: registry.ddbuild.io/images/mirror/dd-apm-test-agent/ddapm-test-agent:v1.20.0
1616
alias: testagent
1717
variables:
1818
LOG_LEVEL: INFO

.gitlab/tests.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
stages:
2-
- tests
2+
- precheck
3+
- hatch
4+
- riot
35

46
variables:
57
RIOT_RUN_CMD: riot -P -v run --exitfirst --pass-env -s
@@ -22,7 +24,7 @@ variables:
2224

2325
.test_base_hatch:
2426
extends: .testrunner
25-
stage: tests
27+
stage: hatch
2628
# Hatch doesn't use pre-built wheels or venvs so we can start them right away
2729
needs: []
2830
parallel: 4
@@ -57,7 +59,7 @@ variables:
5759

5860
build_base_venvs:
5961
extends: .testrunner
60-
stage: tests
62+
stage: riot
6163
parallel:
6264
matrix:
6365
- PYTHON_VERSION: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
@@ -76,9 +78,10 @@ build_base_venvs:
7678
- ddtrace/internal/datadog/profiling/crashtracker/crashtracker_exe*
7779
- ddtrace/internal/datadog/profiling/test/test_*
7880

81+
# Do not define a `needs:` in order to depend on the whole `precheck` stage
7982
.test_base_riot:
8083
extends: .testrunner
81-
stage: tests
84+
stage: riot
8285
needs: [ build_base_venvs ]
8386
parallel: 4
8487
services:

.riot/requirements/1050efa.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
# pip-compile --allow-unsafe --no-annotate .riot/requirements/1050efa.in
66
#
77
attrs==24.2.0
8-
coverage[toml]==7.6.1
8+
coverage[toml]==7.6.9
99
hypothesis==6.45.0
1010
iniconfig==2.0.0
11-
mariadb==1.1.10
11+
mariadb==1.1.11
1212
mock==5.1.0
1313
opentracing==2.4.0
14-
packaging==24.1
14+
packaging==24.2
1515
pluggy==1.5.0
16-
pytest==8.3.2
17-
pytest-cov==5.0.0
16+
pytest==8.3.4
17+
pytest-cov==6.0.0
1818
pytest-mock==3.14.0
19-
pytest-randomly==3.15.0
19+
pytest-randomly==3.16.0
2020
sortedcontainers==2.4.0

.riot/requirements/12594bd.txt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22
# This file is autogenerated by pip-compile with Python 3.9
33
# by the following command:
44
#
5-
# pip-compile --no-annotate .riot/requirements/12594bd.in
5+
# pip-compile --allow-unsafe --no-annotate .riot/requirements/12594bd.in
66
#
7-
async-timeout==4.0.3
8-
asyncpg==0.29.0
9-
attrs==23.2.0
10-
coverage[toml]==7.4.0
11-
exceptiongroup==1.2.0
7+
async-timeout==5.0.1
8+
asyncpg==0.30.0
9+
attrs==24.2.0
10+
coverage[toml]==7.6.9
11+
exceptiongroup==1.2.2
1212
hypothesis==6.45.0
13-
importlib-metadata==7.0.1
13+
importlib-metadata==8.5.0
1414
iniconfig==2.0.0
1515
mock==5.1.0
1616
opentracing==2.4.0
17-
packaging==23.2
18-
pluggy==1.3.0
19-
pytest==7.4.4
20-
pytest-asyncio==0.21.1
21-
pytest-cov==4.1.0
22-
pytest-mock==3.12.0
23-
pytest-randomly==3.15.0
17+
packaging==24.2
18+
pluggy==1.5.0
19+
pytest==8.3.4
20+
pytest-asyncio==0.21.2
21+
pytest-cov==6.0.0
22+
pytest-mock==3.14.0
23+
pytest-randomly==3.16.0
2424
sortedcontainers==2.4.0
25-
tomli==2.0.1
26-
zipp==3.17.0
25+
tomli==2.2.1
26+
zipp==3.21.0

.riot/requirements/12c10e8.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
# pip-compile --allow-unsafe --no-annotate .riot/requirements/12c10e8.in
66
#
77
attrs==24.2.0
8-
coverage[toml]==7.6.1
8+
coverage[toml]==7.6.9
99
exceptiongroup==1.2.2
1010
hypothesis==6.45.0
11-
importlib-metadata==8.4.0
11+
importlib-metadata==8.5.0
1212
iniconfig==2.0.0
13-
mariadb==1.1.10
13+
mariadb==1.1.11
1414
mock==5.1.0
1515
opentracing==2.4.0
16-
packaging==24.1
16+
packaging==24.2
1717
pluggy==1.5.0
18-
pytest==8.3.2
19-
pytest-cov==5.0.0
18+
pytest==8.3.4
19+
pytest-cov==6.0.0
2020
pytest-mock==3.14.0
21-
pytest-randomly==3.15.0
21+
pytest-randomly==3.16.0
2222
sortedcontainers==2.4.0
23-
tomli==2.0.1
24-
zipp==3.20.0
23+
tomli==2.2.1
24+
zipp==3.21.0

.riot/requirements/12cb0e7.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
# pip-compile --allow-unsafe --no-annotate .riot/requirements/12cb0e7.in
66
#
77
attrs==24.2.0
8-
coverage[toml]==7.6.1
8+
coverage[toml]==7.6.9
99
hypothesis==6.45.0
1010
iniconfig==2.0.0
11-
mariadb==1.1.10
11+
mariadb==1.1.11
1212
mock==5.1.0
1313
opentracing==2.4.0
14-
packaging==24.1
14+
packaging==24.2
1515
pluggy==1.5.0
16-
pytest==8.3.2
17-
pytest-cov==5.0.0
16+
pytest==8.3.4
17+
pytest-cov==6.0.0
1818
pytest-mock==3.14.0
19-
pytest-randomly==3.15.0
19+
pytest-randomly==3.16.0
2020
sortedcontainers==2.4.0

.riot/requirements/147bedb.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
# pip-compile --allow-unsafe --no-annotate .riot/requirements/147bedb.in
66
#
77
attrs==24.2.0
8-
coverage[toml]==7.6.1
8+
coverage[toml]==7.6.9
99
exceptiongroup==1.2.2
1010
hypothesis==6.45.0
11-
importlib-metadata==8.4.0
11+
importlib-metadata==8.5.0
1212
iniconfig==2.0.0
13-
mariadb==1.1.10
13+
mariadb==1.1.11
1414
mock==5.1.0
1515
opentracing==2.4.0
16-
packaging==24.1
16+
packaging==24.2
1717
pluggy==1.5.0
18-
pytest==8.3.2
19-
pytest-cov==5.0.0
18+
pytest==8.3.4
19+
pytest-cov==6.0.0
2020
pytest-mock==3.14.0
21-
pytest-randomly==3.15.0
21+
pytest-randomly==3.16.0
2222
sortedcontainers==2.4.0
23-
tomli==2.0.1
24-
zipp==3.20.0
23+
tomli==2.2.1
24+
zipp==3.21.0

0 commit comments

Comments
 (0)