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

Enables tree shaking in production for plugins #62390

Closed
wants to merge 1 commit into from

Conversation

tylersmalley
Copy link
Contributor

@tylersmalley tylersmalley commented Apr 3, 2020

A 20%/2.62 MB reduction in the Javascript assets from the home page and a 53% reduction across all new platform plugins.

Blocked by:

We will need to follow-up with an audit of code paths which are still included, but unused. Some examples of this include the continued use of default exports where often times they return an object. Additionally, anywhere else that imports commonjs code.

@tylersmalley tylersmalley force-pushed the tree-shaking branch 3 times, most recently from e24d506 to 8ff2de0 Compare April 3, 2020 15:16
package.json Outdated Show resolved Hide resolved
@tylersmalley
Copy link
Contributor Author

Blocked on #63656

.eslintrc.js Outdated Show resolved Hide resolved
@@ -17,14 +17,14 @@
* under the License.
*/
import _ from 'lodash';
import mappings from '../../mappings/mappings';
import { getIndices } from '../../mappings/mappings';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is tree shaking not applicable to the old import style?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will include the entire object. In the case of mappings, it was an object containing all the functions which wouldn't be able to be trimmed.

We also disallow default exports.

src/plugins/console/public/lib/row_parser.ts Outdated Show resolved Hide resolved
@tylersmalley tylersmalley force-pushed the tree-shaking branch 2 times, most recently from 3f5de8c to f855331 Compare May 5, 2020 18:07
/* eslint-disable */
console.log(_util.default.format('hello world'));"
`);
"/* eslint-disable */
Copy link
Contributor Author

@tylersmalley tylersmalley May 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole file is removed in #65332

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
@tylersmalley tylersmalley changed the title Enables tree shaking Enables tree shaking in production for plugins May 5, 2020
@kibanamachine
Copy link
Contributor

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / kibana-oss-agent / Accessibility Tests.test/accessibility/apps/dashboard·ts.Dashboard dashboard

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: Dashboard
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:00]             │ debg navigateToUrl http://localhost:61141/app/kibana#/home/tutorial_directory/sampleData
[00:00:00]             │ debg browser[INFO] http://localhost:61141/app/kibana?_t=1588720240586#/home/tutorial_directory/sampleData 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:00]             │
[00:00:00]             │ debg browser[INFO] http://localhost:61141/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:00]             │ debg currentUrl = http://localhost:61141/app/kibana#/home/tutorial_directory/sampleData
[00:00:00]             │          appUrl = http://localhost:61141/app/kibana#/home/tutorial_directory/sampleData
[00:00:00]             │ debg TestSubjects.find(kibanaChrome)
[00:00:00]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:02]             │ debg browser[INFO] http://localhost:61141/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-05T23:10:42Z
[00:00:02]             │        Adding connection to http://localhost:61141/elasticsearch
[00:00:02]             │
[00:00:02]             │      "
[00:00:02]             │ debg TestSubjects.exists(addSampleDataSetflights)
[00:00:02]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="addSampleDataSetflights"]') with timeout=2500
[00:00:03]             │ debg TestSubjects.click(addSampleDataSetflights)
[00:00:03]             │ debg Find.clickByCssSelector('[data-test-subj="addSampleDataSetflights"]') with timeout=10000
[00:00:03]             │ debg Find.findByCssSelector('[data-test-subj="addSampleDataSetflights"]') with timeout=10000
[00:00:03]             │ debg TestSubjects.find(sampleDataSetCardflights)
[00:00:03]             │ debg Find.findByCssSelector('[data-test-subj="sampleDataSetCardflights"]') with timeout=10000
[00:00:03]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] applying create index request using v1 templates []
[00:00:03]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [kibana_sample_data_flights] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:03]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] updating number_of_replicas to [0] for indices [kibana_sample_data_flights]
[00:00:03]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[kibana_sample_data_flights][0]]])." previous.health="YELLOW" reason="shards started [[kibana_sample_data_flights][0]]"
[00:00:09]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana_1/ClvJFdtLTJShWKOUFPR-Uw] update_mapping [_doc]
[00:00:09]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana_1/ClvJFdtLTJShWKOUFPR-Uw] update_mapping [_doc]
[00:00:09]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana_1/ClvJFdtLTJShWKOUFPR-Uw] update_mapping [_doc]
[00:00:09]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana_1/ClvJFdtLTJShWKOUFPR-Uw] update_mapping [_doc]
[00:00:11]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana_1/ClvJFdtLTJShWKOUFPR-Uw] update_mapping [_doc]
[00:00:12]           └-> dashboard
[00:00:12]             └-> "before each" hook: global before each
[00:00:12]             │ debg navigating to dashboard url: http://localhost:61141/app/kibana#/dashboards
[00:00:12]             │ debg navigate to: http://localhost:61141/app/kibana#/dashboards
[00:00:12]             │ debg ... sleep(700) start
[00:00:12]             │ debg browser[INFO] http://localhost:61141/app/kibana?_t=1588720252716#/dashboards 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:12]             │
[00:00:12]             │ debg browser[INFO] http://localhost:61141/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:12]             │ debg ... sleep(700) end
[00:00:12]             │ debg returned from get, calling refresh
[00:00:14]             │ debg browser[INFO] http://localhost:61141/app/kibana?_t=1588720252716#/dashboards 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:14]             │
[00:00:14]             │ debg browser[INFO] http://localhost:61141/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:14]             │ debg currentUrl = http://localhost:61141/app/kibana#/dashboards
[00:00:14]             │          appUrl = http://localhost:61141/app/kibana#/dashboards
[00:00:14]             │ debg TestSubjects.find(kibanaChrome)
[00:00:14]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:14]             │ debg TestSubjects.find(kibanaChrome)
[00:00:14]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:00:14]             │ debg browser[INFO] http://localhost:61141/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-05T23:10:54Z
[00:00:14]             │        Adding connection to http://localhost:61141/elasticsearch
[00:00:14]             │
[00:00:14]             │      "
[00:00:14]             │ debg browser[INFO] http://localhost:61141/32887/bundles/commons.bundle.js 0:1197829 "Detected an unhandled Promise rejection.
[00:00:14]             │      Error: [$injector:modulerr] Failed to instantiate module app/dashboard due to:
[00:00:14]             │      Error: [$injector:unpr] Unknown provider: t
[00:00:14]             │
[00:00:14]             │      https://errors.angularjs.org/1.7.9/$injector/modulerr?p0=app%2Fdashboard&p1=Error%3A%20%5B%24injector%3Aunpr%5D%20Unknown%20provider%3A%20t%0Ahttps%3A%2F%2Ferrors.angularjs.org%2F1.7.9%2F%24injector%2Funpr%3Fp0%3Dt%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A837%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A23977%0A%20%20%20%20at%20s%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25595)%0A%20%20%20%20at%20l%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25900)%0A%20%20%20%20at%20Object.invoke%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25988)%0A%20%20%20%20at%20r%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25384)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25009%0A%20%20%20%20at%20M%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A1529)%0A%20%20%20%20at%20_%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A24869)%0A%20%20%20%20at%20Vt%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A24189)"
[00:00:14]             │ERROR browser[SEVERE] http://localhost:61141/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 333:836 Uncaught Error: [$injector:modulerr] Failed to instantiate module …hared-deps%2Fkbn-ui-shared-deps.js%3A334%3A24189)
[00:00:14]             │ debg ... sleep(501) start
[00:00:15]             │ debg ... sleep(501) end
[00:00:15]             │ debg in navigateTo url = http://localhost:61141/app/kibana#/dashboards
[00:00:15]             │ debg TestSubjects.exists(statusPageContainer)
[00:00:15]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:17]             │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:18]             │ info Taking screenshot "/dev/shm/workspace/kibana/test/functional/screenshots/failure/Dashboard dashboard.png"
[00:00:18]             │ info Current URL is: http://localhost:61141/app/kibana#/dashboards
[00:00:18]             │ info Saving page source to: /dev/shm/workspace/kibana/test/functional/failure_debug/html/Dashboard dashboard.html
[00:00:18]             └- ✖ fail: "Dashboard dashboard"
[00:00:18]             │

Stack Trace

Error: a11y report:

VIOLATION
  [bypass]: Ensures each page has at least one mechanism for a user to bypass navigation and jump straight to the content
    Help: https://dequeuniversity.com/rules/axe/3.5/bypass?application=axeAPI
    Elements:
      - html
    at Accessibility.testAxeReport (test/accessibility/services/a11y/a11y.ts:85:15)
    at Accessibility.testAppSnapshot (test/accessibility/services/a11y/a11y.ts:58:18)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Kibana Pipeline / kibana-oss-agent / Accessibility Tests.test/accessibility/apps/dashboard·ts.Dashboard "after all" hook for "Open flight dashboard"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: Dashboard
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:00]             │ debg navigateToUrl http://localhost:61141/app/kibana#/home/tutorial_directory/sampleData
[00:00:00]             │ debg browser[INFO] http://localhost:61141/app/kibana?_t=1588720240586#/home/tutorial_directory/sampleData 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:00]             │
[00:00:00]             │ debg browser[INFO] http://localhost:61141/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:00]             │ debg currentUrl = http://localhost:61141/app/kibana#/home/tutorial_directory/sampleData
[00:00:00]             │          appUrl = http://localhost:61141/app/kibana#/home/tutorial_directory/sampleData
[00:00:00]             │ debg TestSubjects.find(kibanaChrome)
[00:00:00]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:02]             │ debg browser[INFO] http://localhost:61141/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-05T23:10:42Z
[00:00:02]             │        Adding connection to http://localhost:61141/elasticsearch
[00:00:02]             │
[00:00:02]             │      "
[00:00:02]             │ debg TestSubjects.exists(addSampleDataSetflights)
[00:00:02]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="addSampleDataSetflights"]') with timeout=2500
[00:00:03]             │ debg TestSubjects.click(addSampleDataSetflights)
[00:00:03]             │ debg Find.clickByCssSelector('[data-test-subj="addSampleDataSetflights"]') with timeout=10000
[00:00:03]             │ debg Find.findByCssSelector('[data-test-subj="addSampleDataSetflights"]') with timeout=10000
[00:00:03]             │ debg TestSubjects.find(sampleDataSetCardflights)
[00:00:03]             │ debg Find.findByCssSelector('[data-test-subj="sampleDataSetCardflights"]') with timeout=10000
[00:00:03]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] applying create index request using v1 templates []
[00:00:03]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [kibana_sample_data_flights] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:03]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] updating number_of_replicas to [0] for indices [kibana_sample_data_flights]
[00:00:03]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[kibana_sample_data_flights][0]]])." previous.health="YELLOW" reason="shards started [[kibana_sample_data_flights][0]]"
[00:00:09]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana_1/ClvJFdtLTJShWKOUFPR-Uw] update_mapping [_doc]
[00:00:09]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana_1/ClvJFdtLTJShWKOUFPR-Uw] update_mapping [_doc]
[00:00:09]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana_1/ClvJFdtLTJShWKOUFPR-Uw] update_mapping [_doc]
[00:00:09]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana_1/ClvJFdtLTJShWKOUFPR-Uw] update_mapping [_doc]
[00:00:11]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana_1/ClvJFdtLTJShWKOUFPR-Uw] update_mapping [_doc]
[00:00:12]           └-> dashboard
[00:00:12]             └-> "before each" hook: global before each
[00:00:12]             │ debg navigating to dashboard url: http://localhost:61141/app/kibana#/dashboards
[00:00:12]             │ debg navigate to: http://localhost:61141/app/kibana#/dashboards
[00:00:12]             │ debg ... sleep(700) start
[00:00:12]             │ debg browser[INFO] http://localhost:61141/app/kibana?_t=1588720252716#/dashboards 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:12]             │
[00:00:12]             │ debg browser[INFO] http://localhost:61141/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:12]             │ debg ... sleep(700) end
[00:00:12]             │ debg returned from get, calling refresh
[00:00:14]             │ debg browser[INFO] http://localhost:61141/app/kibana?_t=1588720252716#/dashboards 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:14]             │
[00:00:14]             │ debg browser[INFO] http://localhost:61141/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:14]             │ debg currentUrl = http://localhost:61141/app/kibana#/dashboards
[00:00:14]             │          appUrl = http://localhost:61141/app/kibana#/dashboards
[00:00:14]             │ debg TestSubjects.find(kibanaChrome)
[00:00:14]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:14]             │ debg TestSubjects.find(kibanaChrome)
[00:00:14]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:00:14]             │ debg browser[INFO] http://localhost:61141/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-05T23:10:54Z
[00:00:14]             │        Adding connection to http://localhost:61141/elasticsearch
[00:00:14]             │
[00:00:14]             │      "
[00:00:14]             │ debg browser[INFO] http://localhost:61141/32887/bundles/commons.bundle.js 0:1197829 "Detected an unhandled Promise rejection.
[00:00:14]             │      Error: [$injector:modulerr] Failed to instantiate module app/dashboard due to:
[00:00:14]             │      Error: [$injector:unpr] Unknown provider: t
[00:00:14]             │
[00:00:14]             │      https://errors.angularjs.org/1.7.9/$injector/modulerr?p0=app%2Fdashboard&p1=Error%3A%20%5B%24injector%3Aunpr%5D%20Unknown%20provider%3A%20t%0Ahttps%3A%2F%2Ferrors.angularjs.org%2F1.7.9%2F%24injector%2Funpr%3Fp0%3Dt%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A837%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A23977%0A%20%20%20%20at%20s%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25595)%0A%20%20%20%20at%20l%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25900)%0A%20%20%20%20at%20Object.invoke%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25988)%0A%20%20%20%20at%20r%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25384)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25009%0A%20%20%20%20at%20M%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A1529)%0A%20%20%20%20at%20_%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A24869)%0A%20%20%20%20at%20Vt%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A24189)"
[00:00:14]             │ERROR browser[SEVERE] http://localhost:61141/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 333:836 Uncaught Error: [$injector:modulerr] Failed to instantiate module …hared-deps%2Fkbn-ui-shared-deps.js%3A334%3A24189)
[00:00:14]             │ debg ... sleep(501) start
[00:00:15]             │ debg ... sleep(501) end
[00:00:15]             │ debg in navigateTo url = http://localhost:61141/app/kibana#/dashboards
[00:00:15]             │ debg TestSubjects.exists(statusPageContainer)
[00:00:15]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:17]             │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:18]             │ info Taking screenshot "/dev/shm/workspace/kibana/test/functional/screenshots/failure/Dashboard dashboard.png"
[00:00:18]             │ info Current URL is: http://localhost:61141/app/kibana#/dashboards
[00:00:18]             │ info Saving page source to: /dev/shm/workspace/kibana/test/functional/failure_debug/html/Dashboard dashboard.html
[00:00:18]             └- ✖ fail: "Dashboard dashboard"
[00:00:18]             │
[00:00:18]           └-> "after all" hook
[00:00:18]             │ debg navigating to dashboard url: http://localhost:61141/app/kibana#/dashboards
[00:00:18]             │ debg navigate to: http://localhost:61141/app/kibana#/dashboards
[00:00:18]             │ debg browser[INFO] http://localhost:61141/app/kibana?_t=1588720259401#/dashboards 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:18]             │
[00:00:18]             │ debg browser[INFO] http://localhost:61141/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:18]             │ debg ... sleep(700) start
[00:00:19]             │ debg ... sleep(700) end
[00:00:19]             │ debg returned from get, calling refresh
[00:00:20]             │ debg browser[INFO] http://localhost:61141/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-05T23:11:00Z
[00:00:20]             │        Adding connection to http://localhost:61141/elasticsearch
[00:00:20]             │
[00:00:20]             │      "
[00:00:20]             │ERROR browser[SEVERE] http://localhost:61141/32887/bundles/commons.bundle.js 0:1196827 TypeError: Failed to fetch
[00:00:20]             │          at Fetch._callee3$ (http://localhost:61141/32887/bundles/commons.bundle.js:1:1226109)
[00:00:20]             │          at l (http://localhost:61141/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:702520)
[00:00:20]             │          at Generator._invoke (http://localhost:61141/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:702273)
[00:00:20]             │          at Generator.forEach.e.<computed> [as throw] (http://localhost:61141/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:702877)
[00:00:20]             │          at asyncGeneratorStep (http://localhost:61141/32887/bundles/commons.bundle.js:1:1220606)
[00:00:20]             │          at _throw (http://localhost:61141/32887/bundles/commons.bundle.js:1:1221003)
[00:00:20]             │ debg browser[INFO] http://localhost:61141/app/kibana?_t=1588720259401#/dashboards 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:20]             │
[00:00:20]             │ debg browser[INFO] http://localhost:61141/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:20]             │ debg currentUrl = http://localhost:61141/app/kibana#/dashboards
[00:00:20]             │          appUrl = http://localhost:61141/app/kibana#/dashboards
[00:00:20]             │ debg TestSubjects.find(kibanaChrome)
[00:00:20]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:20]             │ debg TestSubjects.find(kibanaChrome)
[00:00:20]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:00:20]             │ debg browser[INFO] http://localhost:61141/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-05T23:11:00Z
[00:00:20]             │        Adding connection to http://localhost:61141/elasticsearch
[00:00:20]             │
[00:00:20]             │      "
[00:00:20]             │ debg browser[INFO] http://localhost:61141/32887/bundles/commons.bundle.js 0:1197829 "Detected an unhandled Promise rejection.
[00:00:20]             │      Error: [$injector:modulerr] Failed to instantiate module app/dashboard due to:
[00:00:20]             │      Error: [$injector:unpr] Unknown provider: t
[00:00:20]             │
[00:00:20]             │      https://errors.angularjs.org/1.7.9/$injector/modulerr?p0=app%2Fdashboard&p1=Error%3A%20%5B%24injector%3Aunpr%5D%20Unknown%20provider%3A%20t%0Ahttps%3A%2F%2Ferrors.angularjs.org%2F1.7.9%2F%24injector%2Funpr%3Fp0%3Dt%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A837%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A23977%0A%20%20%20%20at%20s%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25595)%0A%20%20%20%20at%20l%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25900)%0A%20%20%20%20at%20Object.invoke%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25988)%0A%20%20%20%20at%20r%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25384)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25009%0A%20%20%20%20at%20M%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A1529)%0A%20%20%20%20at%20_%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A24869)%0A%20%20%20%20at%20Vt%20(http%3A%2F%2Flocalhost%3A61141%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A24189)"
[00:00:20]             │ERROR browser[SEVERE] http://localhost:61141/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 333:836 Uncaught Error: [$injector:modulerr] Failed to instantiate module …hared-deps%2Fkbn-ui-shared-deps.js%3A334%3A24189)
[00:00:20]             │ debg ... sleep(501) start
[00:00:21]             │ debg ... sleep(501) end
[00:00:21]             │ debg in navigateTo url = http://localhost:61141/app/kibana#/dashboards
[00:00:21]             │ debg TestSubjects.exists(statusPageContainer)
[00:00:21]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:23]             │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:24]             │ debg searchForItemWithName: Dashboard Listing A11y
[00:00:24]             │ debg Find.allByCssSelector('.euiFieldSearch') with timeout=10000
[00:00:34]             │ debg --- retry.try error: Cannot read property 'clearValue' of undefined
[00:00:34]             │ debg Find.allByCssSelector('.euiFieldSearch') with timeout=10000
[00:00:44]             │ debg --- retry.try failed again with the same message...
[00:00:45]             │ debg Find.allByCssSelector('.euiFieldSearch') with timeout=10000
[00:00:55]             │ debg --- retry.try failed again with the same message...
[00:00:55]             │ debg Find.allByCssSelector('.euiFieldSearch') with timeout=10000
[00:01:05]             │ debg --- retry.try failed again with the same message...
[00:01:06]             │ debg Find.allByCssSelector('.euiFieldSearch') with timeout=10000
[00:01:16]             │ debg --- retry.try failed again with the same message...
[00:01:16]             │ debg Find.allByCssSelector('.euiFieldSearch') with timeout=10000
[00:01:26]             │ debg --- retry.try failed again with the same message...
[00:01:27]             │ debg Find.allByCssSelector('.euiFieldSearch') with timeout=10000
[00:01:37]             │ debg --- retry.try failed again with the same message...
[00:01:37]             │ debg Find.allByCssSelector('.euiFieldSearch') with timeout=10000
[00:01:47]             │ debg --- retry.try failed again with the same message...
[00:01:48]             │ debg Find.allByCssSelector('.euiFieldSearch') with timeout=10000
[00:01:58]             │ debg --- retry.try failed again with the same message...
[00:01:58]             │ debg Find.allByCssSelector('.euiFieldSearch') with timeout=10000
[00:02:08]             │ debg --- retry.try failed again with the same message...
[00:02:09]             │ debg Find.allByCssSelector('.euiFieldSearch') with timeout=10000
[00:02:19]             │ debg --- retry.try failed again with the same message...
[00:02:20]             │ debg Find.allByCssSelector('.euiFieldSearch') with timeout=10000
[00:02:30]             │ debg --- retry.try failed again with the same message...
[00:02:30]             │ info Taking screenshot "/dev/shm/workspace/kibana/test/functional/screenshots/failure/Dashboard _after all_ hook.png"
[00:02:30]             │ info Current URL is: http://localhost:61141/app/kibana#/dashboards
[00:02:30]             │ info Saving page source to: /dev/shm/workspace/kibana/test/functional/failure_debug/html/Dashboard _after all_ hook.html
[00:02:30]             └- ✖ fail: "Dashboard "after all" hook for "Open flight dashboard""
[00:02:30]             │

Stack Trace

Error: retry.try timeout: TypeError: Cannot read property 'clearValue' of undefined
    at retry.try (test/functional/services/listing_table.ts:104:28)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at onFailure (test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (test/common/services/retry/retry_for_success.ts:68:13)

Kibana Pipeline / kibana-oss-agent / Chrome UI Functional Tests.test/functional/apps/context/_context_navigation·js.context app context link in discover "before all" hook for "should go back after loading"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:12]         └-: context app
[00:00:12]           └-> "before all" hook
[00:00:12]           └-> "before all" hook
[00:00:12]             │ info [logstash_functional] Loading "mappings.json"
[00:00:12]             │ info [logstash_functional] Loading "data.json.gz"
[00:00:12]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] applying create index request using v1 templates []
[00:00:12]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:00:12]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.22][0]]"
[00:00:12]             │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:00:12]             │ debg [logstash_functional] "logstash-2015.09.22" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:12]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] applying create index request using v1 templates []
[00:00:12]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:00:12]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.20][0]]"
[00:00:12]             │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:00:12]             │ debg [logstash_functional] "logstash-2015.09.20" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:12]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] applying create index request using v1 templates []
[00:00:12]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:00:12]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.21][0]]"
[00:00:12]             │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:00:12]             │ debg [logstash_functional] "logstash-2015.09.21" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:22]             │ info progress: 11727
[00:00:24]             │ info [logstash_functional] Indexed 4633 docs into "logstash-2015.09.22"
[00:00:24]             │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:00:24]             │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:00:24]             │ info [visualize] Loading "mappings.json"
[00:00:24]             │ info [visualize] Loading "data.json"
[00:00:24]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana_1/bFiOK4KEThihZYLCsv0XXw] deleting index
[00:00:24]             │ info [visualize] Deleted existing index [".kibana_1"]
[00:00:24]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] applying create index request using v1 templates []
[00:00:24]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:24]             │ info [visualize] Created index ".kibana"
[00:00:24]             │ debg [visualize] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:00:24]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana/IXG5wqUiToimWVQLc0fCuA] update_mapping [_doc]
[00:00:24]             │ info [visualize] Indexed 12 docs into ".kibana"
[00:00:24]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana/IXG5wqUiToimWVQLc0fCuA] update_mapping [_doc]
[00:00:24]             │ debg Migrating saved objects
[00:00:24]             │ proc [kibana]   log   [23:07:07.856] [info][savedobjects-service] Creating index .kibana_2.
[00:00:24]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] applying create index request using v1 templates []
[00:00:24]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:24]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:24]             │ proc [kibana]   log   [23:07:07.946] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:00:24]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] applying create index request using v1 templates []
[00:00:24]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:24]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] updating number_of_replicas to [0] for indices [.kibana_1]
[00:00:25]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] applying create index request using v1 templates []
[00:00:25]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1], mappings [_doc]
[00:00:25]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] updating number_of_replicas to [0] for indices [.tasks]
[00:00:25]             │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] 828 finished with response BulkByScrollResponse[took=67.7ms,timed_out=false,sliceId=null,updated=0,created=12,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:25]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana/IXG5wqUiToimWVQLc0fCuA] deleting index
[00:00:25]             │ proc [kibana]   log   [23:07:08.435] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:25]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana_2/DHNahKJfQt6b_ljTsEzOYA] update_mapping [_doc]
[00:00:25]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana_2/DHNahKJfQt6b_ljTsEzOYA] update_mapping [_doc]
[00:00:25]             │ proc [kibana]   log   [23:07:08.611] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:25]             │ proc [kibana]   log   [23:07:08.697] [info][savedobjects-service] Finished in 844ms.
[00:00:25]             │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:00:25]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana_2/DHNahKJfQt6b_ljTsEzOYA] update_mapping [_doc]
[00:00:26]             │ debg replacing kibana config doc: {"defaultIndex":"logstash-*"}
[00:00:27]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588718938527567901] [.kibana_2/DHNahKJfQt6b_ljTsEzOYA] update_mapping [_doc]
[00:00:28]             │ debg navigating to discover url: http://localhost:6121/app/kibana#/discover
[00:00:28]             │ debg navigate to: http://localhost:6121/app/kibana#/discover
[00:00:28]             │ debg browser[INFO] http://localhost:6121/app/kibana?_t=1588720031017#/discover 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:28]             │
[00:00:28]             │ debg browser[INFO] http://localhost:6121/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:28]             │ debg ... sleep(700) start
[00:00:28]             │ debg ... sleep(700) end
[00:00:28]             │ debg returned from get, calling refresh
[00:00:29]             │ debg browser[INFO] http://localhost:6121/app/kibana?_t=1588720031017#/discover 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:29]             │
[00:00:29]             │ debg browser[INFO] http://localhost:6121/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:29]             │ debg currentUrl = http://localhost:6121/app/kibana#/discover
[00:00:29]             │          appUrl = http://localhost:6121/app/kibana#/discover
[00:00:29]             │ debg TestSubjects.find(kibanaChrome)
[00:00:29]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:31]             │ debg TestSubjects.find(kibanaChrome)
[00:00:31]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:00:31]             │ debg browser[INFO] http://localhost:6121/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-05T23:07:13Z
[00:00:31]             │        Adding connection to http://localhost:6121/elasticsearch
[00:00:31]             │
[00:00:31]             │      "
[00:00:31]             │ debg ... sleep(501) start
[00:00:31]             │ debg browser[INFO] http://localhost:6121/32887/bundles/commons.bundle.js 0:1197829 "Detected an unhandled Promise rejection.
[00:00:31]             │      Error: [$injector:modulerr] Failed to instantiate module app/discover due to:
[00:00:31]             │      Error: [$injector:unpr] Unknown provider: e
[00:00:31]             │
[00:00:31]             │      https://errors.angularjs.org/1.7.9/$injector/modulerr?p0=app%2Fdiscover&p1=Error%3A%20%5B%24injector%3Aunpr%5D%20Unknown%20provider%3A%20e%0Ahttps%3A%2F%2Ferrors.angularjs.org%2F1.7.9%2F%24injector%2Funpr%3Fp0%3De%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A837%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A23977%0A%20%20%20%20at%20s%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25595)%0A%20%20%20%20at%20l%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25900)%0A%20%20%20%20at%20Object.invoke%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25988)%0A%20%20%20%20at%20r%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25384)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25009%0A%20%20%20%20at%20M%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A1529)%0A%20%20%20%20at%20_%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A24869)%0A%20%20%20%20at%20Vt%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A24189)"
[00:00:31]             │ERROR browser[SEVERE] http://localhost:6121/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 333:836 Uncaught Error: [$injector:modulerr] Failed to instantiate module …hared-deps%2Fkbn-ui-shared-deps.js%3A334%3A24189)
[00:00:31]             │ debg ... sleep(501) end
[00:00:31]             │ debg in navigateTo url = http://localhost:6121/app/kibana#/discover
[00:00:31]             │ debg TestSubjects.exists(statusPageContainer)
[00:00:31]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:34]             │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:34]           └-: context link in discover
[00:00:34]             └-> "before all" hook
[00:00:34]             └-> "before all" hook
[00:00:34]               │ debg navigating to discover url: http://localhost:6121/app/kibana#/discover
[00:00:34]               │ debg navigate to: http://localhost:6121/app/kibana#/discover
[00:00:34]               │ debg browser[INFO] http://localhost:6121/app/kibana?_t=1588720037588#/discover 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:34]               │
[00:00:34]               │ debg browser[INFO] http://localhost:6121/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:34]               │ debg ... sleep(700) start
[00:00:35]               │ debg ... sleep(700) end
[00:00:35]               │ debg returned from get, calling refresh
[00:00:35]               │ debg browser[INFO] http://localhost:6121/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-05T23:07:18Z
[00:00:35]               │        Adding connection to http://localhost:6121/elasticsearch
[00:00:35]               │
[00:00:35]               │      "
[00:00:36]               │ debg browser[INFO] http://localhost:6121/32887/bundles/commons.bundle.js 0:1197829 "Detected an unhandled Promise rejection.
[00:00:36]               │      Error: [$injector:modulerr] Failed to instantiate module app/discover due to:
[00:00:36]               │      Error: [$injector:unpr] Unknown provider: e
[00:00:36]               │
[00:00:36]               │      https://errors.angularjs.org/1.7.9/$injector/modulerr?p0=app%2Fdiscover&p1=Error%3A%20%5B%24injector%3Aunpr%5D%20Unknown%20provider%3A%20e%0Ahttps%3A%2F%2Ferrors.angularjs.org%2F1.7.9%2F%24injector%2Funpr%3Fp0%3De%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A837%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A23977%0A%20%20%20%20at%20s%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25595)%0A%20%20%20%20at%20l%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25900)%0A%20%20%20%20at%20Object.invoke%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25988)%0A%20%20%20%20at%20r%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25384)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25009%0A%20%20%20%20at%20M%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A1529)%0A%20%20%20%20at%20_%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A24869)%0A%20%20%20%20at%20Vt%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A24189)"
[00:00:36]               │ERROR browser[SEVERE] http://localhost:6121/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 333:836 Uncaught Error: [$injector:modulerr] Failed to instantiate module …hared-deps%2Fkbn-ui-shared-deps.js%3A334%3A24189)
[00:00:36]               │ERROR browser[SEVERE] http://localhost:6121/32887/bundles/plugin/newsfeed/newsfeed.plugin.js 5:12011 TypeError: Failed to fetch
[00:00:36]               │          at Fetch._callee3$ (http://localhost:6121/32887/bundles/commons.bundle.js:1:1226870)
[00:00:36]               │          at l (http://localhost:6121/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:702520)
[00:00:36]               │          at Generator._invoke (http://localhost:6121/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:702273)
[00:00:36]               │          at Generator.forEach.e.<computed> [as throw] (http://localhost:6121/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:702877)
[00:00:36]               │          at asyncGeneratorStep (http://localhost:6121/32887/bundles/commons.bundle.js:1:1220606)
[00:00:36]               │          at _throw (http://localhost:6121/32887/bundles/commons.bundle.js:1:1221003)
[00:00:36]               │ debg browser[INFO] http://localhost:6121/app/kibana?_t=1588720037588#/discover 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:36]               │
[00:00:36]               │ debg browser[INFO] http://localhost:6121/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:36]               │ debg currentUrl = http://localhost:6121/app/kibana#/discover
[00:00:36]               │          appUrl = http://localhost:6121/app/kibana#/discover
[00:00:36]               │ debg TestSubjects.find(kibanaChrome)
[00:00:36]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:36]               │ debg TestSubjects.find(kibanaChrome)
[00:00:36]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:00:36]               │ debg browser[INFO] http://localhost:6121/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-05T23:07:19Z
[00:00:36]               │        Adding connection to http://localhost:6121/elasticsearch
[00:00:36]               │
[00:00:36]               │      "
[00:00:36]               │ debg ... sleep(501) start
[00:00:36]               │ debg browser[INFO] http://localhost:6121/32887/bundles/commons.bundle.js 0:1197829 "Detected an unhandled Promise rejection.
[00:00:36]               │      Error: [$injector:modulerr] Failed to instantiate module app/discover due to:
[00:00:36]               │      Error: [$injector:unpr] Unknown provider: e
[00:00:36]               │
[00:00:36]               │      https://errors.angularjs.org/1.7.9/$injector/modulerr?p0=app%2Fdiscover&p1=Error%3A%20%5B%24injector%3Aunpr%5D%20Unknown%20provider%3A%20e%0Ahttps%3A%2F%2Ferrors.angularjs.org%2F1.7.9%2F%24injector%2Funpr%3Fp0%3De%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A837%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A23977%0A%20%20%20%20at%20s%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25595)%0A%20%20%20%20at%20l%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25900)%0A%20%20%20%20at%20Object.invoke%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25988)%0A%20%20%20%20at%20r%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25384)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A25009%0A%20%20%20%20at%20M%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A1529)%0A%20%20%20%20at%20_%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A24869)%0A%20%20%20%20at%20Vt%20(http%3A%2F%2Flocalhost%3A6121%2F32887%2Fbundles%2Fkbn-ui-shared-deps%2Fkbn-ui-shared-deps.js%3A334%3A24189)"
[00:00:36]               │ERROR browser[SEVERE] http://localhost:6121/32887/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 333:836 Uncaught Error: [$injector:modulerr] Failed to instantiate module …hared-deps%2Fkbn-ui-shared-deps.js%3A334%3A24189)
[00:00:37]               │ debg ... sleep(501) end
[00:00:37]               │ debg in navigateTo url = http://localhost:6121/app/kibana#/discover
[00:00:37]               │ debg TestSubjects.exists(statusPageContainer)
[00:00:37]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:39]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:40]               │ debg Setting absolute range to Sep 19, 2015 @ 06:31:44.000 to Sep 23, 2015 @ 18:31:44.000
[00:00:40]               │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:00:40]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:00:42]               │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerToggleQuickMenuButton"] is not displayed
[00:00:45]               │ debg --- retry.tryForTime failed again with the same message...
[00:00:48]               │ debg --- retry.tryForTime failed again with the same message...
[00:00:51]               │ debg --- retry.tryForTime failed again with the same message...
[00:00:54]               │ debg --- retry.tryForTime failed again with the same message...
[00:00:57]               │ debg --- retry.tryForTime failed again with the same message...
[00:01:00]               │ debg --- retry.tryForTime failed again with the same message...
[00:01:01]               │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:01:01]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:01:03]               │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerShowDatesButton"] is not displayed
[00:01:04]               │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:01:04]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:01:06]               │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerstartDatePopoverButton"] is not displayed
[00:01:07]               │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:01:07]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:01:07]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:01:17]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="superDatePickerendDatePopoverButton"])
[00:01:17]               │      Wait timed out after 10032ms
[00:01:17]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:01:27]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="superDatePickerendDatePopoverButton"])
[00:01:27]               │      Wait timed out after 10057ms
[00:01:28]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:01:38]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="superDatePickerendDatePopoverButton"])
[00:01:38]               │      Wait timed out after 10031ms
[00:01:39]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:01:49]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="superDatePickerendDatePopoverButton"])
[00:01:49]               │      Wait timed out after 10059ms
[00:01:49]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:01:59]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="superDatePickerendDatePopoverButton"])
[00:01:59]               │      Wait timed out after 10046ms
[00:02:00]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:02:10]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="superDatePickerendDatePopoverButton"])
[00:02:10]               │      Wait timed out after 10025ms
[00:02:10]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:02:20]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="superDatePickerendDatePopoverButton"])
[00:02:20]               │      Wait timed out after 10010ms
[00:02:21]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:02:31]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="superDatePickerendDatePopoverButton"])
[00:02:31]               │      Wait timed out after 10036ms
[00:02:31]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:02:41]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="superDatePickerendDatePopoverButton"])
[00:02:41]               │      Wait timed out after 10052ms
[00:02:42]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:02:52]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="superDatePickerendDatePopoverButton"])
[00:02:52]               │      Wait timed out after 10027ms
[00:02:52]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:03:02]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="superDatePickerendDatePopoverButton"])
[00:03:02]               │      Wait timed out after 10004ms
[00:03:03]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:03:13]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="superDatePickerendDatePopoverButton"])
[00:03:13]               │      Wait timed out after 10059ms
[00:03:13]               │ info Taking screenshot "/dev/shm/workspace/kibana/test/functional/screenshots/failure/context app context link in discover _before all_ hook.png"
[00:03:13]               │ info Current URL is: http://localhost:6121/app/kibana#/discover
[00:03:14]               │ info Saving page source to: /dev/shm/workspace/kibana/test/functional/failure_debug/html/context app context link in discover _before all_ hook.html
[00:03:14]               └- ✖ fail: "context app context link in discover "before all" hook for "should go back after loading""
[00:03:14]               │

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="superDatePickerendDatePopoverButton"])
Wait timed out after 10059ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at onFailure (test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (test/common/services/retry/retry_for_success.ts:68:13)

and 20 more failures, only showing the first 3.

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants