forked from DataDog/dd-trace-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
1328 lines (1210 loc) · 31.9 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
version: 2.1
default_resource_class: &default_resource_class medium
cimg_base_image: &cimg_base_image cimg/base:stable
python310_image: &python310_image cimg/python:3.10
ddtrace_dev_image: &ddtrace_dev_image datadog/dd-trace-py:buster
redis_image: &redis_image redis:4.0-alpine
memcached_image: &memcached_image memcached:1.5-alpine
cassandra_image: &cassandra_image cassandra:3.11.7
consul_image: &consul_image consul:1.6.0
moto_image: &moto_image palazzem/moto:1.0.1
mysql_image: &mysql_image mysql:5.7
postgres_image: &postgres_image postgres:11-alpine
mongo_image: &mongo_image mongo:3.6
httpbin_image: &httpbin_image kennethreitz/httpbin@sha256:2c7abc4803080c22928265744410173b6fea3b898872c01c5fd0f0f9df4a59fb
vertica_image: &vertica_image sumitchawla/vertica:latest
rabbitmq_image: &rabbitmq_image rabbitmq:3.7-alpine
orbs:
win: circleci/windows@5.0
machine_executor: &machine_executor
machine:
image: ubuntu-2004:current
environment:
- BOTO_CONFIG: /dev/null
# https://support.circleci.com/hc/en-us/articles/360045268074-Build-Fails-with-Too-long-with-no-output-exceeded-10m0s-context-deadline-exceeded-
- PYTHONUNBUFFERED: 1
steps:
- &pyenv-set-global
run:
name: Set global pyenv
command: |
pyenv global 3.9.4
contrib_job: &contrib_job
executor: ddtrace_dev
parallelism: 4
contrib_job_small: &contrib_job_small
executor: ddtrace_dev_small
parallelism: 1
commands:
save_coverage:
description: "Save coverage.py results to workspace"
steps:
- run: |
set -ex
mkdir coverage
if [ -f .coverage ];
then
cp .coverage ./coverage/$CIRCLE_BUILD_NUM-$CIRCLE_JOB-$CIRCLE_NODE_INDEX.coverage
fi
- persist_to_workspace:
root: coverage
paths:
- "*.coverage"
- store_artifacts:
path: coverage
setup_tox:
description: "Install tox"
steps:
- run: pip install -U "tox<4"
setup_riot:
description: "Install riot"
steps:
# Make sure we install and run riot on Python 3
- run: pip3 install riot
restore_tox_cache:
description: "Restore .tox directory from previous runs for faster installs"
steps:
- restore_cache:
# In the cache key:
# - .Environment.CIRCLE_JOB: We do separate tox environments by job name, so caching and restoring is
# much faster.
key: tox-cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "tox.ini" }}-{{ checksum "setup.py" }}
save_tox_cache:
description: "Save .tox directory into cache for faster installs next time"
steps:
- save_cache:
# In the cache key:
# - .Environment.CIRCLE_JOB: We do separate tox environments by job name, so caching and restoring is
# much faster.
key: tox-cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "tox.ini" }}-{{ checksum "setup.py" }}
paths:
- ".tox"
save_pip_cache:
description: "Save pip cache directory"
steps:
- save_cache:
# DEV: Cache misses can still occur as venvs are not necessarily always created on the same node index
key: pip-cache-{{ .Environment.CIRCLE_JOB }}-{{ .Environment.CIRCLE_NODE_INDEX }}-{{ checksum "riotfile.py" }}-{{ checksum "setup.py" }}
paths:
- ".cache/pip"
restore_pip_cache:
description: "Restore pip cache directory"
steps:
- restore_cache:
key: pip-cache-{{ .Environment.CIRCLE_JOB }}-{{ .Environment.CIRCLE_NODE_INDEX }}-{{ checksum "riotfile.py" }}-{{ checksum "setup.py" }}
start_docker_services:
description: "Start Docker services"
parameters:
env:
type: string
default: ""
services:
type: string
default: ""
steps:
# Retry pulls in case they fail
- run: for i in {1..3}; do docker-compose pull -q << parameters.services >> && break || sleep 3; done
- run: << parameters.env >> docker-compose up -d << parameters.services >>
- run:
command: docker-compose logs -f
background: true
run_test:
description: "Run tests matching a pattern"
parameters:
pattern:
type: string
default: ""
wait:
type: string
default: ""
snapshot:
type: boolean
default: false
docker_services:
type: string
default: ""
store_coverage:
type: boolean
default: true
steps:
- attach_workspace:
at: .
- checkout
- restore_pip_cache
- when:
condition:
<< parameters.snapshot >>
steps:
- setup_riot
- start_docker_services:
env: SNAPSHOT_CI=1
services: testagent << parameters.docker_services >>
- run:
environment:
DD_TRACE_AGENT_URL: http://localhost:9126
command: |
mv .riot .ddriot
riot list --hash-only '<<parameters.pattern>>' | shuf | circleci tests split | xargs -n 1 ./scripts/ddtest riot -v run --exitfirst --pass-env -s
- unless:
condition:
<< parameters.snapshot >>
steps:
- setup_riot
- when:
condition:
<< parameters.wait >>
steps:
- run:
name: "Waiting for << parameters.wait >>"
command: riot -v run 'wait' << parameters.wait >>
- run:
command: "riot list --hash-only '<<parameters.pattern>>' | shuf | circleci tests split | xargs -n 1 riot -v run --exitfirst --pass-env -s"
- save_pip_cache
- when:
condition:
<< parameters.store_coverage >>
steps:
- save_coverage
- store_test_results:
path: test-results
- store_artifacts:
path: test-results
run_tox_scenario_with_testagent:
description: Run scripts/run-tox-scenario with setup, caching persistence and the testagent
parameters:
pattern:
type: string
wait:
type: string
default: ""
steps:
- checkout
- restore_tox_cache
- when:
condition:
<< parameters.wait >>
steps:
- setup_riot
- run:
name: "Waiting for << parameters.wait >>"
command: riot -v run 'wait' << parameters.wait >>
- start_docker_services:
env: SNAPSHOT_CI=1
services: memcached redis testagent
- run:
name: "Run scripts/run-tox-scenario"
environment:
DD_TRACE_AGENT_URL: http://localhost:9126
command: ./scripts/ddtest scripts/run-tox-scenario '<< parameters.pattern >>'
- save_tox_cache
run_tox_scenario:
description: "Run scripts/run-tox-scenario with setup, caching and persistence"
parameters:
pattern:
type: string
wait:
type: string
default: ""
store_coverage:
type: boolean
default: true
steps:
- checkout
- setup_tox
- restore_tox_cache
- when:
condition:
<< parameters.wait >>
steps:
- setup_riot
- run:
name: "Waiting for << parameters.wait >>"
command: riot -v run 'wait' << parameters.wait >>
- run:
name: "Run scripts/run-tox-scenario"
command: scripts/run-tox-scenario '<< parameters.pattern >>'
- save_tox_cache
- when:
condition:
<< parameters.store_coverage >>
steps:
- save_coverage
- store_test_results:
path: test-results
- store_artifacts:
path: test-results
executors:
cimg_base:
docker:
- image: *cimg_base_image
resource_class: medium
python310:
docker:
- image: *python310_image
resource_class: large
ddtrace_dev:
docker:
- image: *ddtrace_dev_image
resource_class: *default_resource_class
ddtrace_dev_small:
docker:
- image: *ddtrace_dev_image
resource_class: small
# Common configuration blocks as YAML anchors
# See: https://circleci.com/blog/circleci-hacks-reuse-yaml-in-your-circleci-config-with-yaml/
httpbin_local: &httpbin_local
image: *httpbin_image
name: httpbin.org
mysql_server: &mysql_server
image: *mysql_image
environment:
- MYSQL_ROOT_PASSWORD=admin
- MYSQL_PASSWORD=test
- MYSQL_USER=test
- MYSQL_DATABASE=test
postgres_server: &postgres_server
image: *postgres_image
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
jobs:
pre_check:
executor: python310
steps:
- checkout
- setup_riot
- run:
name: "Formatting check"
command: riot run -s fmt && git diff --exit-code
- run:
name: "Flake8 check"
command: riot run -s flake8
- run:
name: "Slots check"
command: riot run -s slotscheck
- run:
name: "Mypy check"
command: riot run -s mypy
- run:
name: "Codespell check"
command: riot run -s codespell
- run:
name: "Run riotfile.py tests"
command: riot run -s riot-helpers
- run:
name: "Test agent snapshot check"
command: riot run -s snapshot-fmt && git diff --exit-code
- run:
name: "Run scripts/*.py tests"
command: riot run -s scripts
ccheck:
executor: cimg_base
steps:
- checkout
- run: sudo apt-get update
- run: sudo apt-get install --yes clang-format gcc-10 g++-10 python3 python3-setuptools python3-pip cppcheck
- run: scripts/cformat.sh
- run: scripts/cppcheck.sh
- run: DD_COMPILE_DEBUG=1 DD_TESTING_RAISE=1 CC=gcc-10 CXX=g++-10 pip -vvv install .
coverage_report:
executor: python310
steps:
- checkout
- attach_workspace:
at: .
- run: pip install coverage codecov diff_cover
- run: ls -hal *.coverage
# Combine all job coverage reports into one
- run: coverage combine *.coverage
# Upload coverage report to Codecov
# DEV: Do not use the bash uploader, it cannot be trusted
- run: codecov
# Generate and save xml report
# DEV: "--ignore-errors" to skip over files that are missing
- run: coverage xml --ignore-errors
- store_artifacts:
path: coverage.xml
# Generate and save JSON report
# DEV: "--ignore-errors" to skip over files that are missing
- run: coverage json --ignore-errors
- store_artifacts:
path: coverage.json
# Print ddtrace/ report to stdout
# DEV: "--ignore-errors" to skip over files that are missing
- run: coverage report --ignore-errors --omit=tests/
# Print tests/ report to stdout
# DEV: "--ignore-errors" to skip over files that are missing
- run: coverage report --ignore-errors --omit=ddtrace/
# Print diff-cover report to stdout (compares against origin/1.x)
- run: diff-cover --compare-branch $(git rev-parse --abbrev-ref origin/HEAD) coverage.xml
build_base_venvs:
resource_class: large
docker:
- image: *ddtrace_dev_image
parallelism: 8
steps:
- checkout
- setup_riot
- run:
name: "Generate base virtual environments."
# DEV: riot list -i tracer lists all supported Python versions
command: "riot list -i tracer | circleci tests split | xargs -I PY riot -v generate --python=PY"
- persist_to_workspace:
root: .
paths:
- "."
appsec:
<<: *machine_executor
steps:
- run_test:
pattern: 'appsec'
snapshot: true
internal:
<<: *contrib_job
steps:
- run_test:
pattern: "internal"
tracer:
<<: *contrib_job
parallelism: 8
steps:
- run_test:
pattern: "tracer"
- run_tox_scenario:
# Riot venvs break with Py 3.11 importlib, specifically with hypothesis (test_http.py).
# We skip the test_http.py tests in riot and run the test_http.py tests through tox.
pattern: '^py.\+-tracer_test_http'
telemetry:
<<: *machine_executor
steps:
- run_test:
pattern: "telemetry"
snapshot: true
store_coverage: false
debugger:
<<: *contrib_job
parallelism: 7
steps:
- run_test:
pattern: "debugger"
opentracer:
<<: *contrib_job
steps:
- run_test:
pattern: 'opentracer'
# Building gevent (for which we never want wheels because they crash)
# on Python 2.7 requires Microsoft Visual C++ 9.0 which is not installed. :(
# which is not installed.
# profile-windows-27:
# executor:
# name: win/default
# shell: bash.exe
# # This is the number of tox envs for this job
# parallelism: 4
# steps:
# - run: choco install python2
# - run_tox_scenario:
# store_coverage: false
# pattern: '^py27-profile'
profile-windows-35:
executor:
name: win/default
shell: bash.exe
# This is the number of tox envs for this job
parallelism: 4
steps:
- run: choco install -y python --version=3.5.4 --side-by-side
- run_tox_scenario:
store_coverage: false
pattern: '^py35-profile'
profile-windows-36:
executor:
name: win/default
shell: bash.exe
# This is the number of tox envs for this job
parallelism: 4
steps:
- run: choco install -y python --version=3.6.8 --side-by-side
- run_tox_scenario:
store_coverage: false
pattern: '^py36-profile'
# For whatever reason, choco does not install Python 3.7 correctly on Windows
# profile-windows-37:
# executor:
# name: win/default
# shell: bash.exe
# # This is the number of tox envs for this job
# parallelism: 5
# steps:
# - run: choco install python --version=3.7.9
# - run_tox_scenario:
# store_coverage: false
# pattern: '^py37-profile'
# This requires the machine to reboot :(
# profile-windows-38:
# executor:
# name: win/default
# shell: bash.exe
# # This is the number of tox envs for this job
# parallelism: 5
# steps:
# - run: choco install -y python --version=3.8.10 --side-by-side
# - run_tox_scenario:
# store_coverage: false
# pattern: '^py38-profile'
# This requires the machine to reboot :(
# profile-windows-39:
# executor:
# name: win/default
# shell: bash.exe
# # This is the number of tox envs for this job
# parallelism: 5
# steps:
# - run: choco install -y python --version=3.9.12 --side-by-side
# - run_tox_scenario:
# store_coverage: false
# pattern: '^py39-profile'
profile-windows-310:
executor:
name: win/default
shell: bash.exe
# This is the number of tox envs for this job
parallelism: 5
steps:
# circleci/windows@5.0 orb includes python 3.10.6
- run_tox_scenario:
store_coverage: false
pattern: '^py310-profile'
profile:
<<: *contrib_job
resource_class: large
parallelism: 15
steps:
- run_tox_scenario:
store_coverage: false
pattern: '^py.\+-profile'
integration_agent:
<<: *machine_executor
steps:
- attach_workspace:
at: .
- checkout
- start_docker_services:
services: ddagent
- run:
command: |
mv .riot .ddriot
./scripts/ddtest riot -v run --pass-env -s 'integration-latest'
integration_testagent:
<<: *machine_executor
steps:
- attach_workspace:
at: .
- checkout
- start_docker_services:
env: SNAPSHOT_CI=1
services: testagent
- run:
environment:
DD_TRACE_AGENT_URL: http://localhost:9126
command: |
mv .riot .ddriot
./scripts/ddtest riot -v run --pass-env -s 'integration-snapshot'
vendor:
<<: *contrib_job_small
docker:
- image: *ddtrace_dev_image
steps:
- run_test:
pattern: 'vendor'
boto:
<<: *machine_executor
parallelism: 4
steps:
- run_test:
pattern: '^boto' # run boto and botocore
snapshot: true
docker_services: "localstack"
ddtracerun:
<<: *contrib_job
docker:
- image: *ddtrace_dev_image
- image: *redis_image
steps:
- run_test:
store_coverage: false
pattern: 'ddtracerun'
test_logging:
<<: *contrib_job_small
steps:
- run_test:
pattern: 'test_logging'
stdlib:
<<: *contrib_job_small
steps:
- run_test:
pattern: 'asyncio$|sqlite3$|futures$|dbapi$'
asyncpg:
<<: *machine_executor
steps:
- run_test:
pattern: 'asyncpg'
snapshot: true
docker_services: 'postgres'
pylons:
<<: *contrib_job_small
steps:
- run_test:
pattern: 'pylons'
aiohttp:
<<: *machine_executor
parallelism: 6
steps:
- run_test:
pattern: 'aiohttp' # includes aiohttp_jinja2
snapshot: true
docker_services: 'httpbin_local'
asgi:
<<: *contrib_job_small
steps:
- run_test:
pattern: 'asgi$'
tornado:
<<: *contrib_job
steps:
- run_test:
pattern: 'tornado'
bottle:
<<: *contrib_job
steps:
- run_test:
pattern: 'bottle'
cassandra:
<<: *contrib_job
docker:
- image: *ddtrace_dev_image
environment:
CASS_DRIVER_NO_EXTENSIONS: 1
- image: *cassandra_image
environment:
- MAX_HEAP_SIZE=512M
- HEAP_NEWSIZE=256M
steps:
- run_test:
wait: cassandra
pattern: 'cassandra'
celery:
<<: *contrib_job
parallelism: 7
docker:
- image: *ddtrace_dev_image
- image: redis:4.0-alpine
- image: *rabbitmq_image
steps:
- run_test:
pattern: 'celery'
cherrypy:
<<: *machine_executor
parallelism: 6
steps:
- run_test:
pattern: 'cherrypy'
snapshot: true
consul:
<<: *contrib_job
docker:
- image: *ddtrace_dev_image
- image: *consul_image
steps:
- run_test:
pattern: 'consul'
dogpile_cache:
<<: *contrib_job
steps:
- run_test:
pattern: 'dogpile_cache'
elasticsearch:
<<: *machine_executor
parallelism: 4
steps:
- run_test:
pattern: 'elasticsearch'
snapshot: true
docker_services: 'elasticsearch'
falcon:
<<: *contrib_job
steps:
- run_test:
pattern: 'falcon'
django:
<<: *machine_executor
parallelism: 8
steps:
- run_test:
pattern: 'django$'
snapshot: true
docker_services: "memcached redis postgres"
django_hosts:
<<: *machine_executor
steps:
- run_test:
pattern: 'django_hosts$'
snapshot: true
djangorestframework:
<<: *machine_executor
parallelism: 6
steps:
- run_test:
pattern: 'djangorestframework'
snapshot: true
docker_services: "memcached redis"
fastapi:
<<: *machine_executor
steps:
- run_test:
pattern: "fastapi"
snapshot: true
flask:
<<: *machine_executor
parallelism: 8
steps:
- run_test:
# Run both flask and flask_cache test suites
# TODO: Re-enable coverage for Flask tests
store_coverage: false
snapshot: true
pattern: "flask"
docker_services: "memcached redis"
gevent:
<<: *contrib_job
parallelism: 8
steps:
- run_test:
pattern: 'gevent'
graphene:
<<: *machine_executor
steps:
- run_test:
pattern: "graphene"
snapshot: true
graphql:
<<: *machine_executor
steps:
- run_test:
pattern: "graphql"
snapshot: true
grpc:
<<: *machine_executor
parallelism: 8
steps:
- run_test:
pattern: "grpc"
snapshot: true
httplib:
<<: *machine_executor
steps:
- run_test:
pattern: "httplib"
snapshot: true
docker_services: 'httpbin_local'
httpx:
<<: *machine_executor
parallelism: 4
steps:
- run_test:
pattern: 'httpx'
snapshot: true
docker_services: 'httpbin_local'
mariadb:
<<: *machine_executor
steps:
- run_test:
pattern: 'mariadb$'
snapshot: true
docker_services: "mariadb"
molten:
<<: *contrib_job
steps:
- run_test:
pattern: 'molten'
mysqlconnector:
<<: *contrib_job
docker:
- image: *ddtrace_dev_image
- *mysql_server
steps:
- run_test:
wait: mysql
pattern: 'mysql'
mysqlpython:
<<: *contrib_job
docker:
- image: *ddtrace_dev_image
- *mysql_server
steps:
- run_test:
wait: mysql
pattern: 'mysqldb'
pymysql:
<<: *contrib_job
docker:
- image: *ddtrace_dev_image
- *mysql_server
steps:
- run_test:
wait: mysql
pattern: 'pymysql'
pylibmc:
<<: *contrib_job
docker:
- image: *ddtrace_dev_image
- image: *memcached_image
steps:
- run_test:
pattern: 'pylibmc'
pytest:
executor: ddtrace_dev
parallelism: 8
steps:
- run_test:
pattern: 'pytest$'
asynctest:
executor: ddtrace_dev
steps:
- run_test:
pattern: 'asynctest$'
pytestbdd:
executor: ddtrace_dev
steps:
- run_test:
pattern: 'pytest-bdd'
pymemcache:
<<: *contrib_job
docker:
- image: *ddtrace_dev_image
- image: *memcached_image
steps:
- run_test:
pattern: "pymemcache"
mongoengine:
<<: *machine_executor
parallelism: 4
steps:
- run_test:
pattern: 'mongoengine'
snapshot: true
docker_services: 'mongo'
pymongo:
<<: *contrib_job
docker:
- image: *ddtrace_dev_image
- image: *mongo_image
steps:
- run_test:
pattern: "pymongo"
pynamodb:
<<: *contrib_job
steps:
- run_test:
pattern: "pynamodb"
pyodbc:
<<: *contrib_job
docker:
- image: *ddtrace_dev_image
steps:
- run_test:
pattern: 'pyodbc'
pyramid:
<<: *machine_executor
steps:
- run_test:
pattern: 'pyramid'
snapshot: true
requests:
<<: *contrib_job
docker:
- image: *ddtrace_dev_image
- *httpbin_local
steps:
- run_test:
pattern: "requests"
sanic:
<<: *machine_executor
parallelism: 4
steps:
- run_test:
pattern: "sanic"
snapshot: true
snowflake:
<<: *machine_executor
parallelism: 4
steps:
- run_test:
pattern: "snowflake"
snapshot: true
starlette:
<<: *machine_executor
steps:
- run_test:
pattern: "starlette"
snapshot: true
sqlalchemy:
<<: *contrib_job
docker:
- image: *ddtrace_dev_image
- *postgres_server
- *mysql_server
steps:
- run_test:
wait: postgres mysql
pattern: "sqlalchemy"
psycopg:
<<: *machine_executor
parallelism: 4
steps:
- run_test:
pattern: "psycopg"
snapshot: true
docker_services: "postgres"
aiobotocore:
<<: *contrib_job
docker:
- image: *ddtrace_dev_image
- image: *moto_image
steps:
- run_test:
pattern: 'aiobotocore'
aiomysql:
<<: *machine_executor
steps:
- run_test:
docker_services: 'mysql'
wait: mysql
pattern: 'aiomysql'
snapshot: true
aiopg:
<<: *contrib_job
docker:
- image: *ddtrace_dev_image
- *postgres_server
steps:
- run_test:
wait: postgres
pattern: 'aiopg'
aioredis:
<<: *machine_executor
parallelism: 4
steps:
- run_test:
docker_services: 'redis'
pattern: 'aioredis$'
snapshot: true
aredis: