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/reporting/server/routes/diagnostic - POST /diagnose/browser returns logs when browser crashes + helpful links #89200

Closed
kibanamachine opened this issue Jan 25, 2021 · 8 comments · Fixed by #118003
Labels
(Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead failed-test A test failure on a tracked branch, potentially flaky-test impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Jan 25, 2021

A test failed on a tracked branch

Error: thrown: "Exceeded timeout of 6000 ms for a test.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."
    at /dev/shm/workspace/parallel/6/kibana/x-pack/plugins/reporting/server/routes/diagnostic/browser.test.ts:108:3
    at _dispatchDescribe (/dev/shm/workspace/kibana/node_modules/jest-circus/build/index.js:67:26)
    at describe (/dev/shm/workspace/kibana/node_modules/jest-circus/build/index.js:30:5)
    at Object.<anonymous> (/dev/shm/workspace/parallel/6/kibana/x-pack/plugins/reporting/server/routes/diagnostic/browser.test.ts:25:1)
    at Runtime._execModule (/dev/shm/workspace/kibana/node_modules/jest-runtime/build/index.js:1299:24)
    at Runtime._loadModule (/dev/shm/workspace/kibana/node_modules/jest-runtime/build/index.js:898:12)
    at Runtime.requireModule (/dev/shm/workspace/kibana/node_modules/jest-runtime/build/index.js:746:10)
    at jestAdapter (/dev/shm/workspace/kibana/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:106:13)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at runTestInternal (/dev/shm/workspace/kibana/node_modules/jest-runner/build/runTest.js:380:16)
    at runTest (/dev/shm/workspace/kibana/node_modules/jest-runner/build/runTest.js:472:34)
    at Object.worker (/dev/shm/workspace/kibana/node_modules/jest-runner/build/testWorker.js:133:12)

First failure: Jenkins Build

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Jan 25, 2021
@kibanamachine
Copy link
Contributor Author

New failure: Jenkins Build

@tsullivan tsullivan added (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead Team:AppServices labels Feb 24, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-reporting-services (Team:Reporting Services)

@tsullivan
Copy link
Member

Although there were two failures logged for this test, none have been logged in the past 30 days. There were several other Jest tests that had a hiccup of failures around this time.

@kibanamachine
Copy link
Contributor Author

New failure: CI Build

@tsullivan
Copy link
Member

Because of these occasional failures, Reporting team should review the implementation of this feature and analyze what about it makes it hit timeouts like this.

The failures could also be related to this known test issue: #87021

@tsullivan
Copy link
Member

Actual logs from the failure:

01:25:46 [2021-09-21T08:25:46.922Z]  FAIL  x-pack/plugins/reporting/server/routes/diagnostic/browser.test.ts (57.424 s)
01:25:46 [2021-09-21T08:25:46.923Z]   ● Console
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]     console.log
01:25:46 [2021-09-21T08:25:46.923Z]       debug Task to monitor for pending reports to run every 3s.
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]       at LevelLogger.&lt;anonymous&gt; (x-pack/plugins/reporting/server/test_helpers/create_mock_levellogger.ts:15:72)
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]     console.log
01:25:46 [2021-09-21T08:25:46.923Z]       info DevTools listening on (ws://localhost:4000)
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]       at LevelLogger.&lt;anonymous&gt; (x-pack/plugins/reporting/server/test_helpers/create_mock_levellogger.ts:15:72)
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]     console.log
01:25:46 [2021-09-21T08:25:46.923Z]       info Successfully sent 'SIGKILL' to browser process (PID: 123)
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]       at LevelLogger.&lt;anonymous&gt; (x-pack/plugins/reporting/server/test_helpers/create_mock_levellogger.ts:15:72)
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]     console.log
01:25:46 [2021-09-21T08:25:46.923Z]       debug Task to monitor for pending reports to run every 3s.
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]       at LevelLogger.&lt;anonymous&gt; (x-pack/plugins/reporting/server/test_helpers/create_mock_levellogger.ts:15:72)
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]     console.log
01:25:46 [2021-09-21T08:25:46.923Z]       info Could not find the default font
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]       at LevelLogger.&lt;anonymous&gt; (x-pack/plugins/reporting/server/test_helpers/create_mock_levellogger.ts:15:72)
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]     console.log
01:25:46 [2021-09-21T08:25:46.923Z]       debug Task to monitor for pending reports to run every 3s.
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]       at LevelLogger.&lt;anonymous&gt; (x-pack/plugins/reporting/server/test_helpers/create_mock_levellogger.ts:15:72)
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]     console.log
01:25:46 [2021-09-21T08:25:46.923Z]       info DevTools listening on (ws://localhost:4000)
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]       at LevelLogger.&lt;anonymous&gt; (x-pack/plugins/reporting/server/test_helpers/create_mock_levellogger.ts:15:72)
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]     console.log
01:25:46 [2021-09-21T08:25:46.923Z]       info Could not find the default font
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]       at LevelLogger.&lt;anonymous&gt; (x-pack/plugins/reporting/server/test_helpers/create_mock_levellogger.ts:15:72)
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]     console.log
01:25:46 [2021-09-21T08:25:46.923Z]       debug Task to monitor for pending reports to run every 3s.
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]       at LevelLogger.&lt;anonymous&gt; (x-pack/plugins/reporting/server/test_helpers/create_mock_levellogger.ts:15:72)
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]     console.log
01:25:46 [2021-09-21T08:25:46.923Z]       info Could not find the default font
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]       at LevelLogger.&lt;anonymous&gt; (x-pack/plugins/reporting/server/test_helpers/create_mock_levellogger.ts:15:72)
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]     console.log
01:25:46 [2021-09-21T08:25:46.923Z]       error Browser exited abnormally, received code: undefined
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]       at LevelLogger.&lt;anonymous&gt; (x-pack/plugins/reporting/server/test_helpers/create_mock_levellogger.ts:15:72)
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]     console.log
01:25:46 [2021-09-21T08:25:46.923Z]       debug Task to monitor for pending reports to run every 3s.
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]       at LevelLogger.&lt;anonymous&gt; (x-pack/plugins/reporting/server/test_helpers/create_mock_levellogger.ts:15:72)
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]     console.log
01:25:46 [2021-09-21T08:25:46.923Z]       info DevTools listening on (ws://localhost:4000)
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]       at LevelLogger.&lt;anonymous&gt; (x-pack/plugins/reporting/server/test_helpers/create_mock_levellogger.ts:15:72)
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.923Z]     console.log
01:25:46 [2021-09-21T08:25:46.923Z]       info Successfully sent 'SIGKILL' to browser process (PID: 123)
01:25:46 [2021-09-21T08:25:46.923Z] 
01:25:46 [2021-09-21T08:25:46.924Z]       at LevelLogger.&lt;anonymous&gt; (x-pack/plugins/reporting/server/test_helpers/create_mock_levellogger.ts:15:72)
01:25:46 [2021-09-21T08:25:46.924Z] 
01:25:46 [2021-09-21T08:25:46.924Z]   ● POST /diagnose/browser › returns logs when browser crashes + helpful links
01:25:46 [2021-09-21T08:25:46.924Z] 
01:25:46 [2021-09-21T08:25:46.924Z]     thrown: "Exceeded timeout of 6000 ms for a test.
01:25:46 [2021-09-21T08:25:46.924Z]     Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."
01:25:46 [2021-09-21T08:25:46.924Z] 
01:25:46 [2021-09-21T08:25:46.924Z]       101 |   });
01:25:46 [2021-09-21T08:25:46.924Z]       102 |
01:25:46 [2021-09-21T08:25:46.924Z]     &gt; 103 |   it('returns logs when browser crashes + helpful links', async () =&gt; {
01:25:46 [2021-09-21T08:25:46.924Z]           |   ^
01:25:46 [2021-09-21T08:25:46.924Z]       104 |     const logs = `Could not find the default font`;
01:25:46 [2021-09-21T08:25:46.924Z]       105 |     registerDiagnoseBrowser(core, mockLogger);
01:25:46 [2021-09-21T08:25:46.924Z]       106 |
01:25:46 [2021-09-21T08:25:46.924Z] 
01:25:46 [2021-09-21T08:25:46.924Z]       at x-pack/plugins/reporting/server/routes/diagnostic/browser.test.ts:103:3
01:25:46 [2021-09-21T08:25:46.924Z]       at Object.&lt;anonymous&gt; (x-pack/plugins/reporting/server/routes/diagnostic/browser.test.ts:31:1)

@exalate-issue-sync exalate-issue-sync bot added impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort labels Sep 22, 2021
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - 7.x

@exalate-issue-sync exalate-issue-sync bot added loe:medium Medium Level of Effort and removed loe:small Small Level of Effort labels Oct 27, 2021
@exalate-issue-sync exalate-issue-sync bot added loe:small Small Level of Effort and removed loe:medium Medium Level of Effort labels Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead failed-test A test failure on a tracked branch, potentially flaky-test impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants