elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.69k stars 8.24k forks source link

Failing test: Jest Integration Tests.x-pack/plugins/task_manager/server/integration_tests - unrecognized task types should be no workload aggregator errors when there are removed task types #194208

Open kibanamachine opened 2 months ago

kibanamachine commented 2 months ago

A test failed on a tracked branch

Error: expect(jest.fn()).not.toHaveBeenCalled()

Expected number of calls: 0
Received number of calls: 1

1: "Task SLO:ORPHAN_SUMMARIES-CLEANUP-TASK \"SLO:ORPHAN_SUMMARIES-CLEANUP-TASK:1.0.0\" failed: ResponseError: search_phase_execution_exception
    Root causes:
        no_shard_available_action_exception: null", {"error": {"stack_trace": "ResponseError: search_phase_execution_exception
    Root causes:
        no_shard_available_action_exception: null
    at KibanaTransport._request (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1727373500529827755/elastic/kibana-on-merge/kibana/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-1727373500529827755/elastic/kibana-on-merge/kibana/node_modules/@elastic/transport/src/Transport.ts:704:22
    at KibanaTransport.request (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1727373500529827755/elastic/kibana-on-merge/kibana/node_modules/@elastic/transport/src/Transport.ts:701:14)
    at KibanaTransport.request (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1727373500529827755/elastic/kibana-on-merge/kibana/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/create_transport.ts:72:17)
    at Client.SearchApi [as search] (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1727373500529827755/elastic/kibana-on-merge/kibana/node_modules/@elastic/elasticsearch/src/api/api/search.ts:96:10)
    at SloOrphanSummaryCleanupTask.fetchSloSummariesIds (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1727373500529827755/elastic/kibana-on-merge/kibana/x-pack/plugins/observability_solution/slo/server/services/tasks/orphan_summary_cleanup_task.ts:137:20)
    at SloOrphanSummaryCleanupTask.runTask (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1727373500529827755/elastic/kibana-on-merge/kibana/x-pack/plugins/observability_solution/slo/server/services/tasks/orphan_summary_cleanup_task.ts:83:48)
    at TaskManagerRunner.run (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1727373500529827755/elastic/kibana-on-merge/kibana/x-pack/plugins/task_manager/server/task_running/task_runner.ts:389:22)"}, "service": {"node": {"roles": ["background_tasks", "ui"]}}, "tags": ["SLO:ORPHAN_SUMMARIES-CLEANUP-TASK", "SLO:ORPHAN_SUMMARIES-CLEANUP-TASK:1.0.0", "task-run-failed"]}
    at Object.toHaveBeenCalled (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1727373500529827755/elastic/kibana-on-merge/kibana/x-pack/plugins/task_manager/server/integration_tests/removed_types.test.ts:124:29)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at processTimers (node:internal/timers:511:9)

First failure: kibana-on-merge - main

elasticmachine commented 2 months ago

Pinging @elastic/response-ops (Team:ResponseOps)

kibanamachine commented 2 months ago

New failure: kibana-on-merge - main

kibanamachine commented 1 month ago

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

kibanamachine commented 1 month ago

New failure: kibana-on-merge - main

kibanamachine commented 1 month ago

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

kibanamachine commented 1 month ago

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

kibanamachine commented 1 month ago

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

kibanamachine commented 1 month ago

New failure: kibana-on-merge - main

kibanamachine commented 1 month ago

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

ymao1 commented 1 month ago

FAIL  x-pack/plugins/task_manager/server/integration_tests/removed_types.test.ts (89.987 s)
--
  | 2024-10-10 09:47:40 UTC | ● unrecognized task types › should be no workload aggregator errors when there are removed task types
  | 2024-10-10 09:47:40 UTC |  
  | 2024-10-10 09:47:40 UTC | expect(received).not.toMatch(expected)
  | 2024-10-10 09:47:40 UTC |  
  | 2024-10-10 09:47:40 UTC | Matcher error: received value must be a string
  | 2024-10-10 09:47:40 UTC |  
  | 2024-10-10 09:47:40 UTC | Received has type:  object
  | 2024-10-10 09:47:40 UTC | Received has value: {"error": {"stack_trace": "ResponseError: search_phase_execution_exception
  | 2024-10-10 09:47:40 UTC | Root causes:
  | 2024-10-10 09:47:40 UTC | no_shard_available_action_exception: null
  | 2024-10-10 09:47:40 UTC | at KibanaTransport._request (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1728552484023113068/elastic/kibana-on-merge/kibana/node_modules/@elastic/transport/src/Transport.ts:601:17)
  | 2024-10-10 09:47:40 UTC | at processTicksAndRejections (node:internal/process/task_queues:95:5)
  | 2024-10-10 09:47:40 UTC | at /opt/buildkite-agent/builds/bk-agent-prod-gcp-1728552484023113068/elastic/kibana-on-merge/kibana/node_modules/@elastic/transport/src/Transport.ts:704:22
  | 2024-10-10 09:47:40 UTC | at KibanaTransport.request (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1728552484023113068/elastic/kibana-on-merge/kibana/node_modules/@elastic/transport/src/Transport.ts:701:14)
  | 2024-10-10 09:47:40 UTC | at KibanaTransport.request (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1728552484023113068/elastic/kibana-on-merge/kibana/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/create_transport.ts:72:17)
  | 2024-10-10 09:47:40 UTC | at Client.SearchApi [as search] (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1728552484023113068/elastic/kibana-on-merge/kibana/node_modules/@elastic/elasticsearch/src/api/api/search.ts:96:10)
  | 2024-10-10 09:47:40 UTC | at SloOrphanSummaryCleanupTask.fetchSloSummariesIds (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1728552484023113068/elastic/kibana-on-merge/kibana/x-pack/plugins/observability_solution/slo/server/services/tasks/orphan_summary_cleanup_task.ts:137:20)
  | 2024-10-10 09:47:40 UTC | at SloOrphanSummaryCleanupTask.runTask (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1728552484023113068/elastic/kibana-on-merge/kibana/x-pack/plugins/observability_solution/slo/server/services/tasks/orphan_summary_cleanup_task.ts:83:48)
  | 2024-10-10 09:47:40 UTC | at TaskManagerRunner.run (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1728552484023113068/elastic/kibana-on-merge/kibana/x-pack/plugins/task_manager/server/task_running/task_runner.ts:389:22)"}, "service": {"node": {"roles": ["background_tasks", "ui"]}}, "tags": ["SLO:ORPHAN_SUMMARIES-CLEANUP-TASK", "SLO:ORPHAN_SUMMARIES-CLEANUP-TASK:1.0.0", "task-run-failed"]}
  | 2024-10-10 09:47:40 UTC

We added a regex matcher to only look for the (non) presence of WorkloadAggregator errors but in this instance this threw an error because the error logger was called with an object not a string 🤦‍♀

kibanamachine commented 1 month ago

New failure: kibana-on-merge - main

kibanamachine commented 1 month ago

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

kibanamachine commented 1 month ago

New failure: kibana-on-merge - main

kibanamachine commented 1 month ago

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

kibanamachine commented 1 month ago

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

jbudz commented 1 month ago

For anyone looking to skip 8.x: the backport is in progress now. Holding off.

kibanamachine commented 1 month ago

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

ymao1 commented 1 month ago

8.x backport PR just merged so closing this issue.

kibanamachine commented 2 weeks ago

New failure: kibana-on-merge - main

kibanamachine commented 2 weeks ago

New failure: kibana-on-merge - main

kibanamachine commented 2 weeks ago

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

kibanamachine commented 2 weeks ago

New failure: kibana-on-merge - main

kibanamachine commented 2 weeks ago

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

kibanamachine commented 2 weeks ago

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

kibanamachine commented 2 weeks ago

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

kibanamachine commented 2 weeks ago

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

mistic commented 2 weeks ago

Skipped.

main: 0ccebd3 8.x: 2b11aaf