Skip to content

Conversation

@pgayvallet
Copy link
Contributor

Backports the following commits to 7.x:

* first pass

* migrate more plugins

* migrate yet more plugins

* more oss plugins

* fix test file

* change Plugin signature on the client-side too

* fix test types

* migrate OSS client-side plugins

* migrate OSS client-side test plugins

* migrate xpack client-side plugins

* revert fix attempt on fleet plugin

* fix presentation start signature

* fix yet another signature

* add warnings for server-side async plugins in dev mode

* remove unused import

* fix isPromise

* Add client-side deprecations

* update migration examples

* update generated doc

* fix xpack unit tests

* nit

* (will be reverted) explicitly await for license to be ready in the auth hook

* Revert "(will be reverted) explicitly await for license to be ready in the auth hook"

This reverts commit fdf73fe

* restore await on on promise contracts

* Revert "(will be reverted) explicitly await for license to be ready in the auth hook"

This reverts commit fdf73fe

* Revert "restore await on on promise contracts"

This reverts commit c5f2fe5

* add delay before starting tests in FTR

* update deprecation ts doc

* add explicit contract for monitoring setup

* migrate monitoring plugin to sync

* change plugin timeout to 10sec

* use delay instead of silence
# Conflicts:
#	x-pack/plugins/xpack_legacy/server/plugin.ts
@pgayvallet pgayvallet added the backport This PR is a backport of another PR label Feb 8, 2021
@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/transform/feature_controls/transform_security·ts.transform feature controls security global dashboard all with transform_user should render the "Data" section with Transform

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:16:53]         └-: transform
[00:16:53]           └-> "before all" hook in "transform"
[00:16:53]           └-> "before all" hook in "transform"
[00:16:53]             │ debg creating role transform_source
[00:16:53]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] added role [transform_source]
[00:16:53]             │ debg creating role transform_dest
[00:16:53]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] added role [transform_dest]
[00:16:53]             │ debg creating role transform_dest_readonly
[00:16:53]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] added role [transform_dest_readonly]
[00:16:53]             │ debg creating role transform_ui_extras
[00:16:53]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] added role [transform_ui_extras]
[00:16:53]             │ debg creating user transform_poweruser
[00:16:53]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] added user [transform_poweruser]
[00:16:53]             │ debg created user transform_poweruser
[00:16:53]             │ debg creating user transform_viewer
[00:16:53]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] added user [transform_viewer]
[00:16:53]             │ debg created user transform_viewer
[00:16:53]           └-: feature controls
[00:16:53]             └-> "before all" hook in "feature controls"
[00:16:53]             └-: security
[00:16:53]               └-> "before all" hook in "security"
[00:16:53]               └-> "before all" hook in "security"
[00:16:53]                 │ info [empty_kibana] Loading "mappings.json"
[00:16:53]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] [.kibana_2/FVdOZ6LCRiyvpMxKxncLLQ] deleting index
[00:16:53]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] [.kibana_1/VWUZshx-QAyw7eh1F1oBrg] deleting index
[00:16:53]                 │ info [empty_kibana] Deleted existing index ".kibana_2"
[00:16:53]                 │ info [empty_kibana] Deleted existing index ".kibana_1"
[00:16:53]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:16:54]                 │ info [empty_kibana] Created index ".kibana"
[00:16:54]                 │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:16:54]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] [.kibana/_Akzc_pHQ5OxcqWdRJA5nQ] update_mapping [_doc]
[00:16:54]                 │ debg Migrating saved objects
[00:16:54]                 │ proc [kibana]   log   [10:47:25.665] [info][savedobjects-service] Creating index .kibana_2.
[00:16:54]                 │ proc [kibana]   log   [10:47:25.667] [info][savedobjects-service] Creating index .kibana_task_manager_27.
[00:16:54]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] [.kibana_task_manager_27] creating index, cause [api], templates [], shards [1]/[1]
[00:16:54]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] updating number_of_replicas to [0] for indices [.kibana_task_manager_27]
[00:16:54]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:16:54]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] updating number_of_replicas to [0] for indices [.kibana_2]
[00:16:54]                 │ proc [kibana]   log   [10:47:25.758] [info][savedobjects-service] Migrating .kibana_task_manager_26 saved objects to .kibana_task_manager_27
[00:16:54]                 │ proc [kibana]   log   [10:47:25.775] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:16:54]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] [.kibana_task_manager_27/30pSCO6FSXaqFYZqtrY9ww] update_mapping [_doc]
[00:16:54]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:16:54]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] updating number_of_replicas to [0] for indices [.kibana_1]
[00:16:54]                 │ proc [kibana]   log   [10:47:25.837] [info][savedobjects-service] Pointing alias .kibana_task_manager to .kibana_task_manager_27.
[00:16:54]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] 31413 finished with response BulkByScrollResponse[took=1.2ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:16:54]                 │ proc [kibana]   log   [10:47:25.877] [info][savedobjects-service] Finished in 210ms.
[00:16:54]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] [.kibana/_Akzc_pHQ5OxcqWdRJA5nQ] deleting index
[00:16:54]                 │ proc [kibana]   log   [10:47:26.131] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:16:54]                 │ proc [kibana]   log   [10:47:26.134] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:16:54]                 │ proc [kibana]   log   [10:47:26.159] [info][savedobjects-service] Finished in 495ms.
[00:16:54]                 │ debg [empty_kibana] Migrated Kibana index after loading Kibana data
[00:16:54]                 │ debg [empty_kibana] Ensured that default space exists in .kibana
[00:16:54]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:16:54]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] [.kibana_2/jMx-GMF8QvW1yCvc34IftA] update_mapping [_doc]
[00:16:56]                 │ debg SecurityPage.forceLogout
[00:16:56]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:16:56]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:16:56]                 │ debg Redirecting to /logout to force the logout
[00:16:56]                 │ debg Waiting on the login form to appear
[00:16:56]                 │ debg Waiting for Login Page to appear.
[00:16:56]                 │ debg Waiting up to 100000ms for login page...
[00:16:56]                 │ debg browser[INFO] http://localhost:6181/logout?_t=1612781248375 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:16:56]                 │
[00:16:56]                 │ debg browser[INFO] http://localhost:6181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:56]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:16:59]                 │ERROR browser[SEVERE] http://localhost:6181/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:59]                 │ debg browser[INFO] http://localhost:6181/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:16:59]                 │
[00:16:59]                 │ debg browser[INFO] http://localhost:6181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:59]                 │ERROR browser[SEVERE] http://localhost:6181/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:59]                 │ERROR browser[SEVERE] http://localhost:6181/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:59]                 │ debg browser[INFO] http://localhost:6181/38545/bundles/core/core.entry.js 12:159412 "Detected an unhandled Promise rejection.
[00:16:59]                 │      Error: Unauthorized"
[00:16:59]                 │ERROR browser[SEVERE] http://localhost:6181/38545/bundles/core/core.entry.js 5:3002 
[00:16:59]                 │ERROR browser[SEVERE] http://localhost:6181/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:59]                 │ debg navigating to home url: http://localhost:6181/app/home#/
[00:16:59]                 │ debg navigate to: http://localhost:6181/app/home#/
[00:16:59]                 │ debg browser[INFO] http://localhost:6181/login?next=%2Fapp%2Fhome%3F_t%3D1612781250981#/ 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:16:59]                 │
[00:16:59]                 │ debg browser[INFO] http://localhost:6181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:59]                 │ debg ... sleep(700) start
[00:17:00]                 │ debg ... sleep(700) end
[00:17:00]                 │ debg returned from get, calling refresh
[00:17:00]                 │ERROR browser[SEVERE] http://localhost:6181/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:17:00]                 │ debg browser[INFO] http://localhost:6181/login?next=%2Fapp%2Fhome%3F_t%3D1612781250981#/ 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:17:00]                 │
[00:17:00]                 │ debg browser[INFO] http://localhost:6181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:17:01]                 │ debg currentUrl = http://localhost:6181/login?next=%2Fapp%2Fhome%3F_t%3D1612781250981#/
[00:17:01]                 │          appUrl = http://localhost:6181/app/home#/
[00:17:01]                 │ debg TestSubjects.find(kibanaChrome)
[00:17:01]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:17:01]                 │ debg Found login page
[00:17:01]                 │ debg TestSubjects.setValue(loginUsername, test_user)
[00:17:01]                 │ debg TestSubjects.click(loginUsername)
[00:17:01]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:17:01]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:17:01]                 │ERROR browser[SEVERE] http://localhost:6181/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:17:01]                 │ debg browser[INFO] http://localhost:6181/38545/bundles/core/core.entry.js 12:159412 "Detected an unhandled Promise rejection.
[00:17:01]                 │      Error: Unauthorized"
[00:17:01]                 │ERROR browser[SEVERE] http://localhost:6181/38545/bundles/core/core.entry.js 5:3002 
[00:17:01]                 │ERROR browser[SEVERE] http://localhost:6181/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:17:01]                 │ERROR browser[SEVERE] http://localhost:6181/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:17:01]                 │ debg TestSubjects.setValue(loginPassword, changeme)
[00:17:01]                 │ debg TestSubjects.click(loginPassword)
[00:17:01]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:17:01]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:17:01]                 │ debg TestSubjects.click(loginSubmit)
[00:17:01]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:17:01]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:17:01]                 │ debg Find.waitForDeletedByCssSelector('.kibanaWelcomeLogo') with timeout=10000
[00:17:01]                 │ proc [kibana]   log   [10:47:33.086] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:17:02]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:17:02]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:17:03]                 │ debg browser[INFO] http://localhost:6181/app/home?_t=1612781250981#/ 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:17:03]                 │
[00:17:03]                 │ debg browser[INFO] http://localhost:6181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:17:03]                 │ debg browser[INFO] http://localhost:6181/app/home?_t=1612781255081#/ 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:17:03]                 │
[00:17:03]                 │ debg browser[INFO] http://localhost:6181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:17:04]                 │ debg Finished login process currentUrl = http://localhost:6181/app/home#/
[00:17:04]                 │ debg ... sleep(501) start
[00:17:04]                 │ debg ... sleep(501) end
[00:17:04]                 │ debg in navigateTo url = http://localhost:6181/app/home#/
[00:17:04]                 │ debg TestSubjects.exists(statusPageContainer)
[00:17:04]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:17:07]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:17:22]               └-: global dashboard all with transform_user
[00:17:22]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:17:22]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:17:22]                   │ debg set roles = global_dashboard_all,transform_user
[00:17:22]                   │ debg creating user test_user
[00:17:22]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1612778223511881970] updated user [test_user]
[00:17:22]                   │ debg created user test_user
[00:17:22]                   │ debg TestSubjects.exists(kibanaChrome)
[00:17:22]                   │ debg Find.existsByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=2500
[00:17:22]                   │ debg TestSubjects.find(kibanaChrome)
[00:17:22]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=100000
[00:17:22]                   │ debg browser[INFO] http://localhost:6181/app/management?_t=1612781266083 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:17:22]                   │
[00:17:22]                   │ debg browser[INFO] http://localhost:6181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:17:23]                 └-> should show the Stack Management nav link
[00:17:23]                   └-> "before each" hook: global before each for "should show the Stack Management nav link"
[00:17:23]                   │ debg isGlobalLoadingIndicatorVisible
[00:17:23]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:17:23]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:17:25]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:17:25]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:17:25]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:17:25]                   │ debg TestSubjects.exists(collapsibleNav)
[00:17:25]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:17:28]                   │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:17:28]                   │ debg TestSubjects.click(toggleNavButton)
[00:17:28]                   │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:17:28]                   │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:17:28]                   │ debg TestSubjects.find(collapsibleNav)
[00:17:28]                   │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:17:28]                   │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:17:28]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:17:28]                   │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:17:28]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:17:29]                   └- ✓ pass  (5.4s) "transform feature controls security global dashboard all with transform_user should show the Stack Management nav link"
[00:17:29]                 └-> should render the "Data" section with Transform
[00:17:29]                   └-> "before each" hook: global before each for "should render the "Data" section with Transform"
[00:17:29]                   │ debg navigating to management url: http://localhost:6181/app/management
[00:17:29]                   │ debg navigate to: http://localhost:6181/app/management
[00:17:29]                   │ debg browser[INFO] http://localhost:6181/app/management?_t=1612781280577 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:17:29]                   │
[00:17:29]                   │ debg browser[INFO] http://localhost:6181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:17:29]                   │ debg ... sleep(700) start
[00:17:29]                   │ debg ... sleep(700) end
[00:17:29]                   │ debg returned from get, calling refresh
[00:17:30]                   │ debg browser[INFO] http://localhost:6181/app/management?_t=1612781280577 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:17:30]                   │
[00:17:30]                   │ debg browser[INFO] http://localhost:6181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:17:30]                   │ debg currentUrl = http://localhost:6181/app/management
[00:17:30]                   │          appUrl = http://localhost:6181/app/management
[00:17:30]                   │ debg TestSubjects.find(kibanaChrome)
[00:17:30]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:17:30]                   │ debg ... sleep(501) start
[00:17:31]                   │ debg ... sleep(501) end
[00:17:31]                   │ debg in navigateTo url = http://localhost:6181/app/management
[00:17:31]                   │ debg TestSubjects.exists(statusPageContainer)
[00:17:31]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:17:33]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:17:34]                   │ debg Find.allByCssSelector('.mgtSideBarNav > .euiSideNav__content > .euiSideNavItem') with timeout=10000
[00:17:34]                   │ info Taking screenshot "/dev/shm/workspace/parallel/8/kibana/x-pack/test/functional/screenshots/failure/transform feature controls security global dashboard all with transform_user should render the _Data_ section with Transform.png"
[00:17:34]                   │ info Current URL is: http://localhost:6181/app/management
[00:17:34]                   │ info Saving page source to: /dev/shm/workspace/parallel/8/kibana/x-pack/test/functional/failure_debug/html/transform feature controls security global dashboard all with transform_user should render the _Data_ section with Transform.html
[00:17:34]                   └- ✖ fail: transform feature controls security global dashboard all with transform_user should render the "Data" section with Transform
[00:17:34]                   │      Error: expected [ { sectionId: 'ingest', sectionLinks: [ 'pipelines' ] },
[00:17:34]                   │   { sectionId: 'data', sectionLinks: [ 'transform' ] },
[00:17:34]                   │   { sectionId: 'insightsAndAlerting',
[00:17:34]                   │     sectionLinks: [ 'watcher' ] } ] to have a length of 1 but got 3
[00:17:34]                   │       at Assertion.assert (/dev/shm/workspace/parallel/8/kibana/packages/kbn-expect/expect.js:100:11)
[00:17:34]                   │       at Assertion.length (/dev/shm/workspace/parallel/8/kibana/packages/kbn-expect/expect.js:374:8)
[00:17:34]                   │       at Context.<anonymous> (test/functional/apps/transform/feature_controls/transform_security.ts:64:34)
[00:17:34]                   │       at runMicrotasks (<anonymous>)
[00:17:34]                   │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:17:34]                   │       at Object.apply (/dev/shm/workspace/parallel/8/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:17:34]                   │ 
[00:17:34]                   │ 

