@@ -15,7 +15,7 @@ mongo_image: &mongo_image mongo:3.6
1515httpbin_image : &httpbin_image kennethreitz/httpbin@sha256:2c7abc4803080c22928265744410173b6fea3b898872c01c5fd0f0f9df4a59fb
1616vertica_image : &vertica_image sumitchawla/vertica:latest
1717rabbitmq_image : &rabbitmq_image rabbitmq:3.7-alpine
18- testagent_image : &testagent_image ghcr.io/datadog/dd-apm-test-agent/ddapm-test-agent:v1.10.1
18+ testagent_image : &testagent_image ghcr.io/datadog/dd-apm-test-agent/ddapm-test-agent:v1.11.0
1919
2020parameters :
2121 coverage :
@@ -128,6 +128,9 @@ commands:
128128 store_coverage :
129129 type : boolean
130130 default : true
131+ trace_agent_url :
132+ type : string
133+ default : " http://localhost:9126"
131134 steps :
132135 - attach_workspace :
133136 at : .
@@ -143,7 +146,7 @@ commands:
143146 services : testagent << parameters.docker_services >>
144147 - run :
145148 environment :
146- DD_TRACE_AGENT_URL : http://localhost:9126
149+ DD_TRACE_AGENT_URL : << parameters.trace_agent_url >>
147150 RIOT_RUN_RECOMPILE_REQS : " << pipeline.parameters.riot_run_latest >>"
148151 command : |
149152 # Sort the hashes to ensure a consistent ordering/division between each node
@@ -161,6 +164,14 @@ commands:
161164 - run :
162165 name : " Waiting for << parameters.wait >>"
163166 command : riot -v run 'wait' << parameters.wait >>
167+ - when :
168+ condition :
169+ << parameters.trace_agent_url >> != ""
170+ steps :
171+ - run :
172+ command : |
173+ echo 'export DD_TRACE_AGENT_URL=<< parameters.trace_agent_url >>' >> "$BASH_ENV"
174+ source "$BASH_ENV"
164175 - run :
165176 environment :
166177 RIOT_RUN_RECOMPILE_REQS : " << pipeline.parameters.riot_run_latest >>"
@@ -180,6 +191,10 @@ commands:
180191 path : test-results
181192 - store_artifacts :
182193 path : test-results
194+ - run :
195+ name : Get APM Test Agent Trace Check Results
196+ when : always
197+ command : bash ./scripts/get-test-agent-results.sh
183198
184199executors :
185200 cimg_base :
@@ -223,9 +238,13 @@ postgres_server: &postgres_server
223238testagent : &testagent
224239 image : *testagent_image
225240 environment :
226- - LOG_LEVEL=WARNING
241+ - LOG_LEVEL=DEBUG
227242 - SNAPSHOT_DIR=/snapshots
243+ - PORT=9126
228244 - SNAPSHOT_CI=1
245+ - DD_POOL_TRACE_CHECK_FAILURES=true
246+ - DD_DISABLE_ERROR_RESPONSES=true
247+ - ENABLED_CHECKS=trace_content_length,trace_stall,meta_tracer_version_header,trace_count_header,trace_peer_service,trace_dd_service
229248
230249jobs :
231250 pre_check :
@@ -364,12 +383,14 @@ jobs:
364383 steps :
365384 - run_test :
366385 pattern : " tracer"
386+ trace_agent_url : " "
367387
368388 ci_visibility :
369389 << : *contrib_job
370390 steps :
371391 - run_test :
372392 pattern : " ci_visibility"
393+ trace_agent_url : " "
373394
374395 sourcecode :
375396 << : *contrib_job
@@ -423,6 +444,7 @@ jobs:
423444 store_coverage : false
424445 # We don't want to run the profile-diff venvs
425446 pattern : ' profile$'
447+ trace_agent_url : " "
426448
427449 integration_agent :
428450 << : *machine_executor
@@ -449,6 +471,7 @@ jobs:
449471 snapshot : true
450472 store_coverage : false
451473 pattern : ' integration-snapshot'
474+ trace_agent_url : " "
452475
453476 vendor :
454477 << : *contrib_job_small
@@ -476,6 +499,7 @@ jobs:
476499 - run_test :
477500 store_coverage : false
478501 pattern : ' ddtracerun'
502+ trace_agent_url : " "
479503
480504 test_logging :
481505 << : *contrib_job
@@ -509,6 +533,7 @@ jobs:
509533 steps :
510534 - run_test :
511535 pattern : ' pylons'
536+ trace_agent_url : " http://localhost:8126"
512537
513538 aiohttp :
514539 << : *machine_executor
@@ -568,7 +593,15 @@ jobs:
568593 - image : *ddtrace_dev_image
569594 - image : redis:4.0-alpine
570595 - image : *rabbitmq_image
571- - *testagent
596+ - image : *testagent_image
597+ environment :
598+ - LOG_LEVEL=DEBUG
599+ - SNAPSHOT_DIR=/snapshots
600+ - PORT=9126
601+ - SNAPSHOT_CI=1
602+ - DD_POOL_TRACE_CHECK_FAILURES=true
603+ - DD_DISABLE_ERROR_RESPONSES=true
604+ - ENABLED_CHECKS=trace_stall,meta_tracer_version_header,trace_content_length,trace_peer_service,trace_dd_service # disable flaky content length check
572605 steps :
573606 - run_test :
574607 pattern : ' celery'
0 commit comments