Skip to content

Failing test: Security Solution Cypress.x-pack/plugins/security_solution/public/management/cypress/e2e/artifacts/trusted_apps·cy·ts - Trusted Apps Renders Trusted Apps form fields "before all" hook for "Correctly renders all blocklist fields for different OSs" "before all" hook for "Correctly renders all blocklist fields for different OSs" #203929

Open
@kibanamachine

Description

A test failed on a tracked branch

CypressError: `cy.task('indexFleetEndpointPolicy')` failed with the following error:

> Request failed with status code 400: {"statusCode":400,"error":"Bad Request","message":"Error installing endpoint 8.18.0-prerelease.0: mapper_parsing_exception\n\tCaused by:\n\t\tmapper_parsing_exception: No handler for type [bool] declared on field [flag_hugetlb]\n\tRoot causes:\n\t\tmapper_parsing_exception: No handler for type [bool] declared on field [flag_hugetlb]"}
(Request: post http://buildkite-agent:changeme@localhost:5674/api/fleet/package_policies)

https://on.cypress.io/api/task

Because this error occurred during a `before all` hook we are skipping the remaining tests in the current suite: `Trusted Apps`

Although you have test retries enabled, we do not retry tests when `before all` or `after all` hooks fail
    at <unknown> (http://localhost:5674/__cypress/runner/cypress_runner.js:135281:70)
    at tryCatcher (http://localhost:5674/__cypress/runner/cypress_runner.js:1807:23)
    at Promise._settlePromiseFromHandler (http://localhost:5674/__cypress/runner/cypress_runner.js:1519:31)
    at Promise._settlePromise (http://localhost:5674/__cypress/runner/cypress_runner.js:1576:18)
    at Promise._settlePromise0 (http://localhost:5674/__cypress/runner/cypress_runner.js:1621:10)
    at Promise._settlePromises (http://localhost:5674/__cypress/runner/cypress_runner.js:1697:18)
    at _drainQueueStep (http://localhost:5674/__cypress/runner/cypress_runner.js:2407:12)
    at _drainQueue (http://localhost:5674/__cypress/runner/cypress_runner.js:2400:9)
    at Async._drainQueues (http://localhost:5674/__cypress/runner/cypress_runner.js:2416:5)
    at Async.drainQueues (http://localhost:5674/__cypress/runner/cypress_runner.js:2286:14)
From Your Spec Code:
    at createAgentPolicyTask (webpack:///./tasks/fleet.ts:92:12)
    at Context.eval (webpack:///./e2e/artifacts/trusted_apps.cy.ts:48:30)

From Node.js Internals:
  FormattedAxiosError: Request failed with status code 400: {"statusCode":400,"error":"Bad Request","message":"Error installing endpoint 8.18.0-prerelease.0: mapper_parsing_exception\n\tCaused by:\n\t\tmapper_parsing_exception: No handler for type [bool] declared on field [flag_hugetlb]\n\tRoot causes:\n\t\tmapper_parsing_exception: No handler for type [bool] declared on field [flag_hugetlb]"}
  (Request: post http://buildkite-agent:changeme@localhost:5674/api/fleet/package_policies)
      at catchAxiosErrorFormatAndThrow (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1733947992361193082/elastic/kibana-on-merge/kibana/x-pack/plugins/security_solution/common/endpoint/format_axios_error.ts:70:11)
      at processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async retryOnError (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1733947992361193082/elastic/kibana-on-merge/kibana/x-pack/plugins/security_solution/common/endpoint/data_loaders/utils.ts:88:22)
      at async (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1733947992361193082/elastic/kibana-on-merge/kibana/x-pack/plugins/security_solution/common/endpoint/data_loaders/index_fleet_endpoint_policy.ts:141:23)
  ----- original error -----
  AxiosError: Request failed with status code 400
      at settle (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1733947992361193082/elastic/kibana-on-merge/kibana/node_modules/axios/lib/core/settle.js:19:12)
      at IncomingMessage.handleStreamEnd (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1733947992361193082/elastic/kibana-on-merge/kibana/node_modules/axios/lib/adapters/http.js:599:11)
      at IncomingMessage.emit (node:events:531:35)
      at IncomingMessage.emit (node:domain:488:12)
      at endReadableNT (node:internal/streams/readable:1696:12)
      at processTicksAndRejections (node:internal/process/task_queues:82:21)
      at Axios.request (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1733947992361193082/elastic/kibana-on-merge/kibana/node_modules/axios/lib/core/Axios.js:45:41)
      at processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async KbnClientRequester.request (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1733947992361193082/elastic/kibana-on-merge/kibana/packages/kbn-test/src/kbn_client/kbn_client_requester.ts:135:16)
      at async KbnClientExtended.request (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1733947992361193082/elastic/kibana-on-merge/kibana/packages/kbn-test/src/kbn_client/kbn_client.ts:79:12)
      at async retryOnError (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1733947992361193082/elastic/kibana-on-merge/kibana/x-pack/plugins/security_solution/common/endpoint/data_loaders/utils.ts:88:22)
      at async (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1733947992361193082/elastic/kibana-on-merge/kibana/x-pack/plugins/security_solution/common/endpoint/data_loaders/index_fleet_endpoint_policy.ts:141:23)

First failure: kibana-on-merge - 8.x

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions