Skip to content

Conversation

@swiatekm
Copy link
Contributor

@swiatekm swiatekm commented Nov 19, 2025

What does this PR do?

In some tests, we use a nonexistent ES host to avoid needing to use a remote. Output health reporting actually works for beats receivers, so this can lead to flakiness due to components reporting a degraded state. Disable the status reporting where it's irrelevant to the test.

Why is it important?

Tests shouldn't randomly fail because the output correctly reports a degraded status.

Checklist

  • I have read and understood the pull request guidelines of this project.
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] I have added an entry in ./changelog/fragments using the changelog tool
  • [ ] I have added an integration test or an E2E test

Related issues

In some tests, we use a nonexistent ES host to avoid needing to use a
remote. Output health reporting actually works for beats receivers, so
this can lead to flakiness due to components reporting a degraded state.
Disable the status reporting where it's irrelevant to the test.
@swiatekm swiatekm added chore Tasks that just need to be done, they are neither bug, nor enhancements backport-active-all Automated backport with mergify to all the active branches flaky-test Unstable or unreliable test cases. skip-changelog labels Nov 19, 2025
@mergify
Copy link
Contributor

mergify bot commented Nov 19, 2025

This pull request does not have a backport label. Could you fix it @swiatekm? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-./d./d is the label that automatically backports to the 8./d branch. /d is the digit
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-8 is the label that automatically backports to all active minor branches for the 8 major.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.

@swiatekm swiatekm added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Nov 19, 2025
@swiatekm swiatekm marked this pull request as ready for review November 19, 2025 16:36
@swiatekm swiatekm requested a review from a team as a code owner November 19, 2025 16:36
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@swiatekm swiatekm enabled auto-merge (squash) November 19, 2025 16:58
@swiatekm swiatekm merged commit 1fa0972 into main Nov 19, 2025
32 checks passed
@swiatekm swiatekm deleted the test/fix-flaky-rollback-test branch November 19, 2025 18:43
@github-actions
Copy link
Contributor

@Mergifyio backport 8.19 9.1 9.2

@mergify
Copy link
Contributor

mergify bot commented Nov 19, 2025

mergify bot pushed a commit that referenced this pull request Nov 19, 2025
…11257)

In some tests, we use a nonexistent ES host to avoid needing to use a
remote. Output health reporting actually works for beats receivers, so
this can lead to flakiness due to components reporting a degraded state.
Disable the status reporting where it's irrelevant to the test.

(cherry picked from commit 1fa0972)
@elasticmachine
Copy link
Contributor

mergify bot pushed a commit that referenced this pull request Nov 19, 2025
…11257)

In some tests, we use a nonexistent ES host to avoid needing to use a
remote. Output health reporting actually works for beats receivers, so
this can lead to flakiness due to components reporting a degraded state.
Disable the status reporting where it's irrelevant to the test.

(cherry picked from commit 1fa0972)
mergify bot pushed a commit that referenced this pull request Nov 19, 2025
…11257)

In some tests, we use a nonexistent ES host to avoid needing to use a
remote. Output health reporting actually works for beats receivers, so
this can lead to flakiness due to components reporting a degraded state.
Disable the status reporting where it's irrelevant to the test.

(cherry picked from commit 1fa0972)
swiatekm added a commit that referenced this pull request Nov 19, 2025
…11257) (#11261)

In some tests, we use a nonexistent ES host to avoid needing to use a
remote. Output health reporting actually works for beats receivers, so
this can lead to flakiness due to components reporting a degraded state.
Disable the status reporting where it's irrelevant to the test.

(cherry picked from commit 1fa0972)

Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com>
hayotbisonai pushed a commit to hayotbisonai/elastic-agent that referenced this pull request Nov 23, 2025
…lastic#11257)

In some tests, we use a nonexistent ES host to avoid needing to use a
remote. Output health reporting actually works for beats receivers, so
this can lead to flakiness due to components reporting a degraded state.
Disable the status reporting where it's irrelevant to the test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-all Automated backport with mergify to all the active branches chore Tasks that just need to be done, they are neither bug, nor enhancements flaky-test Unstable or unreliable test cases. skip-changelog Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants