Build images used for system tests.
./build.sh <library_name> [--images <image_names>] [--weblog-variant <variant_name>]<library_name>: library to test. See LIBRARIES section.-i: Comma separated list of images you need to build. See Image names section for possible values. Default: all of them--images: Same as-i-w: Name of a weblog variation--weblog-variant: same as-w
weblog: Web app that ships the library.agent: Host for datadog agent.runner: Test runner.
cdotnetgolangjavanodejsphppythonrubyrust
cpp is not available for build.sh because only parametric tests are runnable for dd-trace-cpp.
- For
c:perl-mojolicious(default) - For
dotnet:poc(default),uds - For
golang:net-http(default),gin,echo,chi,net-http-orchestrion,fiber-v2-orchestrion- Specific to the
GRAPHQL_APPSECscenario:gqlgen,graph-gophers,graphql-go
- Specific to the
- For
java:spring-boot(default),akka-http,jersey-grizzly2,play,ratpack,resteasy-netty3,spring-boot-3-native,spring-boot-jetty,spring-boot-openliberty,spring-boot-payara,spring-boot-undertow,spring-boot-wildfly,uds-spring-boot,vertx3,vertx4 - For
nodejs:express4(default),express4-typescript,express5,nextjs,fastify - For
php:apache-mod-8.0(default),apache-mod-8.1,apache-mod-8.2,apache-mod-7.4,apache-mod-7.3,apache-mod-7.2,apache-mod-7.1,apache-mod-7.0,apache-mod-8.2-zts,apache-mod-8.1-zts,apache-mod-8.0-zts,apache-mod-7.4-zts,apache-mod-7.3-zts,apache-mod-7.2-zts,apache-mod-7.1-zts,apache-mod-7.0-zts,php-fpm-8.6,php-fpm-8.5,php-fpm-8.2,php-fpm-8.1,php-fpm-8.0,php-fpm-7.4,php-fpm-7.3,php-fpm-7.2,php-fpm-7.1,php-fpm-7.0,laravel11x,symfony7x - For
python:flask-poc(default),fastapi,uwsgi-poc,django-poc,python3.12,aiohttp - For
ruby:rails70(default),rack,sinatra21, and lot of other sinatra/rails versions - For
rust:axum(default)
The fiber-v2-orchestrion variant uses Fiber v2 with build-time instrumentation:
./build.sh golang -w fiber-v2-orchestrionIt provides the HTTP, tracing, AppSec SDK, and shared integration endpoints used by the Gin and Echo weblogs. Orchestrion adds the Fiber middleware and starts the tracer, and the profiler when a scenario enables it; the application does not install tracing middleware itself. The tracer's Fiber integration does not yet support HTTP AppSec protection. The Go manifest disables only the tests that need it. Tests of the AppSec SDK, telemetry, remote-configuration capabilities, and gRPC remain enabled.
System-tests normally finds the spans of a request through their user-agent
tag, which the tracer sets directly or through DD_TRACE_HEADER_TAGS. The
tracer's Fiber integration does neither. The weblog therefore sets a test-only
system_tests.request.user_agent span tag, which the test framework uses only
when no standard user-agent tag is present. It does not supply missing tracer
HTTP tags.
Build the native C tracer workload with:
./build.sh c -w perl-mojoliciousThe production build uses the published apm-library-c-package:latest and
apm-inject-package:latest images from install.datadoghq.com. Run
./utils/scripts/load-binary.sh c to validate and record both production image
references in binaries/. For a development build, set
LIBRARY_TARGET_BRANCH, AUTO_INJECT_TARGET_BRANCH, or both before running the
loader. Each branch override is resolved to an immutable commit-SHA tag from
installtesting.datad0g.com (with a zero in datad0g); components without a
branch override continue to use the production latest image.
The perl-mojolicious workload supports DEFAULT, SAMPLING, and IPV6. It
uses Perl and Mojolicious without a Datadog Perl tracer; all tracing comes from
dd-trace-c's native socket instrumentation. Auto-inject loads that native library when
DD_INJECT_NATIVE=always and DD_TRACE_HOOK_MODULES=socket are set; the
library is not added directly to LD_PRELOAD. The workload also enables
128-bit trace ID generation. Unsupported product capabilities and workload-only
gaps are recorded in manifests/c.yml.
By default, all images will uses production version of components (library and agent). You can use a specific
version of a component by adding it inside binaries/ (documentation). The main idea behind this behavior is to test a specific
version against production version of other components.
You can define your setup in environment variable in a .env file. Here is the mapping:
<library_name>=>TEST_LIBRARY-i/--images=>BUILD_IMAGES-w/--weblog-variant=>WEBLOG_VARIANT
Some images are hosted at Github. Those images require authentication.
If you find an error messages like:
Error response from daemon: Head "https://ghcr.io/v2/datadog/system-tests-apps-ruby/rails70/manifests/latest": unauthorized
You have to make to sure to authenticate before pulling the images.
- Create a Github token. The token has to have package read and write perimssions. You can create the token using this link: https://github.com/settings/tokens/new?scopes=write:packages
- Make sure to enable SSO for the new token.
- Authenticate docker:
3.1
docker login ghcr.io3.2 paste your Github username 3.2 paste the token string from step 1.