Skip to content

Conversation

@mshustov
Copy link
Contributor

Backports the following commits to 7.x:

* bump query-string version to remove manual type definitions

* remove manual type declaration

* add kibana_utils tsconfig

* add refs to kibana_utils tsconfig

* add kibana_utils to the project list

* add kibana_react project

* add support for x-pack/tsconfig.refs.json

* add ts project for x-pack licensing plugins

* add glob for ts projects in src/plugins & x-pack/plugins

* add refs to projects in examples

* fix ref paths in x-pack/test

* address mistic comments

Co-authored-by: Elastic Machine <[email protected]>
# Conflicts:
#	src/plugins/kibana_utils/kibana.json
@mshustov mshustov added the backport This PR is a backport of another PR label Sep 30, 2020
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/discover/async_scripted_fields·js.discover async search with scripted fields query return results with valid scripted field

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: discover
[00:00:00]           └-> "before all" hook
[00:08:25]           └-: async search with scripted fields
[00:08:25]             └-> "before all" hook
[00:08:25]             └-> "before all" hook
[00:08:25]               │ info [kibana_scripted_fields_on_logstash] Loading "mappings.json"
[00:08:25]               │ info [kibana_scripted_fields_on_logstash] Loading "data.json.gz"
[00:08:25]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] [.kibana_2/yfww7z8dRDWPGkNfBp5eEw] deleting index
[00:08:25]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] [.kibana_1/17P-ha2DRnKPVOuzVMZBwA] deleting index
[00:08:25]               │ info [kibana_scripted_fields_on_logstash] Deleted existing index [".kibana_2",".kibana_1"]
[00:08:25]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:08:25]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:08:25]               │ info [kibana_scripted_fields_on_logstash] Created index ".kibana_1"
[00:08:25]               │ debg [kibana_scripted_fields_on_logstash] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:08:25]               │ info [kibana_scripted_fields_on_logstash] Indexed 19 docs into ".kibana_1"
[00:08:25]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] [.kibana_1/nkFmZg3TTe2aO3qltuqYdw] update_mapping [_doc]
[00:08:25]               │ debg Migrating saved objects
[00:08:25]               │ proc [kibana]   log   [13:50:56.637] [info][savedobjects-service] Creating index .kibana_2.
[00:08:25]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:08:25]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] updating number_of_replicas to [0] for indices [.kibana_2]
[00:08:25]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:08:25]               │ proc [kibana]   log   [13:50:56.708] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:08:25]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] [.kibana_2/95KOmsX3S_KNzB2v5w0Zmw] update_mapping [_doc]
[00:08:25]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] [.kibana_2/95KOmsX3S_KNzB2v5w0Zmw] update_mapping [_doc]
[00:08:26]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] [.kibana_2/95KOmsX3S_KNzB2v5w0Zmw] update_mapping [_doc]
[00:08:26]               │ proc [kibana]   log   [13:50:56.876] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:08:26]               │ proc [kibana]   log   [13:50:56.919] [info][savedobjects-service] Finished in 284ms.
[00:08:26]               │ info [logstash_functional] Loading "mappings.json"
[00:08:26]               │ info [logstash_functional] Loading "data.json.gz"
[00:08:26]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.22"
[00:08:26]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.20"
[00:08:26]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.21"
[00:08:27]               │ debg set roles = test_logstash_reader,global_discover_read
[00:08:27]               │ debg creating user test_user
[00:08:27]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] updated user [test_user]
[00:08:27]               │ debg created user test_user
[00:08:27]               │ debg TestSubjects.exists(kibanaChrome)
[00:08:27]               │ debg Find.existsByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=2500
[00:08:28]               │ debg TestSubjects.find(kibanaChrome)
[00:08:28]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=100000
[00:08:28]               │ debg browser[INFO] http://localhost:61131/spaces/space_selector#/view/eb69cbd0-0323-11eb-9b4c-81a088b7b333?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:'logstash-*',interval:auto,query:(language:kuery,query:''),sort:!()) 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:08:28]               │
[00:08:28]               │ debg browser[INFO] http://localhost:61131/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:08:29]               │ debg applying update to kibana config: {"timepicker:timeDefaults":"{  \"from\": \"Sep 18, 2015 @ 19:37:13.000\",  \"to\": \"Sep 23, 2015 @ 02:30:09.000\"}"}
[00:08:29]             └-> query should show failed shards pop up
[00:08:29]               └-> "before each" hook: global before each
[00:08:29]               │ debg navigating to discover url: http://localhost:61131/app/discover#/
[00:08:29]               │ debg navigate to: http://localhost:61131/app/discover#/
[00:08:30]               │ debg browser[INFO] http://localhost:61131/app/discover?_t=1601473860698#/ 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:08:30]               │
[00:08:30]               │ debg browser[INFO] http://localhost:61131/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:08:30]               │ debg ... sleep(700) start
[00:08:30]               │ debg ... sleep(700) end
[00:08:30]               │ debg returned from get, calling refresh
[00:08:31]               │ debg browser[INFO] http://localhost:61131/app/discover?_t=1601473860698#/ 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:08:31]               │
[00:08:31]               │ debg browser[INFO] http://localhost:61131/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:08:31]               │ debg currentUrl = http://localhost:61131/app/discover#/
[00:08:31]               │          appUrl = http://localhost:61131/app/discover#/
[00:08:31]               │ debg TestSubjects.find(kibanaChrome)
[00:08:31]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:08:32]               │ debg ... sleep(501) start
[00:08:32]               │ debg browser[WARNING] http://localhost:61131/35247/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 20:69378 "Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
[00:08:32]               │      Arguments: 
[00:08:32]               │      [0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: Sep 18, 2015 @ 19:37:13.000, _f: undefined, _strict: undefined, _locale: [object Object]
[00:08:32]               │      Error
[00:08:32]               │          at Function.createFromInputFallback (http://localhost:61131/35247/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:21:69807)
[00:08:32]               │          at http://localhost:61131/35247/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:21:89983
[00:08:32]               │          at http://localhost:61131/35247/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:21:90034
[00:08:32]               │          at Ct (http://localhost:61131/35247/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:21:90346)
[00:08:32]               │          at wt (http://localhost:61131/35247/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:21:90607)
[00:08:32]               │          at Mt (http://localhost:61131/35247/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:21:90689)
[00:08:32]               │          at r (http://localhost:61131/35247/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:21:66729)
[00:08:32]               │          at Object.parse (http://localhost:61131/35247/bundles/plugin/data/data.plugin.js:1:134420)
[00:08:32]               │          at validateTimeRange (http://localhost:61131/35247/bundles/plugin/data/data.plugin.js:27:221703)
[00:08:32]               │          at t._next (http://localhost:61131/35247/bundles/plugin/data/data.plugin.js:27:243282)"
[00:08:33]               │ debg ... sleep(501) end
[00:08:33]               │ debg in navigateTo url = http://localhost:61131/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%27Sep%2018,%202015%20@%2019:37:13.000%27,to:%27Sep%2023,%202015%20@%2002:30:09.000%27))&_a=(columns:!(_source),filters:!(),index:eddf62c0-85bb-11ea-a555-0b6139dddc19,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:08:33]               │ debg --- retry.try error: URL changed, waiting for it to settle
[00:08:33]               │ debg ... sleep(501) start
[00:08:34]               │ debg ... sleep(501) end
[00:08:34]               │ debg in navigateTo url = http://localhost:61131/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%27Sep%2018,%202015%20@%2019:37:13.000%27,to:%27Sep%2023,%202015%20@%2002:30:09.000%27))&_a=(columns:!(_source),filters:!(),index:eddf62c0-85bb-11ea-a555-0b6139dddc19,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:08:34]               │ debg TestSubjects.exists(statusPageContainer)
[00:08:34]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:08:36]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:08:37]               │ debg TestSubjects.click(indexPattern-switch-link)
[00:08:37]               │ debg Find.clickByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:08:37]               │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:08:37]               │ debg Find.setValue('[data-test-subj="indexPattern-switcher"] input', 'logsta*')
[00:08:37]               │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switcher"] input') with timeout=10000
[00:08:37]               │ debg Find.clickByCssSelector('[data-test-subj="indexPattern-switcher"] [title="logsta*"]') with timeout=10000
[00:08:37]               │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switcher"] [title="logsta*"]') with timeout=10000
[00:08:37]               │ debg isGlobalLoadingIndicatorVisible
[00:08:37]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:08:37]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:08:38]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:08:38]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:08:38]               │ debg TestSubjects.getVisibleText(euiToastHeader)
[00:08:38]               │ debg TestSubjects.find(euiToastHeader)
[00:08:38]               │ debg Find.findByCssSelector('[data-test-subj="euiToastHeader"]') with timeout=10000
[00:08:39]               │ debg 1 of 3 shards failed
[00:08:39]               └- ✓ pass  (9.1s) "discover async search with scripted fields query should show failed shards pop up"
[00:08:39]             └-> query return results with valid scripted field
[00:08:39]               └-> "before each" hook: global before each
[00:08:39]               │ debg TestSubjects.click(indexPattern-switch-link)
[00:08:39]               │ debg Find.clickByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:08:39]               │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:08:39]               │ debg Find.setValue('[data-test-subj="indexPattern-switcher"] input', 'logstash-*')
[00:08:39]               │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switcher"] input') with timeout=10000
[00:08:39]               │ debg Find.clickByCssSelector('[data-test-subj="indexPattern-switcher"] [title="logstash-*"]') with timeout=10000
[00:08:39]               │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switcher"] [title="logstash-*"]') with timeout=10000
[00:08:39]               │ debg isGlobalLoadingIndicatorVisible
[00:08:39]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:08:39]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:08:39]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:08:39]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:08:41]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] moving index [.kibana-event-log-7.10.0-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] to [{"phase":"hot","action":"unfollow","name":"pause-follower-index"}] in policy [kibana-event-log-policy]
[00:08:41]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] moving index [ilm-history-3-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] to [{"phase":"hot","action":"unfollow","name":"pause-follower-index"}] in policy [ilm-history-ilm-policy]
[00:08:41]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] moving index [.kibana-event-log-7.10.0-000001] from [{"phase":"hot","action":"unfollow","name":"pause-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"close-follower-index"}] in policy [kibana-event-log-policy]
[00:08:41]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] moving index [ilm-history-3-000001] from [{"phase":"hot","action":"unfollow","name":"pause-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"close-follower-index"}] in policy [ilm-history-ilm-policy]
[00:08:41]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] moving index [.kibana-event-log-7.10.0-000001] from [{"phase":"hot","action":"unfollow","name":"close-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"unfollow-follower-index"}] in policy [kibana-event-log-policy]
[00:08:41]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] moving index [ilm-history-3-000001] from [{"phase":"hot","action":"unfollow","name":"close-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"unfollow-follower-index"}] in policy [ilm-history-ilm-policy]
[00:08:41]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] moving index [.kibana-event-log-7.10.0-000001] from [{"phase":"hot","action":"unfollow","name":"unfollow-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"open-follower-index"}] in policy [kibana-event-log-policy]
[00:08:41]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] moving index [ilm-history-3-000001] from [{"phase":"hot","action":"unfollow","name":"unfollow-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"open-follower-index"}] in policy [ilm-history-ilm-policy]
[00:08:41]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] moving index [.kibana-event-log-7.10.0-000001] from [{"phase":"hot","action":"unfollow","name":"open-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-yellow-step"}] in policy [kibana-event-log-policy]
[00:08:41]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] moving index [ilm-history-3-000001] from [{"phase":"hot","action":"unfollow","name":"open-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-yellow-step"}] in policy [ilm-history-ilm-policy]
[00:08:41]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] moving index [.kibana-event-log-7.10.0-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-yellow-step"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [kibana-event-log-policy]
[00:08:41]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] moving index [ilm-history-3-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-yellow-step"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [ilm-history-ilm-policy]
[00:08:42]               │ debg QueryBar.setQuery(php* OR *jpg OR *css*)
[00:08:42]               │ debg TestSubjects.click(queryInput)
[00:08:42]               │ debg Find.clickByCssSelector('[data-test-subj="queryInput"]') with timeout=10000
[00:08:42]               │ debg Find.findByCssSelector('[data-test-subj="queryInput"]') with timeout=10000
[00:08:43]               │ debg TestSubjects.getAttribute(queryInput, value)
[00:08:43]               │ debg TestSubjects.find(queryInput)
[00:08:43]               │ debg Find.findByCssSelector('[data-test-subj="queryInput"]') with timeout=10000
[00:08:43]               │ debg TestSubjects.click(querySubmitButton)
[00:08:43]               │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:08:43]               │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:08:43]               │ debg isGlobalLoadingIndicatorVisible
[00:08:43]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:08:43]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:08:45]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:08:45]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:08:46]               │ info [o.e.x.c.a.AsyncResultsService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640] failed to update expiration time for async-search [FnR5LTFlWGxsVEhlSmozNTdyTDQ4S2ccbGNYVUYxekVRTnFhRW5hbUNORDlVQToxMDk3OA==]
[00:08:46]               │      org.elasticsearch.transport.RemoteTransportException: [kibana-ci-immutable-ubuntu-16-tests-xxl-1601471219065416640][127.0.0.1:61133][indices:data/write/update[s]]
[00:08:46]               │      Caused by: org.elasticsearch.index.engine.VersionConflictEngineException: [ty-1eXllTHeJj357rL48Kg]: version conflict, required seqNo [15], primary term [1]. current document has seqNo [16] and primary term [1]
[00:08:46]               │ proc [kibana]   log   [13:51:17.000] [error][data][elasticsearch] [resource_not_found_exception]: FnR5LTFlWGxsVEhlSmozNTdyTDQ4S2ccbGNYVUYxekVRTnFhRW5hbUNORDlVQToxMDk3OA==
[00:08:46]               │ERROR browser[SEVERE] http://localhost:61131/internal/search/ese/FnR5LTFlWGxsVEhlSmozNTdyTDQ4S2ccbGNYVUYxekVRTnFhRW5hbUNORDlVQToxMDk3OA== - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:08:46]               │ debg TestSubjects.getVisibleText(discoverQueryHits)
[00:08:46]               │ debg TestSubjects.find(discoverQueryHits)
[00:08:46]               │ debg Find.findByCssSelector('[data-test-subj="discoverQueryHits"]') with timeout=10000
[00:08:56]               │ debg --- retry.tryForTime error: Waiting for element to be located By(css selector, [data-test-subj="discoverQueryHits"])
[00:08:56]               │      Wait timed out after 10035ms
[00:08:56]               │ debg isGlobalLoadingIndicatorVisible
[00:08:56]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:08:56]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:08:58]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:08:58]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:08:58]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:08:59]               │ debg TestSubjects.getVisibleText(discoverQueryHits)
[00:08:59]               │ debg TestSubjects.find(discoverQueryHits)
[00:08:59]               │ debg Find.findByCssSelector('[data-test-subj="discoverQueryHits"]') with timeout=10000
[00:09:09]               │ debg --- retry.tryForTime error: Waiting for element to be located By(css selector, [data-test-subj="discoverQueryHits"])
[00:09:09]               │      Wait timed out after 10028ms
[00:09:09]               │ debg isGlobalLoadingIndicatorVisible
[00:09:09]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:09]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:11]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:11]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:11]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:11]               │ debg TestSubjects.getVisibleText(discoverQueryHits)
[00:09:11]               │ debg TestSubjects.find(discoverQueryHits)
[00:09:11]               │ debg Find.findByCssSelector('[data-test-subj="discoverQueryHits"]') with timeout=10000
[00:09:21]               │ debg --- retry.tryForTime error: Waiting for element to be located By(css selector, [data-test-subj="discoverQueryHits"])
[00:09:21]               │      Wait timed out after 10046ms
[00:09:22]               │ info Taking screenshot "/dev/shm/workspace/parallel/13/kibana/x-pack/test/functional/screenshots/failure/discover async search with scripted fields query return results with valid scripted field.png"
[00:09:22]               │ info Current URL is: http://localhost:61131/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%27Sep%2018,%202015%20@%2019:37:13.000%27,to:%27Sep%2023,%202015%20@%2002:30:09.000%27))&_a=(columns:!(_source),filters:!(),index:eddf62c0-85bb-11ea-a555-0b6139dddc19,interval:auto,query:(language:kuery,query:%27php*%20OR%20*jpg%20OR%20*css*%27),sort:!())
[00:09:22]               │ info Saving page source to: /dev/shm/workspace/parallel/13/kibana/x-pack/test/functional/failure_debug/html/discover async search with scripted fields query return results with valid scripted field.html
[00:09:22]               └- ✖ fail: discover async search with scripted fields query return results with valid scripted field
[00:09:22]               │      Error: retry.tryForTime timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="discoverQueryHits"])
[00:09:22]               │ Wait timed out after 10046ms
[00:09:22]               │     at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:09:22]               │     at process._tickCallback (internal/process/next_tick.js:68:7)
[00:09:22]               │       at onFailure (/dev/shm/workspace/parallel/13/kibana/test/common/services/retry/retry_for_success.ts:28:9)
[00:09:22]               │       at retryForSuccess (/dev/shm/workspace/parallel/13/kibana/test/common/services/retry/retry_for_success.ts:68:13)
[00:09:22]               │ 
[00:09:22]               │ 

Stack Trace

Error: retry.tryForTime timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="discoverQueryHits"])
Wait timed out after 10046ms
    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 (/dev/shm/workspace/parallel/13/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/parallel/13/kibana/test/common/services/retry/retry_for_success.ts:68:13)

Metrics [docs]

async chunks size

id value diff baseline
enterpriseSearch 429.7KB +29.0B 429.6KB

distributable file count

id value diff baseline
default 47550 +21 47529

page load bundle size

id value diff baseline
upgradeAssistant 64.3KB +29.0B 64.3KB

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

@mshustov mshustov merged commit e8a05ae into elastic:7.x Sep 30, 2020
@mshustov mshustov deleted the backport/7.x/pr-78440 branch September 30, 2020 15:10
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