kibana icon indicating copy to clipboard operation
kibana copied to clipboard

Failing test: Entity Analytics - Risk Engine Integration Tests - Serverless Env - Complete Tier.x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/init_and_status_apis·ts - Entity Analytics - Risk Engine @ess @serverless @serverlessQA init_and_status_apis init api should remove legacy risk score transform if it exists

Open kibanamachine opened this issue 1 year ago • 13 comments

A test failed on a tracked branch

ResponseError: resource_not_found_exception
	Root causes:
		resource_not_found_exception: Transform with id [ml_hostriskscore_pivot_transform_default] could not be found
    at SniffingTransport._request (node_modules/@elastic/transport/src/Transport.ts:601:17)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at /opt/buildkite-agent/builds/bk-agent-prod-gcp-1724851580616668417/elastic/kibana-elasticsearch-serverless-verify-and-promote/kibana/node_modules/@elastic/transport/src/Transport.ts:704:22
    at SniffingTransport.request (node_modules/@elastic/transport/src/Transport.ts:701:14)
    at Transform.getTransform (node_modules/@elastic/elasticsearch/src/api/api/transform.ts:145:12)
    at Context.<anonymous> (init_and_status_apis.ts:306:22)
    at Object.apply (wrap_function.js:73:16) {
  options: { redaction: { type: 'replace', additionalKeys: [] } },
  meta: {
    body: { error: [Object], status: 404 },
    statusCode: 404,
    headers: {
      'x-elastic-product': 'Elasticsearch',
      'elastic-api-version': '2023-10-31',
      'content-type': 'application/json',
      'content-length': '299'
    },
    meta: {
      context: null,
      request: [Object],
      name: 'elasticsearch-js',
      connection: [Object],
      attempts: 0,
      aborted: false
    },
    warnings: null
  }
}

First failure: kibana-elasticsearch-serverless-verify-and-promote - main

kibanamachine avatar Aug 28 '24 14:08 kibanamachine

Pinging @elastic/security-entity-analytics (Team:Entity Analytics)

elasticmachine avatar Aug 28 '24 14:08 elasticmachine

Will have a team member look at this test. However, for external communication purposes, this test specific failing should not be a blocker on Serverless promotion, because the legacy risk scoring transform (which this test refers to) was never accessible to customers on Serverless.

jaredburgettelastic avatar Aug 28 '24 15:08 jaredburgettelastic

@jaredburgettelastic does it means we can actually skip this test until your team figures it out to avoid having it failing in some serverless promotion pipeline?

mistic avatar Aug 29 '24 03:08 mistic

@mistic yes, please feel free to skip for now if this is preventing promotion

jaredburgettelastic avatar Aug 29 '24 03:08 jaredburgettelastic

With the above in mind, I'm skipping this.

delanni avatar Aug 29 '24 14:08 delanni

/skip

delanni avatar Aug 29 '24 14:08 delanni

Skipped

main: 7adda78d6be3d88d55aec76716f16a63d698b32c

kibanamachine avatar Aug 29 '24 14:08 kibanamachine

@jaredburgettelastic is the team working on a fix for the underlying issue and do we expect a solution soon?

rayafratkina avatar Sep 23 '24 16:09 rayafratkina

Hey @rayafratkina !

Per the conversation above, I mentioned that this was less of a priority from our side due to this legacy feature not being relevant for serverless.

Since it sounds like this is more of a priority for platform due to how the issue is being tracked, I'll have someone take a look at it tomorrow. Thank you!

jaredburgettelastic avatar Sep 26 '24 16:09 jaredburgettelastic

First stop-gap: https://github.com/elastic/kibana/pull/195651

jaredburgettelastic avatar Oct 09 '24 17:10 jaredburgettelastic

The legacy risk score feature was deleted, and the test was reenabled here.

machadoum avatar Feb 14 '25 16:02 machadoum