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.14] [SECURITY] Replaces hard-coded links with doc link service (#103823) #107784

Merged
merged 1 commit into from
Aug 5, 2021

Conversation

lcawl
Copy link
Contributor

@lcawl lcawl commented Aug 5, 2021

Backports the following commits to 7.14:

@lcawl lcawl added the backport label Aug 5, 2021
@lcawl lcawl enabled auto-merge (squash) August 5, 2021 17:08
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/ml/anomaly_detection/aggregated_scripted_job·ts.machine learning anomaly detection aggregated or scripted job unsupported job with partition by of a scripted field opens a job from job list link

Link to Jenkins

Standard Out

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

[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] [node-01] 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] [node-01] 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] [node-01] 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] [node-01] 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] [node-01] 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] [node-01] 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] [node-01] 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] [node-01] 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] [node-01] 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] [node-01] 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] [node-01] 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] [node-01] 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] [node-01] 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] [node-01] 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] [node-01] 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] [node-01] 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] [node-01] 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] [node-01] 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] [node-01] 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] [node-01] 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] [node-01] 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] [node-01] added user [ft_ml_unauthorized_spaces]
[00:00:01]               │ debg created user ft_ml_unauthorized_spaces
[00:08:59]             └-: anomaly detection
[00:08:59]               └-> "before all" hook in "anomaly detection"
[00:40:24]               └-: aggregated or scripted job
[00:40:24]                 └-> "before all" hook in "aggregated or scripted job"
[00:40:24]                 └-> "before all" hook in "aggregated or scripted job"
[00:40:24]                   │ info [x-pack/test/functional/es_archives/ml/farequote] Loading "mappings.json"
[00:40:24]                   │ info [x-pack/test/functional/es_archives/ml/farequote] Loading "data.json.gz"
[00:40:24]                   │ info [x-pack/test/functional/es_archives/ml/farequote] Skipped restore for existing index "ft_farequote"
[00:40:25]                   │ info [x-pack/test/functional/es_archives/ml/ecommerce] Loading "mappings.json"
[00:40:25]                   │ info [x-pack/test/functional/es_archives/ml/ecommerce] Loading "data.json.gz"
[00:40:25]                   │ info [x-pack/test/functional/es_archives/ml/ecommerce] Skipped restore for existing index "ft_ecommerce"
[00:40:26]                   │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:40:26]                   │ debg  > Found '944c1e00-f613-11eb-a9a9-2fba9bd6a0f6'
[00:40:26]                   │ debg Index pattern with title 'ft_farequote' already exists. Nothing to create.
[00:40:26]                   │ debg Searching for 'index-pattern' with title 'ft_ecommerce'...
[00:40:26]                   │ debg  > Found '88637e60-f615-11eb-a9a9-2fba9bd6a0f6'
[00:40:26]                   │ debg Index pattern with title 'ft_ecommerce' already exists. Nothing to create.
[00:40:26]                   │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:40:26]                   │ debg SecurityPage.forceLogout
[00:40:26]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:40:27]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:40:27]                   │ debg Redirecting to /logout to force the logout
[00:40:27]                   │ debg Waiting on the login form to appear
[00:40:27]                   │ debg Waiting for Login Page to appear.
[00:40:27]                   │ debg Waiting up to 100000ms for login page...
[00:40:27]                   │ debg browser[INFO] http://localhost:61171/logout?_t=1628187309973 281 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:40:27]                   │
[00:40:27]                   │ debg browser[INFO] http://localhost:61171/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:40:27]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:40:30]                   │ERROR browser[SEVERE] http://localhost:61171/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:40:30]                   │ debg browser[INFO] http://localhost:61171/42792/bundles/core/core.entry.js 12:157123 "Detected an unhandled Promise rejection.
[00:40:30]                   │      Error: Unauthorized"
[00:40:30]                   │ERROR browser[SEVERE] http://localhost:61171/42792/bundles/core/core.entry.js 5:2514 
[00:40:30]                   │ debg browser[INFO] http://localhost:61171/login?msg=LOGGED_OUT 281 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:40:30]                   │
[00:40:30]                   │ debg browser[INFO] http://localhost:61171/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:40:30]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:40:30]                   │ERROR browser[SEVERE] http://localhost:61171/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:40:31]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:40:31]                   │ debg TestSubjects.exists(loginForm)
[00:40:31]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:40:31]                   │ debg Waiting for Login Form to appear.
[00:40:31]                   │ debg Waiting up to 100000ms for login form...
[00:40:31]                   │ debg TestSubjects.exists(loginForm)
[00:40:31]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:40:31]                   │ debg TestSubjects.setValue(loginUsername, ft_ml_poweruser)
[00:40:31]                   │ debg TestSubjects.click(loginUsername)
[00:40:31]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:40:31]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:40:31]                   │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:40:31]                   │ debg TestSubjects.click(loginPassword)
[00:40:31]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:40:31]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:40:31]                   │ debg TestSubjects.click(loginSubmit)
[00:40:31]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:40:31]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:40:31]                   │ debg Waiting for login result, expected: chrome.
[00:40:31]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuAvatar"]') with timeout=20000
[00:40:31]                   │ proc [kibana]   log   [18:15:14.326] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:40:34]                   │ debg browser[INFO] http://localhost:61171/app/home 281 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:40:34]                   │
[00:40:34]                   │ debg browser[INFO] http://localhost:61171/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:40:34]                   │ debg Finished login process currentUrl = http://localhost:61171/app/home#/
[00:40:34]                   │ debg Waiting up to 20000ms for logout button visible...
[00:40:34]                   │ debg TestSubjects.exists(userMenuButton)
[00:40:34]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:40:34]                   │ debg TestSubjects.exists(userMenu)
[00:40:34]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:40:37]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:40:37]                   │ debg TestSubjects.click(userMenuButton)
[00:40:37]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:40:37]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:40:37]                   │ debg TestSubjects.exists(userMenu)
[00:40:37]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:40:38]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:40:38]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:41:26]                 └-: unsupported job with partition by of a scripted field
[00:41:26]                   └-> "before all" hook for "opens a job from job list link"
[00:41:26]                   └-> "before all" hook for "opens a job from job list link"
[00:41:26]                     │ debg Creating anomaly detection job with id 'fq_unsupported_script_1628184881951' ...
[00:41:26]                     │ info [o.e.c.m.MetadataMappingService] [node-01] [.ml-anomalies-shared/UrivJAfNSjWRO1BH1jjVNQ] update_mapping [_doc]
[00:41:27]                     │ debg Waiting up to 5000ms for 'fq_unsupported_script_1628184881951' to exist...
[00:41:27]                     │ debg > AD job created.
[00:41:27]                     │ debg Creating datafeed with id 'datafeed-fq_unsupported_script_1628184881951' ...
[00:41:28]                     │ debg Waiting up to 5000ms for 'datafeed-fq_unsupported_script_1628184881951' to exist...
[00:41:28]                     │ debg > Datafeed created.
[00:41:28]                     │ debg Opening anomaly detection job 'fq_unsupported_script_1628184881951'...
[00:41:28]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [node-01] Opening job [fq_unsupported_script_1628184881951]
[00:41:28]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [node-01] [fq_unsupported_script_1628184881951] Loading model snapshot [N/A], job latest_record_timestamp [N/A]
[00:41:28]                     │ info [o.e.x.m.p.l.CppLogMessageHandler] [node-01] [fq_unsupported_script_1628184881951] [autodetect/198057] [CResourceMonitor.cc@77] Setting model memory limit to 11 MB
[00:41:28]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [node-01] Successfully set job state to [opened] for job [fq_unsupported_script_1628184881951]
[00:41:28]                     │ debg > AD job opened.
[00:41:28]                     │ debg Starting datafeed 'datafeed-fq_unsupported_script_1628184881951' with start: '0', end: '1628187371108'...
[00:41:28]                     │ info [o.e.x.m.d.DatafeedJob] [node-01] [fq_unsupported_script_1628184881951] Datafeed started (from: 1970-01-01T00:00:00.000Z to: 2021-08-05T18:16:11.108Z) with frequency [450000ms]
[00:41:28]                     │ debg > Datafeed started.
[00:41:28]                     │ debg Waiting up to 120000ms for datafeed state to be stopped...
[00:41:28]                     │ debg Fetching datafeed state for datafeed datafeed-fq_unsupported_script_1628184881951
[00:41:28]                     │ debg --- retry.waitForWithTimeout error: expected job state to be stopped but got started
[00:41:29]                     │ debg Fetching datafeed state for datafeed datafeed-fq_unsupported_script_1628184881951
[00:41:29]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:41:29]                     │ debg Fetching datafeed state for datafeed datafeed-fq_unsupported_script_1628184881951
[00:41:29]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:41:30]                     │ debg Fetching datafeed state for datafeed datafeed-fq_unsupported_script_1628184881951
[00:41:30]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:41:30]                     │ debg Fetching datafeed state for datafeed datafeed-fq_unsupported_script_1628184881951
[00:41:30]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:41:31]                     │ debg Fetching datafeed state for datafeed datafeed-fq_unsupported_script_1628184881951
[00:41:31]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:41:31]                     │ debg Fetching datafeed state for datafeed datafeed-fq_unsupported_script_1628184881951
[00:41:31]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:41:32]                     │ debg Fetching datafeed state for datafeed datafeed-fq_unsupported_script_1628184881951
[00:41:32]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:41:32]                     │ debg Fetching datafeed state for datafeed datafeed-fq_unsupported_script_1628184881951
[00:41:32]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:41:33]                     │ debg Fetching datafeed state for datafeed datafeed-fq_unsupported_script_1628184881951
[00:41:33]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:41:33]                     │ info [o.e.x.m.d.DatafeedJob] [node-01] [fq_unsupported_script_1628184881951] Lookback has finished
[00:41:33]                     │ info [o.e.x.m.d.DatafeedRunner] [node-01] [no_realtime] attempt to stop datafeed [datafeed-fq_unsupported_script_1628184881951] for job [fq_unsupported_script_1628184881951]
[00:41:33]                     │ info [o.e.x.m.d.DatafeedRunner] [node-01] [no_realtime] try lock [20s] to stop datafeed [datafeed-fq_unsupported_script_1628184881951] for job [fq_unsupported_script_1628184881951]...
[00:41:33]                     │ info [o.e.x.m.d.DatafeedRunner] [node-01] [no_realtime] stopping datafeed [datafeed-fq_unsupported_script_1628184881951] for job [fq_unsupported_script_1628184881951], acquired [true]...
[00:41:33]                     │ info [o.e.x.m.d.DatafeedRunner] [node-01] [no_realtime] datafeed [datafeed-fq_unsupported_script_1628184881951] for job [fq_unsupported_script_1628184881951] has been stopped
[00:41:33]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [node-01] Closing job [fq_unsupported_script_1628184881951], because [close job (api)]
[00:41:33]                     │ info [o.e.x.m.p.l.CppLogMessageHandler] [node-01] [fq_unsupported_script_1628184881951] [autodetect/198057] [CCmdSkeleton.cc@61] Handled 4675 records
[00:41:33]                     │ info [o.e.x.m.p.l.CppLogMessageHandler] [node-01] [fq_unsupported_script_1628184881951] [autodetect/198057] [CAnomalyJob.cc@1578] Pruning all models
[00:41:33]                     │ info [o.e.x.m.p.AbstractNativeProcess] [node-01] [fq_unsupported_script_1628184881951] State output finished
[00:41:33]                     │ info [o.e.x.m.j.p.a.o.AutodetectResultProcessor] [node-01] [fq_unsupported_script_1628184881951] 2975 buckets parsed from autodetect output
[00:41:33]                     │ debg Fetching datafeed state for datafeed datafeed-fq_unsupported_script_1628184881951
[00:41:33]                     │ debg Waiting up to 120000ms for job state to be closed...
[00:41:33]                     │ debg Fetching anomaly detection job stats for job fq_unsupported_script_1628184881951...
[00:41:33]                     │ debg > AD job stats fetched.
[00:41:33]                     │ debg --- retry.waitForWithTimeout error: expected job state to be closed but got closing
[00:41:34]                     │ debg Fetching anomaly detection job stats for job fq_unsupported_script_1628184881951...
[00:41:34]                     │ debg > AD job stats fetched.
[00:41:34]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:41:34]                     │ info [o.e.x.m.j.p.a.AutodetectCommunicator] [node-01] [fq_unsupported_script_1628184881951] job closed
[00:41:34]                     │ debg Fetching anomaly detection job stats for job fq_unsupported_script_1628184881951...
[00:41:34]                     │ debg > AD job stats fetched.
[00:41:34]                   └-> opens a job from job list link
[00:41:34]                     └-> "before each" hook: global before each for "opens a job from job list link"
[00:41:34]                     │ debg === TEST STEP === navigate to job list
[00:41:34]                     │ debg navigating to ml url: http://localhost:61171/app/ml
[00:41:34]                     │ debg navigate to: http://localhost:61171/app/ml
[00:41:35]                     │ debg browser[INFO] http://localhost:61171/app/ml?_t=1628187377367 281 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:41:35]                     │
[00:41:35]                     │ debg browser[INFO] http://localhost:61171/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:41:35]                     │ debg ... sleep(700) start
[00:41:35]                     │ debg ... sleep(700) end
[00:41:35]                     │ debg returned from get, calling refresh
[00:41:37]                     │ debg browser[INFO] http://localhost:61171/app/ml?_t=1628187377367 281 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:41:37]                     │
[00:41:37]                     │ debg browser[INFO] http://localhost:61171/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:41:37]                     │ debg currentUrl = http://localhost:61171/app/ml
[00:41:37]                     │          appUrl = http://localhost:61171/app/ml
[00:41:37]                     │ debg TestSubjects.find(kibanaChrome)
[00:41:37]                     │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:41:37]                     │ debg ... sleep(501) start
[00:41:38]                     │ debg ... sleep(501) end
[00:41:38]                     │ debg in navigateTo url = http://localhost:61171/app/ml/overview
[00:41:38]                     │ debg --- retry.tryForTime error: URL changed, waiting for it to settle
[00:41:38]                     │ debg ... sleep(501) start
[00:41:39]                     │ debg ... sleep(501) end
[00:41:39]                     │ debg in navigateTo url = http://localhost:61171/app/ml/overview
[00:41:39]                     │ debg TestSubjects.exists(mlApp)
[00:41:39]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlApp"]') with timeout=2000
[00:41:39]                     │ debg TestSubjects.click(~mlMainTab & ~anomalyDetection)
[00:41:39]                     │ debg Find.clickByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"]') with timeout=10000
[00:41:39]                     │ debg Find.findByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"]') with timeout=10000
[00:41:39]                     │ debg TestSubjects.exists(~mlMainTab & ~anomalyDetection & ~selected)
[00:41:39]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"][data-test-subj~="selected"]') with timeout=120000
[00:41:39]                     │ debg TestSubjects.exists(mlPageJobManagement)
[00:41:39]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageJobManagement"]') with timeout=120000
[00:41:39]                     │ debg === TEST STEP === check that the single metric viewer button is disabled
[00:41:39]                     │ debg TestSubjects.exists(~mlJobListTable)
[00:41:39]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlJobListTable"]') with timeout=60000
[00:41:39]                     │ debg TestSubjects.exists(mlJobListTable loaded)
[00:41:39]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobListTable loaded"]') with timeout=30000
[00:41:39]                     │ debg TestSubjects.exists(~mlJobListTable)
[00:41:39]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlJobListTable"]') with timeout=60000
[00:41:39]                     │ debg TestSubjects.exists(mlJobListTable loaded)
[00:41:39]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobListTable loaded"]') with timeout=30000
[00:41:39]                     │ debg TestSubjects.find(mlJobListSearchBar)
[00:41:39]                     │ debg Find.findByCssSelector('[data-test-subj="mlJobListSearchBar"]') with timeout=10000
[00:41:41]                     │ debg TestSubjects.find(~mlJobListTable)
[00:41:41]                     │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"]') with timeout=10000
[00:41:41]                     │ debg TestSubjects.isEnabled(~mlJobListTable > ~row-fq_unsupported_script_1628184881951 > mlOpenJobsInSingleMetricViewerButton)
[00:41:41]                     │ debg TestSubjects.find(~mlJobListTable > ~row-fq_unsupported_script_1628184881951 > mlOpenJobsInSingleMetricViewerButton)
[00:41:41]                     │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_unsupported_script_1628184881951"] [data-test-subj="mlOpenJobsInSingleMetricViewerButton"]') with timeout=10000
[00:41:41]                     │ debg === TEST STEP === open job in anomaly explorer
[00:41:41]                     │ debg TestSubjects.click(~mlJobListTable > ~row-fq_unsupported_script_1628184881951 > mlOpenJobsInAnomalyExplorerButton)
[00:41:41]                     │ debg Find.clickByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_unsupported_script_1628184881951"] [data-test-subj="mlOpenJobsInAnomalyExplorerButton"]') with timeout=10000
[00:41:41]                     │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_unsupported_script_1628184881951"] [data-test-subj="mlOpenJobsInAnomalyExplorerButton"]') with timeout=10000
[00:41:41]                     │ debg TestSubjects.exists(~mlPageAnomalyExplorer)
[00:41:41]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlPageAnomalyExplorer"]') with timeout=120000
[00:41:44]                     │ debg --- retry.tryForTime error: [data-test-subj~="mlPageAnomalyExplorer"] is not displayed
[00:41:47]                     │ debg --- retry.tryForTime failed again with the same message...
[00:41:50]                     │ debg --- retry.tryForTime failed again with the same message...
[00:41:53]                     │ debg --- retry.tryForTime failed again with the same message...
[00:41:56]                     │ debg --- retry.tryForTime failed again with the same message...
[00:41:59]                     │ debg --- retry.tryForTime failed again with the same message...
[00:42:02]                     │ debg --- retry.tryForTime failed again with the same message...
[00:42:05]                     │ debg --- retry.tryForTime failed again with the same message...
[00:42:08]                     │ debg --- retry.tryForTime failed again with the same message...
[00:42:11]                     │ debg --- retry.tryForTime failed again with the same message...
[00:42:14]                     │ debg --- retry.tryForTime failed again with the same message...
[00:42:17]                     │ debg --- retry.tryForTime failed again with the same message...
[00:42:20]                     │ debg --- retry.tryForTime failed again with the same message...
[00:42:24]                     │ debg --- retry.tryForTime failed again with the same message...
[00:42:27]                     │ debg --- retry.tryForTime failed again with the same message...
[00:42:30]                     │ debg --- retry.tryForTime failed again with the same message...
[00:42:33]                     │ debg --- retry.tryForTime failed again with the same message...
[00:42:36]                     │ debg --- retry.tryForTime failed again with the same message...
[00:42:39]                     │ debg --- retry.tryForTime failed again with the same message...
[00:42:42]                     │ debg --- retry.tryForTime failed again with the same message...
[00:42:45]                     │ debg --- retry.tryForTime failed again with the same message...
[00:42:48]                     │ debg --- retry.tryForTime failed again with the same message...
[00:42:51]                     │ debg --- retry.tryForTime failed again with the same message...
[00:42:54]                     │ debg --- retry.tryForTime failed again with the same message...
[00:42:57]                     │ debg --- retry.tryForTime failed again with the same message...
[00:43:00]                     │ debg --- retry.tryForTime failed again with the same message...
[00:43:03]                     │ debg --- retry.tryForTime failed again with the same message...
[00:43:06]                     │ debg --- retry.tryForTime failed again with the same message...
[00:43:09]                     │ debg --- retry.tryForTime failed again with the same message...
[00:43:12]                     │ debg --- retry.tryForTime failed again with the same message...
[00:43:15]                     │ debg --- retry.tryForTime failed again with the same message...
[00:43:18]                     │ debg --- retry.tryForTime failed again with the same message...
[00:43:21]                     │ debg --- retry.tryForTime failed again with the same message...
[00:43:24]                     │ debg --- retry.tryForTime failed again with the same message...
[00:43:27]                     │ debg --- retry.tryForTime failed again with the same message...
[00:43:30]                     │ debg --- retry.tryForTime failed again with the same message...
[00:43:33]                     │ debg --- retry.tryForTime failed again with the same message...
[00:43:37]                     │ debg --- retry.tryForTime failed again with the same message...
[00:43:40]                     │ debg --- retry.tryForTime failed again with the same message...
[00:43:43]                     │ debg --- retry.tryForTime failed again with the same message...
[00:43:43]                     │ info Taking screenshot "/dev/shm/workspace/parallel/17/kibana/x-pack/test/functional/screenshots/failure/machine learning  anomaly detection aggregated or scripted job unsupported job with partition by of a scripted field opens a job from job list link.png"
[00:43:43]                     │ info Current URL is: http://localhost:61171/app/ml/jobs?_g=(refreshInterval%3A(pause%3A!f%2Cvalue%3A30000))&_a=(jobs%3A(pageIndex%3A0%2CpageSize%3A10%2CqueryText%3Afq_unsupported_script_1628184881951%2CsortDirection%3Aasc%2CsortField%3Aid))
[00:43:43]                     │ info Saving page source to: /dev/shm/workspace/parallel/17/kibana/x-pack/test/functional/failure_debug/html/machine learning  anomaly detection aggregated or scripted job unsupported job with partition by of a scripted field opens a job from job list link.html
[00:43:43]                     └- ✖ fail: machine learning  anomaly detection aggregated or scripted job unsupported job with partition by of a scripted field opens a job from job list link
[00:43:43]                     │      Error: expected testSubject(~mlPageAnomalyExplorer) to exist
[00:43:43]                     │       at TestSubjects.existOrFail (/dev/shm/workspace/parallel/17/kibana/test/functional/services/common/test_subjects.ts:45:13)
[00:43:43]                     │       at MlJobTable.clickOpenJobInAnomalyExplorerButton (test/functional/services/ml/job_table.ts:358:7)
[00:43:43]                     │       at Context.<anonymous> (test/functional/apps/ml/anomaly_detection/aggregated_scripted_job.ts:452:11)
[00:43:43]                     │       at Object.apply (/dev/shm/workspace/parallel/17/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:43:43]                     │ 
[00:43:43]                     │ 

Stack Trace

Error: expected testSubject(~mlPageAnomalyExplorer) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/parallel/17/kibana/test/functional/services/common/test_subjects.ts:45:13)
    at MlJobTable.clickOpenJobInAnomalyExplorerButton (test/functional/services/ml/job_table.ts:358:7)
    at Context.<anonymous> (test/functional/apps/ml/anomaly_detection/aggregated_scripted_job.ts:452:11)
    at Object.apply (/dev/shm/workspace/parallel/17/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87: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
securitySolution 6.3MB 6.3MB -463.0B

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

@lcawl lcawl merged commit 9527a00 into elastic:7.14 Aug 5, 2021
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