Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cloud Security] Fix flaky test #183262

Merged
merged 5 commits into from
May 15, 2024
Merged

[Cloud Security] Fix flaky test #183262

merged 5 commits into from
May 15, 2024

Conversation

CohenIdo
Copy link
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 commit does not require backporting Team:Cloud Security Cloud Security team related labels May 13, 2024
@elasticmachine
Copy link
Contributor

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

@kfirpeled
Copy link
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
Contributor Author

@elasticmachine merge upstream

@CohenIdo
Copy link
Contributor Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 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
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit 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