Skip to content

Fingerprint Test Agent configuration and validate trace results - #13235

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 5 commits into
masterfrom
bdu/test-agent-fingerprint
Nov 5, 2026
Merged

gh-worker-dd-mergequeue-cf854d[bot] merged 5 commits into
masterfrom
bdu/test-agent-fingerprint

Conversation

@bric3

@bric3 bric3 commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

What Does This Do

Validate Test Agent trace results before successful tests can be cached, and bind cached results to the sidecar image and validation policy. Include tokenised smoke-test sessions in trace validation.

Motivation

Tests restored from cache do not contact the current Test Agent, so their results must reflect the same image and checks. The checker also missed tokenised sessions and could accept failed summary counters when failure pooling was disabled.

Additional Notes

Includes the validation-before-caching change from #12604.

CI_USE_TEST_AGENT=true enables post-checks for the Gradle invocation. Shared job variables configure both the sidecar and the task fingerprint. The checker lives in tooling/ because Gradle and GitLab both invoke it.

The checker rejects unavailable endpoints and malformed summaries. An empty summary explicitly reports that no trace checks ran; cached tests can produce this state. Regular Agent integration tests force fresh execution because this fingerprint covers the APM Test Agent.

A follow-up is to port the shell script to the Gradle Action.

Contributor Checklist

@bric3 bric3 added tag: ai generated Largely based on code generated by an AI or LLM comp: testing Testing type: bug fix Bug fix tag: no release notes Changes to exclude from release notes labels Nov 5, 2026 — with ChatGPT Codex Connector
@bric3

bric3 commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@bric3

bric3 commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

@DataDog review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T15:50:12.462742Z f37d9a0 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-05T15:51:56.375103Z f37d9a0 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: a4d1cb4bbf

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a4d1cb4bbf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .gitlab-ci.yml Resolved
Comment thread .gitlab-ci.yml Resolved
Comment thread .github/CODEOWNERS Resolved

@datadog-prod-us1-6 datadog-prod-us1-6 Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bits Code Review: PASS

More details

The checker’s API assumptions, shell syntax, and pinned image platform support were verified. Runtime Gradle behavior remains unverified because the Gradle tests were not run.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit a4d1cb4

@bric3 bric3 mentioned this pull request Nov 5, 2026
8 tasks done
@bric3
bric3 marked this pull request as ready for review November 5, 2026 15:46
@bric3
bric3 requested review from a team as code owners November 5, 2026 15:46
@bric3
bric3 requested review from a team, AlexeyKuznetsov-DD, mcculls, randomanderson and sarahchen6 and removed request for a team November 5, 2026 15:46
@dd-octo-sts

dd-octo-sts Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

Suite Status
Startup 🟢 pass

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 13.98 s 13.95 s [-0.4%; +0.9%] (no difference)
startup:insecure-bank:tracing:Agent 12.94 s 12.96 s [-0.8%; +0.4%] (no difference)
startup:petclinic:appsec:Agent 17.23 s 17.07 s [-0.0%; +1.9%] (no difference)
startup:petclinic:iast:Agent 17.15 s 16.71 s [-1.7%; +7.1%] (no difference)
startup:petclinic:profiling:Agent 16.67 s 16.28 s [-3.3%; +8.1%] (unstable)
startup:petclinic:sca:Agent 17.02 s 16.99 s [-0.7%; +1.1%] (no difference)
startup:petclinic:tracing:Agent 15.77 s 15.77 s [-5.8%; +5.8%] (unstable)

Commit: b58aecbb · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

@datadog-prod-us1-6

datadog-prod-us1-6 Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 59.96% (-0.02%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: b58aecb | Docs | Give us feedback!

@datadog-prod-us1-6 datadog-prod-us1-6 Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bits Code Review: PASS

More details

Static review supports the cache-safety contract: trace-check failures prevent caching successful test outputs, and cache inputs include the pinned sidecar image and validation policy. Gradle/TestKit execution remains unverified.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit f37d9a0

@sarahchen6 sarahchen6 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small optional nit, but otherwise LGTM!

Comment thread tooling/check_test_agent_results.sh Resolved
Co-authored-by: Sarah Chen <sarah.chen@datadoghq.com>
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit 5a9bf74 into master Nov 5, 2026
683 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the bdu/test-agent-fingerprint branch November 5, 2026 18:25
@github-actions github-actions Bot added this to the 1.69.0 milestone Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: testing Testing tag: ai generated Largely based on code generated by an AI or LLM tag: no release notes Changes to exclude from release notes type: bug fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants