elastic / kibana

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

Failing test: Jest Integration Tests.x-pack/plugins/fleet/server/integration_tests - Fleet cloud preconfiguration Preconfigured cloud policy With a full preconfigured cloud policy Create correct .fleet-policies #170413

Open kibanamachine opened 10 months ago

kibanamachine commented 10 months ago

A test failed on a tracked branch

Error: thrown: "Exceeded timeout of 600000 ms for a hook.
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 beforeAll (/var/lib/buildkite-agent/builds/kb-n2-4-spot-39ab7c2f70bb49ab/elastic/kibana-on-merge/kibana/x-pack/plugins/fleet/server/integration_tests/cloud_preconfiguration.test.ts:123:7)
    at _dispatchDescribe (/var/lib/buildkite-agent/builds/kb-n2-4-spot-39ab7c2f70bb49ab/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-39ab7c2f70bb49ab/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/index.js:55:5)
    at describe (/var/lib/buildkite-agent/builds/kb-n2-4-spot-39ab7c2f70bb49ab/elastic/kibana-on-merge/kibana/x-pack/plugins/fleet/server/integration_tests/cloud_preconfiguration.test.ts:122:5)
    at _dispatchDescribe (/var/lib/buildkite-agent/builds/kb-n2-4-spot-39ab7c2f70bb49ab/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-39ab7c2f70bb49ab/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/index.js:55:5)
    at describe (/var/lib/buildkite-agent/builds/kb-n2-4-spot-39ab7c2f70bb49ab/elastic/kibana-on-merge/kibana/x-pack/plugins/fleet/server/integration_tests/cloud_preconfiguration.test.ts:121:3)
    at _dispatchDescribe (/var/lib/buildkite-agent/builds/kb-n2-4-spot-39ab7c2f70bb49ab/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-39ab7c2f70bb49ab/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-39ab7c2f70bb49ab/elastic/kibana-on-merge/kibana/x-pack/plugins/fleet/server/integration_tests/cloud_preconfiguration.test.ts:33:1)
    at Runtime._execModule (/var/lib/buildkite-agent/builds/kb-n2-4-spot-39ab7c2f70bb49ab/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-39ab7c2f70bb49ab/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-39ab7c2f70bb49ab/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-39ab7c2f70bb49ab/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-39ab7c2f70bb49ab/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-39ab7c2f70bb49ab/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/runTest.js:444:34)

First failure: CI Build - main

elasticmachine commented 10 months ago

Pinging @elastic/fleet (Team:Fleet)

kpollich commented 10 months ago

Relevant logs


FAIL  x-pack/plugins/fleet/server/integration_tests/cloud_preconfiguration.test.ts (967.565 s)
--
  | ● Console
  |  
  | console.debug
  | No variable definition for host found
  |  
  | at debug (x-pack/plugins/fleet/common/services/validate_package_policy.ts:219:13)
  | at Array.reduce (<anonymous>)
  | at Array.forEach (<anonymous>)
  |  
  | console.debug
  | No variable definition for port found
  |  
  | at debug (x-pack/plugins/fleet/common/services/validate_package_policy.ts:219:13)
  | at Array.reduce (<anonymous>)
  | at Array.forEach (<anonymous>)
  |  
  | console.debug
  | No variable definition for host found
  |  
  | at debug (x-pack/plugins/fleet/common/services/validate_package_policy.ts:219:13)
  | at Array.reduce (<anonymous>)
  | at Array.forEach (<anonymous>)
  |  
  | console.debug
  | No variable definition for port found
  |  
  | at debug (x-pack/plugins/fleet/common/services/validate_package_policy.ts:219:13)
  | at Array.reduce (<anonymous>)
  | at Array.forEach (<anonymous>)
  |  
  | console.debug
  | No variable definition for host found
  |  
  | at debug (x-pack/plugins/fleet/common/services/validate_package_policy.ts:219:13)
  | at Array.reduce (<anonymous>)
  | at Array.forEach (<anonymous>)
  |  
  | console.debug
  | No variable definition for port found
  |  
  | at debug (x-pack/plugins/fleet/common/services/validate_package_policy.ts:219:13)
  | at Array.reduce (<anonymous>)
  | at Array.forEach (<anonymous>)
  |  
  | console.debug
  | No variable definition for host found
  |  
  | at debug (x-pack/plugins/fleet/common/services/validate_package_policy.ts:219:13)
  | at Array.reduce (<anonymous>)
  | at Array.forEach (<anonymous>)
  |  
  | console.debug
  | No variable definition for port found
  |  
  | at debug (x-pack/plugins/fleet/common/services/validate_package_policy.ts:219:13)
  | at Array.reduce (<anonymous>)
  | at Array.forEach (<anonymous>)
  |  
  | ● Fleet cloud preconfiguration › Preconfigured cloud policy › With a full preconfigured cloud policy › Works and preconfigure correctly agent policies
  |  
  | thrown: "Exceeded timeout of 600000 ms for a hook.
  | 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."
  |  
  | 121 \|   describe('Preconfigured cloud policy', () => {
  | 122 \|     describe('With a full preconfigured cloud policy', () => {
  | > 123 \|       beforeAll(async () => {
  | \|       ^
  | 124 \|         await startServers();
  | 125 \|       });
  | 126 \|
  |  
  | at beforeAll (x-pack/plugins/fleet/server/integration_tests/cloud_preconfiguration.test.ts:123:7)
  | at describe (x-pack/plugins/fleet/server/integration_tests/cloud_preconfiguration.test.ts:122:5)
  | at describe (x-pack/plugins/fleet/server/integration_tests/cloud_preconfiguration.test.ts:121:3)
  | at Object.describe (x-pack/plugins/fleet/server/integration_tests/cloud_preconfiguration.test.ts:33:1)
  |  
  | ● Fleet cloud preconfiguration › Preconfigured cloud policy › With a full preconfigured cloud policy › Create correct .fleet-policies
  |  
  | thrown: "Exceeded timeout of 600000 ms for a hook.
  | 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."
  |  
  | 121 \|   describe('Preconfigured cloud policy', () => {
  | 122 \|     describe('With a full preconfigured cloud policy', () => {
  | > 123 \|       beforeAll(async () => {
  | \|       ^
  | 124 \|         await startServers();
  | 125 \|       });
  | 126 \|
  |  
  | at beforeAll (x-pack/plugins/fleet/server/integration_tests/cloud_preconfiguration.test.ts:123:7)
  | at describe (x-pack/plugins/fleet/server/integration_tests/cloud_preconfiguration.test.ts:122:5)
  | at describe (x-pack/plugins/fleet/server/integration_tests/cloud_preconfiguration.test.ts:121:3)
  | at Object.describe (x-pack/plugins/fleet/server/integration_tests/cloud_preconfiguration.test.ts:33:1)
  |  
  | ● Fleet cloud preconfiguration › Preconfigured cloud policy › With a full preconfigured cloud policy › Create correct package policies
  |  
  | thrown: "Exceeded timeout of 600000 ms for a hook.
  | 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."
  |  
  | 121 \|   describe('Preconfigured cloud policy', () => {
  | 122 \|     describe('With a full preconfigured cloud policy', () => {
  | > 123 \|       beforeAll(async () => {
  | \|       ^
  | 124 \|         await startServers();
  | 125 \|       });
  | 126 \|
  |  
  | at beforeAll (x-pack/plugins/fleet/server/integration_tests/cloud_preconfiguration.test.ts:123:7)
  | at describe (x-pack/plugins/fleet/server/integration_tests/cloud_preconfiguration.test.ts:122:5)
  | at describe (x-pack/plugins/fleet/server/integration_tests/cloud_preconfiguration.test.ts:121:3)
  | at Object.describe (x-pack/plugins/fleet/server/integration_tests/cloud_preconfiguration.test.ts:33:1)
jlind23 commented 10 months ago

@kpollich looks like this is not consistent right?

kpollich commented 10 months ago

Yeah this is not consistently reproducible. Closing for now.

kibanamachine commented 9 months ago

New failure: CI Build - 8.12

kibanamachine commented 2 months ago

New failure: kibana-on-merge - main

kibanamachine commented 1 month ago

New failure: kibana-elasticsearch-snapshot-verify - 8.15