Skip to content

[7.x] [Lens] Heatmap / Swim lane integration (#97978)#101426

Merged
kibanamachine merged 1 commit intoelastic:7.xfrom
kibanamachine:backport/7.x/pr-97978
Jun 4, 2021
Merged

[7.x] [Lens] Heatmap / Swim lane integration (#97978)#101426
kibanamachine merged 1 commit intoelastic:7.xfrom
kibanamachine:backport/7.x/pr-97978

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

* heatmap wip

* format values on X axis

* format values for cells

* show labels

* support legend configuration

* render preview

* add icon

* [ML] update visualization

* [ML] init suggestions

* [ML] fix preview

* [ML] fix groupPosition for the legend control

* [ML] add formatter for Y-axis

* [ML] filterOperations for cell value

* [ML] fill all available height

* [ML] delete unused file

* [ML] fix suggestion state

* [ML] update suggestion, add hiding logic

* [ML] suggestions unit tests

* [ML] rename legend interface

* [ML] unit tests for visualization, add error messages

* [ML] fix typos in xy visualization tests

* [ML] support click event

* [ML] add xDomain for time series data

* [ML] support empty Y axis

* [ML] change legend default position

* [ML] getTimeZone util

* [ML] hide suggestions for reorder

* [ML] support brush event

* [ML] update unit tests

* [ML] render grid lines in preview

* [ML] don't display errors on init

* [ML] utilize chartsThemeService

* [ML] support histogram for the vertical axis

* [ML] fix clearLayer

* [ML] show empty placeholder on no data

* [ML] fix X domain min

* [ML] reject suggestions for 3 or more  buckets

* [ML] suggestions for histograms and histogram for Y-axis

* [ML] fix unit tests

* [ML] update suggestions for active heatmap

* [ML] chart data test for heatmap

* [ML] test for transitioning from heatmap to barchart

* [ML] disable xDomain

* [ML] support intervals in axes configurations

* [ML] hide label on the vertical axis when there is only a horizontal dimension

* [ML] set min cell height for better suggestions preview rendering

* [ML] fix tooltip for empty vertical axis config

* [ML] fix click and brushing for empty Y axis

* [ML] update functional test

* [ML] show beta label

* [ML] fix legend control

* [ML] dataIndex sort by default for the X axis

* [ML] use euiPaletteForTemperature with quantize color scale

* [ML] hide all suggestions

* [ML] fix chart data extension issue

* [ML] fix the caret symbol positioning

* [ML] update unit tests for the heatmap suggestions

* [ML] replace EuiBetaBadge with EuiBadge

* [ML] update functional test

* [ML] fix chart switch styles

* [ML] fix functional test

* [ML] return null instead of expression with a missing value accessor

* [ML] use table id as a chart id

* [ML] fix scale type for a single row of data

* [ML] filter out undefined values

* [ML] fix isXAxisLabelVisible

* [ML] update chart_switch styles

* show warning message for the array values

* remove unused code

* replace ts-ignore with manual type casting

* add unit tests for error and warning messages

* add css class for append, conditional flex group
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Jun 4, 2021
@kibanamachine kibanamachine enabled auto-merge (squash) June 4, 2021 19:31
@kibanamachine
Copy link
Copy Markdown
Contributor Author

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / X-Pack Accessibility Tests.x-pack/test/accessibility/apps/spaces·ts.Kibana spaces page meets a11y validations a11y test for space selection page

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:02:40]         └-: Kibana spaces page meets a11y validations
[00:02:40]           └-> "before all" hook for "a11y test for manage spaces menu from top nav on Kibana home"
[00:02:40]           └-> "before all" hook for "a11y test for manage spaces menu from top nav on Kibana home"
[00:02:40]             │ info [empty_kibana] Loading "mappings.json"
[00:02:40]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] [.kibana_7.14.0_001/T_p5w-npSkaTV2dIy57IHg] deleting index
[00:02:40]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] [.kibana_pre6.5.0_001/MPfylgBISwm0xj24_sY1aQ] deleting index
[00:02:40]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] [.kibana_task_manager_7.14.0_001/ZKzC_tgARSavJnHHflkrRQ] deleting index
[00:02:40]             │ info [empty_kibana] Deleted existing index ".kibana_7.14.0_001"
[00:02:40]             │ info [empty_kibana] Deleted existing index ".kibana_pre6.5.0_001"
[00:02:40]             │ info [empty_kibana] Deleted existing index ".kibana_task_manager_7.14.0_001"
[00:02:40]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:02:40]             │ info [empty_kibana] Created index ".kibana"
[00:02:40]             │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:02:40]             │ debg Migrating saved objects
[00:02:40]             │ proc [kibana]   log   [20:00:24.355] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 4ms.
[00:02:40]             │ proc [kibana]   log   [20:00:24.360] [info][savedobjects-service] [.kibana] INIT -> LEGACY_SET_WRITE_BLOCK. took: 11ms.
[00:02:40]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] [.kibana_task_manager_7.14.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:02:40]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] updating number_of_replicas to [0] for indices [.kibana_task_manager_7.14.0_001]
[00:02:40]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] adding block write to indices [[.kibana/uRQfrTocQemRb9yuKSzLjQ]]
[00:02:40]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] completed adding block write to indices [.kibana]
[00:02:40]             │ proc [kibana]   log   [20:00:24.436] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 81ms.
[00:02:40]             │ proc [kibana]   log   [20:00:24.451] [info][savedobjects-service] [.kibana] LEGACY_SET_WRITE_BLOCK -> LEGACY_CREATE_REINDEX_TARGET. took: 91ms.
[00:02:40]             │ proc [kibana]   log   [20:00:24.475] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 39ms.
[00:02:40]             │ proc [kibana]   log   [20:00:24.476] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 125ms
[00:02:40]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] [.kibana_pre6.5.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:02:40]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] updating number_of_replicas to [0] for indices [.kibana_pre6.5.0_001]
[00:02:40]             │ proc [kibana]   log   [20:00:24.542] [info][savedobjects-service] [.kibana] LEGACY_CREATE_REINDEX_TARGET -> LEGACY_REINDEX. took: 91ms.
[00:02:40]             │ proc [kibana]   log   [20:00:24.547] [info][savedobjects-service] [.kibana] LEGACY_REINDEX -> LEGACY_REINDEX_WAIT_FOR_TASK. took: 5ms.
[00:02:40]             │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] 7750 finished with response BulkByScrollResponse[took=3ms,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:02:40]             │ proc [kibana]   log   [20:00:24.652] [info][savedobjects-service] [.kibana] LEGACY_REINDEX_WAIT_FOR_TASK -> LEGACY_DELETE. took: 105ms.
[00:02:40]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] [.kibana/uRQfrTocQemRb9yuKSzLjQ] deleting index
[00:02:40]             │ proc [kibana]   log   [20:00:24.688] [info][savedobjects-service] [.kibana] LEGACY_DELETE -> SET_SOURCE_WRITE_BLOCK. took: 36ms.
[00:02:40]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] adding block write to indices [[.kibana_pre6.5.0_001/IePFMEf1Q46vrgQXsJpr7Q]]
[00:02:40]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] completed adding block write to indices [.kibana_pre6.5.0_001]
[00:02:40]             │ proc [kibana]   log   [20:00:24.727] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP. took: 39ms.
[00:02:40]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] [.kibana_7.14.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:02:40]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] updating number_of_replicas to [0] for indices [.kibana_7.14.0_reindex_temp]
[00:02:40]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_7.14.0_reindex_temp][0]]]).
[00:02:40]             │ proc [kibana]   log   [20:00:24.787] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 60ms.
[00:02:40]             │ proc [kibana]   log   [20:00:24.792] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 4ms.
[00:02:40]             │ proc [kibana]   log   [20:00:24.797] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 6ms.
[00:02:40]             │ proc [kibana]   log   [20:00:24.800] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 3ms.
[00:02:40]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] adding block write to indices [[.kibana_7.14.0_reindex_temp/1TsV-AlQQ9KMHNusFQwTFw]]
[00:02:40]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] completed adding block write to indices [.kibana_7.14.0_reindex_temp]
[00:02:40]             │ proc [kibana]   log   [20:00:24.842] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 42ms.
[00:02:40]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] applying create index request using existing index [.kibana_7.14.0_reindex_temp] metadata
[00:02:40]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] [.kibana_7.14.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:02:40]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] updating number_of_replicas to [0] for indices [.kibana_7.14.0_001]
[00:02:41]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] [.kibana_7.14.0_001/PHza-yMUSX-U5lA3dTGEPg] create_mapping [_doc]
[00:02:41]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_7.14.0_001][0]]]).
[00:02:41]             │ proc [kibana]   log   [20:00:24.961] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 119ms.
[00:02:41]             │ proc [kibana]   log   [20:00:24.965] [info][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 4ms.
[00:02:41]             │ proc [kibana]   log   [20:00:24.967] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 2ms.
[00:02:41]             │ proc [kibana]   log   [20:00:24.973] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 6ms.
[00:02:41]             │ proc [kibana]   log   [20:00:24.975] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 2ms.
[00:02:41]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] [.kibana_7.14.0_001/PHza-yMUSX-U5lA3dTGEPg] update_mapping [_doc]
[00:02:41]             │ proc [kibana]   log   [20:00:25.046] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 71ms.
[00:02:41]             │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] 7820 finished with response BulkByScrollResponse[took=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:02:41]             │ proc [kibana]   log   [20:00:25.151] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 105ms.
[00:02:41]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] [.kibana_7.14.0_reindex_temp/1TsV-AlQQ9KMHNusFQwTFw] deleting index
[00:02:41]             │ proc [kibana]   log   [20:00:25.192] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 41ms.
[00:02:41]             │ proc [kibana]   log   [20:00:25.192] [info][savedobjects-service] [.kibana] Migration completed after 843ms
[00:02:41]             │ debg [empty_kibana] Migrated Kibana index after loading Kibana data
[00:02:41]             │ debg [empty_kibana] Ensured that default space exists in .kibana
[00:02:41]             │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:02:41]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] [.kibana_7.14.0_001/PHza-yMUSX-U5lA3dTGEPg] update_mapping [_doc]
[00:02:43]             │ debg navigating to home url: http://localhost:61101/app/home#/
[00:02:43]             │ debg navigate to: http://localhost:61101/app/home#/
[00:02:43]             │ debg browser[INFO] http://localhost:61101/app/home?_t=1622836826908#/ 340 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:02:43]             │
[00:02:43]             │ debg browser[INFO] http://localhost:61101/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:43]             │ debg ... sleep(700) start
[00:02:43]             │ debg ... sleep(700) end
[00:02:43]             │ debg returned from get, calling refresh
[00:02:44]             │ debg browser[INFO] http://localhost:61101/app/home?_t=1622836826908#/ 340 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:02:44]             │
[00:02:44]             │ debg browser[INFO] http://localhost:61101/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:44]             │ debg currentUrl = http://localhost:61101/app/home#/
[00:02:44]             │          appUrl = http://localhost:61101/app/home#/
[00:02:44]             │ debg TestSubjects.find(kibanaChrome)
[00:02:44]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:45]             │ debg ... sleep(501) start
[00:02:45]             │ debg ... sleep(501) end
[00:02:45]             │ debg in navigateTo url = http://localhost:61101/app/home#/
[00:02:45]             │ debg TestSubjects.exists(statusPageContainer)
[00:02:45]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:02:48]             │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:02:48]           └-> a11y test for manage spaces menu from top nav on Kibana home
[00:02:48]             └-> "before each" hook: global before each for "a11y test for manage spaces menu from top nav on Kibana home"
[00:02:48]             │ debg TestSubjects.click(space-avatar-default)
[00:02:48]             │ debg Find.clickByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:02:48]             │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:02:48]             │ debg Waiting up to 20000ms for Manage spaces option visible...
[00:02:48]             │ debg TestSubjects.exists(manageSpaces)
[00:02:48]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="manageSpaces"]') with timeout=2500
[00:02:48]             │ debg --- retry.tryForTime error: stale element reference: element is not attached to the page document
[00:02:48]             │        (Session info: headless chrome=91.0.4472.77)
[00:02:49]             └- ✓ pass  (1.2s) "Kibana spaces page meets a11y validations a11y test for manage spaces menu from top nav on Kibana home"
[00:02:49]           └-> a11y test for manage spaces page
[00:02:49]             └-> "before each" hook: global before each for "a11y test for manage spaces page"
[00:02:49]             │ debg TestSubjects.click(manageSpaces)
[00:02:49]             │ debg Find.clickByCssSelector('[data-test-subj="manageSpaces"]') with timeout=10000
[00:02:49]             │ debg Find.findByCssSelector('[data-test-subj="manageSpaces"]') with timeout=10000
[00:02:49]             │ debg isGlobalLoadingIndicatorVisible
[00:02:49]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:02:49]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:02:51]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:02:52]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:02:52]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:02:52]             │ debg TestSubjects.find(globalToastList)
[00:02:52]             │ debg Find.findByCssSelector('[data-test-subj="globalToastList"]') with timeout=10000
[00:03:02]             │ debg Waiting up to 20000ms for Manage spaces page visible...
[00:03:02]             │ debg TestSubjects.exists(createSpace)
[00:03:02]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="createSpace"]') with timeout=2500
[00:03:02]             └- ✓ pass  (12.7s) "Kibana spaces page meets a11y validations a11y test for manage spaces page"
[00:03:02]           └-> a11y test for click on create space page
[00:03:02]             └-> "before each" hook: global before each for "a11y test for click on create space page"
[00:03:02]             │ debg TestSubjects.click(createSpace)
[00:03:02]             │ debg Find.clickByCssSelector('[data-test-subj="createSpace"]') with timeout=10000
[00:03:02]             │ debg Find.findByCssSelector('[data-test-subj="createSpace"]') with timeout=10000
[00:03:03]             └- ✓ pass  (482ms) "Kibana spaces page meets a11y validations a11y test for click on create space page"
[00:03:03]           └-> a11y test for for customize space card
[00:03:03]             └-> "before each" hook: global before each for "a11y test for for customize space card"
[00:03:03]             │ debg TestSubjects.click(addSpaceName)
[00:03:03]             │ debg Find.clickByCssSelector('[data-test-subj="addSpaceName"]') with timeout=10000
[00:03:03]             │ debg Find.findByCssSelector('[data-test-subj="addSpaceName"]') with timeout=10000
[00:03:03]             │ debg TestSubjects.setValue(addSpaceName, space_a)
[00:03:03]             │ debg TestSubjects.click(addSpaceName)
[00:03:03]             │ debg Find.clickByCssSelector('[data-test-subj="addSpaceName"]') with timeout=10000
[00:03:03]             │ debg Find.findByCssSelector('[data-test-subj="addSpaceName"]') with timeout=10000
[00:03:03]             │ debg TestSubjects.click(space-avatar-space_a)
[00:03:03]             │ debg Find.clickByCssSelector('[data-test-subj="space-avatar-space_a"]') with timeout=10000
[00:03:03]             │ debg Find.findByCssSelector('[data-test-subj="space-avatar-space_a"]') with timeout=10000
[00:03:03]             └- ✓ pass  (816ms) "Kibana spaces page meets a11y validations a11y test for for customize space card"
[00:03:03]           └-> a11y test for color picker
[00:03:03]           └-> a11y test for customize and reset space URL identifier
[00:03:03]             └-> "before each" hook: global before each for "a11y test for customize and reset space URL identifier"
[00:03:03]             │ debg TestSubjects.click(CustomizeOrReset)
[00:03:03]             │ debg Find.clickByCssSelector('[data-test-subj="CustomizeOrReset"]') with timeout=10000
[00:03:03]             │ debg Find.findByCssSelector('[data-test-subj="CustomizeOrReset"]') with timeout=10000
[00:03:04]             │ debg TestSubjects.click(CustomizeOrReset)
[00:03:04]             │ debg Find.clickByCssSelector('[data-test-subj="CustomizeOrReset"]') with timeout=10000
[00:03:04]             │ debg Find.findByCssSelector('[data-test-subj="CustomizeOrReset"]') with timeout=10000
[00:03:04]             └- ✓ pass  (1.0s) "Kibana spaces page meets a11y validations a11y test for customize and reset space URL identifier"
[00:03:04]           └-> a11y test for describe space text space
[00:03:04]             └-> "before each" hook: global before each for "a11y test for describe space text space"
[00:03:04]             │ debg TestSubjects.click(descriptionSpaceText)
[00:03:04]             │ debg Find.clickByCssSelector('[data-test-subj="descriptionSpaceText"]') with timeout=10000
[00:03:04]             │ debg Find.findByCssSelector('[data-test-subj="descriptionSpaceText"]') with timeout=10000
[00:03:05]             └- ✓ pass  (374ms) "Kibana spaces page meets a11y validations a11y test for describe space text space"
[00:03:05]           └-> a11y test for toggling an entire feature category
[00:03:05]             └-> "before each" hook: global before each for "a11y test for toggling an entire feature category"
[00:03:05]             │ debg TestSubjects.click(featureCategoryButton_kibana)
[00:03:05]             │ debg Find.clickByCssSelector('[data-test-subj="featureCategoryButton_kibana"]') with timeout=10000
[00:03:05]             │ debg Find.findByCssSelector('[data-test-subj="featureCategoryButton_kibana"]') with timeout=10000
[00:03:05]             │ debg Find.findByCssSelector('button[aria-controls=featureCategory_kibana]') with timeout=10000
[00:03:06]             │ debg TestSubjects.click(featureCategoryButton_kibana)
[00:03:06]             │ debg Find.clickByCssSelector('[data-test-subj="featureCategoryButton_kibana"]') with timeout=10000
[00:03:06]             │ debg Find.findByCssSelector('[data-test-subj="featureCategoryButton_kibana"]') with timeout=10000
[00:03:06]             └- ✓ pass  (982ms) "Kibana spaces page meets a11y validations a11y test for toggling an entire feature category"
[00:03:06]           └-> a11y test for space listing page
[00:03:06]             └-> "before each" hook: global before each for "a11y test for space listing page"
[00:03:06]             │ debg TestSubjects.click(save-space-button)
[00:03:06]             │ debg Find.clickByCssSelector('[data-test-subj="save-space-button"]') with timeout=10000
[00:03:06]             │ debg Find.findByCssSelector('[data-test-subj="save-space-button"]') with timeout=10000
[00:03:06]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622835145274651574] [.kibana_7.14.0_001/PHza-yMUSX-U5lA3dTGEPg] update_mapping [_doc]
[00:03:06]             └- ✓ pass  (497ms) "Kibana spaces page meets a11y validations a11y test for space listing page"
[00:03:06]           └-> a11y test for updating a space
[00:03:06]             └-> "before each" hook: global before each for "a11y test for updating a space"
[00:03:06]             │ debg TestSubjects.click(space_a-editSpace)
[00:03:06]             │ debg Find.clickByCssSelector('[data-test-subj="space_a-editSpace"]') with timeout=10000
[00:03:06]             │ debg Find.findByCssSelector('[data-test-subj="space_a-editSpace"]') with timeout=10000
[00:03:07]             │ debg TestSubjects.click(cancel-space-button)
[00:03:07]             │ debg Find.clickByCssSelector('[data-test-subj="cancel-space-button"]') with timeout=10000
[00:03:07]             │ debg Find.findByCssSelector('[data-test-subj="cancel-space-button"]') with timeout=10000
[00:03:07]             └- ✓ pass  (862ms) "Kibana spaces page meets a11y validations a11y test for updating a space"
[00:03:07]           └-> a11y test for delete space button
[00:03:07]             └-> "before each" hook: global before each for "a11y test for delete space button"
[00:03:07]             │ debg TestSubjects.click(createSpace)
[00:03:07]             │ debg Find.clickByCssSelector('[data-test-subj="createSpace"]') with timeout=10000
[00:03:07]             │ debg Find.findByCssSelector('[data-test-subj="createSpace"]') with timeout=10000
[00:03:07]             │ debg TestSubjects.click(addSpaceName)
[00:03:07]             │ debg Find.clickByCssSelector('[data-test-subj="addSpaceName"]') with timeout=10000
[00:03:07]             │ debg Find.findByCssSelector('[data-test-subj="addSpaceName"]') with timeout=10000
[00:03:07]             │ debg TestSubjects.setValue(addSpaceName, space_b)
[00:03:07]             │ debg TestSubjects.click(addSpaceName)
[00:03:07]             │ debg Find.clickByCssSelector('[data-test-subj="addSpaceName"]') with timeout=10000
[00:03:07]             │ debg Find.findByCssSelector('[data-test-subj="addSpaceName"]') with timeout=10000
[00:03:07]             │ debg TestSubjects.click(save-space-button)
[00:03:07]             │ debg Find.clickByCssSelector('[data-test-subj="save-space-button"]') with timeout=10000
[00:03:07]             │ debg Find.findByCssSelector('[data-test-subj="save-space-button"]') with timeout=10000
[00:03:08]             │ debg navigating to home url: http://localhost:61101/app/home#/
[00:03:08]             │ debg navigate to: http://localhost:61101/app/home#/
[00:03:08]             │ debg browser[INFO] http://localhost:61101/app/home?_t=1622836851896#/ 340 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:03:08]             │
[00:03:08]             │ debg browser[INFO] http://localhost:61101/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:08]             │ debg ... sleep(700) start
[00:03:08]             │ debg ... sleep(700) end
[00:03:08]             │ debg returned from get, calling refresh
[00:03:09]             │ debg browser[INFO] http://localhost:61101/app/home?_t=1622836851896#/ 340 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:03:09]             │
[00:03:09]             │ debg browser[INFO] http://localhost:61101/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:09]             │ debg currentUrl = http://localhost:61101/app/home#/
[00:03:09]             │          appUrl = http://localhost:61101/app/home#/
[00:03:09]             │ debg TestSubjects.find(kibanaChrome)
[00:03:09]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:03:10]             │ debg ... sleep(501) start
[00:03:10]             │ debg ... sleep(501) end
[00:03:10]             │ debg in navigateTo url = http://localhost:61101/app/home#/
[00:03:10]             │ debg TestSubjects.exists(statusPageContainer)
[00:03:10]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:03:13]             │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:03:13]             │ debg openSpacesNav()
[00:03:13]             │ debg TestSubjects.click(spacesNavSelector)
[00:03:13]             │ debg Find.clickByCssSelector('[data-test-subj="spacesNavSelector"]') with timeout=10000
[00:03:13]             │ debg Find.findByCssSelector('[data-test-subj="spacesNavSelector"]') with timeout=10000
[00:03:13]             │ info SpaceSelectorPage:clickSpaceAvatar(space_b)
[00:03:13]             │ debg TestSubjects.click(space-avatar-space_b)
[00:03:13]             │ debg Find.clickByCssSelector('[data-test-subj="space-avatar-space_b"]') with timeout=10000
[00:03:13]             │ debg Find.findByCssSelector('[data-test-subj="space-avatar-space_b"]') with timeout=10000
[00:03:15]             │ debg ... sleep(1000) start
[00:03:15]             │ debg browser[INFO] http://localhost:61101/s/space_b/app/home 340 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:03:15]             │
[00:03:15]             │ debg browser[INFO] http://localhost:61101/s/space_b/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:16]             │ debg ... sleep(1000) end
[00:03:16]             │ debg isGlobalLoadingIndicatorVisible
[00:03:16]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:03:16]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:03:18]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:03:18]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:03:18]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:03:18]             │ debg openSpacesNav()
[00:03:18]             │ debg TestSubjects.click(spacesNavSelector)
[00:03:18]             │ debg Find.clickByCssSelector('[data-test-subj="spacesNavSelector"]') with timeout=10000
[00:03:18]             │ debg Find.findByCssSelector('[data-test-subj="spacesNavSelector"]') with timeout=10000
[00:03:18]             │ debg TestSubjects.click(manageSpaces)
[00:03:18]             │ debg Find.clickByCssSelector('[data-test-subj="manageSpaces"]') with timeout=10000
[00:03:18]             │ debg Find.findByCssSelector('[data-test-subj="manageSpaces"]') with timeout=10000
[00:03:18]             │ debg TestSubjects.click(space_b-deleteSpace)
[00:03:18]             │ debg Find.clickByCssSelector('[data-test-subj="space_b-deleteSpace"]') with timeout=10000
[00:03:18]             │ debg Find.findByCssSelector('[data-test-subj="space_b-deleteSpace"]') with timeout=10000
[00:03:19]             └- ✓ pass  (12.2s) "Kibana spaces page meets a11y validations a11y test for delete space button"
[00:03:19]           └-> a11y test for space selection page
[00:03:19]             └-> "before each" hook: global before each for "a11y test for space selection page"
[00:03:19]             │ debg TestSubjects.click(confirmModalConfirmButton)
[00:03:19]             │ debg Find.clickByCssSelector('[data-test-subj="confirmModalConfirmButton"]') with timeout=10000
[00:03:19]             │ debg Find.findByCssSelector('[data-test-subj="confirmModalConfirmButton"]') with timeout=10000
[00:03:20]             │ info Taking screenshot "/dev/shm/workspace/parallel/10/kibana/x-pack/test/functional/screenshots/failure/Kibana spaces page meets a11y validations a11y test for space selection page.png"
[00:03:20]             │ debg browser[INFO] http://localhost:61101/spaces/space_selector 340 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:03:20]             │
[00:03:20]             │ debg browser[INFO] http://localhost:61101/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:21]             │ info Current URL is: http://localhost:61101/spaces/space_selector
[00:03:21]             │ info Saving page source to: /dev/shm/workspace/parallel/10/kibana/x-pack/test/functional/failure_debug/html/Kibana spaces page meets a11y validations a11y test for space selection page.html
[00:03:21]             └- ✖ fail: Kibana spaces page meets a11y validations a11y test for space selection page
[00:03:21]             │      JavascriptError: javascript error: document unloaded while waiting for result
[00:03:21]             │   (Session info: headless chrome=91.0.4472.77)
[00:03:21]             │       at Object.throwDecodedError (/dev/shm/workspace/parallel/10/kibana/node_modules/selenium-webdriver/lib/error.js:550:15)
[00:03:21]             │       at parseHttpResponse (/dev/shm/workspace/parallel/10/kibana/node_modules/selenium-webdriver/lib/http.js:565:13)
[00:03:21]             │       at Executor.execute (/dev/shm/workspace/parallel/10/kibana/node_modules/selenium-webdriver/lib/http.js:491:26)
[00:03:21]             │       at runMicrotasks (<anonymous>)
[00:03:21]             │       at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:03:21]             │       at Task.exec (/dev/shm/workspace/parallel/10/kibana/test/functional/services/remote/prevent_parallel_calls.ts:29:22)
[00:03:21]             │ 
[00:03:21]             │ 

Stack Trace

JavascriptError: javascript error: document unloaded while waiting for result
  (Session info: headless chrome=91.0.4472.77)
    at Object.throwDecodedError (/dev/shm/workspace/parallel/10/kibana/node_modules/selenium-webdriver/lib/error.js:550:15)
    at parseHttpResponse (/dev/shm/workspace/parallel/10/kibana/node_modules/selenium-webdriver/lib/http.js:565:13)
    at Executor.execute (/dev/shm/workspace/parallel/10/kibana/node_modules/selenium-webdriver/lib/http.js:491:26)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at Task.exec (/dev/shm/workspace/parallel/10/kibana/test/functional/services/remote/prevent_parallel_calls.ts:29:22) {
  remoteStacktrace: '#0 0x55a968b04ee9 <unknown>\n'
}

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
lens 651 670 +19

Async chunks

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

id before after diff
lens 1.3MB 1.3MB +45.6KB

Page load bundle

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

id before after diff
lens 34.6KB 38.1KB +3.4KB

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

cc @darnautov

@kibanamachine kibanamachine merged commit 21610db into elastic:7.x Jun 4, 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