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

[SecuritySolution][Unit Tests] - fix flakey unit test #81239

Merged
merged 2 commits into from
Oct 21, 2020

Conversation

yctercero
Copy link
Contributor

@yctercero yctercero commented Oct 20, 2020

Summary

Fixes flakey unit test that was using dateMath as opposed to a fixed date for consistent testing.

Checklist

@yctercero yctercero requested review from a team as code owners October 20, 2020 20:24
@yctercero yctercero self-assigned this Oct 20, 2020
@yctercero yctercero added release_note:skip Skip the PR/issue when compiling release notes Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v7.10 v8.0.0 labels Oct 20, 2020
@jen-huang jen-huang added v7.10.0 and removed v7.10 labels Oct 20, 2020
Number(dateMath.parse('now-220m')?.format('x')),
Number(dateMath.parse('now')?.format('x'))
Date.parse('2020-02-20T02:15:54.037Z'),
Date.parse('2020-02-20T05:57:54.037Z')
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is 222 minutes... does that matter? Also, is the test description correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated the description a bit. That test is just looking for the difference in time to be between 180-240 minutes, so 222 is fine. Let me know if I missed something with the descriptions!

Copy link
Contributor

Choose a reason for hiding this comment

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

This is perfect, thank you!

Copy link
Contributor

@FrankHassanabad FrankHassanabad left a comment

Choose a reason for hiding this comment

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

Just one question from @madirey that I am curious about as well. But overall this looks good to checkin.

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/monitoring/elasticsearch/node_detail·js.Monitoring app Elasticsearch node detail Offline Node "before all" hook for "should show node summary of NA for offline node"

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:04:33]         └-: Monitoring app
[00:04:33]           └-> "before all" hook
[00:11:47]           └-: Elasticsearch node detail
[00:11:47]             └-> "before all" hook
[00:12:18]             └-: Offline Node
[00:12:18]               └-> "before all" hook
[00:12:18]               └-> "before all" hook
[00:12:18]                 │ info [monitoring/singlecluster-red-platinum] Loading "mappings.json"
[00:12:18]                 │ info [monitoring/singlecluster-red-platinum] Loading "data.json.gz"
[00:12:18]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1603229337068961137] [.monitoring-es-6-2017.10.06] creating index, cause [api], templates [], shards [1]/[1]
[00:12:18]                 │ info [monitoring/singlecluster-red-platinum] Created index ".monitoring-es-6-2017.10.06"
[00:12:18]                 │ debg [monitoring/singlecluster-red-platinum] ".monitoring-es-6-2017.10.06" settings {"index":{"codec":"best_compression","format":"6","number_of_replicas":"1","number_of_shards":"1"}}
[00:12:18]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1603229337068961137] [.monitoring-kibana-6-2017.10.06] creating index, cause [api], templates [], shards [1]/[1]
[00:12:18]                 │ info [monitoring/singlecluster-red-platinum] Created index ".monitoring-kibana-6-2017.10.06"
[00:12:18]                 │ debg [monitoring/singlecluster-red-platinum] ".monitoring-kibana-6-2017.10.06" settings {"index":{"codec":"best_compression","format":"6","number_of_replicas":"1","number_of_shards":"1"}}
[00:12:18]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1603229337068961137] [.monitoring-alerts-6] creating index, cause [api], templates [], shards [1]/[1]
[00:12:18]                 │ info [monitoring/singlecluster-red-platinum] Created index ".monitoring-alerts-6"
[00:12:18]                 │ debg [monitoring/singlecluster-red-platinum] ".monitoring-alerts-6" settings {"index":{"codec":"best_compression","format":"6","number_of_replicas":"1","number_of_shards":"1"}}
[00:12:19]                 │ info [monitoring/singlecluster-red-platinum] Indexed 2024 docs into ".monitoring-es-6-2017.10.06"
[00:12:19]                 │ info [monitoring/singlecluster-red-platinum] Indexed 135 docs into ".monitoring-kibana-6-2017.10.06"
[00:12:19]                 │ info [monitoring/singlecluster-red-platinum] Indexed 1 docs into ".monitoring-alerts-6"
[00:12:19]                 │ debg replacing kibana config doc: {}
[00:12:20]                 │ debg creating user basic_monitoring_user
[00:12:20]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1603229337068961137] added user [basic_monitoring_user]
[00:12:20]                 │ debg created user basic_monitoring_user
[00:12:20]                 │ debg SecurityPage.forceLogout
[00:12:20]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:12:20]                 │ debg Already on the login page, not forcing anything
[00:12:20]                 │ debg TestSubjects.setValue(loginUsername, basic_monitoring_user)
[00:12:20]                 │ debg TestSubjects.click(loginUsername)
[00:12:20]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:12:20]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:12:20]                 │ debg TestSubjects.setValue(loginPassword, monitoring_user_password)
[00:12:20]                 │ debg TestSubjects.click(loginPassword)
[00:12:20]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:12:20]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:12:20]                 │ debg TestSubjects.click(loginSubmit)
[00:12:20]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:12:20]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:12:20]                 │ debg Find.waitForDeletedByCssSelector('.kibanaWelcomeLogo') with timeout=10000
[00:12:20]                 │ proc [kibana]   log   [22:09:24.509] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:12:21]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:12:21]                 │ debg navigating to monitoring url: http://localhost:6151/app/monitoring
[00:12:21]                 │ debg navigate to: http://localhost:6151/app/monitoring
[00:12:21]                 │ debg browser[INFO] http://localhost:6151/app/home 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:12:21]                 │
[00:12:21]                 │ debg browser[INFO] http://localhost:6151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:12:21]                 │ debg browser[INFO] http://localhost:6151/app/monitoring?_t=1603231765053 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:12:21]                 │
[00:12:21]                 │ debg browser[INFO] http://localhost:6151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:12:21]                 │ debg ... sleep(700) start
[00:12:22]                 │ debg ... sleep(700) end
[00:12:22]                 │ debg returned from get, calling refresh
[00:12:22]                 │ERROR browser[SEVERE] http://localhost:6151/37472/bundles/core/core.entry.js 12:239839 TypeError: Failed to fetch
[00:12:22]                 │          at Fetch._callee3$ (http://localhost:6151/37472/bundles/core/core.entry.js:6:58583)
[00:12:22]                 │          at l (http://localhost:6151/37472/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:372:1741323)
[00:12:22]                 │          at Generator._invoke (http://localhost:6151/37472/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:372:1741076)
[00:12:22]                 │          at Generator.forEach.e.<computed> [as throw] (http://localhost:6151/37472/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:372:1741680)
[00:12:22]                 │          at fetch_asyncGeneratorStep (http://localhost:6151/37472/bundles/core/core.entry.js:6:52652)
[00:12:22]                 │          at _throw (http://localhost:6151/37472/bundles/core/core.entry.js:6:53060)
[00:12:22]                 │ debg browser[INFO] http://localhost:6151/app/monitoring?_t=1603231765053 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:12:22]                 │
[00:12:22]                 │ debg browser[INFO] http://localhost:6151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:12:23]                 │ debg currentUrl = http://localhost:6151/app/monitoring
[00:12:23]                 │          appUrl = http://localhost:6151/app/monitoring
[00:12:23]                 │ debg TestSubjects.find(kibanaChrome)
[00:12:23]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:12:23]                 │ debg ... sleep(501) start
[00:12:23]                 │ERROR browser[SEVERE] http://localhost:6151/api/monitoring/v1/elasticsearch_settings/check/cluster - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:12:23]                 │ERROR browser[SEVERE] http://localhost:6151/api/monitoring/v1/elasticsearch_settings/check/nodes - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:12:24]                 │ debg ... sleep(501) end
[00:12:24]                 │ debg in navigateTo url = http://localhost:6151/app/monitoring#/no-data?_g=(filters:!(),refreshInterval:(pause:!f,value:10000),time:(from:now-1h,to:now))
[00:12:24]                 │ debg --- retry.try error: URL changed, waiting for it to settle
[00:12:24]                 │ debg ... sleep(501) start
[00:12:25]                 │ debg ... sleep(501) end
[00:12:25]                 │ debg in navigateTo url = http://localhost:6151/app/monitoring#/no-data?_g=(filters:!(),refreshInterval:(pause:!f,value:10000),time:(from:now-1h,to:now))
[00:12:25]                 │ debg TestSubjects.exists(statusPageContainer)
[00:12:25]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:12:27]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:12:28]                 │ debg pauseAutoRefresh
[00:12:28]                 │ debg openQuickSelectTimeMenu
[00:12:28]                 │ debg TestSubjects.exists(superDatePickerQuickMenu)
[00:12:28]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerQuickMenu"]') with timeout=2500
[00:12:30]                 │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerQuickMenu"] is not displayed
[00:12:31]                 │ debg opening quick select menu
[00:12:31]                 │ debg TestSubjects.click(superDatePickerToggleQuickMenuButton)
[00:12:31]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=10000
[00:12:31]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=10000
[00:12:31]                 │ debg TestSubjects.getAttribute(superDatePickerRefreshIntervalInput, value)
[00:12:31]                 │ debg TestSubjects.find(superDatePickerRefreshIntervalInput)
[00:12:31]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerRefreshIntervalInput"]') with timeout=10000
[00:12:31]                 │ debg TestSubjects.find(superDatePickerRefreshIntervalUnitsSelect)
[00:12:31]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerRefreshIntervalUnitsSelect"]') with timeout=10000
[00:12:31]                 │ debg Find.allDescendantDisplayedByCssSelector('option')
[00:12:31]                 │ debg TestSubjects.getVisibleText(superDatePickerToggleRefreshButton)
[00:12:31]                 │ debg TestSubjects.find(superDatePickerToggleRefreshButton)
[00:12:31]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerToggleRefreshButton"]') with timeout=10000
[00:12:31]                 │ debg pause auto refresh
[00:12:31]                 │ debg TestSubjects.click(superDatePickerToggleRefreshButton)
[00:12:31]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerToggleRefreshButton"]') with timeout=10000
[00:12:31]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerToggleRefreshButton"]') with timeout=10000
[00:12:31]                 │ debg closeQuickSelectTimeMenu
[00:12:31]                 │ debg TestSubjects.exists(superDatePickerQuickMenu)
[00:12:31]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerQuickMenu"]') with timeout=2500
[00:12:31]                 │ debg closing quick select menu
[00:12:31]                 │ debg TestSubjects.click(superDatePickerToggleQuickMenuButton)
[00:12:31]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=10000
[00:12:31]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=10000
[00:12:31]                 │ debg closeQuickSelectTimeMenu
[00:12:31]                 │ debg TestSubjects.exists(superDatePickerQuickMenu)
[00:12:31]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerQuickMenu"]') with timeout=2500
[00:12:31]                 │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerQuickMenu"] is not displayed
[00:12:34]                 │ debg --- retry.tryForTime failed again with the same message...
[00:12:35]                 │ debg Setting absolute range to Oct 6, 2017 @ 19:53:06.748 to Oct 6, 2017 @ 20:15:30.212
[00:12:35]                 │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:12:35]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:12:35]                 │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:12:35]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:12:35]                 │ debg TestSubjects.click(superDatePickerShowDatesButton)
[00:12:35]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:12:35]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:12:35]                 │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:12:35]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:12:35]                 │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:12:35]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:12:35]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:12:35]                 │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:12:35]                 │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:12:35]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:12:35]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:12:35]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:12:35]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:12:35]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:12:35]                 │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Oct 6, 2017 @ 20:15:30.212)
[00:12:35]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:12:35]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:12:35]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:12:36]                 │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:12:36]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:12:36]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:12:36]                 │ debg Find.waitForElementStale with timeout=10000
[00:12:36]                 │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:12:36]                 │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:12:36]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:12:36]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:12:36]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:12:36]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:12:36]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:12:36]                 │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Oct 6, 2017 @ 19:53:06.748)
[00:12:36]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:12:36]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:12:36]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:12:37]                 │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:12:37]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:12:39]                 │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:12:40]                 │ debg TestSubjects.click(querySubmitButton)
[00:12:40]                 │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:12:40]                 │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:12:40]                 │ debg Find.waitForElementStale with timeout=10000
[00:12:40]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:12:40]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:12:40]                 │ debg TestSubjects.click(clusterItemContainerElasticsearch > esNumberOfNodes)
[00:12:40]                 │ debg Find.clickByCssSelector('[data-test-subj="clusterItemContainerElasticsearch"] [data-test-subj="esNumberOfNodes"]') with timeout=10000
[00:12:40]                 │ debg Find.findByCssSelector('[data-test-subj="clusterItemContainerElasticsearch"] [data-test-subj="esNumberOfNodes"]') with timeout=10000
[00:12:41]                 │ debg TestSubjects.find(elasticsearchNodesListingPage)
[00:12:41]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchNodesListingPage"]') with timeout=10000
[00:12:51]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="elasticsearchNodesListingPage"])
[00:12:51]                 │      Wait timed out after 10043ms
[00:12:52]                 │ debg TestSubjects.find(elasticsearchNodesListingPage)
[00:12:52]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchNodesListingPage"]') with timeout=10000
[00:13:02]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="elasticsearchNodesListingPage"])
[00:13:02]                 │      Wait timed out after 10025ms
[00:13:02]                 │ debg TestSubjects.find(elasticsearchNodesListingPage)
[00:13:02]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchNodesListingPage"]') with timeout=10000
[00:13:12]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="elasticsearchNodesListingPage"])
[00:13:12]                 │      Wait timed out after 10013ms
[00:13:13]                 │ debg TestSubjects.find(elasticsearchNodesListingPage)
[00:13:13]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchNodesListingPage"]') with timeout=10000
[00:13:23]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="elasticsearchNodesListingPage"])
[00:13:23]                 │      Wait timed out after 10082ms
[00:13:23]                 │ debg TestSubjects.find(elasticsearchNodesListingPage)
[00:13:23]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchNodesListingPage"]') with timeout=10000
[00:13:33]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="elasticsearchNodesListingPage"])
[00:13:33]                 │      Wait timed out after 10009ms
[00:13:34]                 │ debg TestSubjects.find(elasticsearchNodesListingPage)
[00:13:34]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchNodesListingPage"]') with timeout=10000
[00:13:44]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="elasticsearchNodesListingPage"])
[00:13:44]                 │      Wait timed out after 10030ms
[00:13:45]                 │ debg TestSubjects.find(elasticsearchNodesListingPage)
[00:13:45]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchNodesListingPage"]') with timeout=10000
[00:13:55]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="elasticsearchNodesListingPage"])
[00:13:55]                 │      Wait timed out after 10040ms
[00:13:55]                 │ debg TestSubjects.find(elasticsearchNodesListingPage)
[00:13:55]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchNodesListingPage"]') with timeout=10000
[00:14:05]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="elasticsearchNodesListingPage"])
[00:14:05]                 │      Wait timed out after 10057ms
[00:14:06]                 │ debg TestSubjects.find(elasticsearchNodesListingPage)
[00:14:06]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchNodesListingPage"]') with timeout=10000
[00:14:16]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="elasticsearchNodesListingPage"])
[00:14:16]                 │      Wait timed out after 10031ms
[00:14:16]                 │ debg TestSubjects.find(elasticsearchNodesListingPage)
[00:14:16]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchNodesListingPage"]') with timeout=10000
[00:14:26]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="elasticsearchNodesListingPage"])
[00:14:26]                 │      Wait timed out after 10033ms
[00:14:27]                 │ debg TestSubjects.find(elasticsearchNodesListingPage)
[00:14:27]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchNodesListingPage"]') with timeout=10000
[00:14:37]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="elasticsearchNodesListingPage"])
[00:14:37]                 │      Wait timed out after 10059ms
[00:14:37]                 │ debg TestSubjects.find(elasticsearchNodesListingPage)
[00:14:37]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchNodesListingPage"]') with timeout=10000
[00:14:47]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="elasticsearchNodesListingPage"])
[00:14:47]                 │      Wait timed out after 10016ms
[00:14:48]                 │ info Taking screenshot "/dev/shm/workspace/parallel/5/kibana/x-pack/test/functional/screenshots/failure/Monitoring app Elasticsearch node detail Offline Node _before all_ hook.png"
[00:14:48]                 │ info Current URL is: http://localhost:6151/app/monitoring#/overview?_g=(cluster_uuid:%271LYuyvCCQFS3FAO_h65PQw%27,refreshInterval:(pause:!t,value:10000),time:(from:%272017-10-06T19:53:06.748Z%27,to:%272017-10-06T20:15:30.212Z%27))
[00:14:48]                 │ info Saving page source to: /dev/shm/workspace/parallel/5/kibana/x-pack/test/functional/failure_debug/html/Monitoring app Elasticsearch node detail Offline Node _before all_ hook.html
[00:14:48]                 └- ✖ fail: Monitoring app Elasticsearch node detail Offline Node "before all" hook for "should show node summary of NA for offline node"
[00:14:48]                 │      Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="elasticsearchNodesListingPage"])
[00:14:48]                 │ Wait timed out after 10016ms
[00:14:48]                 │     at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:14:48]                 │     at process._tickCallback (internal/process/next_tick.js:68:7)
[00:14:48]                 │       at onFailure (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry_for_success.ts:28:9)
[00:14:48]                 │       at retryForSuccess (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry_for_success.ts:68:13)
[00:14:48]                 │ 
[00:14:48]                 │ 

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="elasticsearchNodesListingPage"])
Wait timed out after 10016ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at onFailure (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry_for_success.ts:68:13)

Metrics [docs]

✅ unchanged

History

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

@yctercero yctercero merged commit 858fa47 into elastic:master Oct 21, 2020
yctercero added a commit to yctercero/kibana that referenced this pull request Oct 21, 2020
### Summary

Fixes flakey unit test that was using dateMath as opposed to a fixed date for consistent testing.
yctercero added a commit to yctercero/kibana that referenced this pull request Oct 21, 2020
### Summary

Fixes flakey unit test that was using dateMath as opposed to a fixed date for consistent testing.
yctercero added a commit that referenced this pull request Oct 21, 2020
### Summary

Fixes flakey unit test that was using dateMath as opposed to a fixed date for consistent testing.
yctercero added a commit that referenced this pull request Oct 21, 2020
### Summary

Fixes flakey unit test that was using dateMath as opposed to a fixed date for consistent testing.
jloleysens added a commit to jloleysens/kibana that referenced this pull request Oct 21, 2020
…arm-phase-to-formlib

* 'master' of github.com:elastic/kibana: (55 commits)
  [UX] Fix map color variance and apply proper filter for extended stats (elastic#81106)
  [User Experience] Use EuiSelect for percentiles instead of SuperSelect (elastic#81082)
  [DOCS] Add link for monitoring ssl settings (elastic#81057)
  [test] Await loading indicator in monitoring test (elastic#81279)
  [ILM] Minor copy and link additions to cloud CTA for cold phase (elastic#80512)
  [Mappings editor] Add scaled_float and date_range comp integration tests (elastic#81287)
  [Discover] Deangularize context.app (elastic#80851)
  [O11y Overview] Add code to display/hide UX section when appropriate (elastic#80873)
  [Discover] Extend DiscoverNoResults component to show different message on error (elastic#79671)
  Fix tagcloud word overlapping (elastic#81161)
  [Security Solution] Fixes flaky test rules (elastic#81040)
  Changed the code to avoid tech debt with hacky solutions after receiving comments on EUI issue reported about this problem. (elastic#81183)
  [Security Solution][All] Replace old markdown renderer with the new one (elastic#80301)
  Add namespaced version of the API call (elastic#81278)
  [ML] Data Frame Analytics: Fix race condition and support for feature influence legacy format. (elastic#81123)
  [Fleet] Fix POLICY_CHANGE action creation for new policy (elastic#81236)
  [Security Solution][Endpoint][Admin] Malware user notification checkbox (elastic#78084)
  [SecuritySolution][Unit Tests] - fix flakey unit test (elastic#81239)
  skip flaky suite (elastic#81264)
  [Maps] fix top-level Map page is called 'Kibana' (elastic#81238)
  ...

# Conflicts:
#	x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/phases/hot_phase/hot_phase.tsx
#	x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/phases/shared/forcemerge_field.tsx
#	x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/phases/warm_phase.tsx
@yctercero yctercero deleted the fix_flakey branch December 6, 2020 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants