elastic / elastic/kibana

Failing test: Jest Tests.src/platform/plugins/shared/workflows_management/public/entities/workflows/model - useWorkflowExecutionPolling should handle status transitions during polling

Open
#278,564 11 comments 0 reactions 0 assignees View on GitHub
failed-test failure:ai-fixable failure:test-needs-update Team:One Workflow
Dominant language
TypeScript
Stars
21.3k
Forks
8.6k
PR merge metrics
PR metrics pending

Description

A test failed on a tracked branch

```
Error: thrown: "Exceeded timeout of 5000 ms for a test.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
at it (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1784139523903650420/elastic/kibana-on-merge/kibana/src/platform/plugins/shared/workflows_management/public/entities/workflows/model/use_workflow_execution_polling.test.ts:257:3)
at _dispatchDescribe (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1784139523903650420/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/index.js:91:26)
at describe (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1784139523903650420/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/index.js:55:5)
at Object.describe (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1784139523903650420/elastic/kibana-on-merge/kibana/src/platform/plugins/shared/workflows_management/public/entities/workflows/model/use_workflow_execution_polling.test.ts:20:1)
at Runtime._execModule (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1784139523903650420/elastic/kibana-on-merge/kibana/node_modules/jest-runtime/build/index.js:1439:24)
at Runtime._loadModule (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1784139523903650420/elastic/kibana-on-merge/kibana/node_modules/jest-runtime/build/index.js:1022:12)
at Runtime.requireModule (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1784139523903650420/elastic/kibana-on-merge/kibana/node_modules/jest-runtime/build/index.js:882:12)
at jestAdapter (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1784139523903650420/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:77:13)
at runTestInternal (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1784139523903650420/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1784139523903650420/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/runTest.js:444:34)
```

First failure: [kibana-on-merge - main](https://buildkite.com/elastic/kibana-on-merge/builds/102533#019f6700-6721-47ba-b300-aa77ee625456)

Contributor guide

Open the contributing guide

Research direction

Start with src/platform/plugins/shared/workflows_management/public/entities/workflows/model/use_workflow_execution_polling.test.ts, especially the test around line 257, and run the failing Jest test. Trace the polling behavior exercised by “should handle status transitions during polling” and determine why it exceeds the 5-second timeout. Done means the test completes reliably and passes on the tracked branch.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.