33
33
run : |
34
34
git fetch origin ${{ github.event.pull_request.base.sha }}
35
35
export PATHS=$(git diff --name-only HEAD ${{ github.event.pull_request.base.sha }})
36
- python -c "import os,sys,fnmatch;sys.exit(not bool([_ for pattern in {'ddtrace/*', 'setup*', 'pyproject.toml', '.github/workflows/test_frameworks.yml', 'tests/debugging/exploration/*' } for _ in fnmatch.filter(os.environ['PATHS'].splitlines(), pattern)]))"
36
+ python -c "import os,sys,fnmatch;sys.exit(not bool([_ for pattern in {'ddtrace/*', 'setup*', 'pyproject.toml', '.github/workflows/test_frameworks.yml'} for _ in fnmatch.filter(os.environ['PATHS'].splitlines(), pattern)]))"
37
37
continue-on-error : true
38
38
39
39
bottle-testsuite :
65
65
DD_APPSEC_ENABLED : ${{ matrix.appsec }}
66
66
DD_TESTING_RAISE : true
67
67
CMAKE_BUILD_PARALLEL_LEVEL : 12
68
- DD_DEBUGGER_EXPL_OUTPUT_FILE : debugger-expl.txt
69
68
DD_BYTECODE_INJECTION_OUTPUT_FILE : bytecode-injection.txt
70
69
71
70
defaults :
@@ -107,10 +106,7 @@ jobs:
107
106
if : needs.needs-run.outputs.outcome == 'success'
108
107
# Disable all test_simple tests because they check for
109
108
# log output and it contains phony error messages.
110
- run : PYTHONPATH=../ddtrace/tests/debugging/exploration/ ddtrace-run pytest test --continue-on-collection-errors -v -k 'not test_simple'
111
- - name : Debugger exploration result
112
- if : needs.needs-run.outputs.outcome == 'success'
113
- run : cat debugger-expl.txt
109
+ run : ddtrace-run pytest test --continue-on-collection-errors -v -k 'not test_simple'
114
110
- name : Run Bytecode injection tests
115
111
if : needs.needs-run.outputs.outcome == 'success'
116
112
# Disable all test_simple tests because they check for
@@ -124,34 +120,16 @@ jobs:
124
120
strategy :
125
121
matrix :
126
122
include :
127
- # - suffix: DI profiler
128
- # expl_profiler: 1
129
- # expl_coverage: 0
130
- # profiling: 1
131
- # iast: 0
132
- # appsec: 0
133
- # - suffix: DI coverage
134
- # expl_profiler: 0
135
- # expl_coverage: 1
136
- # profiling: 1
137
- # iast: 0
138
- # appsec: 0
139
123
# Disabled while the bug is investigated: APPSEC-53222
140
124
# - suffix: IAST
141
- # expl_profiler: 0
142
- # expl_coverage: 0
143
125
# profiling: 0
144
126
# iast: 1
145
127
# appsec: 0
146
128
- suffix : APPSEC
147
- expl_profiler : 0
148
- expl_coverage : 0
149
129
profiling : 0
150
130
iast : 0
151
131
appsec : 1
152
132
- suffix : Tracer only
153
- expl_profiler : 0
154
- expl_coverage : 0
155
133
profiling : 0
156
134
iast : 0
157
135
appsec : 0
@@ -166,13 +144,6 @@ jobs:
166
144
DD_APPSEC_AUTOMATED_USER_EVENTS_TRACKING : disabled # To avoid a couple failures due to the extra query
167
145
DD_APPSEC_AUTOMATED_USER_EVENTS_TRACKING_ENABLED : false # To avoid a couple failures due to the extra query
168
146
DD_TESTING_RAISE : true
169
- DD_DEBUGGER_EXPL_ENCODE : 0 # Disabled to speed up
170
- DD_DEBUGGER_EXPL_PROFILER_ENABLED : ${{ matrix.expl_profiler }}
171
- DD_DEBUGGER_EXPL_PROFILER_DELETE_FUNCTION_PROBES : 1 # Delete to speed up
172
- DD_DEBUGGER_EXPL_COVERAGE_ENABLED : ${{ matrix.expl_coverage }}
173
- DD_DEBUGGER_EXPL_COVERAGE_DELETE_LINE_PROBES : 1 # Delete to speed up
174
- DD_DEBUGGER_EXPL_CONSERVATIVE : 1
175
- DD_DEBUGGER_EXPL_OUTPUT_FILE : debugger-expl.txt
176
147
DD_BYTECODE_INJECTION_OUTPUT_FILE : bytecode-injection.txt
177
148
CMAKE_BUILD_PARALLEL_LEVEL : 12
178
149
defaults :
@@ -237,11 +208,7 @@ jobs:
237
208
- name : Run tests
238
209
if : needs.needs-run.outputs.outcome == 'success'
239
210
# django.tests.requests module interferes with requests library patching in the tracer -> disable requests patch
240
- run : PYTHONPATH=../ddtrace/tests/debugging/exploration/:. DD_PATCH_MODULES=unittest:no DD_TRACE_REQUESTS_ENABLED=0 ddtrace-run tests/runtests.py --parallel 1
241
-
242
- - name : Debugger exploration results
243
- if : needs.needs-run.outputs.outcome == 'success'
244
- run : cat debugger-expl.txt
211
+ run : PYTHONPATH=. DD_PATCH_MODULES=unittest:no DD_TRACE_REQUESTS_ENABLED=0 ddtrace-run tests/runtests.py --parallel 1
245
212
246
213
- name : Run Bytecode injection tests
247
214
if : needs.needs-run.outputs.outcome == 'success'
@@ -279,8 +246,7 @@ jobs:
279
246
DD_PROFILING_ENABLED : ${{ matrix.profiling }}
280
247
DD_IAST_ENABLED : ${{ matrix.iast }}
281
248
DD_APPSEC_ENABLED : ${{ matrix.appsec }}
282
- PYTHONPATH : ../ddtrace/tests/debugging/exploration/:.
283
- DD_DEBUGGER_EXPL_OUTPUT_FILE : debugger-expl.txt
249
+ PYTHONPATH : .
284
250
CMAKE_BUILD_PARALLEL_LEVEL : 12
285
251
defaults :
286
252
run :
@@ -318,9 +284,6 @@ jobs:
318
284
- name : Run tests
319
285
if : needs.needs-run.outputs.outcome == 'success'
320
286
run : ddtrace-run pytest graphene
321
- - name : Debugger exploration results
322
- if : needs.needs-run.outputs.outcome == 'success'
323
- run : cat debugger-expl.txt
324
287
325
288
fastapi-testsuite-0_92 :
326
289
strategy :
@@ -351,7 +314,6 @@ jobs:
351
314
DD_IAST_ENABLED : ${{ matrix.iast }}
352
315
DD_APPSEC_ENABLED : ${{ matrix.appsec }}
353
316
CMAKE_BUILD_PARALLEL_LEVEL : 12
354
- DD_DEBUGGER_EXPL_OUTPUT_FILE : debugger-expl.txt
355
317
DD_BYTECODE_INJECTION_OUTPUT_FILE : bytecode-injection.txt
356
318
defaults :
357
319
run :
@@ -388,10 +350,7 @@ jobs:
388
350
- name : Test
389
351
if : needs.needs-run.outputs.outcome == 'success'
390
352
# https://github.com/tiangolo/fastapi/pull/10876
391
- run : PYTHONPATH=../ddtrace/tests/debugging/exploration/ ddtrace-run pytest -p no:warnings tests -k 'not test_warn_duplicate_operation_id'
392
- - name : Debugger exploration results
393
- if : needs.needs-run.outputs.outcome == 'success'
394
- run : cat debugger-expl.txt
353
+ run : ddtrace-run pytest -p no:warnings tests -k 'not test_warn_duplicate_operation_id'
395
354
- name : Bytecode injection Test
396
355
if : needs.needs-run.outputs.outcome == 'success'
397
356
# https://github.com/tiangolo/fastapi/pull/10876
@@ -429,7 +388,6 @@ jobs:
429
388
DD_PROFILING_ENABLED : ${{ matrix.profiling }}
430
389
DD_IAST_ENABLED : ${{ matrix.iast }}
431
390
DD_APPSEC_ENABLED : ${{ matrix.appsec }}
432
- PYTHONPATH : ../ddtrace/tests/debugging/exploration/
433
391
CMAKE_BUILD_PARALLEL_LEVEL : 12
434
392
defaults :
435
393
run :
@@ -519,8 +477,6 @@ jobs:
519
477
env :
520
478
# Disabled distributed tracing since there are a lot of tests that assert on headers
521
479
DD_HTTPX_DISTRIBUTED_TRACING : " false"
522
- # Debugger exploration testing does not work in CI
523
- # PYTHONPATH: ../ddtrace/tests/debugging/exploration/
524
480
DD_IAST_ENABLED : ${{ matrix.iast }}
525
481
DD_APPSEC_ENABLED : ${{ matrix.appsec }}
526
482
# test_pool_timeout raises RuntimeError: The connection pool was closed while 1 HTTP requests/responses were still in-flight
@@ -555,7 +511,6 @@ jobs:
555
511
DD_PROFILING_ENABLED : ${{ matrix.profiling }}
556
512
DD_IAST_ENABLED : ${{ matrix.iast }}
557
513
DD_APPSEC_ENABLED : ${{ matrix.appsec }}
558
- PYTHONPATH : ../ddtrace/tests/debugging/exploration/
559
514
CMAKE_BUILD_PARALLEL_LEVEL : 12
560
515
defaults :
561
516
run :
@@ -622,8 +577,6 @@ jobs:
622
577
DD_PROFILING_ENABLED : ${{ matrix.profiling }}
623
578
DD_IAST_ENABLED : ${{ matrix.iast }}
624
579
DD_APPSEC_ENABLED : ${{ matrix.appsec }}
625
- PYTHONPATH : ../ddtrace/tests/debugging/exploration/
626
- DD_DEBUGGER_EXPL_OUTPUT_FILE : debugger-expl.txt
627
580
CMAKE_BUILD_PARALLEL_LEVEL : 12
628
581
defaults :
629
582
run :
@@ -658,9 +611,6 @@ jobs:
658
611
- name : Run tests
659
612
if : needs.needs-run.outputs.outcome == 'success'
660
613
run : pytest -W ignore --ddtrace-patch-all tests -k 'not test_request_headers and not test_subdomain_route and not test_websocket_headers and not test_staticfiles_with_invalid_dir_permissions_returns_401 and not test_contextvars[asyncio-CustomMiddlewareUsingBaseHTTPMiddleware]'
661
- - name : Debugger exploration results
662
- if : needs.needs-run.outputs.outcome == 'success'
663
- run : cat debugger-expl.txt
664
614
665
615
requests-testsuite-2_26_0 :
666
616
strategy :
@@ -691,7 +641,6 @@ jobs:
691
641
DD_IAST_ENABLED : ${{ matrix.iast }}
692
642
DD_APPSEC_ENABLED : ${{ matrix.appsec }}
693
643
CMAKE_BUILD_PARALLEL_LEVEL : 12
694
- DD_DEBUGGER_EXPL_OUTPUT_FILE : debugger-expl.txt
695
644
defaults :
696
645
run :
697
646
working-directory : requests
@@ -726,10 +675,7 @@ jobs:
726
675
run : pip install --upgrade pytest==5.4.3
727
676
- name : Run tests
728
677
if : needs.needs-run.outputs.outcome == 'success'
729
- run : PYTHONPATH=../ddtrace/tests/debugging/exploration/ ddtrace-run pytest -p no:warnings tests
730
- - name : Debugger exploration results
731
- if : needs.needs-run.outputs.outcome == 'success'
732
- run : cat debugger-expl.txt
678
+ run : ddtrace-run pytest -p no:warnings tests
733
679
734
680
asyncpg-testsuite :
735
681
# https://github.com/MagicStack/asyncpg/blob/v0.25.0/.github/workflows/tests.yml#L125
@@ -816,7 +762,6 @@ jobs:
816
762
DD_TESTING_RAISE : true
817
763
DD_IAST_ENABLED : ${{ matrix.iast }}
818
764
DD_APPSEC_ENABLED : ${{ matrix.appsec }}
819
- # PYTHONPATH: ../ddtrace/tests/debugging/exploration/
820
765
CMAKE_BUILD_PARALLEL_LEVEL : 12
821
766
defaults :
822
767
run :
@@ -874,8 +819,6 @@ jobs:
874
819
DD_PROFILING_ENABLED : ${{ matrix.profiling }}
875
820
DD_IAST_ENABLED : ${{ matrix.iast }}
876
821
DD_APPSEC_ENABLED : ${{ matrix.appsec }}
877
- PYTHONPATH : ../ddtrace/tests/debugging/exploration/
878
- DD_DEBUGGER_EXPL_OUTPUT_FILE : debugger-expl.txt
879
822
CMAKE_BUILD_PARALLEL_LEVEL : 12
880
823
defaults :
881
824
run :
@@ -924,6 +867,3 @@ jobs:
924
867
- name : Run deadlock tests
925
868
if : needs.needs-run.outputs.outcome == 'success'
926
869
run : ddtrace-run ./tests/gh-deadlocks.sh python39
927
- - name : Debugger exploration results
928
- if : needs.needs-run.outputs.outcome == 'success'
929
- run : cat debugger-expl.txt
0 commit comments