Skip to content

Conversation

@flash1293
Copy link
Contributor

Backports the following commits to 7.x:

@flash1293 flash1293 added the backport This PR is a backport of another PR label Jan 21, 2021
@flash1293
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Example plugin functional tests.test/examples/bfetch_explorer/batched_function·ts.bfetch explorer batchedFunction streams results back

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:43]         └-: bfetch explorer
[00:00:43]           └-> "before all" hook
[00:00:43]           └-> "before all" hook
[00:00:43]             │ debg navigating to bfetch-explorer url: http://localhost:6191/app/bfetch-explorer
[00:00:43]             │ debg navigate to: http://localhost:6191/app/bfetch-explorer
[00:00:43]             │ debg browser[DEBUG] http://localhost:6191/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 1009:14 "Reporting application usage for dashboardEmbeddableExamples, main"
[00:00:43]             │ debg browser[INFO] http://localhost:6191/app/bfetch-explorer 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:43]             │
[00:00:43]             │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:43]             │ debg ... sleep(700) start
[00:00:44]             │ debg ... sleep(700) end
[00:00:44]             │ debg returned from get, calling refresh
[00:00:47]             │ debg browser[INFO] http://localhost:6191/app/bfetch-explorer 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:47]             │
[00:00:47]             │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:47]             │ debg currentUrl = http://localhost:6191/app/bfetch-explorer
[00:00:47]             │          appUrl = http://localhost:6191/app/bfetch-explorer
[00:00:47]             │ debg TestSubjects.find(kibanaChrome)
[00:00:47]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:49]             │ debg browser[DEBUG] http://localhost:6191/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 1009:14 "Reporting user-agent."
[00:00:49]             │ debg ... sleep(501) start
[00:00:49]             │ debg ... sleep(501) end
[00:00:49]             │ debg in navigateTo url = http://localhost:6191/app/bfetch-explorer/count-until
[00:00:49]             │ debg TestSubjects.exists(statusPageContainer)
[00:00:49]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:52]             │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:52]           └-: batchedFunction
[00:00:52]             └-> "before all" hook
[00:00:52]             └-> executes all requests in a batch
[00:00:52]               └-> "before each" hook: global before each
[00:00:52]               └-> "before each" hook
[00:00:52]                 │ debg TestSubjects.click(count-until)
[00:00:52]                 │ debg Find.clickByCssSelector('[data-test-subj="count-until"]') with timeout=10000
[00:00:52]                 │ debg Find.findByCssSelector('[data-test-subj="count-until"]') with timeout=10000
[00:00:52]                 │ debg TestSubjects.click(double-integers)
[00:00:52]                 │ debg Find.clickByCssSelector('[data-test-subj="double-integers"]') with timeout=10000
[00:00:52]                 │ debg Find.findByCssSelector('[data-test-subj="double-integers"]') with timeout=10000
[00:00:53]               │ debg TestSubjects.find(DoubleIntegers)
[00:00:53]               │ debg Find.findByCssSelector('[data-test-subj="DoubleIntegers"]') with timeout=10000
[00:00:57]               └- ✓ pass  (4.1s) "bfetch explorer batchedFunction executes all requests in a batch"
[00:00:57]             └-> streams results back
[00:00:57]               └-> "before each" hook: global before each
[00:00:57]               └-> "before each" hook
[00:00:57]                 │ debg TestSubjects.click(count-until)
[00:00:57]                 │ debg Find.clickByCssSelector('[data-test-subj="count-until"]') with timeout=10000
[00:00:57]                 │ debg Find.findByCssSelector('[data-test-subj="count-until"]') with timeout=10000
[00:00:57]                 │ debg TestSubjects.click(double-integers)
[00:00:57]                 │ debg Find.clickByCssSelector('[data-test-subj="double-integers"]') with timeout=10000
[00:00:57]                 │ debg Find.findByCssSelector('[data-test-subj="double-integers"]') with timeout=10000
[00:00:57]               │ debg TestSubjects.find(DoubleIntegers)
[00:00:57]               │ debg Find.findByCssSelector('[data-test-subj="DoubleIntegers"]') with timeout=10000
[00:00:57]               │ info Taking screenshot "/dev/shm/workspace/parallel/9/kibana/test/functional/screenshots/failure/bfetch explorer batchedFunction streams results back.png"
[00:00:57]               │ info Current URL is: http://localhost:6191/app/bfetch-explorer/double-integers
[00:00:57]               │ info Saving page source to: /dev/shm/workspace/parallel/9/kibana/test/examples/failure_debug/html/bfetch explorer batchedFunction streams results back.html
[00:00:57]               └- ✖ fail: bfetch explorer batchedFunction streams results back
[00:00:57]               │      Error: expected false to equal true
[00:00:57]               │       at Assertion.assert (packages/kbn-expect/expect.js:100:11)
[00:00:57]               │       at Assertion.be.Assertion.equal (packages/kbn-expect/expect.js:227:8)
[00:00:57]               │       at Assertion.be (packages/kbn-expect/expect.js:69:22)
[00:00:57]               │       at Context.<anonymous> (test/examples/bfetch_explorer/batched_function.ts:70:35)
[00:00:57]               │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:00:57]               │       at Object.apply (packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:00:57]               │ 
[00:00:57]               │ 

Stack Trace

Error: expected false to equal true
    at Assertion.assert (packages/kbn-expect/expect.js:100:11)
    at Assertion.be.Assertion.equal (packages/kbn-expect/expect.js:227:8)
    at Assertion.be (packages/kbn-expect/expect.js:69:22)
    at Context.<anonymous> (test/examples/bfetch_explorer/batched_function.ts:70:35)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.apply (packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
lens 476 477 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
lens 1.1MB 1.1MB +2.5KB

History

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

@flash1293 flash1293 merged commit 5cd8b04 into elastic:7.x Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants