[Backport v1.27] Emit Kubernetes events for FA experiment transitions#3051
Merged
Conversation
* fix(experiment): anchor timeout on Status.Experiment.StartedAt * fix(fleet): rehydrate installer state from DatadogAgent on daemon startup * fix(experiment): report TaskState_ERROR for the original start task on timeout * refactor(experiment): single experiment-state annotation on revisions * fix(fleet): publish abort to Fleet Automation the same way as timeout * feat(experiment): emit Kubernetes events for state transitions and Fleet tasks * fix linter * fix(experiment): cover all phase transitions and emit completed event for idempotent tasks * fix(fleet): bypass cache when emitting rehydrate event * fix linter (cherry picked from commit 1e1aeff)
levan-m
approved these changes
May 27, 2026
|
🎯 Code Coverage (details) 🔗 Commit SHA: 3bbba75 | Docs | Datadog PR Page | Give us feedback! |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v1.27 #3051 +/- ##
==========================================
+ Coverage 41.44% 41.61% +0.16%
==========================================
Files 334 336 +2
Lines 28637 28737 +100
==========================================
+ Hits 11869 11958 +89
- Misses 15973 15984 +11
Partials 795 795
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport 1e1aeff from #3037.
What does this PR do?
Produce k8s events on experiment signals and transition. Option enabled by
and collected in DD by adding
Motivation
What inspired you to submit this pull request?
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?
Describe your test plan
Enabled events, run experiment and describe DDA to see events
Checklist
bug,enhancement,refactoring,documentation,tooling, and/ordependenciesqa/skip-qalabel