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/tamper_protection/switching_policies/unenroll_agent_from_fleet_changing_policy_from_enabled_to_disabled·cy·ts - Unenroll agent from fleet changing when agent tamper protection is enabled but then is switched to a policy with it disabled "before all" hook for "should unenroll from fleet without issues" "before all" hook for "should unenroll from fleet without issues" #203934

Open
kibanamachine opened this issue Dec 11, 2024 · 13 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:5636/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: `Unenroll agent from fleet c...`

Although you have test retries enabled, we do not retry tests when `before all` or `after all` hooks fail
    at <unknown> (http://localhost:5636/__cypress/runner/cypress_runner.js:134966:70)
    at tryCatcher (http://localhost:5636/__cypress/runner/cypress_runner.js:1807:23)
    at Promise._settlePromiseFromHandler (http://localhost:5636/__cypress/runner/cypress_runner.js:1519:31)
    at Promise._settlePromise (http://localhost:5636/__cypress/runner/cypress_runner.js:1576:18)
    at Promise._settlePromise0 (http://localhost:5636/__cypress/runner/cypress_runner.js:1621:10)
    at Promise._settlePromises (http://localhost:5636/__cypress/runner/cypress_runner.js:1697:18)
    at _drainQueueStep (http://localhost:5636/__cypress/runner/cypress_runner.js:2407:12)
    at _drainQueue (http://localhost:5636/__cypress/runner/cypress_runner.js:2400:9)
    at Async._drainQueues (http://localhost:5636/__cypress/runner/cypress_runner.js:2416:5)
    at Async.drainQueues (http://localhost:5636/__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/switching_policies/unenroll_agent_from_fleet_changing_policy_from_enabled_to_disabled.cy.ts:37: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:5636/api/fleet/package_policies)
      at catchAxiosErrorFormatAndThrow (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1733950230721949333/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-1733950230721949333/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-1733950230721949333/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-1733950230721949333/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-1733950230721949333/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-1733950230721949333/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-1733950230721949333/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-1733950230721949333/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-1733950230721949333/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-1733950230721949333/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 - 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

Skipped

main: ab7e209
8.x: e4cfe25

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

2 participants