Add DDA rollback functionality #2838
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 370 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.354
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2838"
general
weight: 0.35
arbll
What does this PR do?
Adds rollback functionality for DDAs with fleet experiments. Includes:
stop: trigger rollback (for eventual stopExperiment)
timeout: rollback after 15min of a running experiment
abort: user makes a manual change (ignores manual change if done at the same time as the timeout b/c of complexity)
Motivation
https://datadoghq.atlassian.net/browse/CONTP-1404
Additional Notes
Anything else we should know when reviewing?
Minimum Agent Versions
Are there minimum versions of the Datadog Agent and/or Cluster Agent required?
Agent: vX.Y.Z
Cluster Agent: vX.Y.Z
Describe your test plan
Setup:
Deploy the operator with
createControllerRevisionsanddatadogAgentInternalEnabledset to true: https://github.com/DataDog/datadog-operator/blob/62fdb0618c3a62289f84e936b813b2789d674c21/cmd/main.go#L188-L189Create a DDA
Stop signal:
Start an experiment (see below for how to mock)
Mock stopping the experiment by patching the status:
Check that the DDA spec is rolled back to the initial pre-experiment state
Check that the experiment phase is
rollback(kubectl describe dd <name>)Timeout
Start an experiment (see below for how to mock)
Wait 15 minutes (not configurable, sorry)
Check that the DDA spec is rolled back to the initial pre-experiment state
Check that the experiment phase is
timeout(kubectl describe dd <name>)Abort
Start an experiment (see below for how to mock)
Patch the spec again
Check that the experiment phase is
aborted(kubectl describe dd <name>)Start an experiment (mock the start experiment signal):
Checklist
bug,enhancement,refactoring,documentation,tooling, and/ordependenciesqa/skip-qalabel[1]: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits