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_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" #181777

Closed
kibanamachine opened this issue Apr 25, 2024 · 5 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 Apr 25, 2024

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 kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Apr 25, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Apr 25, 2024
@kibanamachine kibanamachine added the Team:Cloud Security Cloud Security team related label Apr 25, 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 Apr 25, 2024
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@mistic
Copy link
Member

mistic commented May 1, 2024

Skipped.

main: 6e202ba

TinLe added a commit to TinLe/kibana that referenced this issue May 1, 2024
* master: (1654 commits)
  Bump ejs from 3.1.9 to 3.1.10
  Don't render exceptions flyout if data is loading (elastic#181588)
  Enable value list modal (elastic#181593)
  skip flaky suite (elastic#181777)
  skip failing test suite (elastic#182263)
  [Mappings Editor] Disable _source field in serverless (elastic#181712)
  [data.search] Fix unhandled promise rejections (elastic#181785)
  [Fleet] Fix logic for detecting first time Elastic Agent users (elastic#182214)
  [ML] Decouple data_visualizer from MapEmbeddable (elastic#181928)
  [ES|QL] Sorting accepts expressions (elastic#181916)
  [ML] Single Metric Viewer: ensures chart displays correctly when opening from a job annotation (elastic#182176)
  Adding optional Description field to Roles APIs (elastic#182039)
  Upgrade Markdown-it to 14.1.0 (elastic#182244)
  Bump xml-crypto from 5.0.0 to 6.0.0
  [DOCS] Fix docs and screenshots for rule creation changes (elastic#181925)
  Update dependency elastic-apm-node to ^4.5.3 (main) (elastic#182236)
  [Obs AI Assistant] register alert details context in observability plugin (elastic#181501)
  Add `@typescript-eslint/no-floating-promises` (elastic#181456)
  [Playground] Propagate Error message into FE (elastic#182201)
  [ES|QL] Rename the setting to a more generic one and move to the general section (elastic#182074)
  ...
yuliacech pushed a commit to yuliacech/kibana that referenced this issue May 3, 2024
@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