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) cannot upgrade from a hosted agent policy by default #171160

Closed
kibanamachine opened this issue Nov 14, 2023 · 6 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 14, 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-9e67f165587bd665/elastic/kibana-on-merge/kibana/x-pack/plugins/fleet/server/services/agents/upgrade.test.ts:56:3)
    at _dispatchDescribe (/var/lib/buildkite-agent/builds/kb-n2-4-spot-9e67f165587bd665/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-9e67f165587bd665/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-9e67f165587bd665/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-9e67f165587bd665/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-9e67f165587bd665/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-9e67f165587bd665/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-9e67f165587bd665/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-9e67f165587bd665/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-9e67f165587bd665/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 14, 2023
@botelastic botelastic bot added the needs-team Issues missing a team label label Nov 14, 2023
@kibanamachine kibanamachine added the Team:Fleet Team label for Observability Data Collection Fleet team label Nov 14, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Nov 14, 2023
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@nchaulet
Copy link
Member

Probably the same issue as #172114 (comment)

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@mistic
Copy link
Member

mistic commented Nov 29, 2023

Skipped.

main: 0be5322

kpollich added a commit to kpollich/kibana that referenced this issue Nov 29, 2023
kpollich added a commit that referenced this issue Dec 5, 2023
## Summary

Adds additional retries, unskips a bunch of suites, mocks out some
network dependencies for product versions.

Will kick off some flaky test runner jobs for this PR.

Closes #162545
Ref #138905
Closes #161624
Closes #171160
Closes #171536
Closes #171541
Closes #172114
Closes #171052
Closes #172129
Closes #172128
Closes #172127

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
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