elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.77k stars 8.17k 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 package policies #170414

Open kibanamachine opened 11 months ago

kibanamachine commented 11 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 11 months ago

Pinging @elastic/fleet (Team:Fleet)

jlind23 commented 11 months ago

Transient issue, closing for now.

kibanamachine commented 10 months ago

New failure: CI Build - 8.12

jlind23 commented 10 months ago

There is something weird in the logs here, it logs an error but it clearly stated that the http code was 200

ERROR [docker:docker.elastic.co/package-registry/distribution:lite] {"log.level":"info","@timestamp":"2023-12-07T18:24:11.156Z","log.logger":"http","message":"GET /search HTTP/1.1","source.address":"172.17.0.1","http.request.method":"GET","url.path":"/search","url.domain":"localhost","http.response.code":200,"http.response.body.bytes":1081,"event.duration":1312407,"source.ip":"172.17.0.1","user_agent.original":"Kibana/8.12.0 node-fetch","url.query":"package=fleet_server&prerelease=false&kibana.version=8.12.0","url.port":6104,"ecs.version":"1.6.0"}
--
  | ERROR [docker:docker.elastic.co/package-registry/distribution:lite] {"log.level":"info","@timestamp":"2023-12-07T18:24:11.157Z","log.logger":"http","message":"GET /search HTTP/1.1","source.address":"172.17.0.1","http.request.method":"GET","url.path":"/search","url.domain":"localhost","http.response.code":200,"http.response.body.bytes":945,"event.duration":624593,"source.ip":"172.17.0.1","user_agent.original":"Kibana/8.12.0 node-fetch","url.query":"package=apm&prerelease=false&kibana.version=8.12.0","url.port":6104,"ecs.version":"1.6.0"}
  | ERROR [docker:docker.elastic.co/package-registry/distribution:lite] {"log.level":"info","@timestamp":"2023-12-07T18:24:11.193Z","log.logger":"http","message":"GET /search HTTP/1.1","source.address":"172.17.0.1","http.request.method":"GET","url.path":"/search","url.domain":"localhost","http.response.code":200,"http.response.body.bytes":1081,"event.duration":722696,"source.ip":"172.17.0.1","user_agent.original":"Kibana/8.12.0 node-fetch","url.query":"package=fleet_server&prerelease=false&kibana.version=8.12.0","url.port":6104,"ecs.version":"1.6.0"}
  | ERROR [docker:docker.elastic.co/package-registry/distribution:lite] {"log.level":"info","@timestamp":"2023-12-07T18:24:11.193Z","log.logger":"http","message":"GET /search HTTP/1.1","source.address":"172.17.0.1","http.request.method":"GET","url.path":"/search","url.domain":"localhost","http.response.code":200,"http.response.body.bytes":945,"event.duration":632547,"source.ip":"172.17.0.1","user_agent.original":"Kibana/8.12.0 node-fetch","url.query":"package=apm&prerelease=false&kibana.version=8.12.0","url.port":6104,"ecs.version":"1.6.0"}
  | ERROR [docker:docker.elastic.co/package-registry/distribution:lite] {"log.level":"info","@timestamp":"2023-12-07T18:24:11.194Z","log.logger":"http","message":"GET /package/fleet_server/1.5.0/ HTTP/1.1","source.address":"172.17.0.1","http.request.method":"GET","url.path":"/package/fleet_server/1.5.0/","url.domain":"localhost","http.response.code":200,"http.response.body.bytes":4803,"event.duration":1369997,"source.ip":"172.17.0.1","user_agent.original":"Kibana/8.12.0 node-fetch","url.port":6104,"ecs.version":"1.6.0"}
  | ERROR [docker:docker.elastic.co/package-registry/distribution:lite] {"log.level":"info","@timestamp":"2023-12-07T18:24:11.194Z","log.logger":"http","message":"GET /package/apm/8.4.2/ HTTP/1.1","source.address":"172.17.0.1","http.request.method":"GET","url.path":"/package/apm/8.4.2/","url.domain":"localhost","http.response.code":200,"http.response.body.bytes":22421,"event.duration":1647141,"source.ip":"172.17.0.1","user_agent.original":"Kibana/8.12.0 node-fetch","url.port":6104,"ecs.version":"1.6.0"}
  | ERROR [docker:docker.elastic.co/package-registry/distribution:lite] {"log.level":"info","@timestamp":"2023-12-07T18:24:11.205Z","log.logger":"http","message":"GET /epr/fleet_server/fleet_server-1.5.0.zip HTTP/1.1","source.address":"172.17.0.1","http.request.method":"GET","url.path":"/epr/fleet_server/fleet_server-1.5.0.zip","url.domain":"localhost","http.response.code":200,"http.response.body.bytes":29160,"event.duration":411272,"source.ip":"172.17.0.1","user_agent.original":"Kibana/8.12.0 node-fetch","url.port":6104,"ecs.version":"1.6.0"}
  | ERROR [docker:docker.elastic.co/package-registry/distribution:lite] {"log.level":"info","@timestamp":"2023-12-07T18:24:11.205Z","log.logger":"http","message":"GET /epr/apm/apm-8.4.2.zip HTTP/1.1","source.address":"172.17.0.1","http.request.method":"GET","url.path":"/epr/apm/apm-8.4.2.zip","url.domain":"localhost","http.response.code":200,"http.response.body.bytes":646000,"event.duration":661676,"source.ip":"172.17.0.1","user_agent.original":"Kibana/8.12.0 node-fetch","url.port":6104,"ecs.version":"1.6.0"}
jlind23 commented 10 months ago

Anyway it is again a transient issue due to a timeout:

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-6f9f5facd759a7b1/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-6f9f5facd759a7b1/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-6f9f5facd759a7b1/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-6f9f5facd759a7b1/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-6f9f5facd759a7b1/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-6f9f5facd759a7b1/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-6f9f5facd759a7b1/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-6f9f5facd759a7b1/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-6f9f5facd759a7b1/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-6f9f5facd759a7b1/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-6f9f5facd759a7b1/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-6f9f5facd759a7b1/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-6f9f5facd759a7b1/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-6f9f5facd759a7b1/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-6f9f5facd759a7b1/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-6f9f5facd759a7b1/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/runTest.js:444:34)
kibanamachine commented 3 months ago

New failure: kibana-on-merge - main

kibanamachine commented 1 month ago

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