Skip to content

[Cloud Security] Fix flaky test#183262

Merged
CohenIdo merged 5 commits intoelastic:mainfrom
CohenIdo:fix-flaky-test
May 15, 2024
Merged

[Cloud Security] Fix flaky test#183262
CohenIdo merged 5 commits intoelastic:mainfrom
CohenIdo:fix-flaky-test

Conversation

@CohenIdo
Copy link
Copy Markdown
Contributor

@CohenIdo CohenIdo commented May 13, 2024

Solves:


The tests mentioned above failed with the following error message:


ResponseError: {"_shards":{"total":8,"successful":7,"failed":1,"failures":[{"shard":0,"index":".ds-metrics-fleet_server.agent_status-default-2024.03.05-000001","status":"NOT_FOUND","reason":{"type":"index_not_found_exception","reason":"no such index [.ds-metrics-fleet_server.agent_status-default...

I consulted with the fleet team and discovered that there is a task responsible for writing to the data stream named ds-metrics-fleet_server, and it was recommended to disable this task during FTRs.

After updating the test configuration to disable this task and re-enabling the previously skipped tests, I executed the tests using the flaky test runner, and it appears that this action has resolved the issue.

image

@CohenIdo CohenIdo added backport:skip This PR does not require backporting Team:Cloud Security Cloud Security team related labels May 13, 2024
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security)

@kfirpeled
Copy link
Copy Markdown
Contributor

@CohenIdo please elaborate on the ticket's description of what stands behind this fix. This will serve us in the future as a knowledge base

@CohenIdo
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@CohenIdo
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@CohenIdo CohenIdo merged commit 433b67d into elastic:main May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Cloud Security Cloud Security team related v8.15.0

Projects

None yet

6 participants