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

Failing test: Serverless Security API Integration Tests.x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_indexed·ts - Serverless security API cloud_security_posture GET /internal/cloud_security_posture/status STATUS = INDEXED TEST "before each" hook for "Return kspm status indexed when logs-cloud_security_posture.findings_latest-default contains new kspm documents" #178027

Closed
kibanamachine opened this issue Mar 5, 2024 · 6 comments · Fixed by #183262
Assignees
Labels
8.15 candidate automation failed-test A test failure on a tracked branch, potentially flaky-test Team:Cloud Security Cloud Security team related

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Mar 5, 2024

A test failed on a tracked branch

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-2024.03.05-000001]","index_uuid":"etT2dd-cQnuehaMWQcu4bg","index":".ds-metrics-fleet_server.agent_status-default-2024.03.05-000001"}}]}}
    at SniffingTransport.request (node_modules/@elastic/transport/src/Transport.ts:535:17)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Indices.refresh (node_modules/@elastic/elasticsearch/src/api/api/indices.ts:1482:12)
    at loadAction (load.ts:124:3)
    at EsArchiver.load (es_archiver.ts:99:12)
    at Context.<anonymous> (status_indexed.ts:53:9)
    at Object.apply (wrap_function.js:73:16) {
  meta: {
    body: { _shards: [Object] },
    statusCode: 404,
    headers: {
      'x-elastic-product': 'Elasticsearch',
      'elastic-api-version': '2023-10-31',
      'content-type': 'application/json',
      'content-length': '418'
    },
    meta: {
      context: null,
      request: [Object],
      name: 'elasticsearch-js',
      connection: [Object],
      attempts: 0,
      aborted: false
    },
    warnings: [Getter]
  }
}

First failure: CI Build - main

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Mar 5, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Mar 5, 2024
@kibanamachine kibanamachine added the Team:Cloud Security Cloud Security team related label Mar 5, 2024
@elasticmachine
Copy link
Contributor

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

@botelastic botelastic bot removed the needs-team Issues missing a team label label Mar 5, 2024
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@mistic
Copy link
Member

mistic commented Apr 2, 2024

Skipped.

main: b0b73ad

@kfirpeled
Copy link
Contributor

@animehart fyi, @CohenIdo is working on a similar issue in our tests #182570

Ido, please update and unskip the tests incase you figure out a solution for #182570

@kfirpeled kfirpeled linked a pull request May 13, 2024 that will close this issue
@CohenIdo
Copy link
Contributor

While addressing the issue documented in #182570, I identified that the test failure in this issue occurred due to a similar error ( failure in writing to the data stream named .ds-metrics-fleet_server).

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 skipped test, I executed the tests using the flaky test runner, and it appears that this action has resolved the issue.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.15 candidate automation failed-test A test failure on a tracked branch, potentially flaky-test Team:Cloud Security Cloud Security team related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants