← Back to Pull requests

fix(e2e): give fakeintakes distinct ECS families #60785

Closed
unknown closed this pull request without merging on Nov 19, 2026 20:19 UTC
View on GitHub
unknown unknown commented on Nov 18, 2026 14:21 UTC
Author

<!-- dd-meta {"pullId":"00000000-0000-0000-0000-000000000000","source":"chat","resourceId":"88214c5d-3913-4c1b-8314-4871cc11761e","workflowId":"5b511829-2eb5-4258-a11c-0c4d167c8d9e","codeChangeId":"5b511829-2eb5-4258-a11c-0c4d167c8d9e","sourceType":"code_channel"} -->

What does this PR do?

Add fakeintake.WithTaskFamilyName(name) to configure an AWS ECS fakeintake's task definition family. The stack name is prepended automatically. Keep fakeintake-ecs as the default and configure distinct families in the agent-runtimes and remote-config multi-fakeintake provisioners. Use the configured family in the logged dashboard link and document the option in test/e2e-framework/AGENTS.md.

Functional changes

| Before | After |
| --- | --- |
| Two fakeintakes in one Pulumi stack register concurrent revisions of the same ECS family and can fail provisioning. | The multi-fakeintake suites explicitly use distinct families: <stack>-fakeintake-1-ecs / <stack>-fakeintake-2-ecs and <stack>-fakeintake-main-ecs / <stack>-fakeintake-failover-ecs. |
| Single-fakeintake suites and hardcoded dashboard filters use <stack>-fakeintake-ecs. | The default family stays <stack>-fakeintake-ecs, preserving existing dashboard links. |

Motivation

Fix the reported ECS RegisterTaskDefinition failures in TestMultiFakeintakeSuite and the remote-config main/failover suite: Too many concurrent attempts to create a new revision of the specified family. Example failing job: https://gitlab.ddbuild.io/DataDog/datadog-agent/-/jobs/2269454723

Describe how you validated your changes

  • Targeted build passed: bazel build //test/e2e-framework/scenarios/aws/fakeintake:fakeintake //test/new-e2e/tests/agent-runtimes:agent-runtimes_test //test/new-e2e/tests/remote-config:remote-config_test.

  • Formatting passed with gofmt.

  • Checked that all four multi-fakeintake instances pass distinct family names, and that the default and logged dashboard link use the configured value.

  • Cloud E2E tests were not run; the AWS and Pulumi CLIs are unavailable in this environment.

  • Automated local review was unavailable: host reviewers were not authenticated, and the fallback development image pull returned HTTP 503.
  • Additional Notes

    Multi-fakeintake stacks must pass a distinct WithTaskFamilyName value for each intake. Existing callers retain the historical family by default.

    ---

    PR by Bits - View session in Datadog • Open in Slack

    Comment @datadog to request changes

    Diff: 326 lines (+244 / -82) across 4 files Reviewer: pgimalac Review duration: 1798m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 326 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.346
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #60785"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42% (MEDIUM) · Higher = larger blast radius
    42%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 16.6% · Safe to merge
    16.6%