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: Jest Tests.x-pack/plugins/fleet/server/services/agents - sendUpgradeAgentsActions (plural) skip upgrade if action id is cancelled #172114

Closed
kibanamachine opened this issue Nov 29, 2023 · 4 comments · Fixed by #172218
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Nov 29, 2023

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 (/var/lib/buildkite-agent/builds/kb-n2-4-spot-d86ad3316382e003/elastic/kibana-on-merge/kibana/x-pack/plugins/fleet/server/services/agents/upgrade.test.ts:117:3)
    at _dispatchDescribe (/var/lib/buildkite-agent/builds/kb-n2-4-spot-d86ad3316382e003/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/index.js:91:26)
    at describe (/var/lib/buildkite-agent/builds/kb-n2-4-spot-d86ad3316382e003/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/index.js:55:5)
    at Object.describe (/var/lib/buildkite-agent/builds/kb-n2-4-spot-d86ad3316382e003/elastic/kibana-on-merge/kibana/x-pack/plugins/fleet/server/services/agents/upgrade.test.ts:28:1)
    at Runtime._execModule (/var/lib/buildkite-agent/builds/kb-n2-4-spot-d86ad3316382e003/elastic/kibana-on-merge/kibana/node_modules/jest-runtime/build/index.js:1430:24)
    at Runtime._loadModule (/var/lib/buildkite-agent/builds/kb-n2-4-spot-d86ad3316382e003/elastic/kibana-on-merge/kibana/node_modules/jest-runtime/build/index.js:1013:12)
    at Runtime.requireModule (/var/lib/buildkite-agent/builds/kb-n2-4-spot-d86ad3316382e003/elastic/kibana-on-merge/kibana/node_modules/jest-runtime/build/index.js:873:12)
    at jestAdapter (/var/lib/buildkite-agent/builds/kb-n2-4-spot-d86ad3316382e003/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:77:13)
    at runTestInternal (/var/lib/buildkite-agent/builds/kb-n2-4-spot-d86ad3316382e003/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/var/lib/buildkite-agent/builds/kb-n2-4-spot-d86ad3316382e003/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/runTest.js:444:34)

First failure: CI Build - main

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Nov 29, 2023
@botelastic botelastic bot added the needs-team Issues missing a team label label Nov 29, 2023
@kibanamachine kibanamachine added the Team:Fleet Team label for Observability Data Collection Fleet team label Nov 29, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Nov 29, 2023
@nchaulet
Copy link
Member

nchaulet commented Nov 29, 2023

In #171039 we started fetching the available versions from the product version API in those tests it's probably something we should mock https://github.com/elastic/kibana/blob/main/x-pack/plugins/fleet/server/services/agents/versions.ts#L41

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@mistic
Copy link
Member

mistic commented Nov 29, 2023

Skipped.

main: 9ddddb0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants