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

Failing test: Chrome UI Functional Tests.test/functional/apps/visualize/group5/_tsvb_time_series·ts - visualize app visual builder Time Series "before each" hook for "should show the correct count in the legend" #156400

Closed
kibanamachine opened this issue May 2, 2023 · 1 comment · Fixed by #156484
Assignees
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented May 2, 2023

A test failed on a tracked branch

Error: retry.try timeout: Error: expected http://localhost:5620/app/visualize#/create?type=metrics&_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now)).includes(http://localhost:5620/app/visualize#create?type=metrics)
    at common_page.ts:114:15
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at runAttempt (retry_for_success.ts:29:15)
    at retryForSuccess (retry_for_success.ts:68:21)
    at RetryService.try (retry.ts:31:12)
    at CommonPageObject.navigate (common_page.ts:96:5)
    at CommonPageObject.navigateToUrl (common_page.ts:148:5)
    at VisualBuilderPageObject.resetPage (visual_builder_page.ts:42:5)
    at Context.<anonymous> (_tsvb_time_series.ts:48:9)
    at Object.apply (wrap_function.js:73:16)
    at onFailure (retry_for_success.ts:17:9)
    at retryForSuccess (retry_for_success.ts:59:13)
    at RetryService.try (retry.ts:31:12)
    at CommonPageObject.navigate (common_page.ts:96:5)
    at CommonPageObject.navigateToUrl (common_page.ts:148:5)
    at VisualBuilderPageObject.resetPage (visual_builder_page.ts:42:5)
    at Context.<anonymous> (_tsvb_time_series.ts:48:9)
    at Object.apply (wrap_function.js:73:16)

First failure: CI Build - main

visualize app visual builder Time Series before each hook for should show the co-f365acb723fce1704dda8018e9cd18f73b0254bd6f33ec6b59a64e8014801ad2

Test log

