Skip to content

test(appsec): require Go block failure tag - #7712

Draft
RomainMuller wants to merge 1 commit into
mainfrom
romain.marcadier/appsec-go-block-failure-tag
Draft

test(appsec): require Go block failure tag#7712
RomainMuller wants to merge 1 commit into
mainfrom
romain.marcadier/appsec-go-block-failure-tag

Conversation

@RomainMuller

Copy link
Copy Markdown
Contributor

Motivation

Validate the Go tracer's block_failure tag on appsec.waf.requests
telemetry metrics. This corresponds to the tracer work in
DataDog/dd-trace-go#5377.

Changes

Require the existing waf.requests mandatory telemetry tags, including
block_failure, for Go tracer versions from v2.12.0-dev.1.

Local validation

Built the Go net-http weblog from the local dd-trace-go checkout for
DataDog/dd-trace-go#5377 and ran:

TEST_LIBRARY=golang ./run.sh APPSEC_WAF_TELEMETRY \
  tests/appsec/waf/test_telemetry.py::Test_TelemetryMetrics::test_metric_waf_requests

The test passed. The checkout reports v2.12.0-dev, so the local run used
that equivalent threshold before restoring the committed
v2.12.0-dev.1 activation version.

Reviewer checklist

  • Only files under tests/ are modified.
  • No Docker base image is modified.
  • No scenario is added, removed, or renamed.

Require the `block_failure` telemetry tag for Go tracer versions from
`v2.12.0-dev.1`. This validates that `waf.requests` reports normal
requests with `block_failure:false`.
@github-actions

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

tests/appsec/waf/test_telemetry.py                                      @DataDog/asm-libraries

@datadog-prod-us1-5

datadog-prod-us1-5 Bot commented Sep 14, 2026

Copy link
Copy Markdown

Pipelines  Tests

⚠️ Warnings

Your PR has failed checks. Please review the issues below and take necessary action before merging.

🚦 3 Pipeline jobs failed

Testing the test | System Tests (php, dev) / Build end-to-end (apache-mod-7.4)

View more details · View in GitHub Actions

Testing the test | System Tests (php, prod) / Build end-to-end (apache-mod-7.3-zts)

View more details · View in GitHub Actions

Testing the test | all-jobs-are-green

View more details · View in GitHub Actions

ℹ️ Info

No other issues found (see more)

🧪 All tests passed
❄️ No new flaky tests detected

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 1f6c042 | Docs | View more details | Give us feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant