Skip to content

[7.x] [Remote Clusters] Added a11y tests and fixed violations (#96989)#97589

Merged
yuliacech merged 2 commits intoelastic:7.xfrom
yuliacech:backport/7.x/pr-96989
Apr 20, 2021
Merged

[7.x] [Remote Clusters] Added a11y tests and fixed violations (#96989)#97589
yuliacech merged 2 commits intoelastic:7.xfrom
yuliacech:backport/7.x/pr-96989

Conversation

@yuliacech
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

* Added a11y tests for Remote Clusters plugin and fixed discovered violations

* Added an a11y test for a delete modal

* Updated payload type casting

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@yuliacech yuliacech added the backport This PR is a backport of another PR label Apr 20, 2021
@yuliacech yuliacech enabled auto-merge (squash) April 20, 2021 07:17
@yuliacech
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/ml/embeddables/anomaly_charts_dashboard_embeddables·ts.machine learning embeddables anomaly charts with multi metric job can open job selection flyout

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: machine learning
[00:00:00]           └-> "before all" hook in "machine learning"
[00:00:00]           └-: 
[00:00:00]             └-> "before all" hook in ""
[00:00:00]             └-> "before all" hook in ""
[00:00:00]               │ debg creating role ft_ml_source
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added role [ft_ml_source]
[00:00:00]               │ debg creating role ft_ml_source_readonly
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added role [ft_ml_source_readonly]
[00:00:00]               │ debg creating role ft_ml_dest
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added role [ft_ml_dest]
[00:00:00]               │ debg creating role ft_ml_dest_readonly
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added role [ft_ml_dest_readonly]
[00:00:00]               │ debg creating role ft_ml_ui_extras
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added role [ft_ml_ui_extras]
[00:00:00]               │ debg creating role ft_default_space_ml_all
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added role [ft_default_space_ml_all]
[00:00:00]               │ debg creating role ft_default_space1_ml_all
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added role [ft_default_space1_ml_all]
[00:00:00]               │ debg creating role ft_all_spaces_ml_all
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added role [ft_all_spaces_ml_all]
[00:00:00]               │ debg creating role ft_default_space_ml_read
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added role [ft_default_space_ml_read]
[00:00:00]               │ debg creating role ft_default_space1_ml_read
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added role [ft_default_space1_ml_read]
[00:00:00]               │ debg creating role ft_all_spaces_ml_read
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added role [ft_all_spaces_ml_read]
[00:00:00]               │ debg creating role ft_default_space_ml_none
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added role [ft_default_space_ml_none]
[00:00:00]               │ debg creating user ft_ml_poweruser
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added user [ft_ml_poweruser]
[00:00:00]               │ debg created user ft_ml_poweruser
[00:00:00]               │ debg creating user ft_ml_poweruser_spaces
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added user [ft_ml_poweruser_spaces]
[00:00:00]               │ debg created user ft_ml_poweruser_spaces
[00:00:00]               │ debg creating user ft_ml_poweruser_space1
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added user [ft_ml_poweruser_space1]
[00:00:00]               │ debg created user ft_ml_poweruser_space1
[00:00:00]               │ debg creating user ft_ml_poweruser_all_spaces
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added user [ft_ml_poweruser_all_spaces]
[00:00:01]               │ debg created user ft_ml_poweruser_all_spaces
[00:00:01]               │ debg creating user ft_ml_viewer
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added user [ft_ml_viewer]
[00:00:01]               │ debg created user ft_ml_viewer
[00:00:01]               │ debg creating user ft_ml_viewer_spaces
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added user [ft_ml_viewer_spaces]
[00:00:01]               │ debg created user ft_ml_viewer_spaces
[00:00:01]               │ debg creating user ft_ml_viewer_space1
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added user [ft_ml_viewer_space1]
[00:00:01]               │ debg created user ft_ml_viewer_space1
[00:00:01]               │ debg creating user ft_ml_viewer_all_spaces
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added user [ft_ml_viewer_all_spaces]
[00:00:01]               │ debg created user ft_ml_viewer_all_spaces
[00:00:01]               │ debg creating user ft_ml_unauthorized
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added user [ft_ml_unauthorized]
[00:00:01]               │ debg created user ft_ml_unauthorized
[00:00:01]               │ debg creating user ft_ml_unauthorized_spaces
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] added user [ft_ml_unauthorized_spaces]
[00:00:01]               │ debg created user ft_ml_unauthorized_spaces
[00:04:45]             └-: embeddables
[00:04:45]               └-> "before all" hook in "embeddables"
[00:04:45]               └-: anomaly charts
[00:04:45]                 └-> "before all" hook in "anomaly charts"
[00:04:45]                 └-> "before all" hook in "anomaly charts"
[00:04:45]                   │ info [ml/farequote] Loading "mappings.json"
[00:04:45]                   │ info [ml/farequote] Loading "data.json.gz"
[00:04:45]                   │ info [ml/farequote] Skipped restore for existing index "ft_farequote"
[00:04:46]                   │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:04:46]                   │ debg  > Found '396b19e0-a1cd-11eb-957e-511bd8e861ab'
[00:04:46]                   │ debg Index pattern with title 'ft_farequote' already exists. Nothing to create.
[00:04:46]                   │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:04:47]                   │ debg SecurityPage.forceLogout
[00:04:47]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:04:47]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:04:48]                   │ debg Redirecting to /logout to force the logout
[00:04:48]                   │ debg Waiting on the login form to appear
[00:04:48]                   │ debg Waiting for Login Page to appear.
[00:04:48]                   │ debg Waiting up to 100000ms for login page...
[00:04:48]                   │ debg browser[INFO] http://localhost:61161/logout?_t=1618919005054 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:04:48]                   │
[00:04:48]                   │ debg browser[INFO] http://localhost:61161/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:48]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:04:50]                   │ debg browser[INFO] http://localhost:61161/login?msg=LOGGED_OUT 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:04:50]                   │
[00:04:50]                   │ debg browser[INFO] http://localhost:61161/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:50]                   │ERROR browser[SEVERE] http://localhost:61161/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:04:50]                   │ debg browser[INFO] http://localhost:61161/40460/bundles/core/core.entry.js 12:151585 "Detected an unhandled Promise rejection.
[00:04:50]                   │      Error: Unauthorized"
[00:04:50]                   │ERROR browser[SEVERE] http://localhost:61161/40460/bundles/core/core.entry.js 5:2514 
[00:04:50]                   │ERROR browser[SEVERE] http://localhost:61161/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:04:50]                   │ debg TestSubjects.exists(loginForm)
[00:04:50]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:04:50]                   │ debg Waiting for Login Form to appear.
[00:04:50]                   │ debg Waiting up to 100000ms for login form...
[00:04:50]                   │ debg TestSubjects.exists(loginForm)
[00:04:50]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:04:50]                   │ debg TestSubjects.setValue(loginUsername, ft_ml_poweruser)
[00:04:50]                   │ debg TestSubjects.click(loginUsername)
[00:04:50]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:04:50]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:04:51]                   │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:04:51]                   │ debg TestSubjects.click(loginPassword)
[00:04:51]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:04:51]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:04:51]                   │ debg TestSubjects.click(loginSubmit)
[00:04:51]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:04:51]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:04:51]                   │ debg Waiting for login result, expected: chrome.
[00:04:51]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] .app-wrapper:not(.hidden-chrome)') with timeout=20000
[00:04:51]                   │ proc [kibana]   log   [11:43:28.099] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:04:53]                   │ debg browser[INFO] http://localhost:61161/app/home 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:04:53]                   │
[00:04:53]                   │ debg browser[INFO] http://localhost:61161/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:53]                   │ debg Finished login process currentUrl = http://localhost:61161/app/home#/
[00:04:53]                   │ debg Waiting up to 20000ms for logout button visible...
[00:04:53]                   │ debg TestSubjects.exists(userMenuButton)
[00:04:53]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:04:53]                   │ debg TestSubjects.exists(userMenu)
[00:04:53]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:04:55]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:04:56]                   │ debg TestSubjects.click(userMenuButton)
[00:04:56]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:04:56]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:04:56]                   │ debg TestSubjects.exists(userMenu)
[00:04:56]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:04:56]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:04:56]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:04:56]                 └-: with multi metric job
[00:04:56]                   └-> "before all" hook for "can open job selection flyout"
[00:04:56]                   └-> "before all" hook for "can open job selection flyout"
[00:04:56]                     │ debg Creating anomaly detection job with id 'fq_multi_1_ae' ...
[00:04:56]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:04:56]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:04:56]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:04:56]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:04:56]                     │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [.ml-anomalies-shared/25F2EvxrTQSl9KWtYIyvpA] update_mapping [_doc]
[00:04:56]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [.ml-config] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:04:56]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] updating number_of_replicas to [0] for indices [.ml-config]
[00:04:56]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [.ml-notifications-000001] creating index, cause [auto(bulk api)], templates [.ml-notifications-000001], shards [1]/[1]
[00:04:56]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] updating number_of_replicas to [0] for indices [.ml-notifications-000001]
[00:04:57]                     │ debg Waiting up to 5000ms for 'fq_multi_1_ae' to exist...
[00:04:57]                     │ debg > AD job created.
[00:04:57]                     │ debg Creating datafeed with id 'datafeed-fq_multi_1_ae' ...
[00:04:58]                     │ debg Waiting up to 5000ms for 'datafeed-fq_multi_1_ae' to exist...
[00:04:58]                     │ debg > Datafeed created.
[00:04:58]                     │ debg Opening anomaly detection job 'fq_multi_1_ae'...
[00:04:58]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] Opening job [fq_multi_1_ae]
[00:04:58]                     │ info [o.e.x.c.m.u.MlIndexAndAlias] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] About to create first concrete index [.ml-state-000001] with alias [.ml-state-write]
[00:04:58]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [.ml-state-000001] creating index, cause [api], templates [.ml-state], shards [1]/[1]
[00:04:58]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] updating number_of_replicas to [0] for indices [.ml-state-000001]
[00:04:58]                     │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] moving index [.ml-state-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ml-size-based-ilm-policy]
[00:04:58]                     │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] moving index [.ml-state-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [ml-size-based-ilm-policy]
[00:04:58]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [fq_multi_1_ae] Loading model snapshot [N/A], job latest_record_timestamp [N/A]
[00:04:58]                     │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] moving index [.ml-state-000001] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [ml-size-based-ilm-policy]
[00:04:59]                     │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [fq_multi_1_ae] [autodetect/130029] [CResourceMonitor.cc@77] Setting model memory limit to 20 MB
[00:04:59]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] Successfully set job state to [opened] for job [fq_multi_1_ae]
[00:04:59]                     │ debg > AD job opened.
[00:04:59]                     │ debg Starting datafeed 'datafeed-fq_multi_1_ae' with start: '0', end: '1618919016097'...
[00:04:59]                     │ debg > Datafeed started.
[00:04:59]                     │ debg Waiting up to 120000ms for datafeed state to be stopped...
[00:04:59]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:04:59]                     │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [fq_multi_1_ae] Datafeed started (from: 1970-01-01T00:00:00.000Z to: 2021-04-20T11:43:36.097Z) with frequency [600000ms]
[00:04:59]                     │ debg --- retry.waitForWithTimeout error: expected job state to be stopped but got started
[00:04:59]                     │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [.ml-anomalies-shared/25F2EvxrTQSl9KWtYIyvpA] update_mapping [_doc]
[00:04:59]                     │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [fq_multi_1_ae] 10000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:04:59]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:04:59]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:05:00]                     │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [fq_multi_1_ae] 20000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:05:00]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:05:00]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:05:00]                     │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [fq_multi_1_ae] 30000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:05:00]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:05:00]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:05:01]                     │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [fq_multi_1_ae] 40000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:05:01]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:05:01]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:05:01]                     │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [fq_multi_1_ae] 50000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:05:01]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:05:01]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:05:02]                     │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [fq_multi_1_ae] 60000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:05:02]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:05:02]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:05:02]                     │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [fq_multi_1_ae] 70000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:05:02]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:05:03]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:05:03]                     │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [fq_multi_1_ae] 80000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:05:03]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:05:03]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:05:04]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:05:04]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:05:04]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:05:04]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:05:05]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:05:05]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:05:05]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:05:05]                     │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [fq_multi_1_ae] Lookback has finished
[00:05:05]                     │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [no_realtime] attempt to stop datafeed [datafeed-fq_multi_1_ae] for job [fq_multi_1_ae]
[00:05:05]                     │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [no_realtime] try lock [20s] to stop datafeed [datafeed-fq_multi_1_ae] for job [fq_multi_1_ae]...
[00:05:05]                     │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [no_realtime] stopping datafeed [datafeed-fq_multi_1_ae] for job [fq_multi_1_ae], acquired [true]...
[00:05:05]                     │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [no_realtime] datafeed [datafeed-fq_multi_1_ae] for job [fq_multi_1_ae] has been stopped
[00:05:05]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:05:05]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] Closing job [fq_multi_1_ae], because [close job (api)]
[00:05:05]                     │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [fq_multi_1_ae] [autodetect/130029] [CCmdSkeleton.cc@61] Handled 86274 records
[00:05:05]                     │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [fq_multi_1_ae] [autodetect/130029] [CAnomalyJob.cc@1578] Pruning all models
[00:05:05]                     │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [.ml-anomalies-shared/25F2EvxrTQSl9KWtYIyvpA] update_mapping [_doc]
[00:05:05]                     │ info [o.e.x.m.p.AbstractNativeProcess] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [fq_multi_1_ae] State output finished
[00:05:05]                     │ info [o.e.x.m.j.p.a.o.AutodetectResultProcessor] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [fq_multi_1_ae] 120 buckets parsed from autodetect output
[00:05:06]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:05:06]                     │ debg Waiting up to 120000ms for job state to be closed...
[00:05:06]                     │ debg Fetching anomaly detection job stats for job fq_multi_1_ae...
[00:05:06]                     │ debg > AD job stats fetched.
[00:05:06]                     │ debg --- retry.waitForWithTimeout error: expected job state to be closed but got closing
[00:05:06]                     │ debg Fetching anomaly detection job stats for job fq_multi_1_ae...
[00:05:06]                     │ debg > AD job stats fetched.
[00:05:06]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:05:06]                     │ info [o.e.x.m.j.p.a.AutodetectCommunicator] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618916295764035152] [fq_multi_1_ae] job closed
[00:05:07]                     │ debg Fetching anomaly detection job stats for job fq_multi_1_ae...
[00:05:07]                     │ debg > AD job stats fetched.
[00:05:07]                     │ debg navigating to dashboard url: http://localhost:61161/app/dashboards#/list
[00:05:07]                     │ debg navigate to: http://localhost:61161/app/dashboards#/list
[00:05:07]                     │ debg browser[INFO] http://localhost:61161/app/dashboards?_t=1618919024000#/list 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:05:07]                     │
[00:05:07]                     │ debg browser[INFO] http://localhost:61161/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:07]                     │ debg ... sleep(700) start
[00:05:08]                     │ debg ... sleep(700) end
[00:05:08]                     │ debg returned from get, calling refresh
[00:05:08]                     │ERROR browser[SEVERE] http://localhost:61161/40460/bundles/core/core.entry.js 12:150657 TypeError: Failed to fetch
[00:05:08]                     │          at fetch_Fetch.fetchResponse (http://localhost:61161/40460/bundles/core/core.entry.js:6:26193)
[00:05:08]                     │          at async http://localhost:61161/40460/bundles/core/core.entry.js:6:24090
[00:05:08]                     │          at async http://localhost:61161/40460/bundles/core/core.entry.js:6:23996
[00:05:08]                     │ debg browser[INFO] http://localhost:61161/app/dashboards?_t=1618919024000#/list 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:05:08]                     │
[00:05:08]                     │ debg browser[INFO] http://localhost:61161/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:09]                     │ debg currentUrl = http://localhost:61161/app/dashboards#/list
[00:05:09]                     │          appUrl = http://localhost:61161/app/dashboards#/list
[00:05:09]                     │ debg TestSubjects.find(kibanaChrome)
[00:05:09]                     │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:05:09]                     │ debg ... sleep(501) start
[00:05:09]                     │ debg ... sleep(501) end
[00:05:09]                     │ debg in navigateTo url = http://localhost:61161/app/dashboards#/list?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:05:09]                     │ debg TestSubjects.exists(statusPageContainer)
[00:05:09]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:05:12]                     │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:05:12]                   └-> can open job selection flyout
[00:05:12]                     └-> "before each" hook: global before each for "can open job selection flyout"
[00:05:12]                     │ debg TestSubjects.click(createDashboardPromptButton)
[00:05:12]                     │ debg Find.clickByCssSelector('[data-test-subj="createDashboardPromptButton"]') with timeout=10000
[00:05:12]                     │ debg Find.findByCssSelector('[data-test-subj="createDashboardPromptButton"]') with timeout=10000
[00:05:12]                     │ debg TestSubjects.exists(emptyDashboardWidget)
[00:05:12]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="emptyDashboardWidget"]') with timeout=120000
[00:05:13]                     │ debg DashboardAddPanel.clickEditorMenuButton
[00:05:13]                     │ debg TestSubjects.click(dashboardEditorMenuButton)
[00:05:13]                     │ debg Find.clickByCssSelector('[data-test-subj="dashboardEditorMenuButton"]') with timeout=10000
[00:05:13]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenuButton"]') with timeout=10000
[00:05:13]                     │ debg DashboardAddPanel.clickEmbeddableFactoryGroupButton
[00:05:13]                     │ debg TestSubjects.click(dashboardEditorMenu-mlGroup)
[00:05:13]                     │ debg Find.clickByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:05:13]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:05:23]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:05:23]                     │      Wait timed out after 10033ms
[00:05:24]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:05:34]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:05:34]                     │      Wait timed out after 10053ms
[00:05:34]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:05:44]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:05:44]                     │      Wait timed out after 10015ms
[00:05:45]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:05:55]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:05:55]                     │      Wait timed out after 10029ms
[00:05:55]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:06:05]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:06:05]                     │      Wait timed out after 10020ms
[00:06:06]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:06:16]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:06:16]                     │      Wait timed out after 10047ms
[00:06:16]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:06:26]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:06:26]                     │      Wait timed out after 10054ms
[00:06:27]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:06:37]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:06:37]                     │      Wait timed out after 10032ms
[00:06:37]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:06:47]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:06:47]                     │      Wait timed out after 10028ms
[00:06:48]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:06:58]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:06:58]                     │      Wait timed out after 10026ms
[00:06:58]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:07:08]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:07:08]                     │      Wait timed out after 10051ms
[00:07:09]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:07:19]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:07:19]                     │      Wait timed out after 10024ms
[00:07:20]                     │ info Taking screenshot "/dev/shm/workspace/parallel/16/kibana/x-pack/test/functional/screenshots/failure/machine learning  embeddables anomaly charts with multi metric job can open job selection flyout.png"
[00:07:20]                     │ info Current URL is: http://localhost:61161/app/dashboards#/create?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(description:%27%27,filters:!(),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),query:(language:kuery,query:%27%27),tags:!(),timeRestore:!f,title:%27%27,viewMode:edit)
[00:07:20]                     │ info Saving page source to: /dev/shm/workspace/parallel/16/kibana/x-pack/test/functional/failure_debug/html/machine learning  embeddables anomaly charts with multi metric job can open job selection flyout.html
[00:07:20]                     └- ✖ fail: machine learning  embeddables anomaly charts with multi metric job can open job selection flyout
[00:07:20]                     │      Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:07:20]                     │ Wait timed out after 10024ms
[00:07:20]                     │     at /dev/shm/workspace/parallel/16/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:07:20]                     │     at runMicrotasks (<anonymous>)
[00:07:20]                     │     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:07:20]                     │       at onFailure (/dev/shm/workspace/parallel/16/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:07:20]                     │       at retryForSuccess (/dev/shm/workspace/parallel/16/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:07:20]                     │       at Retry.try (/dev/shm/workspace/parallel/16/kibana/test/common/services/retry/retry.ts:32:14)
[00:07:20]                     │       at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/16/kibana/test/functional/services/common/find.ts:420:7)
[00:07:20]                     │       at TestSubjects.click (/dev/shm/workspace/parallel/16/kibana/test/functional/services/common/test_subjects.ts:109:7)
[00:07:20]                     │       at DashboardAddPanel.clickEmbeddableFactoryGroupButton (/dev/shm/workspace/parallel/16/kibana/test/functional/services/dashboard/add_panel.ts:61:7)
[00:07:20]                     │       at Context.<anonymous> (test/functional/apps/ml/embeddables/anomaly_charts_dashboard_embeddables.ts:91:11)
[00:07:20]                     │       at Object.apply (/dev/shm/workspace/parallel/16/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:07:20]                     │ 
[00:07:20]                     │ 

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
Wait timed out after 10024ms
    at /dev/shm/workspace/parallel/16/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at onFailure (/dev/shm/workspace/parallel/16/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/16/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at Retry.try (/dev/shm/workspace/parallel/16/kibana/test/common/services/retry/retry.ts:32:14)
    at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/16/kibana/test/functional/services/common/find.ts:420:7)
    at TestSubjects.click (/dev/shm/workspace/parallel/16/kibana/test/functional/services/common/test_subjects.ts:109:7)
    at DashboardAddPanel.clickEmbeddableFactoryGroupButton (/dev/shm/workspace/parallel/16/kibana/test/functional/services/dashboard/add_panel.ts:61:7)
    at Context.<anonymous> (test/functional/apps/ml/embeddables/anomaly_charts_dashboard_embeddables.ts:91:11)
    at Object.apply (/dev/shm/workspace/parallel/16/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Metrics [docs]

Async chunks

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

id before after diff
remoteClusters 165.6KB 163.8KB -1.9KB

History

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

@yuliacech yuliacech merged commit 3244ae9 into elastic:7.x Apr 20, 2021
@yuliacech yuliacech deleted the backport/7.x/pr-96989 branch April 22, 2021 15:38
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