kibana icon indicating copy to clipboard operation
kibana copied to clipboard

Failing test: Serverless Security API Integration Tests.x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_indexing·ts - Serverless security API cloud_security_posture GET /internal/cloud_security_posture/status STATUS = INDEXING TEST "before each" hook for "Return kspm status indexing when logs-cloud_security_posture.findings_latest-default doesn't contain new kspm documents, but has newly connected agents"

Open kibanamachine opened this issue 10 months ago • 3 comments

A test failed on a tracked branch

ResponseError: {"_shards":{"total":12,"successful":11,"failed":1,"failures":[{"shard":0,"index":".ds-metrics-fleet_server.agent_status-default-2024.04.25-000001","status":"NOT_FOUND","reason":{"type":"index_not_found_exception","reason":"no such index [.ds-metrics-fleet_server.agent_status-default-2024.04.25-000001]","index_uuid":"ezzkzYaASJuy-jytnPmfGg","index":".ds-metrics-fleet_server.agent_status-default-2024.04.25-000001"}}]}}
    at SniffingTransport.request (node_modules/@elastic/transport/src/Transport.ts:553: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_indexing.ts:53:9)
    at Object.apply (wrap_function.js:73:16) {
  options: { redaction: { type: 'replace', additionalKeys: [] } },
  meta: {
    body: { _shards: [Object] },
    statusCode: 404,
    headers: {
      'x-elastic-product': 'Elasticsearch',
      'elastic-api-version': '2023-10-31',
      'content-type': 'application/json',
      'content-length': '420'
    },
    meta: {
      context: null,
      request: [Object],
      name: 'elasticsearch-js',
      connection: [Object],
      attempts: 0,
      aborted: false
    },
    warnings: null
  }
}

First failure: CI Build - 8.14

kibanamachine avatar Apr 25 '24 20:04 kibanamachine

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

elasticmachine avatar Apr 25 '24 20:04 elasticmachine

New failure: CI Build - main

kibanamachine avatar May 01 '24 15:05 kibanamachine

Skipped.

main: 6e202ba

mistic avatar May 01 '24 18:05 mistic

@animehart fyi, @CohenIdo is working on a similar issue in our tests https://github.com/elastic/kibana/issues/182570

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

kfirpeled avatar May 13 '24 12:05 kfirpeled

While addressing the issue documented in https://github.com/elastic/kibana/issues/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

CohenIdo avatar May 15 '24 07:05 CohenIdo