Failing test: Security Solution Cypress.x-pack/plugins/security_solution/public/management/cypress/e2e/tamper_protection/disabled/uninstall_agent_from_host·cy·ts - Uninstall agent from host when agent tamper protection is disabled "before all" hook for "should uninstall from host without issues" "before all" hook for "should uninstall from host without issues" #203911
Open
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:5686/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: `Uninstall agent from host w...`
Although you have test retries enabled, we do not retry tests when `before all` or `after all` hooks fail
at <unknown> (http://localhost:5686/__cypress/runner/cypress_runner.js:135281:70)
at tryCatcher (http://localhost:5686/__cypress/runner/cypress_runner.js:1807:23)
at Promise._settlePromiseFromHandler (http://localhost:5686/__cypress/runner/cypress_runner.js:1519:31)
at Promise._settlePromise (http://localhost:5686/__cypress/runner/cypress_runner.js:1576:18)
at Promise._settlePromise0 (http://localhost:5686/__cypress/runner/cypress_runner.js:1621:10)
at Promise._settlePromises (http://localhost:5686/__cypress/runner/cypress_runner.js:1697:18)
at _drainQueueStep (http://localhost:5686/__cypress/runner/cypress_runner.js:2407:12)
at _drainQueue (http://localhost:5686/__cypress/runner/cypress_runner.js:2400:9)
at Async._drainQueues (http://localhost:5686/__cypress/runner/cypress_runner.js:2416:5)
at Async.drainQueues (http://localhost:5686/__cypress/runner/cypress_runner.js:2286:14)
From Your Spec Code:
at createAgentPolicyTask (webpack:///./tasks/fleet.ts:92:12)
at Context.eval (webpack:///./e2e/tamper_protection/disabled/uninstall_agent_from_host.cy.ts:34: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:5686/api/fleet/package_policies)
at catchAxiosErrorFormatAndThrow (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1733944656016168700/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-1733944656016168700/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-1733944656016168700/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-1733944656016168700/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-1733944656016168700/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-1733944656016168700/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-1733944656016168700/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-1733944656016168700/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-1733944656016168700/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-1733944656016168700/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