Stack Trace

Error: expected [ { sectionId: 'ingest', sectionLinks: [ 'pipelines' ] },
  { sectionId: 'data', sectionLinks: [ 'transform' ] },
  { sectionId: 'insightsAndAlerting',
    sectionLinks: [ 'watcher' ] } ] to have a length of 1 but got 3
    at Assertion.assert (/dev/shm/workspace/parallel/8/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.length (/dev/shm/workspace/parallel/8/kibana/packages/kbn-expect/expect.js:374:8)
    at Context.<anonymous> (test/functional/apps/transform/feature_controls/transform_security.ts:64:34)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.apply (/dev/shm/workspace/parallel/8/kibana/packages/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
data 236.1KB 236.4KB +265.0B
fleet 759.7KB 760.0KB +265.0B
graph 1.2MB 1.2MB +265.0B
total +795.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
cloud 5.2KB 5.2KB -6.0B
core 466.7KB 467.8KB +1.1KB
fleet 365.9KB 365.9KB -6.0B
inspector 44.1KB 44.1KB -6.0B
licensing 14.8KB 14.8KB -6.0B
monitoring 49.7KB 49.7KB -6.0B
presentationUtil 25.9KB 25.9KB -6.0B
regionMap 19.4KB 19.4KB -6.0B
tileMap 18.0KB 18.0KB -6.0B
uptime 19.3KB 19.3KB -6.0B
urlDrilldown 42.1KB 42.4KB +265.0B
visTypeTimeseries 126.7KB 126.7KB -6.0B
visTypeVega 57.4KB 57.4KB -6.0B
visTypeVislib 36.0KB 36.0KB -6.0B
visTypeXy 46.5KB 46.5KB -6.0B
visualize 28.8KB 28.8KB -6.0B
total +1.3KB

History

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

@pgayvallet pgayvallet merged commit 97f89e2 into elastic:7.x Feb 8, 2021
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