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

Fix typo in license_api_guard README name and import http server mocks from public interface #97334

Merged
merged 4 commits into from
Apr 19, 2021

Conversation

cjcenizal
Copy link
Contributor

@cjcenizal cjcenizal commented Apr 15, 2021

Followup to #95973

This PR also explicitly disallows plugins under the Basic license from using this module to ensure the user's license is Basic or higher. Doing so is unnecessary because all licenses meet this criteria. See #97314 for related context.

@cjcenizal cjcenizal added chore v8.0.0 Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more release_note:skip Skip the PR/issue when compiling release notes v7.13.0 labels Apr 15, 2021
@cjcenizal cjcenizal requested a review from a team as a code owner April 15, 2021 22:11
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui (Team:Elasticsearch UI)

Copy link
Contributor

@alisonelizabeth alisonelizabeth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Changes LGTM

@cjcenizal
Copy link
Contributor Author

@elasticmachine merge upstream

@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/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 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] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] 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-1618792754617985364] 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-1618792754617985364] 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-1618792754617985364] 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-1618792754617985364] 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-1618792754617985364] 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-1618792754617985364] 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-1618792754617985364] 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-1618792754617985364] 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-1618792754617985364] 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-1618792754617985364] 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-1618792754617985364] 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-1618792754617985364] 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-1618792754617985364] 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-1618792754617985364] 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-1618792754617985364] 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-1618792754617985364] 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-1618792754617985364] 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-1618792754617985364] 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-1618792754617985364] 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-1618792754617985364] 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-1618792754617985364] 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:45]                   │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:04:45]                   │ debg  > Found '10eb9e50-a0af-11eb-8b4c-390cf53c824d'
[00:04:45]                   │ debg Index pattern with title 'ft_farequote' already exists. Nothing to create.
[00:04:45]                   │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:04:46]                   │ debg SecurityPage.forceLogout
[00:04:46]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:04:46]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:04:47]                   │ debg Redirecting to /logout to force the logout
[00:04:47]                   │ debg Waiting on the login form to appear
[00:04:47]                   │ debg Waiting for Login Page to appear.
[00:04:47]                   │ debg Waiting up to 100000ms for login page...
[00:04:47]                   │ debg browser[INFO] http://localhost:61201/logout?_t=1618796100480 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:47]                   │
[00:04:47]                   │ debg browser[INFO] http://localhost:61201/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:47]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:04:49]                   │ debg browser[INFO] http://localhost:61201/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:49]                   │
[00:04:49]                   │ debg browser[INFO] http://localhost:61201/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:49]                   │ERROR browser[SEVERE] http://localhost:61201/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:04:49]                   │ debg browser[INFO] http://localhost:61201/42142/bundles/core/core.entry.js 12:151585 "Detected an unhandled Promise rejection.
[00:04:49]                   │      Error: Unauthorized"
[00:04:49]                   │ERROR browser[SEVERE] http://localhost:61201/42142/bundles/core/core.entry.js 5:2514 
[00:04:49]                   │ERROR browser[SEVERE] http://localhost:61201/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:04:49]                   │ debg TestSubjects.exists(loginForm)
[00:04:49]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:04:49]                   │ debg Waiting for Login Form to appear.
[00:04:49]                   │ debg Waiting up to 100000ms for login form...
[00:04:49]                   │ debg TestSubjects.exists(loginForm)
[00:04:49]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:04:49]                   │ debg TestSubjects.setValue(loginUsername, ft_ml_poweruser)
[00:04:49]                   │ debg TestSubjects.click(loginUsername)
[00:04:49]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:04:49]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:04:49]                   │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:04:49]                   │ debg TestSubjects.click(loginPassword)
[00:04:49]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:04:49]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:04:50]                   │ debg TestSubjects.click(loginSubmit)
[00:04:50]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:04:50]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:04:50]                   │ debg Waiting for login result, expected: chrome.
[00:04:50]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] .app-wrapper:not(.hidden-chrome)') with timeout=20000
[00:04:50]                   │ proc [kibana]   log   [01:35:03.544] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:04:52]                   │ debg browser[INFO] http://localhost:61201/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:52]                   │
[00:04:52]                   │ debg browser[INFO] http://localhost:61201/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:52]                   │ debg Finished login process currentUrl = http://localhost:61201/app/home#/
[00:04:52]                   │ debg Waiting up to 20000ms for logout button visible...
[00:04:52]                   │ debg TestSubjects.exists(userMenuButton)
[00:04:52]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:04:52]                   │ debg TestSubjects.exists(userMenu)
[00:04:52]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:04:54]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:04:55]                   │ debg TestSubjects.click(userMenuButton)
[00:04:55]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:04:55]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:04:55]                   │ debg TestSubjects.exists(userMenu)
[00:04:55]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:04:55]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:04:55]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:04:55]                 └-: with multi metric job
[00:04:55]                   └-> "before all" hook for "can open job selection flyout"
[00:04:55]                   └-> "before all" hook for "can open job selection flyout"
[00:04:55]                     │ debg Creating anomaly detection job with id 'fq_multi_1_ae' ...
[00:04:55]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:04:55]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:04:55]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:04:55]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:04:55]                     │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [.ml-anomalies-shared/wgabgr9RR_W7OmfP3IwBRQ] update_mapping [_doc]
[00:04:55]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [.ml-config] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:04:55]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] updating number_of_replicas to [0] for indices [.ml-config]
[00:04:55]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [.ml-notifications-000001] creating index, cause [auto(bulk api)], templates [.ml-notifications-000001], shards [1]/[1]
[00:04:55]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] updating number_of_replicas to [0] for indices [.ml-notifications-000001]
[00:04:56]                     │ debg Waiting up to 5000ms for 'fq_multi_1_ae' to exist...
[00:04:56]                     │ debg > AD job created.
[00:04:56]                     │ debg Creating datafeed with id 'datafeed-fq_multi_1_ae' ...
[00:04:57]                     │ debg Waiting up to 5000ms for 'datafeed-fq_multi_1_ae' to exist...
[00:04:57]                     │ debg > Datafeed created.
[00:04:57]                     │ debg Opening anomaly detection job 'fq_multi_1_ae'...
[00:04:57]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] Opening job [fq_multi_1_ae]
[00:04:57]                     │ info [o.e.x.c.m.u.MlIndexAndAlias] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] About to create first concrete index [.ml-state-000001] with alias [.ml-state-write]
[00:04:57]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [.ml-state-000001] creating index, cause [api], templates [.ml-state], shards [1]/[1]
[00:04:57]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] updating number_of_replicas to [0] for indices [.ml-state-000001]
[00:04:57]                     │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] moving index [.ml-state-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ml-size-based-ilm-policy]
[00:04:57]                     │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] 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:57]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [fq_multi_1_ae] Loading model snapshot [N/A], job latest_record_timestamp [N/A]
[00:04:57]                     │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] 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:58]                     │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [fq_multi_1_ae] [autodetect/132207] [CResourceMonitor.cc@77] Setting model memory limit to 20 MB
[00:04:58]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] Successfully set job state to [opened] for job [fq_multi_1_ae]
[00:04:58]                     │ debg > AD job opened.
[00:04:58]                     │ debg Starting datafeed 'datafeed-fq_multi_1_ae' with start: '0', end: '1618796111554'...
[00:04:58]                     │ debg > Datafeed started.
[00:04:58]                     │ debg Waiting up to 120000ms for datafeed state to be stopped...
[00:04:58]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:04:58]                     │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [fq_multi_1_ae] Datafeed started (from: 1970-01-01T00:00:00.000Z to: 2021-04-19T01:35:11.554Z) with frequency [600000ms]
[00:04:58]                     │ debg --- retry.waitForWithTimeout error: expected job state to be stopped but got started
[00:04:58]                     │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [.ml-anomalies-shared/wgabgr9RR_W7OmfP3IwBRQ] update_mapping [_doc]
[00:04:58]                     │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [fq_multi_1_ae] 10000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:04:58]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:04:58]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[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:04:59]                     │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [fq_multi_1_ae] 20000 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-1618792754617985364] [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:00]                     │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [fq_multi_1_ae] 40000 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: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-1618792754617985364] [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:01]                     │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [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-1618792754617985364] [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: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-1618792754617985364] [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: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]                     │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [fq_multi_1_ae] Lookback has finished
[00:05:04]                     │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [no_realtime] attempt to stop datafeed [datafeed-fq_multi_1_ae] for job [fq_multi_1_ae]
[00:05:04]                     │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [no_realtime] try lock [20s] to stop datafeed [datafeed-fq_multi_1_ae] for job [fq_multi_1_ae]...
[00:05:04]                     │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [no_realtime] stopping datafeed [datafeed-fq_multi_1_ae] for job [fq_multi_1_ae], acquired [true]...
[00:05:04]                     │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [no_realtime] datafeed [datafeed-fq_multi_1_ae] for job [fq_multi_1_ae] has been stopped
[00:05:04]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] Closing job [fq_multi_1_ae], because [close job (api)]
[00:05:04]                     │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [fq_multi_1_ae] [autodetect/132207] [CCmdSkeleton.cc@61] Handled 86274 records
[00:05:04]                     │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [fq_multi_1_ae] [autodetect/132207] [CAnomalyJob.cc@1578] Pruning all models
[00:05:04]                     │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [.ml-anomalies-shared/wgabgr9RR_W7OmfP3IwBRQ] update_mapping [_doc]
[00:05:04]                     │ info [o.e.x.m.p.AbstractNativeProcess] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [fq_multi_1_ae] State output finished
[00:05:04]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:05:04]                     │ info [o.e.x.m.j.p.a.o.AutodetectResultProcessor] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [fq_multi_1_ae] 120 buckets parsed from autodetect output
[00:05:04]                     │ debg Waiting up to 120000ms for job state to be closed...
[00:05:04]                     │ debg Fetching anomaly detection job stats for job fq_multi_1_ae...
[00:05:04]                     │ debg > AD job stats fetched.
[00:05:04]                     │ debg --- retry.waitForWithTimeout error: expected job state to be closed but got closing
[00:05:05]                     │ debg Fetching anomaly detection job stats for job fq_multi_1_ae...
[00:05:05]                     │ debg > AD job stats fetched.
[00:05:05]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:05:05]                     │ debg Fetching anomaly detection job stats for job fq_multi_1_ae...
[00:05:05]                     │ debg > AD job stats fetched.
[00:05:05]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:05:05]                     │ info [o.e.x.m.j.p.a.AutodetectCommunicator] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618792754617985364] [fq_multi_1_ae] job 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 navigating to dashboard url: http://localhost:61201/app/dashboards#/list
[00:05:06]                     │ debg navigate to: http://localhost:61201/app/dashboards#/list
[00:05:06]                     │ debg browser[INFO] http://localhost:61201/app/dashboards?_t=1618796119507#/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:06]                     │
[00:05:06]                     │ debg browser[INFO] http://localhost:61201/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:06]                     │ debg ... sleep(700) start
[00:05:07]                     │ debg ... sleep(700) end
[00:05:07]                     │ debg returned from get, calling refresh
[00:05:07]                     │ERROR browser[SEVERE] http://localhost:61201/42142/bundles/core/core.entry.js 12:150657 TypeError: Failed to fetch
[00:05:07]                     │          at fetch_Fetch.fetchResponse (http://localhost:61201/42142/bundles/core/core.entry.js:6:26193)
[00:05:07]                     │          at async http://localhost:61201/42142/bundles/core/core.entry.js:6:24090
[00:05:07]                     │          at async http://localhost:61201/42142/bundles/core/core.entry.js:6:23996
[00:05:07]                     │ debg browser[INFO] http://localhost:61201/app/dashboards?_t=1618796119507#/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:61201/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:07]                     │ debg currentUrl = http://localhost:61201/app/dashboards#/list
[00:05:07]                     │          appUrl = http://localhost:61201/app/dashboards#/list
[00:05:07]                     │ debg TestSubjects.find(kibanaChrome)
[00:05:07]                     │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:05:08]                     │ debg ... sleep(501) start
[00:05:08]                     │ debg ... sleep(501) end
[00:05:08]                     │ debg in navigateTo url = http://localhost:61201/app/dashboards#/list?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:05:08]                     │ debg TestSubjects.exists(statusPageContainer)
[00:05:08]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:05:11]                     │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:05:11]                   └-> can open job selection flyout
[00:05:11]                     └-> "before each" hook: global before each for "can open job selection flyout"
[00:05:11]                     │ debg TestSubjects.click(createDashboardPromptButton)
[00:05:11]                     │ debg Find.clickByCssSelector('[data-test-subj="createDashboardPromptButton"]') with timeout=10000
[00:05:11]                     │ debg Find.findByCssSelector('[data-test-subj="createDashboardPromptButton"]') with timeout=10000
[00:05:11]                     │ debg TestSubjects.exists(emptyDashboardWidget)
[00:05:11]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="emptyDashboardWidget"]') with timeout=120000
[00:05:12]                     │ debg DashboardAddPanel.clickEditorMenuButton
[00:05:12]                     │ debg TestSubjects.click(dashboardEditorMenuButton)
[00:05:12]                     │ debg Find.clickByCssSelector('[data-test-subj="dashboardEditorMenuButton"]') with timeout=10000
[00:05:12]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenuButton"]') with timeout=10000
[00:05:12]                     │ debg DashboardAddPanel.clickEmbeddableFactoryGroupButton
[00:05:12]                     │ debg TestSubjects.click(dashboardEditorMenu-mlGroup)
[00:05:12]                     │ debg Find.clickByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:05:12]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:05:22]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:05:22]                     │      Wait timed out after 10058ms
[00:05:22]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:05:33]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:05:33]                     │      Wait timed out after 10048ms
[00:05:33]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:05:43]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:05:43]                     │      Wait timed out after 10031ms
[00:05:44]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:05:54]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:05:54]                     │      Wait timed out after 10020ms
[00:05:54]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:06:04]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:06:04]                     │      Wait timed out after 10006ms
[00:06:05]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:06:15]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:06:15]                     │      Wait timed out after 10042ms
[00:06:15]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:06:25]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:06:25]                     │      Wait timed out after 10059ms
[00:06:26]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:06:36]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:06:36]                     │      Wait timed out after 10019ms
[00:06:36]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:06:46]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:06:46]                     │      Wait timed out after 10017ms
[00:06:47]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:06:57]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:06:57]                     │      Wait timed out after 10026ms
[00:06:57]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:07:07]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:07:07]                     │      Wait timed out after 10018ms
[00:07:08]                     │ debg Find.findByCssSelector('[data-test-subj="dashboardEditorMenu-mlGroup"]') with timeout=10000
[00:07:18]                     │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:07:18]                     │      Wait timed out after 10036ms
[00:07:18]                     │ info Taking screenshot "/dev/shm/workspace/parallel/20/kibana/x-pack/test/functional/screenshots/failure/machine learning  embeddables anomaly charts with multi metric job can open job selection flyout.png"
[00:07:18]                     │ info Current URL is: http://localhost:61201/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:19]                     │ info Saving page source to: /dev/shm/workspace/parallel/20/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:19]                     └- ✖ fail: machine learning  embeddables anomaly charts with multi metric job can open job selection flyout
[00:07:19]                     │      Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="dashboardEditorMenu-mlGroup"])
[00:07:19]                     │ Wait timed out after 10036ms
[00:07:19]                     │     at /dev/shm/workspace/parallel/20/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:07:19]                     │     at runMicrotasks (<anonymous>)
[00:07:19]                     │     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:07:19]                     │       at onFailure (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:07:19]                     │       at retryForSuccess (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:07:19]                     │       at Retry.try (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry.ts:32:14)
[00:07:19]                     │       at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/20/kibana/test/functional/services/common/find.ts:420:7)
[00:07:19]                     │       at TestSubjects.click (/dev/shm/workspace/parallel/20/kibana/test/functional/services/common/test_subjects.ts:109:7)
[00:07:19]                     │       at DashboardAddPanel.clickEmbeddableFactoryGroupButton (/dev/shm/workspace/parallel/20/kibana/test/functional/services/dashboard/add_panel.ts:63:7)
[00:07:19]                     │       at Context.<anonymous> (test/functional/apps/ml/embeddables/anomaly_charts_dashboard_embeddables.ts:91:11)
[00:07:19]                     │       at Object.apply (/dev/shm/workspace/parallel/20/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:07:19]                     │ 
[00:07:19]                     │ 

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 10036ms
    at /dev/shm/workspace/parallel/20/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/20/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at Retry.try (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry.ts:32:14)
    at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/20/kibana/test/functional/services/common/find.ts:420:7)
    at TestSubjects.click (/dev/shm/workspace/parallel/20/kibana/test/functional/services/common/test_subjects.ts:109:7)
    at DashboardAddPanel.clickEmbeddableFactoryGroupButton (/dev/shm/workspace/parallel/20/kibana/test/functional/services/dashboard/add_panel.ts:63:7)
    at Context.<anonymous> (test/functional/apps/ml/embeddables/anomaly_charts_dashboard_embeddables.ts:91:11)
    at Object.apply (/dev/shm/workspace/parallel/20/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Metrics [docs]

✅ unchanged

History

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

@cjcenizal cjcenizal merged commit 681bd64 into elastic:master Apr 19, 2021
@cjcenizal cjcenizal deleted the chore/license-api-guard-cleanup branch April 19, 2021 03:28
cjcenizal added a commit that referenced this pull request Apr 19, 2021
…s from public interface (#97334) (#97415)

* Reject basic minimum licenses.
jloleysens added a commit to jloleysens/kibana that referenced this pull request Apr 19, 2021
…te-legacy-es-client

* 'master' of github.com:elastic/kibana: (102 commits)
  [Exploratory view] integerate page views to exploratory view (elastic#97258)
  Fix typo in license_api_guard README name and import http server mocks from public interface (elastic#97334)
  Avoid mutating KQL query when validating it (elastic#97081)
  Add description as title on tag badge (elastic#97109)
  Remove legacy ES client usages in `home` and `xpack_legacy` (elastic#97359)
  [Fleet] Finer-grained error information from install/upgrade API (elastic#95649)
  Rule registry bundle size (elastic#97251)
  [Partial Results] Move other bucket into Search Source (elastic#96384)
  [Dashboard] Makes lens default editor for creating new panels (elastic#96181)
  skip flaky suite (elastic#97387)
  [Asset Management] Agent picker follow up (elastic#97357)
  skip flaky suite (elastic#97382)
  [Security Solutions] Fixes flake with cypress tests (elastic#97329)
  skip flaky suite (elastic#97355)
  Skip test to try and stabilize master
  minimize number of so fild asserted in tests. it creates flakines when implementation details change (elastic#97374)
  [Search Sessions] Client side search cache (elastic#92439)
  [SavedObjects] Add aggregations support (elastic#96292)
  [Reporting] Remove legacy elasticsearch client usage from the reporting plugin (elastic#97184)
  [kbnClient] fix basePath handling and export reponse type (elastic#97277)
  ...

# Conflicts:
#	x-pack/plugins/watcher/server/lib/license_pre_routing_factory/license_pre_routing_factory.ts
#	x-pack/plugins/watcher/server/plugin.ts
#	x-pack/plugins/watcher/server/routes/api/indices/register_get_route.ts
#	x-pack/plugins/watcher/server/routes/api/license/register_refresh_route.ts
#	x-pack/plugins/watcher/server/routes/api/register_list_fields_route.ts
#	x-pack/plugins/watcher/server/routes/api/register_load_history_route.ts
#	x-pack/plugins/watcher/server/routes/api/settings/register_load_route.ts
#	x-pack/plugins/watcher/server/routes/api/watch/action/register_acknowledge_route.ts
#	x-pack/plugins/watcher/server/routes/api/watch/register_activate_route.ts
#	x-pack/plugins/watcher/server/routes/api/watch/register_deactivate_route.ts
#	x-pack/plugins/watcher/server/routes/api/watch/register_delete_route.ts
#	x-pack/plugins/watcher/server/routes/api/watch/register_execute_route.ts
#	x-pack/plugins/watcher/server/routes/api/watch/register_history_route.ts
#	x-pack/plugins/watcher/server/routes/api/watch/register_load_route.ts
#	x-pack/plugins/watcher/server/routes/api/watch/register_save_route.ts
#	x-pack/plugins/watcher/server/routes/api/watch/register_visualize_route.ts
#	x-pack/plugins/watcher/server/routes/api/watches/register_delete_route.ts
#	x-pack/plugins/watcher/server/routes/api/watches/register_list_route.ts
#	x-pack/plugins/watcher/server/shared_imports.ts
#	x-pack/plugins/watcher/server/types.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.13.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants