Skip to content

Commit 9fe65ea

Browse files
authored
Merge branch 'main' into codex/rfc-bazel-topt-files-go
2 parents ddd4e03 + 5e83e21 commit 9fe65ea

124 files changed

Lines changed: 8234 additions & 782 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/system-tests.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,27 @@ jobs:
149149
name: Test (${{ matrix.weblog-variant }}, ${{ matrix.scenario }})
150150
steps:
151151
- name: Restore repo cache
152+
id: restore-repo-cache
152153
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
153154
with:
154155
path: .git
155156
key: gitdb-system-tests-${{ needs.warm-repo-cache.outputs.sha }}
156157

157-
- name: Checkout system tests
158+
- name: Checkout system tests (using cache)
159+
if: steps.restore-repo-cache.outcome == 'success' && steps.restore-repo-cache.outputs.cache-hit == 'true'
158160
shell: bash
159161
run: |
160162
git config safe.directory "$GITHUB_WORKSPACE"
161163
git checkout -f ${{ needs.warm-repo-cache.outputs.sha }}
164+
165+
# Fall back in case of a cache miss, which can occur when retrying old runs.
166+
- name: Checkout system tests (cache miss)
167+
if: steps.restore-repo-cache.outcome == 'failure' || steps.restore-repo-cache.outputs.cache-hit != 'true'
168+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
169+
with:
170+
persist-credentials: false
171+
repository: 'DataDog/system-tests'
172+
ref: ${{ inputs.ref }}
162173

163174
- name: Checkout dd-trace-go
164175
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -189,7 +200,9 @@ jobs:
189200
run: ./build.sh -i agent
190201

191202
- name: Run
192-
run: env ${{ matrix.env }} ./run.sh ${{ matrix.scenario }}
203+
shell: bash
204+
run: |
205+
env ${{ matrix.env }} ./run.sh ${{ matrix.scenario }}
193206
194207
- name: Upload test results to Test Optimization
195208
if: ${{ always() }}
@@ -337,20 +350,15 @@ jobs:
337350
name: logs_${{ matrix.weblog_variant }}_${{ matrix.scenario }}
338351
path: artifact.tar.gz
339352

340-
# Temporarily skipped until system tests enable dd-sts for test optimization
341353
tracer-release:
342-
if: false
343-
needs: warm-repo-cache
344-
uses: DataDog/system-tests/.github/workflows/system-tests.yml@main
345-
secrets:
346-
DD_API_KEY: "invalid_key_but_this_is_fine"
347-
TEST_OPTIMIZATION_API_KEY: "invalid_key_but_this_is_fine"
354+
if: github.event_name == 'schedule'
355+
uses: DataDog/system-tests/.github/workflows/system-tests.yml@1e5d6b7096279ca43ce4826fda3cc805635b63c1
348356
permissions:
349357
contents: read
350-
packages: write
358+
id-token: write
351359
with:
352360
library: golang
353-
ref: main
361+
ref: 1e5d6b7096279ca43ce4826fda3cc805635b63c1
354362
scenarios_groups: tracer-release
355363
skip_empty_scenarios: true
356364
_system_tests_dev_mode: true

.github/workflows/test-apps-schedule.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
if: github.event.schedule == '0 0 * * *'
1515
uses: ./.github/workflows/test-apps.yml
1616
secrets: inherit
17+
permissions:
18+
id-token: write
19+
contents: read
1720
with:
1821
"arg: scenario_duration": "10m"
1922
"arg: tags": "trigger:nightly"
@@ -22,6 +25,9 @@ jobs:
2225
if: github.event.schedule == '0 0 * * 2'
2326
uses: ./.github/workflows/test-apps.yml
2427
secrets: inherit
28+
permissions:
29+
id-token: write
30+
contents: read
2531
with:
2632
"arg: scenario_duration": "1h"
2733
"arg: tags": "trigger:weekly"

.github/workflows/test-apps.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
id: dd-sts
115115
uses: DataDog/dd-sts-action@2e8187910199bd93129520183c093e19aa585c75
116116
with:
117-
policy: dd-trace-go
117+
policy: dd-trace-go-staging
118118
- name: Start Agent
119119
uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a # v1.3.1
120120
with:
@@ -178,7 +178,7 @@ jobs:
178178
id: dd-sts
179179
uses: DataDog/dd-sts-action@2e8187910199bd93129520183c093e19aa585c75
180180
with:
181-
policy: dd-trace-go
181+
policy: dd-trace-go-staging
182182
- name: Start Agent
183183
uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a # v1.3.1
184184
with:
@@ -242,7 +242,7 @@ jobs:
242242
id: dd-sts
243243
uses: DataDog/dd-sts-action@2e8187910199bd93129520183c093e19aa585c75
244244
with:
245-
policy: dd-trace-go
245+
policy: dd-trace-go-staging
246246
- name: Start Agent
247247
uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a # v1.3.1
248248
with:
@@ -306,7 +306,7 @@ jobs:
306306
id: dd-sts
307307
uses: DataDog/dd-sts-action@2e8187910199bd93129520183c093e19aa585c75
308308
with:
309-
policy: dd-trace-go
309+
policy: dd-trace-go-staging
310310
- name: Start Agent
311311
uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a # v1.3.1
312312
with:
@@ -370,7 +370,7 @@ jobs:
370370
id: dd-sts
371371
uses: DataDog/dd-sts-action@2e8187910199bd93129520183c093e19aa585c75
372372
with:
373-
policy: dd-trace-go
373+
policy: dd-trace-go-staging
374374
- name: Start Agent
375375
uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a # v1.3.1
376376
with:

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ variables:
1111
# This base image is created here: https://gitlab.ddbuild.io/DataDog/apm-reliability/benchmarking-platform/-/jobs/1422209418
1212
BASE_CI_IMAGE: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/benchmarking-platform:dd-trace-go-96166511
1313
INDEX_FILE: index.txt
14-
BENCHMARK_TARGETS: "BenchmarkStartRequestSpan|BenchmarkHttpServeTrace|BenchmarkTracerAddSpans|BenchmarkStartSpan|BenchmarkSingleSpanRetention|BenchmarkOTelApiWithCustomTags|BenchmarkInjectW3C|BenchmarkExtractW3C|BenchmarkPartialFlushing|BenchmarkConfig|BenchmarkStartSpanConfig|BenchmarkGraphQL|BenchmarkSampleWAFContext|BenchmarkCaptureStackTrace|BenchmarkSetTagString|BenchmarkSetTagStringPtr|BenchmarkSetTagMetric|BenchmarkSetTagStringer|BenchmarkSerializeSpanLinksInMeta|BenchmarkLogs|BenchmarkParallelLogs|BenchmarkMetrics|BenchmarkParallelMetrics|BenchmarkPayloadVersions"
14+
BENCHMARK_TARGETS: "BenchmarkStartRequestSpan|BenchmarkHttpServeTrace|BenchmarkTracerAddSpans|BenchmarkStartSpan|BenchmarkSingleSpanRetention|BenchmarkOTelApiWithCustomTags|BenchmarkInjectW3C|BenchmarkExtractW3C|BenchmarkPartialFlushing|BenchmarkConfig|BenchmarkStartSpanConfig|BenchmarkGraphQL|BenchmarkSampleWAFContext|BenchmarkCaptureStackTrace|BenchmarkSetTagString|BenchmarkSetTagStringPtr|BenchmarkSetTagMetric|BenchmarkSetTagStringer|BenchmarkSerializeSpanLinksInMeta|BenchmarkLogs|BenchmarkParallelLogs|BenchmarkMetrics|BenchmarkParallelMetrics|BenchmarkPayloadVersions|BenchmarkOTLPTraceWriterAdd|BenchmarkOTLPTraceWriterFlush|BenchmarkOTLPProtoMarshal|BenchmarkOTLPProtoSize|BenchmarkOTLPTraceWriterConcurrent"
1515

1616
workflow:
1717
auto_cancel:

.gitlab/bp-runner.fail-on-breach.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Generated: 2026-03-30
33
#
44
# Generation Strategy: tight
5-
# Formula: CI_bound / (1 ± T) (T = 5.0%)
5+
# Formula: CI_bound / (1 ± T) (T = 15.0%)
66
#
77
# SLO Checking:
88
# - BREACH: 90% CI boundary crosses threshold
@@ -20,26 +20,26 @@ experiments:
2020
# Go oldstable
2121
- name: normal_operation_cgo-cpu-bound/go-oldstable-profile-trace-asm
2222
thresholds:
23-
- agg_http_req_duration_p99 < 1.194 ms
23+
- agg_http_req_duration_p99 < 1.5 ms
2424
- name: high_load_cgo-cpu-bound/go-oldstable-profile-trace-asm
2525
thresholds:
26-
- throughput > 65.587 op/s
26+
- throughput > 60 op/s
2727
- name: normal_operation_cgo-cpu-bound/go-oldstable-only-trace
2828
thresholds:
29-
- agg_http_req_duration_p99 < 125.0 ms
29+
- agg_http_req_duration_p99 < 1.5 ms
3030
- name: high_load_cgo-cpu-bound/go-oldstable-only-trace
3131
thresholds:
32-
- throughput > 65.753 op/s
32+
- throughput > 60 op/s
3333
# Go stable
3434
- name: normal_operation_cgo-cpu-bound/go-stable-profile-trace-asm
3535
thresholds:
36-
- agg_http_req_duration_p99 < 1.194 ms
36+
- agg_http_req_duration_p99 < 1.5 ms
3737
- name: high_load_cgo-cpu-bound/go-stable-profile-trace-asm
3838
thresholds:
39-
- throughput > 65.775 op/s
39+
- throughput > 60 op/s
4040
- name: normal_operation_cgo-cpu-bound/go-stable-only-trace
4141
thresholds:
42-
- agg_http_req_duration_p99 < 125.0 ms
42+
- agg_http_req_duration_p99 < 1.5 ms
4343
- name: high_load_cgo-cpu-bound/go-stable-only-trace
4444
thresholds:
45-
- throughput > 65.743 op/s
45+
- throughput > 60 op/s

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
/contrib/aws/datadog-lambda-go @DataDog/apm-serverless @DataDog/serverless-aws
8484

8585
# Feature Flagging Experiments
86-
/openfeature @DataDog/feature-flagging-and-experimentation-sdk @DataDog/asm-go
86+
/openfeature @DataDog/feature-flagging-and-experimentation-sdk
8787

8888
# Database Monitoring
8989
ddtrace/tracer/sqlcomment* @DataDog/database-monitoring @DataDog/apm-go @DataDog/apm-idm-go

contrib/azure/apim-callout/deploy/azure/azuredeploy.json

Lines changed: 1490 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)