← Back to Pull requests

[CONTP-1777] Fix the nightly Autopilot trigger rule #3674

Closed
unknown closed this pull request without merging on Oct 28, 2026 13:09 UTC
View on GitHub
unknown unknown commented on Oct 28, 2026 08:14 UTC
Author

What does this PR do?

Add NIGHTLY_BUILD_CONDUCTOR_NAME to the variables inherited by trigger_autopilot_nightly. Its nightly rule compares CONDUCTOR_TARGET against this default variable, but the inheritance allowlist removed it before rule evaluation, so GitLab excluded the trigger entirely.

Motivation

CONTP-1777. The October 27 nightly pipeline ran the merged Autopilot change and successfully built, published, and deployed the nightly, but never created an Autopilot child pipeline. GitLab's bridge API and CI Lint dry-runs confirmed the missing trigger.

Additional Notes

The existing Conductor target in ddoghq/k8s-datadog-agent-ops needs no change. The fix adds only the detached QA trigger; it preserves the single nightly image publication and reuses that pipeline's built image. QA failure and retry duration remain independent of Conductor.

The companion failure monitor is still in draft PR ddoghq/terraform-config#60470.

Minimum Agent Versions

No change.

Describe your test plan

  • GitLab CI Lint dry-run in main with simulated nightly variables: the original configuration excludes the trigger; the fixed configuration adds only trigger_autopilot_nightly, with allow_failure: true.

  • GitLab CI Lint dry-run with another Conductor target: Autopilot remains excluded.

  • GitLab CI Lint dry-run for the child configuration: only preparation, QA image publication, and Autopilot tests are included.

  • make lint: passed, including Go vet.

  • No live nightly pipeline was retriggered. Verify the first scheduled run after merge creates the child.
  • Checklist

  • PR has a valid label (tooling).

  • PR has the qa/skip-qa label (CI-only change).

  • All commits are signed.
  • [CONTP-1777]: https://datadoghq.atlassian.net/browse/CONTP-1777?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

    Diff: 260 lines (+195 / -65) across 3 files Reviewer: khewonc Review duration: 294m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 260 lines diff across 3 files
    0.39
    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.333
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3674"
    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: 39.2% (MEDIUM) · Higher = larger blast radius
    39.2%
    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: 15.5% · Safe to merge
    15.5%