Skip to content

Commit 3dbde5c

Browse files
Julien Danjoumergify[bot]
andauthored
ci: enable profiling in framework testing jobs (#2681)
This should give more chance to catch any potential issue in the profiling by training it with more external code. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent 631d8ba commit 3dbde5c

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

.github/workflows/bottle.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
bottle-testsuite-0_12_19:
1010
runs-on: ubuntu-latest
1111
env:
12+
DD_PROFILING_ENABLED: true
1213
DD_TESTING_RAISE: true
1314
defaults:
1415
run:
@@ -40,4 +41,6 @@ jobs:
4041
run: pip install ../ddtrace
4142
# Allows tests to continue through deprecation warnings for jinja2 and mako
4243
- name: Run tests
43-
run: ddtrace-run pytest test --continue-on-collection-errors -v
44+
# Disable TestServerAdapter_gunicorn.test_simple because it checks for
45+
# log output and it contains the profiler failing to upload
46+
run: ddtrace-run pytest test --continue-on-collection-errors -v -k 'not TestServerAdapter_gunicorn'

.github/workflows/fastapi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
env:
1111
DD_TESTING_RAISE: true
12+
DD_PROFILING_ENABLED: true
1213
defaults:
1314
run:
1415
working-directory: fastapi

.github/workflows/flask.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ jobs:
88
flask-testsuite-1_1_4:
99
runs-on: ubuntu-latest
1010
env:
11-
TOX_TESTENV_PASSENV: DD_TESTING_RAISE
11+
TOX_TESTENV_PASSENV: DD_TESTING_RAISE DD_PROFILING_ENABLED
1212
DD_TESTING_RAISE: true
13+
DD_PROFILING_ENABLED: true
1314
defaults:
1415
run:
1516
working-directory: flask

.github/workflows/mako.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ jobs:
88
mako-testsuite-1_1_4:
99
runs-on: ubuntu-latest
1010
env:
11-
TOX_TESTENV_PASSENV: DD_TESTING_RAISE
11+
TOX_TESTENV_PASSENV: DD_TESTING_RAISE DD_PROFILING_ENABLED
1212
DD_TESTING_RAISE: true
13+
DD_PROFILING_ENABLED: true
1314
defaults:
1415
run:
1516
working-directory: mako

.github/workflows/starlette.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
runs-on: "ubuntu-latest"
1111
env:
1212
DD_TESTING_RAISE: true
13+
DD_PROFILING_ENABLED: true
1314
defaults:
1415
run:
1516
working-directory: starlette

0 commit comments

Comments
 (0)