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

[7.x] Ui Actions explorer example (#57006) #57315

Merged
merged 1 commit into from
Feb 11, 2020

Conversation

stacey-gammon
Copy link
Contributor

Backports the following commits to 7.x:

* wip

* Move action registration out of AppMountContext fn

* Move all registration to setup

* Fix type error
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/transform/creation_saved_search·ts.transform creation_saved_search batch transform with terms groups and avg agg with saved search filter selects the source data

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 2 times on tracked branches: https://github.com/elastic/kibana/issues/53558

[00:00:00]       │
[00:00:00]         └-: transform
[00:00:00]           └-> "before all" hook
[00:01:52]           └-: creation_saved_search
[00:01:52]             └-> "before all" hook
[00:01:52]             └-> "before all" hook
[00:01:52]               │ info [ml/farequote] Loading "mappings.json"
[00:01:52]               │ info [ml/farequote] Loading "data.json.gz"
[00:01:52]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1581430198041790917] [farequote] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:01:52]               │ info [ml/farequote] Created index "farequote"
[00:01:52]               │ debg [ml/farequote] "farequote" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:01:52]               │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1581430198041790917] [.kibana_1/A-lPzdxzQvuQdK4EynhiPw] deleting index
[00:01:52]               │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1581430198041790917] [.kibana_2/04CpoA3rQP6bigaM3e2uRg] deleting index
[00:01:52]               │ info [ml/farequote] Deleted existing index [".kibana_2",".kibana_1"]
[00:01:52]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1581430198041790917] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:01:52]               │ info [ml/farequote] Created index ".kibana_1"
[00:01:52]               │ debg [ml/farequote] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:02:02]               │ info progress: 83401
[00:02:02]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1581430198041790917] [.kibana_1/ksTfm4y7TaSKbixRv0Lu7A] update_mapping [_doc]
[00:02:02]               │ info [ml/farequote] Indexed 86274 docs into "farequote"
[00:02:02]               │ info [ml/farequote] Indexed 11 docs into ".kibana_1"
[00:02:04]               │ info Creating index .kibana_2.
[00:02:04]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1581430198041790917] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:02:04]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1581430198041790917] updating number_of_replicas to [0] for indices [.kibana_2]
[00:02:04]               │ info Migrating .kibana_1 saved objects to .kibana_2
[00:02:04]               │ debg Migrating saved objects space:default, maps-telemetry:maps-telemetry, telemetry:telemetry, config:7.0.0, index-pattern:afcb3f90-b51e-11e9-b428-adf46a495381, search:793c1a50-e505-11e9-9c0f-0524bf4d335b, search:e3dd7750-e505-11e9-9c0f-0524bf4d335b, search:56c06f80-e505-11e9-9c0f-0524bf4d335b, search:b590e580-e505-11e9-9c0f-0524bf4d335b, search:f33b7cb0-e505-11e9-9c0f-0524bf4d335b, ui-metric:index_management:app_load
[00:02:04]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1581430198041790917] [.kibana_2/_vq5IdUgT3OYUNeekLAB2Q] update_mapping [_doc]
[00:02:04]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1581430198041790917] [.kibana_2/_vq5IdUgT3OYUNeekLAB2Q] update_mapping [_doc]
[00:02:04]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1581430198041790917] [.kibana_2/_vq5IdUgT3OYUNeekLAB2Q] update_mapping [_doc]
[00:02:04]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1581430198041790917] [.kibana_2/_vq5IdUgT3OYUNeekLAB2Q] update_mapping [_doc]
[00:02:04]               │ info Pointing alias .kibana to .kibana_2.
[00:02:04]               │ info Finished in 405ms.
[00:02:04]             └-: batch transform with terms groups and avg agg with saved search filter
[00:02:04]               └-> "before all" hook
[00:02:04]               └-> loads the home page
[00:02:04]                 └-> "before each" hook: global before each
[00:02:04]                 │ debg navigating to transform url: http://localhost:61101/app/kibana/#/management/elasticsearch/transform
[00:02:04]                 │ debg Navigate to: http://localhost:61101/app/kibana/#/management/elasticsearch/transform
[00:02:05]                 │ debg ... sleep(700) start
[00:02:05]                 │ debg browser[INFO] http://localhost:61101/app/kibana/?_t=1581432544363#/management/elasticsearch/transform 350 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:02:05]                 │
[00:02:05]                 │ debg browser[INFO] http://localhost:61101/bundles/app/kibana/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:06]                 │ debg ... sleep(700) end
[00:02:06]                 │ debg returned from get, calling refresh
[00:02:06]                 │ debg browser[INFO] http://localhost:61101/app/kibana/?_t=1581432544363#/management/elasticsearch/transform 350 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:02:06]                 │
[00:02:06]                 │ debg browser[INFO] http://localhost:61101/bundles/app/kibana/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:06]                 │ debg currentUrl = http://localhost:61101/app/kibana/#/management/elasticsearch/transform
[00:02:06]                 │          appUrl = http://localhost:61101/app/kibana/#/management/elasticsearch/transform
[00:02:06]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:12]                 │ debg TestSubjects.find(kibanaChrome)
[00:02:12]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:02:12]                 │ debg browser[INFO] http://localhost:61101/built_assets/dlls/vendors_3.bundle.dll.js 488:139970 "INFO: 2020-02-11T14:49:10Z
[00:02:12]                 │        Adding connection to http://localhost:61101/elasticsearch
[00:02:12]                 │
[00:02:12]                 │      "
[00:02:13]                 │ debg ... sleep(501) start
[00:02:13]                 │ debg ... sleep(501) end
[00:02:13]                 │ debg in navigateTo url = http://localhost:61101/app/kibana/#/management/elasticsearch/transform/transform_management?_g=(refreshInterval:(pause:!f,value:30000),time:(from:now-15m,to:now))
[00:02:13]                 │ debg TestSubjects.exists(statusPageContainer)
[00:02:13]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:02:16]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:02:16]                 │ debg TestSubjects.exists(transformPageTransformList)
[00:02:16]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="transformPageTransformList"]') with timeout=120000
[00:02:16]                 └- ✓ pass  (12.1s) "transform creation_saved_search batch transform with terms groups and avg agg with saved search filter loads the home page"
[00:02:16]               └-> displays the stats bar
[00:02:16]                 └-> "before each" hook: global before each
[00:02:16]                 │ debg TestSubjects.exists(transformStatsBar)
[00:02:16]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="transformStatsBar"]') with timeout=120000
[00:02:16]                 └- ✓ pass  (54ms) "transform creation_saved_search batch transform with terms groups and avg agg with saved search filter displays the stats bar"
[00:02:16]               └-> loads the source selection modal
[00:02:16]                 └-> "before each" hook: global before each
[00:02:16]                 │ debg TestSubjects.exists(transformNoTransformsFound)
[00:02:16]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="transformNoTransformsFound"]') with timeout=2500
[00:02:16]                 │ debg TestSubjects.click(transformCreateFirstButton)
[00:02:16]                 │ debg Find.clickByCssSelector('[data-test-subj="transformCreateFirstButton"]') with timeout=10000
[00:02:16]                 │ debg Find.findByCssSelector('[data-test-subj="transformCreateFirstButton"]') with timeout=10000
[00:02:16]                 │ debg TestSubjects.exists(transformSelectSourceModal)
[00:02:16]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="transformSelectSourceModal"]') with timeout=120000
[00:02:17]                 └- ✓ pass  (393ms) "transform creation_saved_search batch transform with terms groups and avg agg with saved search filter loads the source selection modal"
[00:02:17]               └-> selects the source data
[00:02:17]                 └-> "before each" hook: global before each
[00:02:17]                 │ debg TestSubjects.setValue(savedObjectFinderSearchInput, farequote_filter)
[00:02:17]                 │ debg TestSubjects.click(savedObjectFinderSearchInput)
[00:02:17]                 │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderSearchInput"]') with timeout=10000
[00:02:17]                 │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderSearchInput"]') with timeout=10000
[00:02:17]                 │ debg TestSubjects.exists(savedObjectTitlefarequote_filter)
[00:02:17]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="savedObjectTitlefarequote_filter"]') with timeout=120000
[00:02:17]                 │ debg TestSubjects.clickWhenNotDisabled(savedObjectTitlefarequote_filter)
[00:02:17]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="savedObjectTitlefarequote_filter"]') with timeout=10000
[00:02:17]                 │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitlefarequote_filter"]') with timeout=10000
[00:02:18]                 │ debg TestSubjects.exists(transformPageCreateTransform)
[00:02:18]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="transformPageCreateTransform"]') with timeout=120000
[00:02:20]                 │ debg --- retry.tryForTime error: [data-test-subj="transformPageCreateTransform"] is not displayed
[00:02:23]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:26]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:29]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:32]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:35]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:38]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:42]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:45]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:48]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:51]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:54]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:57]                 │ debg --- retry.tryForTime failed again with the same message...
[00:03:00]                 │ debg --- retry.tryForTime failed again with the same message...
[00:03:03]                 │ debg --- retry.tryForTime failed again with the same message...
[00:03:06]                 │ debg --- retry.tryForTime failed again with the same message...
[00:03:09]                 │ debg --- retry.tryForTime failed again with the same message...
[00:03:12]                 │ debg --- retry.tryForTime failed again with the same message...
[00:03:15]                 │ debg --- retry.tryForTime failed again with the same message...
[00:03:18]                 │ debg --- retry.tryForTime failed again with the same message...
[00:03:21]                 │ debg --- retry.tryForTime failed again with the same message...
[00:03:24]                 │ debg --- retry.tryForTime failed again with the same message...
[00:03:27]                 │ debg --- retry.tryForTime failed again with the same message...
[00:03:30]                 │ debg --- retry.tryForTime failed again with the same message...
[00:03:33]                 │ debg --- retry.tryForTime failed again with the same message...
[00:03:36]                 │ debg --- retry.tryForTime failed again with the same message...
[00:03:39]                 │ debg --- retry.tryForTime failed again with the same message...
[00:03:42]                 │ debg --- retry.tryForTime failed again with the same message...
[00:03:45]                 │ debg --- retry.tryForTime failed again with the same message...
[00:03:48]                 │ debg --- retry.tryForTime failed again with the same message...
[00:03:51]                 │ debg --- retry.tryForTime failed again with the same message...
[00:03:54]                 │ debg --- retry.tryForTime failed again with the same message...
[00:03:57]                 │ debg --- retry.tryForTime failed again with the same message...
[00:04:01]                 │ debg --- retry.tryForTime failed again with the same message...
[00:04:04]                 │ debg --- retry.tryForTime failed again with the same message...
[00:04:07]                 │ debg --- retry.tryForTime failed again with the same message...
[00:04:10]                 │ debg --- retry.tryForTime failed again with the same message...
[00:04:13]                 │ debg --- retry.tryForTime failed again with the same message...
[00:04:16]                 │ debg --- retry.tryForTime failed again with the same message...
[00:04:19]                 │ debg --- retry.tryForTime failed again with the same message...
[00:04:19]                 │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/transform creation_saved_search batch transform with terms groups and avg agg with saved search filter selects the source data.png"
[00:04:20]                 │ info Current URL is: http://localhost:61101/app/kibana/#/management/elasticsearch/transform/transform_management?_g=(refreshInterval:(pause:!f,value:30000),time:(from:now-15m,to:now))
[00:04:20]                 │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/transform creation_saved_search batch transform with terms groups and avg agg with saved search filter selects the source data.html
[00:04:20]                 └- ✖ fail: "transform creation_saved_search batch transform with terms groups and avg agg with saved search filter selects the source data"
[00:04:20]                 │

Stack Trace

Error: expected testSubject(transformPageCreateTransform) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/kibana/test/functional/services/test_subjects.ts:60:15)

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

@stacey-gammon stacey-gammon merged commit 1358b90 into elastic:7.x Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants