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: Security Solution Cypress.x-pack/plugins/security_solution/public/management/cypress/e2e/automated_response_actions/automated_response_actions·cy·ts - Automated Response Actions "before all" hook for "should have been called against a created host" "before all" hook for "should have been called against a created host" #203921

Open
kibanamachine opened this issue Dec 11, 2024 · 24 comments
Labels
blocker failed-test A test failure on a tracked branch, potentially flaky-test skipped-test Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v8.18.0 v9.0.0

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Dec 11, 2024

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:5659/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: `Automated Response Actions`

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

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:5659/api/fleet/package_policies)
      at catchAxiosErrorFormatAndThrow (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1733945162650399245/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-1733945162650399245/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-1733945162650399245/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-1733945162650399245/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-1733945162650399245/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-1733945162650399245/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-1733945162650399245/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-1733945162650399245/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-1733945162650399245/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-1733945162650399245/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 - main

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Dec 11, 2024
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@botelastic botelastic bot added the needs-team Issues missing a team label label Dec 11, 2024
@kibanamachine kibanamachine added the Team:Defend Workflows “EDR Workflows” sub-team of Security Solution label Dec 11, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-defend-workflows (Team:Defend Workflows)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Dec 11, 2024
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

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

1 similar comment
@kibanamachine
Copy link
Contributor Author

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

@kibanamachine
Copy link
Contributor Author

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

1 similar comment
@kibanamachine
Copy link
Contributor Author

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

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

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

1 similar comment
@kibanamachine
Copy link
Contributor Author

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

@mistic
Copy link
Member

mistic commented Dec 12, 2024

/skip

@kibanamachine
Copy link
Contributor Author

Skipped

main: 76f2351
8.x: 5542974

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

CAWilson94 pushed a commit to CAWilson94/kibana that referenced this issue Dec 12, 2024
tomsonpl added a commit to tomsonpl/kibana that referenced this issue Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker failed-test A test failure on a tracked branch, potentially flaky-test skipped-test Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v8.18.0 v9.0.0
Projects
None yet
Development

No branches or pull requests

3 participants