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: X-Pack API Integration Tests.x-pack/test/api_integration/apis/fleet/setup·ts - apis Fleet Endpoints fleet_setup should create a fleet_enroll user and role #68568

Closed
kibanamachine opened this issue Jun 8, 2020 · 17 comments
Assignees
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 Jun 8, 2020

A test failed on a tracked branch

Error: expected 200 "OK", got 500 "Internal Server Error"
    at Test._assertStatus (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:268:12)
    at Test._assertFunction (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:283:11)
    at Test.assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:173:18)
    at assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:131:12)
    at /dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:128:5
    at Test.Request.callback (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/index.js:718:3)
    at parser (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/index.js:906:18)
    at IncomingMessage.res.on (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/parsers/json.js:19:7)
    at endReadableNT (_stream_readable.js:1145:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

First failure: Jenkins Build

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Jun 8, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-test-triage (failed-test)

@kibanamachine
Copy link
Contributor Author

New failure: Jenkins Build

@kibanamachine
Copy link
Contributor Author

New failure: Jenkins Build

@kibanamachine
Copy link
Contributor Author

New failure: Jenkins Build

@flash1293 flash1293 added the Team:Fleet Team label for Observability Data Collection Fleet team label Jul 14, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@jen-huang jen-huang self-assigned this Jul 16, 2020
@jen-huang
Copy link
Contributor

The failure on July 7 was due to unreachable registry, can't view the previous failure logs but they were likely the same. We now have dockerized registry and some tests using that now, but we should move all our tests to use the dockerized registry:

[00:08:02]                 │ proc [kibana]  error  [04:45:17.902] [warning][process] UnhandledPromiseRejectionWarning: RegistryError: Error connecting to package registry at https://epr.elastic.co/search?package=system&internal=true: request to https://epr.elastic.co/search?package=system&internal=true failed, reason: read ECONNRESET

The recent one from July 13 doesn't seem to related to unreachable registry, so looking into that:

[2020-07-13T23:58:19.671Z]   1) apis
[2020-07-13T23:58:19.671Z]        Fleet Endpoints
[2020-07-13T23:58:19.671Z]          fleet_setup
[2020-07-13T23:58:19.671Z]            should create a fleet_enroll user and role:
[2020-07-13T23:58:19.671Z]      Error: expected 200 "OK", got 500 "Internal Server Error"
[2020-07-13T23:58:19.672Z]       at Test._assertStatus (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:268:12)
[2020-07-13T23:58:19.672Z]       at Test._assertFunction (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:283:11)
[2020-07-13T23:58:19.672Z]       at Test.assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:173:18)
[2020-07-13T23:58:19.672Z]       at assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:131:12)
[2020-07-13T23:58:19.672Z]       at /dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:128:5
[2020-07-13T23:58:19.672Z]       at Test.Request.callback (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/index.js:718:3)
[2020-07-13T23:58:19.672Z]       at parser (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/index.js:906:18)
[2020-07-13T23:58:19.672Z]       at IncomingMessage.res.on (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/parsers/json.js:19:7)
[2020-07-13T23:58:19.672Z]       at endReadableNT (_stream_readable.js:1145:12)
[2020-07-13T23:58:19.672Z]       at process._tickCallback (internal/process/next_tick.js:63:19)
[2020-07-13T23:58:19.672Z] 
[2020-07-13T23:58:19.672Z]                └- ✖ fail: "apis Fleet Endpoints fleet_setup should create a fleet_enroll user and role"
[2020-07-13T23:58:19.672Z]                │
[2020-07-13T23:58:19.672Z]              │ proc [kibana]  error  [23:58:17.769]  Error: Internal Server Error
[2020-07-13T23:58:19.672Z]              │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/install/kibana-7/src/core/server/http/router/response_adapter.js:132:19)
[2020-07-13T23:58:19.672Z]              │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/install/kibana-7/src/core/server/http/router/response_adapter.js:86:19)
[2020-07-13T23:58:19.672Z]              │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/install/kibana-7/src/core/server/http/router/response_adapter.js:81:17)
[2020-07-13T23:58:19.672Z]              │ proc [kibana]     at Router.handle (/dev/shm/workspace/install/kibana-7/src/core/server/http/router/router.js:162:34)
[2020-07-13T23:58:19.672Z]              │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:68:7)
[2020-07-13T23:58:19.672Z]              └-> "after all" hook
[2020-07-13T23:58:19.672Z]            └-> "after all" hook
[2020-07-13T23:58:19.672Z]          └-> "after all" hook
[2020-07-13T23:58:19.672Z]      │
[2020-07-13T23:58:19.672Z]      │704 passing (9.0m)
[2020-07-13T23:58:19.672Z]      │28 pending
[2020-07-13T23:58:19.672Z]      │1 failing

@kibanamachine
Copy link
Contributor Author

New failure: Jenkins Build

@kibanamachine
Copy link
Contributor Author

New failure: Jenkins Build

@kibanamachine
Copy link
Contributor Author

New failure: Jenkins Build

@kibanamachine
Copy link
Contributor Author

New failure: Jenkins Build

@kibanamachine
Copy link
Contributor Author

New failure: Jenkins Build

@jen-huang
Copy link
Contributor

Recent failures look like they were due to issues connecting to registry. #72621 should fix this.

@kibanamachine
Copy link
Contributor Author

New failure: Jenkins Build

@mistic
Copy link
Member

mistic commented Jul 27, 2020

@jen-huang there is any plans to also apply #72621 into 7.8?

@kibanamachine
Copy link
Contributor Author

New failure: Jenkins Build

@jen-huang
Copy link
Contributor

@mistic There aren't any plans at this time. #72621 can't be backported to 7.8 without other large test changes being backported too (namely #69822).

@kibanamachine
Copy link
Contributor Author

New failure: Jenkins Build

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

No branches or pull requests

6 participants