elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.81k stars 8.2k forks source link

Failing test: Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/monitoring/elasticsearch/node_detail_mb·js - Monitoring app Elasticsearch node detail mb Advanced Active Nodes should show node summary of data node with 4 indices and 4 shards #114596

Open kibanamachine opened 3 years ago

kibanamachine commented 3 years ago

A test failed on a tracked branch

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="elasticsearchNodesTableContainer"] [data-test-subj="nodeLink-bwQWH-7IQY-mFPpfoaoFXQ"])
Wait timed out after 10022ms
    at /opt/local-ssd/buildkite/builds/kb-cigroup-6-938f78c6d598ac36/elastic/kibana-hourly/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at onFailure (/opt/local-ssd/buildkite/builds/kb-cigroup-6-938f78c6d598ac36/elastic/kibana-hourly/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/opt/local-ssd/buildkite/builds/kb-cigroup-6-938f78c6d598ac36/elastic/kibana-hourly/kibana/test/common/services/retry/retry_for_success.ts:59:13)
    at RetryService.try (/opt/local-ssd/buildkite/builds/kb-cigroup-6-938f78c6d598ac36/elastic/kibana-hourly/kibana/test/common/services/retry/retry.ts:31:12)
    at Proxy.clickByCssSelector (/opt/local-ssd/buildkite/builds/kb-cigroup-6-938f78c6d598ac36/elastic/kibana-hourly/kibana/test/functional/services/common/find.ts:368:5)
    at TestSubjects.click (/opt/local-ssd/buildkite/builds/kb-cigroup-6-938f78c6d598ac36/elastic/kibana-hourly/kibana/test/functional/services/common/test_subjects.ts:105:5)
    at Context.<anonymous> (test/functional/apps/monitoring/elasticsearch/node_detail_mb.js:161:11)
    at Object.apply (/opt/local-ssd/buildkite/builds/kb-cigroup-6-938f78c6d598ac36/elastic/kibana-hourly/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

First failure: CI Build - 7.x

elasticmachine commented 3 years ago

Pinging @elastic/stack-monitoring (Team:Monitoring)

matschaffer commented 3 years ago

@neptunian any chance https://github.com/elastic/kibana/pull/114709 might resolve this as well?

neptunian commented 3 years ago

No, I think not.

matschaffer commented 3 years ago

For starters I tried this:

while [[ $RET == 0 ]]; do node scripts/functional_test_runner.js --config x-pack/test/functional/config.js --grep 'Monitoring app Elasticsearch node detail mb Advanced Active Nodes should show node summary of data node with 4 indices and 4 shards'; RET=$?; done

which failed on the 3rd run but with a different stacktrace

 │0 passing (3.0m)
 │1 failing
 │
 │1)    Monitoring app
 │       Elasticsearch node detail mb
 │         Advanced
 │           Active Nodes
 │             "before all" hook for "should show node summary of master node with 20 indices and 38 shards":
 │
 │      retry.try timeout: Error: expected testSubject(superDatePickerQuickMenu) to exist
 │     at TestSubjects.existOrFail (/Users/matschaffer/elastic/kibana/test/functional/services/common/test_subjects.ts:45:13)
 │     at /Users/matschaffer/elastic/kibana/test/functional/services/menu_toggle.ts:43:11
 │     at runAttempt (/Users/matschaffer/elastic/kibana/test/common/services/retry/retry_for_success.ts:29:15)
 │     at retryForSuccess (/Users/matschaffer/elastic/kibana/test/common/services/retry/retry_for_success.ts:68:21)
 │     at RetryService.try (/Users/matschaffer/elastic/kibana/test/common/services/retry/retry.ts:31:12)
 │     at setState (/Users/matschaffer/elastic/kibana/test/functional/services/menu_toggle.ts:31:7)
 │     at Object.open (/Users/matschaffer/elastic/kibana/test/functional/services/menu_toggle.ts:53:9)
 │     at TimePickerPageObject.getRefreshConfig (/Users/matschaffer/elastic/kibana/test/functional/page_objects/time_picker.ts:178:5)
 │     at TimePickerPageObject.pauseAutoRefresh (/Users/matschaffer/elastic/kibana/test/functional/page_objects/time_picker.ts:275:27)
 │     at setup (/Users/matschaffer/elastic/kibana/x-pack/test/functional/apps/monitoring/_get_lifecycle_methods.js:34:7)
 │     at Context.<anonymous> (/Users/matschaffer/elastic/kibana/x-pack/test/functional/apps/monitoring/elasticsearch/node_detail_mb.js:120:11)
 │     at Object.apply (/Users/matschaffer/elastic/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

I'll try again and see if I can get a better sense of how to debug the step timeouts.