Standard Out:
-------------
[00:00:00]  
[00:00:00]   â””-: visualize app
[00:00:00]     â””-> "before all" hook: beforeTestSuite.trigger in "visualize app"
[00:00:00]     â””-> "before all" hook in "visualize app"
[00:00:00]       │ debg Starting visualize before method
[00:00:00]       │ debg Cleaning all saved objects { space: undefined }
[00:00:00]       │ succ deleted 0 objects
[00:00:00]       │ info [test/functional/fixtures/es_archiver/logstash_functional] Loading "mappings.json"
[00:00:00]       │ info [test/functional/fixtures/es_archiver/logstash_functional] Loading "data.json.gz"
[00:00:00]       │ info [o.e.c.m.MetadataCreateIndexService] [ftr] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]       │ info [o.e.c.r.a.AllocationService] [ftr] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.22][0]]"
[00:00:00]       │ info [test/functional/fixtures/es_archiver/logstash_functional] Created index "logstash-2015.09.22"
[00:00:00]       │ debg [test/functional/fixtures/es_archiver/logstash_functional] "logstash-2015.09.22" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:00]       │ info [o.e.c.m.MetadataCreateIndexService] [ftr] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]       │ info [o.e.c.r.a.AllocationService] [ftr] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.20][0]]"
[00:00:00]       │ info [test/functional/fixtures/es_archiver/logstash_functional] Created index "logstash-2015.09.20"
[00:00:00]       │ debg [test/functional/fixtures/es_archiver/logstash_functional] "logstash-2015.09.20" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:00]       │ info [o.e.c.m.MetadataCreateIndexService] [ftr] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]       │ info [o.e.c.r.a.AllocationService] [ftr] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.21][0]]"
[00:00:00]       │ info [test/functional/fixtures/es_archiver/logstash_functional] Created index "logstash-2015.09.21"
[00:00:00]       │ debg [test/functional/fixtures/es_archiver/logstash_functional] "logstash-2015.09.21" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:10]       │ info progress: 11434
[00:00:11]       │ info [test/functional/fixtures/es_archiver/logstash_functional] Indexed 4633 docs into "logstash-2015.09.22"
[00:00:11]       │ info [test/functional/fixtures/es_archiver/logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:00:11]       │ info [test/functional/fixtures/es_archiver/logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:00:12]       │ info [test/functional/fixtures/es_archiver/long_window_logstash] Loading "mappings.json"
[00:00:12]       │ info [test/functional/fixtures/es_archiver/long_window_logstash] Loading "data.json.gz"
[00:00:12]       │ info [o.e.c.m.MetadataCreateIndexService] [ftr] [long-window-logstash-0] creating index, cause [api], templates [], shards [1]/[0]
[00:00:12]       │ info [o.e.c.r.a.AllocationService] [ftr] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[long-window-logstash-0][0]]])." previous.health="YELLOW" reason="shards started [[long-window-logstash-0][0]]"
[00:00:12]       │ info [test/functional/fixtures/es_archiver/long_window_logstash] Created index "long-window-logstash-0"
[00:00:12]       │ debg [test/functional/fixtures/es_archiver/long_window_logstash] "long-window-logstash-0" settings {"index":{"analysis":{"analyzer":{"makelogs_url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:21]       │ info [test/functional/fixtures/es_archiver/long_window_logstash] Indexed 14005 docs into "long-window-logstash-0"
[00:00:22]     â””-: visual builder
[00:00:22]       â””-> "before all" hook: beforeTestSuite.trigger in "visual builder"
[00:00:22]       â””-> "before all" hook in "visual builder"
[00:00:22]         │ debg Cleaning all saved objects { space: undefined }
[00:00:22]         │ succ deleted 0 objects
[00:00:22]         │ debg resolved import for test/functional/fixtures/kbn_archiver/visualize.json to /var/lib/buildkite-agent/builds/kb-n2-4-spot-d4f8acc803624b2f/elastic/kibana-on-merge/kibana/test/functional/fixtures/kbn_archiver/visualize.json
[00:00:22]         │ info importing 13 saved objects { space: undefined }
[00:00:22]         │ succ import success
[00:00:22]         │ debg replacing kibana config doc: {"defaultIndex":"logstash-*","format:bytes:defaultPattern":"0,0.[000]b","visualization:visualize:legacyHeatmapChartsLibrary":true,"histogram:maxBars":100}
[00:00:23]       â””-: Time Series
[00:00:23]         â””-> "before all" hook: beforeTestSuite.trigger in "Time Series"
@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label May 2, 2023
@botelastic botelastic bot added the needs-team Issues missing a team label label May 2, 2023
@dej611 dej611 added Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Visualization editors, elastic-charts and infrastructure labels May 3, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations)

@botelastic botelastic bot removed the needs-team Issues missing a team label label May 3, 2023
@stratoula stratoula self-assigned this May 3, 2023
stratoula added a commit that referenced this issue May 4, 2023
## Summary

Closes #156457
Closes #156452
Closes #156439
Closes #156400
Closes #156599
Closes #156502
Closes #156501

the resetPage function is creating this flakiness. I cant figure out why
but is on the navigateToUrl function. Sometimes it reports #create and
sometimes without the hash. The navigateToUrl is not needed as it is
already done on another function. The only thing that is needed is the
setTimePicker function.

Flaky runer (100 times)
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2210
stratoula added a commit to stratoula/kibana that referenced this issue May 4, 2023
## Summary

Closes elastic#156457
Closes elastic#156452
Closes elastic#156439
Closes elastic#156400
Closes elastic#156599
Closes elastic#156502
Closes elastic#156501

the resetPage function is creating this flakiness. I cant figure out why
but is on the navigateToUrl function. Sometimes it reports #create and
sometimes without the hash. The navigateToUrl is not needed as it is
already done on another function. The only thing that is needed is the
setTimePicker function.

Flaky runer (100 times)
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2210

(cherry picked from commit e5f6f96)
stratoula referenced this issue May 4, 2023
# Backport

This will backport the following commits from `main` to `8.8`:
- [[TSVB] Remove flakiness on resetPage
(#156484)](#156484)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Stratoula
Kalafateli","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-05-04T09:33:29Z","message":"[TSVB]
Remove flakiness on resetPage (#156484)\n\n## Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/156457\r\nCloses
https://github.com/elastic/kibana/issues/156452\r\nCloses
https://github.com/elastic/kibana/issues/156439\r\nCloses
https://github.com/elastic/kibana/issues/156400\r\nCloses
https://github.com/elastic/kibana/issues/156599\r\nCloses
https://github.com/elastic/kibana/issues/156502\r\nCloses
https://github.com/elastic/kibana/issues/156501\r\n\r\nthe resetPage
function is creating this flakiness. I cant figure out why\r\nbut is on
the navigateToUrl function. Sometimes it reports #create
and\r\nsometimes without the hash. The navigateToUrl is not needed as it
is\r\nalready done on another function. The only thing that is needed is
the\r\nsetTimePicker function.\r\n\r\nFlaky runer (100
times)\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2210","sha":"e5f6f96e9cd365fd8ae8e7f250ab3d67f56514f3","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:TSVB","Team:Visualizations","release_note:skip","backport:skip","v8.9.0"],"number":156484,"url":"https://github.com/elastic/kibana/pull/156484","mergeCommit":{"message":"[TSVB]
Remove flakiness on resetPage (#156484)\n\n## Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/156457\r\nCloses
https://github.com/elastic/kibana/issues/156452\r\nCloses
https://github.com/elastic/kibana/issues/156439\r\nCloses
https://github.com/elastic/kibana/issues/156400\r\nCloses
https://github.com/elastic/kibana/issues/156599\r\nCloses
https://github.com/elastic/kibana/issues/156502\r\nCloses
https://github.com/elastic/kibana/issues/156501\r\n\r\nthe resetPage
function is creating this flakiness. I cant figure out why\r\nbut is on
the navigateToUrl function. Sometimes it reports #create
and\r\nsometimes without the hash. The navigateToUrl is not needed as it
is\r\nalready done on another function. The only thing that is needed is
the\r\nsetTimePicker function.\r\n\r\nFlaky runer (100
times)\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2210","sha":"e5f6f96e9cd365fd8ae8e7f250ab3d67f56514f3"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/156484","number":156484,"mergeCommit":{"message":"[TSVB]
Remove flakiness on resetPage (#156484)\n\n## Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/156457\r\nCloses
https://github.com/elastic/kibana/issues/156452\r\nCloses
https://github.com/elastic/kibana/issues/156439\r\nCloses
https://github.com/elastic/kibana/issues/156400\r\nCloses
https://github.com/elastic/kibana/issues/156599\r\nCloses
https://github.com/elastic/kibana/issues/156502\r\nCloses
https://github.com/elastic/kibana/issues/156501\r\n\r\nthe resetPage
function is creating this flakiness. I cant figure out why\r\nbut is on
the navigateToUrl function. Sometimes it reports #create
and\r\nsometimes without the hash. The navigateToUrl is not needed as it
is\r\nalready done on another function. The only thing that is needed is
the\r\nsetTimePicker function.\r\n\r\nFlaky runer (100
times)\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2210","sha":"e5f6f96e9cd365fd8ae8e7f250ab3d67f56514f3"}}]}]
BACKPORT-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants