[CONTP-547] reduce language detection refresh period to 1 minute #1336
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.
What does this PR do?
This PR fixes a flakiness in e2e test (See here).
Language detection client runs in the core agent, and periodically sends detected languages to the cluster agent.
When the cluster agent receives a detected language, it patches the related deployment with a language annotation.
The default period is 20 minutes.
If the first detected language is sent before the cluster agent is available, the cluster agent won't receive the detected language until after 20 minutes. This is caused by the absence of a retry mechanism in the language detection client.
As a result, some assertions in the E2E tests of datadog-agent fail, and are reported as flaky.
The ideal fix would be to implement a retry mechanism in the PLD client. In the meantime, a temporary fix to remove flakiness is to simply reduce the refresh period to 1 minute.
Which scenarios this will impact?
All scenarios installing the agent with helm.
Motivation
Fix flakiness in e2e.
Additional Notes