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

React on by default #113945

Closed
wants to merge 18 commits into from
Closed

Conversation

phillipb
Copy link
Contributor

@phillipb phillipb commented Oct 5, 2021

Summary

Summarize your PR. If it involves visual changes include a screenshot or gif.

Checklist

Delete any items that are not applicable to this PR.

Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.

When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:

Risk Probability Severity Mitigation/Notes
Multiple Spaces—unexpected behavior in non-default Kibana Space. Low High Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces.
Multiple nodes—Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. High Low Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure.
Code should gracefully handle cases when feature X or plugin Y are disabled. Medium High Unit tests will verify that any feature flag or plugin combination still results in our service operational.
See more potential risk examples

For maintainers

@phillipb phillipb requested a review from a team as a code owner October 5, 2021 14:33
@phillipb phillipb requested review from a team October 5, 2021 14:33
@kibanamachine
Copy link
Contributor

kibanamachine commented Oct 5, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / jest / Jest Tests.x-pack/plugins/monitoring/server.config schema generates proper defaults

Link to Jenkins

Standard Out

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


Stack Trace

Error: expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `config schema generates proper defaults 1`

- Snapshot  - 1
+ Received  + 1

@@ -77,9 +77,9 @@
      "max_bucket_size": 10000,
      "metricbeat": Object {
        "index": "metricbeat-*",
      },
      "min_interval_seconds": 10,
-     "render_react_app": false,
+     "render_react_app": true,
      "show_license_expiration": true,
    },
  }
    at Object.<anonymous> (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/x-pack/plugins/monitoring/server/config.test.ts:28:39)
    at Promise.then.completed (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/utils.js:276:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/utils.js:216:10)
    at _callCircusTest (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/run.js:212:40)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at _runTest (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/run.js:149:3)
    at _runTestsForDescribeBlock (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/run.js:63:9)
    at _runTestsForDescribeBlock (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/run.js:57:9)
    at run (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/run.js:25:3)
    at runAndTransformResultsToJestFormat (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:176:21)
    at jestAdapter (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:109:19)
    at runTestInternal (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-runner/build/runTest.js:380:16)
    at runTest (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-runner/build/runTest.js:472:34)
    at Object.worker (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-runner/build/testWorker.js:133:12)

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/monitoring/feature_controls/monitoring_spaces·ts.Monitoring app feature controls spaces space with no features disabled can navigate to app

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: https://dryrun

[00:00:00]     │
[00:00:00]       └-: Monitoring app
[00:00:00]         └-> "before all" hook in "Monitoring app"
[00:00:00]         └-: feature controls
[00:00:00]           └-> "before all" hook in "feature controls"
[00:01:06]           └-: spaces
[00:01:06]             └-> "before all" hook in "spaces"
[00:01:06]             └-> "before all" hook in "spaces"
[00:01:06]               │ info [x-pack/test/functional/es_archives/empty_kibana] Loading "mappings.json"
[00:01:06]               │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_001/Q2vnfcpGQQilXRBiy4bk5g] deleting index
[00:01:06]               │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_1/nbw_lNWGQs6UKVD_V6erkQ] deleting index
[00:01:06]               │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_8.0.0_001/dy4H3JI3Tqi838XPmu17eg] deleting index
[00:01:06]               │ info [x-pack/test/functional/es_archives/empty_kibana] Deleted existing index ".kibana_8.0.0_001"
[00:01:06]               │ info [x-pack/test/functional/es_archives/empty_kibana] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:01:06]               │ info [x-pack/test/functional/es_archives/empty_kibana] Deleted existing index ".kibana_1"
[00:01:06]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:01:06]               │ info [x-pack/test/functional/es_archives/empty_kibana] Created index ".kibana_1"
[00:01:06]               │ debg [x-pack/test/functional/es_archives/empty_kibana] ".kibana_1" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:01:06]               │ debg Migrating saved objects
[00:01:06]               │ proc [kibana]   log   [15:05:44.302] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 4ms.
[00:01:06]               │ proc [kibana]   log   [15:05:44.305] [info][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 10ms.
[00:01:06]               │ proc [kibana]   log   [15:05:44.310] [info][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> CHECK_UNKNOWN_DOCUMENTS. took: 5ms.
[00:01:06]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:01:06]               │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:01:06]               │ proc [kibana]   log   [15:05:44.321] [info][savedobjects-service] [.kibana] CHECK_UNKNOWN_DOCUMENTS -> SET_SOURCE_WRITE_BLOCK. took: 11ms.
[00:01:06]               │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_1/VfIAkMasQ3iAdk5QHnYPOg]]
[00:01:06]               │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_1]
[00:01:06]               │ proc [kibana]   log   [15:05:44.422] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 120ms.
[00:01:06]               │ proc [kibana]   log   [15:05:44.452] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CALCULATE_EXCLUDE_FILTERS. took: 131ms.
[00:01:06]               │ proc [kibana]   log   [15:05:44.458] [info][savedobjects-service] [.kibana] CALCULATE_EXCLUDE_FILTERS -> CREATE_REINDEX_TEMP. took: 6ms.
[00:01:06]               │ proc [kibana]   log   [15:05:44.484] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 62ms.
[00:01:06]               │ proc [kibana]   log   [15:05:44.485] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 187ms
[00:01:06]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:01:06]               │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:01:06]               │ proc [kibana]   log   [15:05:44.563] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 105ms.
[00:01:06]               │ proc [kibana]   log   [15:05:44.569] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 6ms.
[00:01:06]               │ proc [kibana]   log   [15:05:44.577] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 8ms.
[00:01:06]               │ proc [kibana]   log   [15:05:44.581] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 4ms.
[00:01:06]               │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_8.0.0_reindex_temp/rCrkVHKgRQq_zBiWbhXw2A]]
[00:01:06]               │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:01:06]               │ proc [kibana]   log   [15:05:44.642] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 61ms.
[00:01:06]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:01:06]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:01:06]               │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:01:06]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/FbE1OFWrTXGxLdMYda5uSA] create_mapping
[00:01:06]               │ proc [kibana]   log   [15:05:44.793] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 151ms.
[00:01:06]               │ proc [kibana]   log   [15:05:44.798] [info][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 5ms.
[00:01:06]               │ proc [kibana]   log   [15:05:44.804] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 6ms.
[00:01:06]               │ proc [kibana]   log   [15:05:44.816] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 12ms.
[00:01:06]               │ proc [kibana]   log   [15:05:44.821] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 5ms.
[00:01:06]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/FbE1OFWrTXGxLdMYda5uSA] update_mapping [_doc]
[00:01:06]               │ proc [kibana]   log   [15:05:44.923] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 102ms.
[00:01:06]               │ info [o.e.t.LoggingTaskListener] [node-01] 2795 finished with response BulkByScrollResponse[took=3.5ms,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:01:07]               │ proc [kibana]   log   [15:05:45.031] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 108ms.
[00:01:07]               │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_reindex_temp/rCrkVHKgRQq_zBiWbhXw2A] deleting index
[00:01:07]               │ proc [kibana]   log   [15:05:45.093] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 62ms.
[00:01:07]               │ proc [kibana]   log   [15:05:45.093] [info][savedobjects-service] [.kibana] Migration completed after 798ms
[00:01:07]               │ debg [x-pack/test/functional/es_archives/empty_kibana] Migrated Kibana index after loading Kibana data
[00:01:07]               │ debg [x-pack/test/functional/es_archives/empty_kibana] Ensured that default space exists in .kibana
[00:01:07]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyPieChartsLibrary":true}
[00:01:07]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/FbE1OFWrTXGxLdMYda5uSA] update_mapping [_doc]
[00:01:09]             └-: space with no features disabled
[00:01:09]               └-> "before all" hook for "shows Stack Monitoring navlink fail"
[00:01:09]               └-> "before all" hook for "shows Stack Monitoring navlink fail"
[00:01:09]                 │ debg creating space
[00:01:09]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/FbE1OFWrTXGxLdMYda5uSA] update_mapping [_doc]
[00:01:10]                 │ debg created space
[00:01:10]               └-> shows Stack Monitoring navlink fail
[00:01:10]                 └-> "before each" hook: global before each for "shows Stack Monitoring navlink fail"
[00:01:10]                 │ debg navigating to home url: http://localhost:6111/s/custom_space/app/home#/
[00:01:10]                 │ debg navigate to: http://localhost:6111/s/custom_space/app/home#/
[00:01:11]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/login?next=%2Fs%2Fcustom_space%2Fapp%2Fhome%3F_t%3D1633446348727#/ 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:11]                 │
[00:01:11]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:12]                 │ debg ... sleep(700) start
[00:01:12]                 │ERROR browser[SEVERE] http://localhost:6111/s/custom_space/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:01:12]                 │ debg ... sleep(700) end
[00:01:12]                 │ debg returned from get, calling refresh
[00:01:12]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/login?next=%2Fs%2Fcustom_space%2Fapp%2Fhome%3F_t%3D1633446348727#/ 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:12]                 │
[00:01:12]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:12]                 │ debg currentUrl = http://localhost:6111/s/custom_space/login?next=%2Fs%2Fcustom_space%2Fapp%2Fhome%3F_t%3D1633446348727#/
[00:01:12]                 │          appUrl = http://localhost:6111/s/custom_space/app/home#/
[00:01:12]                 │ debg TestSubjects.find(kibanaChrome)
[00:01:12]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:14]                 │ debg Found login page
[00:01:14]                 │ debg TestSubjects.setValue(loginUsername, test_user)
[00:01:14]                 │ debg TestSubjects.click(loginUsername)
[00:01:14]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:01:14]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:01:14]                 │ERROR browser[SEVERE] http://localhost:6111/s/custom_space/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:01:14]                 │ debg TestSubjects.setValue(loginPassword, changeme)
[00:01:14]                 │ debg TestSubjects.click(loginPassword)
[00:01:14]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:01:14]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:01:14]                 │ debg TestSubjects.click(loginSubmit)
[00:01:14]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:01:14]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:01:14]                 │ debg Find.waitForDeletedByCssSelector('.kibanaWelcomeLogo') with timeout=10000
[00:01:14]                 │ proc [kibana]   log   [15:05:52.813] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:01:15]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/app/home?_t=1633446348727#/ 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:15]                 │
[00:01:15]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:15]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:17]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:01:17]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/FbE1OFWrTXGxLdMYda5uSA] update_mapping [_doc]
[00:01:19]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/app/home?_t=1633446355962#/ 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:19]                 │
[00:01:19]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:19]                 │ debg Finished login process currentUrl = http://localhost:6111/s/custom_space/app/home#/
[00:01:19]                 │ debg ... sleep(501) start
[00:01:19]                 │ debg ... sleep(501) end
[00:01:19]                 │ debg in navigateTo url = http://localhost:6111/s/custom_space/app/home#/
[00:01:19]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:19]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:19]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:20]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:20]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:24]                 │ info [o.e.h.AbstractHttpServerTransport] [node-01] handling request [c8fe680d-cada-4fcf-88de-ce3c26b7f168][POST][/_security/user/_has_privileges][Netty4HttpChannel{localAddress=/127.0.0.1:6211, remoteAddress=/127.0.0.1:58694}] took [6005ms] which is above the warn threshold of [5000ms]
[00:01:24]                 │ debg TestSubjects.exists(collapsibleNav)
[00:01:24]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:01:26]                 │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:01:27]                 │ debg TestSubjects.click(toggleNavButton)
[00:01:27]                 │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:01:27]                 │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:01:27]                 │ debg TestSubjects.find(collapsibleNav)
[00:01:27]                 │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:01:27]                 │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:01:27]                 │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:01:27]                 │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:01:27]                 │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:01:28]                 └- ✓ pass  (17.2s) "Monitoring app feature controls spaces space with no features disabled shows Stack Monitoring navlink fail"
[00:01:28]               └-> can navigate to app
[00:01:28]                 └-> "before each" hook: global before each for "can navigate to app"
[00:01:28]                 │ debg navigating to monitoring url: http://localhost:6111/s/custom_space/app/monitoring
[00:01:28]                 │ debg navigate to: http://localhost:6111/s/custom_space/app/monitoring
[00:01:28]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/app/monitoring?_t=1633446365979 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:28]                 │
[00:01:28]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:28]                 │ debg ... sleep(700) start
[00:01:28]                 │ debg ... sleep(700) end
[00:01:28]                 │ debg returned from get, calling refresh
[00:01:30]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/app/monitoring?_t=1633446365979 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:30]                 │
[00:01:30]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:30]                 │ debg currentUrl = http://localhost:6111/s/custom_space/app/monitoring
[00:01:30]                 │          appUrl = http://localhost:6111/s/custom_space/app/monitoring
[00:01:30]                 │ debg TestSubjects.find(kibanaChrome)
[00:01:30]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:31]                 │ debg ... sleep(501) start
[00:01:31]                 │ debg ... sleep(501) end
[00:01:31]                 │ debg in navigateTo url = http://localhost:6111/s/custom_space/app/monitoring#/no-data?_g=(refreshInterval:(pause:!f,value:10000),time:(from:now-15m,to:now))
[00:01:31]                 │ debg --- retry.tryForTime error: URL changed, waiting for it to settle
[00:01:32]                 │ debg ... sleep(501) start
[00:01:32]                 │ debg ... sleep(501) end
[00:01:32]                 │ debg in navigateTo url = http://localhost:6111/s/custom_space/app/monitoring#/no-data?_g=(refreshInterval:(pause:!f,value:10000),time:(from:now-15m,to:now))
[00:01:32]                 │ debg Find.existsByCssSelector('monitoring-main') with timeout=2500
[00:01:35]                 │ info Taking screenshot "/dev/shm/workspace/parallel/1/kibana/x-pack/test/functional/screenshots/failure/Monitoring app feature controls spaces space with no features disabled can navigate to app.png"
[00:01:35]                 │ info Current URL is: http://localhost:6111/s/custom_space/app/monitoring#/no-data?_g=(refreshInterval:(pause:!f,value:10000),time:(from:now-15m,to:now))
[00:01:35]                 │ info Saving page source to: /dev/shm/workspace/parallel/1/kibana/x-pack/test/functional/failure_debug/html/Monitoring app feature controls spaces space with no features disabled can navigate to app.html
[00:01:35]                 └- ✖ fail: Monitoring app feature controls spaces space with no features disabled can navigate to app
[00:01:35]                 │      Error: expected false to equal true
[00:01:35]                 │       at Assertion.assert (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/expect/expect.js:100:11)
[00:01:35]                 │       at Assertion.be.Assertion.equal (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/expect/expect.js:227:8)
[00:01:35]                 │       at Assertion.be (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/expect/expect.js:69:22)
[00:01:35]                 │       at Context.<anonymous> (test/functional/apps/monitoring/feature_controls/monitoring_spaces.ts:56:27)
[00:01:35]                 │       at runMicrotasks (<anonymous>)
[00:01:35]                 │       at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:01:35]                 │       at Object.apply (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:01:35]                 │ 
[00:01:35]                 │ 

Stack Trace

Error: expected false to equal true
    at Assertion.assert (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/expect/expect.js:100:11)
    at Assertion.be.Assertion.equal (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/expect/expect.js:227:8)
    at Assertion.be (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/expect/expect.js:69:22)
    at Context.<anonymous> (test/functional/apps/monitoring/feature_controls/monitoring_spaces.ts:56:27)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at Object.apply (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/monitoring/feature_controls/monitoring_spaces·ts.Monitoring app feature controls spaces space with no features disabled can navigate to app

Link to Jenkins

Standard Out

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

[00:00:00]     │
[00:00:00]       └-: Monitoring app
[00:00:00]         └-> "before all" hook in "Monitoring app"
[00:00:00]         └-: feature controls
[00:00:00]           └-> "before all" hook in "feature controls"
[00:00:59]           └-: spaces
[00:00:59]             └-> "before all" hook in "spaces"
[00:00:59]             └-> "before all" hook in "spaces"
[00:00:59]               │ info [x-pack/test/functional/es_archives/empty_kibana] Loading "mappings.json"
[00:00:59]               │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_1/PSIGB9jkRL6-NV38QqqfDA] deleting index
[00:00:59]               │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_8.0.0_001/3nTCnGUwQYSxOh1A13MClQ] deleting index
[00:00:59]               │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_001/brdiGEWoTW-3sLWO4IC4Dw] deleting index
[00:00:59]               │ info [x-pack/test/functional/es_archives/empty_kibana] Deleted existing index ".kibana_8.0.0_001"
[00:00:59]               │ info [x-pack/test/functional/es_archives/empty_kibana] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:00:59]               │ info [x-pack/test/functional/es_archives/empty_kibana] Deleted existing index ".kibana_1"
[00:00:59]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:00:59]               │ info [x-pack/test/functional/es_archives/empty_kibana] Created index ".kibana_1"
[00:00:59]               │ debg [x-pack/test/functional/es_archives/empty_kibana] ".kibana_1" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:00:59]               │ debg Migrating saved objects
[00:00:59]               │ proc [kibana]   log   [15:02:12.552] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 3ms.
[00:00:59]               │ proc [kibana]   log   [15:02:12.555] [info][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 11ms.
[00:00:59]               │ proc [kibana]   log   [15:02:12.559] [info][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> CHECK_UNKNOWN_DOCUMENTS. took: 4ms.
[00:00:59]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:59]               │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:00:59]               │ proc [kibana]   log   [15:02:12.568] [info][savedobjects-service] [.kibana] CHECK_UNKNOWN_DOCUMENTS -> SET_SOURCE_WRITE_BLOCK. took: 9ms.
[00:00:59]               │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_1/E9OQ1CzoRGG3LtaJ22qWmQ]]
[00:00:59]               │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_1]
[00:00:59]               │ proc [kibana]   log   [15:02:12.650] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 98ms.
[00:00:59]               │ proc [kibana]   log   [15:02:12.669] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CALCULATE_EXCLUDE_FILTERS. took: 101ms.
[00:00:59]               │ proc [kibana]   log   [15:02:12.674] [info][savedobjects-service] [.kibana] CALCULATE_EXCLUDE_FILTERS -> CREATE_REINDEX_TEMP. took: 5ms.
[00:00:59]               │ proc [kibana]   log   [15:02:12.690] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 40ms.
[00:00:59]               │ proc [kibana]   log   [15:02:12.691] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 142ms
[00:00:59]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:00:59]               │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:00:59]               │ proc [kibana]   log   [15:02:12.754] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 80ms.
[00:00:59]               │ proc [kibana]   log   [15:02:12.759] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 5ms.
[00:00:59]               │ proc [kibana]   log   [15:02:12.765] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 6ms.
[00:00:59]               │ proc [kibana]   log   [15:02:12.769] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 4ms.
[00:00:59]               │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_8.0.0_reindex_temp/koYH-FqOS3qng7CiFxddKw]]
[00:00:59]               │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:00:59]               │ proc [kibana]   log   [15:02:12.816] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 47ms.
[00:00:59]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:00:59]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:00:59]               │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:00:59]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/Jvpgl_rGTRS_ZlkfFuI_Tg] create_mapping
[00:00:59]               │ proc [kibana]   log   [15:02:12.927] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 111ms.
[00:00:59]               │ proc [kibana]   log   [15:02:12.931] [info][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 4ms.
[00:00:59]               │ proc [kibana]   log   [15:02:12.935] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 4ms.
[00:00:59]               │ proc [kibana]   log   [15:02:12.943] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 8ms.
[00:00:59]               │ proc [kibana]   log   [15:02:12.947] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 4ms.
[00:00:59]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/Jvpgl_rGTRS_ZlkfFuI_Tg] update_mapping [_doc]
[00:01:00]               │ proc [kibana]   log   [15:02:13.023] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 76ms.
[00:01:00]               │ info [o.e.t.LoggingTaskListener] [node-01] 2835 finished with response BulkByScrollResponse[took=2.9ms,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:01:00]               │ proc [kibana]   log   [15:02:13.130] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 107ms.
[00:01:00]               │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_reindex_temp/koYH-FqOS3qng7CiFxddKw] deleting index
[00:01:00]               │ proc [kibana]   log   [15:02:13.171] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 41ms.
[00:01:00]               │ proc [kibana]   log   [15:02:13.172] [info][savedobjects-service] [.kibana] Migration completed after 628ms
[00:01:00]               │ debg [x-pack/test/functional/es_archives/empty_kibana] Migrated Kibana index after loading Kibana data
[00:01:00]               │ debg [x-pack/test/functional/es_archives/empty_kibana] Ensured that default space exists in .kibana
[00:01:00]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyPieChartsLibrary":true}
[00:01:00]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/Jvpgl_rGTRS_ZlkfFuI_Tg] update_mapping [_doc]
[00:01:02]             └-: space with no features disabled
[00:01:02]               └-> "before all" hook for "shows Stack Monitoring navlink fail"
[00:01:02]               └-> "before all" hook for "shows Stack Monitoring navlink fail"
[00:01:02]                 │ debg creating space
[00:01:02]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/Jvpgl_rGTRS_ZlkfFuI_Tg] update_mapping [_doc]
[00:01:03]                 │ debg created space
[00:01:03]               └-> shows Stack Monitoring navlink fail
[00:01:03]                 └-> "before each" hook: global before each for "shows Stack Monitoring navlink fail"
[00:01:03]                 │ debg navigating to home url: http://localhost:6111/s/custom_space/app/home#/
[00:01:03]                 │ debg navigate to: http://localhost:6111/s/custom_space/app/home#/
[00:01:04]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/login?next=%2Fs%2Fcustom_space%2Fapp%2Fhome%3F_t%3D1633446136898#/ 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:04]                 │
[00:01:04]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:04]                 │ debg ... sleep(700) start
[00:01:05]                 │ERROR browser[SEVERE] http://localhost:6111/s/custom_space/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:01:05]                 │ debg ... sleep(700) end
[00:01:05]                 │ debg returned from get, calling refresh
[00:01:05]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/login?next=%2Fs%2Fcustom_space%2Fapp%2Fhome%3F_t%3D1633446136898#/ 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:05]                 │
[00:01:05]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:05]                 │ debg currentUrl = http://localhost:6111/s/custom_space/login?next=%2Fs%2Fcustom_space%2Fapp%2Fhome%3F_t%3D1633446136898#/
[00:01:05]                 │          appUrl = http://localhost:6111/s/custom_space/app/home#/
[00:01:05]                 │ debg TestSubjects.find(kibanaChrome)
[00:01:05]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:07]                 │ debg Found login page
[00:01:07]                 │ debg TestSubjects.setValue(loginUsername, test_user)
[00:01:07]                 │ debg TestSubjects.click(loginUsername)
[00:01:07]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:01:07]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:01:07]                 │ERROR browser[SEVERE] http://localhost:6111/s/custom_space/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:01:07]                 │ debg TestSubjects.setValue(loginPassword, changeme)
[00:01:07]                 │ debg TestSubjects.click(loginPassword)
[00:01:07]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:01:07]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:01:07]                 │ debg TestSubjects.click(loginSubmit)
[00:01:07]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:01:07]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:01:07]                 │ debg Find.waitForDeletedByCssSelector('.kibanaWelcomeLogo') with timeout=10000
[00:01:07]                 │ proc [kibana]   log   [15:02:20.518] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:01:09]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/app/home?_t=1633446136898#/ 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:09]                 │
[00:01:09]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:09]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:10]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:01:10]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/Jvpgl_rGTRS_ZlkfFuI_Tg] update_mapping [_doc]
[00:01:11]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/app/home?_t=1633446143718#/ 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:11]                 │
[00:01:11]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:11]                 │ debg Finished login process currentUrl = http://localhost:6111/s/custom_space/app/home#/
[00:01:11]                 │ debg ... sleep(501) start
[00:01:12]                 │ debg ... sleep(501) end
[00:01:12]                 │ debg in navigateTo url = http://localhost:6111/s/custom_space/app/home#/
[00:01:12]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:12]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:12]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:12]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:12]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:16]                 │ debg TestSubjects.exists(collapsibleNav)
[00:01:16]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:01:18]                 │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:01:19]                 │ debg TestSubjects.click(toggleNavButton)
[00:01:19]                 │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:01:19]                 │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:01:19]                 │ debg TestSubjects.find(collapsibleNav)
[00:01:19]                 │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:01:19]                 │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:01:19]                 │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:01:19]                 │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:01:19]                 │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:01:19]                 └- ✓ pass  (15.7s) "Monitoring app feature controls spaces space with no features disabled shows Stack Monitoring navlink fail"
[00:01:19]               └-> can navigate to app
[00:01:19]                 └-> "before each" hook: global before each for "can navigate to app"
[00:01:19]                 │ debg navigating to monitoring url: http://localhost:6111/s/custom_space/app/monitoring
[00:01:19]                 │ debg navigate to: http://localhost:6111/s/custom_space/app/monitoring
[00:01:19]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/app/monitoring?_t=1633446152559 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:19]                 │
[00:01:19]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:19]                 │ debg ... sleep(700) start
[00:01:20]                 │ debg ... sleep(700) end
[00:01:20]                 │ debg returned from get, calling refresh
[00:01:21]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/app/monitoring?_t=1633446152559 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:21]                 │
[00:01:21]                 │ debg browser[INFO] http://localhost:6111/s/custom_space/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:22]                 │ debg currentUrl = http://localhost:6111/s/custom_space/app/monitoring
[00:01:22]                 │          appUrl = http://localhost:6111/s/custom_space/app/monitoring
[00:01:22]                 │ debg TestSubjects.find(kibanaChrome)
[00:01:22]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:22]                 │ debg ... sleep(501) start
[00:01:22]                 │ debg ... sleep(501) end
[00:01:22]                 │ debg in navigateTo url = http://localhost:6111/s/custom_space/app/monitoring#/no-data?_g=(refreshInterval:(pause:!f,value:10000),time:(from:now-15m,to:now))
[00:01:22]                 │ debg --- retry.tryForTime error: URL changed, waiting for it to settle
[00:01:23]                 │ debg ... sleep(501) start
[00:01:23]                 │ debg ... sleep(501) end
[00:01:23]                 │ debg in navigateTo url = http://localhost:6111/s/custom_space/app/monitoring#/no-data?_g=(refreshInterval:(pause:!f,value:10000),time:(from:now-15m,to:now))
[00:01:23]                 │ debg Find.existsByCssSelector('monitoring-main') with timeout=2500
[00:01:26]                 │ info Taking screenshot "/dev/shm/workspace/parallel/1/kibana/x-pack/test/functional/screenshots/failure/Monitoring app feature controls spaces space with no features disabled can navigate to app.png"
[00:01:26]                 │ info Current URL is: http://localhost:6111/s/custom_space/app/monitoring#/no-data?_g=(refreshInterval:(pause:!f,value:10000),time:(from:now-15m,to:now))
[00:01:26]                 │ info Saving page source to: /dev/shm/workspace/parallel/1/kibana/x-pack/test/functional/failure_debug/html/Monitoring app feature controls spaces space with no features disabled can navigate to app.html
[00:01:26]                 └- ✖ fail: Monitoring app feature controls spaces space with no features disabled can navigate to app
[00:01:26]                 │      Error: expected false to equal true
[00:01:26]                 │       at Assertion.assert (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/expect/expect.js:100:11)
[00:01:26]                 │       at Assertion.be.Assertion.equal (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/expect/expect.js:227:8)
[00:01:26]                 │       at Assertion.be (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/expect/expect.js:69:22)
[00:01:26]                 │       at Context.<anonymous> (test/functional/apps/monitoring/feature_controls/monitoring_spaces.ts:56:27)
[00:01:26]                 │       at runMicrotasks (<anonymous>)
[00:01:26]                 │       at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:01:26]                 │       at Object.apply (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:01:26]                 │ 
[00:01:26]                 │ 

Stack Trace

Error: expected false to equal true
    at Assertion.assert (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/expect/expect.js:100:11)
    at Assertion.be.Assertion.equal (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/expect/expect.js:227:8)
    at Assertion.be (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/expect/expect.js:69:22)
    at Context.<anonymous> (test/functional/apps/monitoring/feature_controls/monitoring_spaces.ts:56:27)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at Object.apply (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
monitoring 618 627 +9

Async chunks

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

id before after diff
monitoring 977.1KB 1011.0KB +34.0KB

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

@phillipb
Copy link
Contributor Author

phillipb commented Oct 7, 2021

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

merge conflict between base and head

@matschaffer
Copy link
Contributor

I think we can close this in favor of #114436 - with just the single change we should be able to have elasticmachine handle updating w/o worrying about conflict resolution.

@phillipb phillipb closed this Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants