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

[ftr] migrate management services to FtrService class #100521

Merged

Conversation

spalger
Copy link
Contributor

@spalger spalger commented May 25, 2021

In order to migrate the root test directory to its own TypeScript project that can be ref'd we need to stop returning class expressions from provider functions. Part of #99148

Migrates the management services to the new FtrService class, basically just extracted the classes from the providers and remapped services/PageObjects referenced in scope to access private properties on the service instance. Viewing changes with whitespace disabled will help with review.

@spalger spalger force-pushed the migrate/ftr-service-class/management-services branch from abf3478 to 1b0f28a Compare May 25, 2021 18:56
@spalger spalger added auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v7.14.0 v8.0.0 labels May 25, 2021
@spalger spalger marked this pull request as ready for review May 25, 2021 20:57
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@spalger spalger requested a review from legrego May 25, 2021 20:57
@spalger spalger enabled auto-merge (squash) May 25, 2021 20:57
Copy link
Member

@legrego legrego left a comment

Choose a reason for hiding this comment

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

LGTM

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Firefox XPack UI Functional Tests.x-pack/test/functional/apps/spaces/enter_space·ts.Spaces app Enter Space allows user to navigate to different spaces, respecting the configured default route

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:02:08]         └-: Spaces app
[00:02:08]           └-> "before all" hook in "Spaces app"
[00:04:08]           └-: Enter Space
[00:04:08]             └-> "before all" hook for "falls back to the default home page when the configured default route is malformed"
[00:04:08]             └-> "before all" hook for "falls back to the default home page when the configured default route is malformed"
[00:04:08]               │ info [spaces/enter_space] Loading "mappings.json"
[00:04:08]               │ info [spaces/enter_space] Loading "data.json"
[00:04:08]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] [.kibana_pre6.5.0_001/og3pzfMkRX2_s8-hMdgbkg] deleting index
[00:04:08]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] [.kibana_task_manager_8.0.0_001/fgBmlrkeQN2SW66eXClppQ] deleting index
[00:04:08]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] [.kibana_8.0.0_001/s9RPyOBpQ1iwjjqbVWgiOA] deleting index
[00:04:08]               │ info [spaces/enter_space] Deleted existing index ".kibana_8.0.0_001"
[00:04:08]               │ info [spaces/enter_space] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:04:08]               │ info [spaces/enter_space] Deleted existing index ".kibana_pre6.5.0_001"
[00:04:08]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:04:08]               │ info [spaces/enter_space] Created index ".kibana"
[00:04:08]               │ debg [spaces/enter_space] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:04:08]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] [.kibana/cZMBEcHYRImVw56bX4BD2w] update_mapping [_doc]
[00:04:08]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] [.kibana/cZMBEcHYRImVw56bX4BD2w] update_mapping [_doc]
[00:04:08]               │ info [spaces/enter_space] Indexed 5 docs into ".kibana"
[00:04:08]               │ debg Migrating saved objects
[00:04:09]               │ proc [kibana]   log   [17:54:17.719] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 3ms.
[00:04:09]               │ proc [kibana]   log   [17:54:17.721] [info][savedobjects-service] [.kibana] INIT -> LEGACY_SET_WRITE_BLOCK. took: 6ms.
[00:04:09]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:04:09]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:04:09]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] adding block write to indices [[.kibana/cZMBEcHYRImVw56bX4BD2w]]
[00:04:09]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] completed adding block write to indices [.kibana]
[00:04:09]               │ proc [kibana]   log   [17:54:17.789] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 70ms.
[00:04:09]               │ proc [kibana]   log   [17:54:17.801] [info][savedobjects-service] [.kibana] LEGACY_SET_WRITE_BLOCK -> LEGACY_CREATE_REINDEX_TARGET. took: 80ms.
[00:04:09]               │ proc [kibana]   log   [17:54:17.818] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 29ms.
[00:04:09]               │ proc [kibana]   log   [17:54:17.819] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 103ms
[00:04:09]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] [.kibana_pre6.5.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:04:09]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] updating number_of_replicas to [0] for indices [.kibana_pre6.5.0_001]
[00:04:09]               │ proc [kibana]   log   [17:54:17.879] [info][savedobjects-service] [.kibana] LEGACY_CREATE_REINDEX_TARGET -> LEGACY_REINDEX. took: 78ms.
[00:04:09]               │ proc [kibana]   log   [17:54:17.883] [info][savedobjects-service] [.kibana] LEGACY_REINDEX -> LEGACY_REINDEX_WAIT_FOR_TASK. took: 4ms.
[00:04:09]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] 10724 finished with response BulkByScrollResponse[took=18.8ms,timed_out=false,sliceId=null,updated=0,created=5,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:09]               │ proc [kibana]   log   [17:54:17.989] [info][savedobjects-service] [.kibana] LEGACY_REINDEX_WAIT_FOR_TASK -> LEGACY_DELETE. took: 106ms.
[00:04:09]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] [.kibana/cZMBEcHYRImVw56bX4BD2w] deleting index
[00:04:09]               │ proc [kibana]   log   [17:54:18.024] [info][savedobjects-service] [.kibana] LEGACY_DELETE -> SET_SOURCE_WRITE_BLOCK. took: 35ms.
[00:04:09]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] adding block write to indices [[.kibana_pre6.5.0_001/IydhIf_xQle7LZct28z4EQ]]
[00:04:09]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] completed adding block write to indices [.kibana_pre6.5.0_001]
[00:04:09]               │ proc [kibana]   log   [17:54:18.064] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP. took: 40ms.
[00:04:09]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:04:09]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:04:09]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_reindex_temp][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_reindex_temp][0]]"
[00:04:09]               │ proc [kibana]   log   [17:54:18.128] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 64ms.
[00:04:09]               │ proc [kibana]   log   [17:54:18.133] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 4ms.
[00:04:09]               │ proc [kibana]   log   [17:54:18.140] [info][savedobjects-service] [.kibana] Starting to process 5 documents.
[00:04:09]               │ proc [kibana]   log   [17:54:18.141] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_INDEX. took: 8ms.
[00:04:09]               │ proc [kibana]   log   [17:54:18.145] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX -> REINDEX_SOURCE_TO_TEMP_INDEX_BULK. took: 5ms.
[00:04:09]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] [.kibana_8.0.0_reindex_temp/FzUISJAITryNk3Ty8ZJFhw] update_mapping [_doc]
[00:04:09]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] [.kibana_8.0.0_reindex_temp/FzUISJAITryNk3Ty8ZJFhw] update_mapping [_doc]
[00:04:09]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] [.kibana_8.0.0_reindex_temp/FzUISJAITryNk3Ty8ZJFhw] update_mapping [_doc]
[00:04:09]               │ proc [kibana]   log   [17:54:18.229] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX_BULK -> REINDEX_SOURCE_TO_TEMP_READ. took: 84ms.
[00:04:09]               │ proc [kibana]   log   [17:54:18.235] [info][savedobjects-service] [.kibana] Processed 5 documents out of 5.
[00:04:09]               │ proc [kibana]   log   [17:54:18.235] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 6ms.
[00:04:09]               │ proc [kibana]   log   [17:54:18.238] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 3ms.
[00:04:09]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] adding block write to indices [[.kibana_8.0.0_reindex_temp/FzUISJAITryNk3Ty8ZJFhw]]
[00:04:09]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:04:09]               │ proc [kibana]   log   [17:54:18.281] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 43ms.
[00:04:09]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:04:09]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:04:09]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:04:09]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] [.kibana_8.0.0_001/3EwoIKxGSl-u7Bk2RhMEFA] create_mapping
[00:04:09]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_001][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_001][0]]"
[00:04:09]               │ proc [kibana]   log   [17:54:18.396] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 115ms.
[00:04:09]               │ proc [kibana]   log   [17:54:18.400] [info][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 4ms.
[00:04:09]               │ proc [kibana]   log   [17:54:18.404] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 4ms.
[00:04:09]               │ proc [kibana]   log   [17:54:18.412] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 7ms.
[00:04:09]               │ proc [kibana]   log   [17:54:18.419] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 8ms.
[00:04:09]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] [.kibana_8.0.0_001/3EwoIKxGSl-u7Bk2RhMEFA] update_mapping [_doc]
[00:04:09]               │ proc [kibana]   log   [17:54:18.481] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 62ms.
[00:04:09]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] 10827 finished with response BulkByScrollResponse[took=24ms,timed_out=false,sliceId=null,updated=5,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:09]               │ proc [kibana]   log   [17:54:18.586] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 105ms.
[00:04:09]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] [.kibana_8.0.0_reindex_temp/FzUISJAITryNk3Ty8ZJFhw] deleting index
[00:04:09]               │ proc [kibana]   log   [17:54:18.633] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 47ms.
[00:04:09]               │ proc [kibana]   log   [17:54:18.634] [info][savedobjects-service] [.kibana] Migration completed after 919ms
[00:04:09]               │ debg [spaces/enter_space] Migrated Kibana index after loading Kibana data
[00:04:09]               │ debg [spaces/enter_space] Ensured that default space exists in .kibana
[00:04:09]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:04:11]               │ proc [kibana]   log   [17:54:20.341] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:11]               │ debg SecurityPage.forceLogout
[00:04:11]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:04:11]               │ debg Already on the login page, not forcing anything
[00:04:11]             └-> falls back to the default home page when the configured default route is malformed
[00:04:11]               └-> "before each" hook: global before each for "falls back to the default home page when the configured default route is malformed"
[00:04:11]               │ debg TestSubjects.exists(loginForm)
[00:04:11]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:04:11]               │ debg Waiting for Login Form to appear.
[00:04:11]               │ debg Waiting up to 100000ms for login form...
[00:04:11]               │ debg TestSubjects.exists(loginForm)
[00:04:11]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:04:11]               │ debg TestSubjects.setValue(loginUsername, elastic)
[00:04:11]               │ debg TestSubjects.click(loginUsername)
[00:04:11]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:04:11]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:04:12]               │ debg TestSubjects.setValue(loginPassword, changeme)
[00:04:12]               │ debg TestSubjects.click(loginPassword)
[00:04:12]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:04:12]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:04:12]               │ debg TestSubjects.click(loginSubmit)
[00:04:12]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:04:12]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:04:12]               │ proc [kibana]   log   [17:54:21.329] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:04:12]               │ debg Waiting for login result, expected: spaceSelector.
[00:04:12]               │ debg TestSubjects.find(kibanaSpaceSelector)
[00:04:12]               │ debg Find.findByCssSelector('[data-test-subj="kibanaSpaceSelector"]') with timeout=10000
[00:04:13]               │ proc [kibana]   log   [17:54:21.774] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:13]               │ proc [kibana]   log   [17:54:21.886] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:13]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:15]               │ proc [kibana]   log   [17:54:23.987] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:15]               │ proc [kibana]   log   [17:54:23.989] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:15]               │ proc [kibana]   log   [17:54:23.990] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:15]               │ proc [kibana]   log   [17:54:23.994] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:15]               │ debg Finished login process, landed on space selector. currentUrl = http://localhost:6171/spaces/space_selector
[00:04:15]               │ info SpaceSelectorPage:clickSpaceCard(default)
[00:04:15]               │ debg TestSubjects.click(space-card-default)
[00:04:15]               │ debg Find.clickByCssSelector('[data-test-subj="space-card-default"]') with timeout=10000
[00:04:15]               │ debg Find.findByCssSelector('[data-test-subj="space-card-default"]') with timeout=10000
[00:04:15]               │ proc [kibana]   log   [17:54:24.314] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:15]               │ proc [kibana]   log   [17:54:24.357] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:15]               │ proc [kibana]   log   [17:54:24.367] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:15]               │ proc [kibana]   log   [17:54:24.481] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:15]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:15]               │ debg ... sleep(1000) start
[00:04:16]               │ debg ... sleep(1000) end
[00:04:16]               │ debg expectRoute(default, /app/home#/)
[00:04:16]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide) ') with timeout=20000
[00:04:18]               │ proc [kibana]   log   [17:54:26.833] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:18]               │ proc [kibana]   log   [17:54:26.837] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:18]               │ proc [kibana]   log   [17:54:26.839] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:18]               │ proc [kibana]   log   [17:54:26.840] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:18]               │ debg --- retry.try error: expected 'http://localhost:6171/app/home' to contain '/app/home#/'
[00:04:18]               │ debg expectRoute(default, /app/home#/)
[00:04:18]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide) ') with timeout=20000
[00:04:18]               └- ✓ pass  (7.1s) "Spaces app Enter Space falls back to the default home page when the configured default route is malformed"
[00:04:18]             └-> "after each" hook for "falls back to the default home page when the configured default route is malformed"
[00:04:18]               │ debg SecurityPage.forceLogout
[00:04:18]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:04:18]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:04:19]               │ debg Redirecting to /logout to force the logout
[00:04:19]               │ proc [kibana]   log   [17:54:28.218] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:19]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:19]               │ debg Waiting on the login form to appear
[00:04:19]               │ debg Waiting for Login Page to appear.
[00:04:19]               │ debg Waiting up to 100000ms for login page...
[00:04:19]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:04:21]               │ proc [kibana]   log   [17:54:30.527] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:21]               │ proc [kibana]   log   [17:54:30.529] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:21]               │ proc [kibana]   log   [17:54:30.531] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:21]               │ proc [kibana]   log   [17:54:30.532] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:21]               │ debg browser[log] "Detected an unhandled Promise rejection.
[00:04:21]               │      Error: Unauthorized"
[00:04:22]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:23]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:04:24]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:04:24]             └-> allows user to navigate to different spaces, respecting the configured default route
[00:04:24]               └-> "before each" hook: global before each for "allows user to navigate to different spaces, respecting the configured default route"
[00:04:24]               │ debg TestSubjects.exists(loginForm)
[00:04:24]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:04:24]               │ debg Waiting for Login Form to appear.
[00:04:24]               │ debg Waiting up to 100000ms for login form...
[00:04:24]               │ debg TestSubjects.exists(loginForm)
[00:04:24]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:04:24]               │ debg TestSubjects.setValue(loginUsername, elastic)
[00:04:24]               │ debg TestSubjects.click(loginUsername)
[00:04:24]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:04:24]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:04:25]               │ debg TestSubjects.setValue(loginPassword, changeme)
[00:04:25]               │ debg TestSubjects.click(loginPassword)
[00:04:25]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:04:25]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:04:25]               │ debg TestSubjects.click(loginSubmit)
[00:04:25]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:04:25]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:04:25]               │ proc [kibana]   log   [17:54:34.204] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:04:25]               │ debg Waiting for login result, expected: spaceSelector.
[00:04:25]               │ debg TestSubjects.find(kibanaSpaceSelector)
[00:04:25]               │ debg Find.findByCssSelector('[data-test-subj="kibanaSpaceSelector"]') with timeout=10000
[00:04:26]               │ proc [kibana]   log   [17:54:34.799] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:26]               │ proc [kibana]   log   [17:54:34.905] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:26]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:28]               │ proc [kibana]   log   [17:54:37.497] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:28]               │ proc [kibana]   log   [17:54:37.501] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:28]               │ proc [kibana]   log   [17:54:37.508] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:28]               │ proc [kibana]   log   [17:54:37.511] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:28]               │ debg Finished login process, landed on space selector. currentUrl = http://localhost:6171/spaces/space_selector
[00:04:28]               │ info SpaceSelectorPage:clickSpaceCard(another-space)
[00:04:28]               │ debg TestSubjects.click(space-card-another-space)
[00:04:28]               │ debg Find.clickByCssSelector('[data-test-subj="space-card-another-space"]') with timeout=10000
[00:04:28]               │ debg Find.findByCssSelector('[data-test-subj="space-card-another-space"]') with timeout=10000
[00:04:29]               │ debg browser[log] "Detected an unhandled Promise rejection.
[00:04:29]               │      TypeError: NetworkError when attempting to fetch resource."
[00:04:29]               │ proc [kibana]   log   [17:54:38.465] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:04:29]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:30]               │ debg ... sleep(1000) start
[00:04:31]               │ debg ... sleep(1000) end
[00:04:31]               │ debg expectRoute(another-space, /app/canvas)
[00:04:31]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide) ') with timeout=20000
[00:04:32]               │ debg openSpacesNav()
[00:04:32]               │ debg TestSubjects.click(spacesNavSelector)
[00:04:32]               │ debg Find.clickByCssSelector('[data-test-subj="spacesNavSelector"]') with timeout=10000
[00:04:32]               │ debg Find.findByCssSelector('[data-test-subj="spacesNavSelector"]') with timeout=10000
[00:04:33]               │ info SpaceSelectorPage:clickSpaceAvatar(default)
[00:04:33]               │ debg TestSubjects.click(space-avatar-default)
[00:04:33]               │ debg Find.clickByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:04:33]               │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:04:33]               │ debg Firefox stdout: 1622051682510	Marionette	WARN	TimedPromise timed out after 500 ms: stacktrace:
[00:04:33]               │      TimedPromise/<@chrome://marionette/content/sync.js:228:19
[00:04:33]               │      TimedPromise@chrome://marionette/content/sync.js:213:10
[00:04:33]               │      interaction.flushEventLoop@chrome://marionette/content/interaction.js:418:10
[00:04:33]               │      webdriverClickElement@chrome://marionette/content/interaction.js:179:31
[00:04:33]               │
[00:04:43]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:04:43]               │      Wait timed out after 10014ms
[00:04:43]               │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:04:47]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1622049801363739368] [.kibana_task_manager_8.0.0_001/WUOSo0ImRL6thqTpST_Mdg] update_mapping [_doc]
[00:04:53]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:04:53]               │      Wait timed out after 10016ms
[00:04:54]               │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:05:11]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:05:11]               │      Wait timed out after 17536ms
[00:05:12]               │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:05:22]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:05:22]               │      Wait timed out after 10010ms
[00:05:22]               │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:05:32]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:05:32]               │      Wait timed out after 10016ms
[00:05:33]               │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:05:43]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:05:43]               │      Wait timed out after 10012ms
[00:05:43]               │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:05:54]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:05:54]               │      Wait timed out after 10025ms
[00:05:54]               │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:06:04]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:06:04]               │      Wait timed out after 10013ms
[00:06:05]               │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:06:15]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:06:15]               │      Wait timed out after 10011ms
[00:06:15]               │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:06:25]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:06:25]               │      Wait timed out after 10009ms
[00:06:26]               │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:06:36]               │ debg --- retry.try failed again with the same message...
[00:06:36]               │ debg --- retry.try error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:06:36]               │      Wait timed out after 10009ms
[00:06:36]               │          at /dev/shm/workspace/parallel/7/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:06:36]               │          at runMicrotasks (<anonymous>)
[00:06:36]               │          at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:06:37]               │ info Taking screenshot "/dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/screenshots/failure/Spaces app Enter Space allows user to navigate to different spaces_ respecting the configured default route.png"
[00:06:37]               │ info Current URL is: http://localhost:6171/s/another-space/app/canvas#/
[00:06:37]               │ info Saving page source to: /dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/failure_debug/html/Spaces app Enter Space allows user to navigate to different spaces_ respecting the configured default route.html
[00:06:37]               └- ✖ fail: Spaces app Enter Space allows user to navigate to different spaces, respecting the configured default route
[00:06:37]               │      retry.try timeout: Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:06:37]               │ Wait timed out after 10009ms
[00:06:37]               │     at /dev/shm/workspace/parallel/7/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:06:37]               │     at runMicrotasks (<anonymous>)
[00:06:37]               │     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:06:37]               │     at onFailure (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:06:37]               │     at retryForSuccess (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:06:37]               │     at RetryService.try (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry.ts:31:12)
[00:06:37]               │     at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/7/kibana/test/functional/services/common/find.ts:360:5)
[00:06:37]               │     at TestSubjects.click (/dev/shm/workspace/parallel/7/kibana/test/functional/services/common/test_subjects.ts:105:5)
[00:06:37]               │     at /dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/page_objects/space_selector_page.ts:189:9
[00:06:37]               │     at runAttempt (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:06:37]               │     at retryForSuccess (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:06:37]               │     at RetryService.try (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry.ts:31:12)
[00:06:37]               │     at SpaceSelectorPage.clickSpaceAvatar (/dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/page_objects/space_selector_page.ts:187:14)
[00:06:37]               │     at Context.<anonymous> (/dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/apps/spaces/enter_space.ts:56:7)
[00:06:37]               │     at Object.apply (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:06:37]               │   Error: retry.try timeout: Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:06:37]               │   Wait timed out after 10009ms
[00:06:37]               │       at /dev/shm/workspace/parallel/7/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:06:37]               │       at runMicrotasks (<anonymous>)
[00:06:37]               │       at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:06:37]               │       at onFailure (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:06:37]               │       at retryForSuccess (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:06:37]               │       at RetryService.try (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry.ts:31:12)
[00:06:37]               │       at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/7/kibana/test/functional/services/common/find.ts:360:5)
[00:06:37]               │       at TestSubjects.click (/dev/shm/workspace/parallel/7/kibana/test/functional/services/common/test_subjects.ts:105:5)
[00:06:37]               │       at /dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/page_objects/space_selector_page.ts:189:9
[00:06:37]               │       at runAttempt (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:06:37]               │       at retryForSuccess (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:06:37]               │       at RetryService.try (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry.ts:31:12)
[00:06:37]               │       at SpaceSelectorPage.clickSpaceAvatar (test/functional/page_objects/space_selector_page.ts:187:14)
[00:06:37]               │       at Context.<anonymous> (test/functional/apps/spaces/enter_space.ts:56:7)
[00:06:37]               │       at Object.apply (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:06:37]               │       at onFailure (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:06:37]               │       at retryForSuccess (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:06:37]               │       at RetryService.try (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry.ts:31:12)
[00:06:37]               │       at SpaceSelectorPage.clickSpaceAvatar (test/functional/page_objects/space_selector_page.ts:187:14)
[00:06:37]               │       at Context.<anonymous> (test/functional/apps/spaces/enter_space.ts:56:7)
[00:06:37]               │       at Object.apply (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:06:37]               │ 
[00:06:37]               │ 

Stack Trace

Error: retry.try timeout: Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
Wait timed out after 10009ms
    at /dev/shm/workspace/parallel/7/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at onFailure (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at RetryService.try (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry.ts:31:12)
    at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/7/kibana/test/functional/services/common/find.ts:360:5)
    at TestSubjects.click (/dev/shm/workspace/parallel/7/kibana/test/functional/services/common/test_subjects.ts:105:5)
    at /dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/page_objects/space_selector_page.ts:189:9
    at runAttempt (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:27:15)
    at retryForSuccess (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:66:21)
    at RetryService.try (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry.ts:31:12)
    at SpaceSelectorPage.clickSpaceAvatar (test/functional/page_objects/space_selector_page.ts:187:14)
    at Context.<anonymous> (test/functional/apps/spaces/enter_space.ts:56:7)
    at Object.apply (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
    at onFailure (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at RetryService.try (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry.ts:31:12)
    at SpaceSelectorPage.clickSpaceAvatar (test/functional/page_objects/space_selector_page.ts:187:14)
    at Context.<anonymous> (test/functional/apps/spaces/enter_space.ts:56:7)
    at Object.apply (/dev/shm/workspace/parallel/7/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

@spalger spalger merged commit 7270c3b into elastic:master May 26, 2021
@spalger spalger deleted the migrate/ftr-service-class/management-services branch May 26, 2021 19:10
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request May 26, 2021
Co-authored-by: spalger <spalger@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request May 26, 2021
)

Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants