-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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/group2/_gauge_chart·ts - visualize app gauge chart should format the metric correctly in percentage mode #181883
Comments
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
New failure: CI Build - main |
New failure: CI Build - main |
New failure: CI Build - main |
Skipped. main: c8398aa |
I was able to reproduce this once running the tests locally with I put a log on both the kibana/src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx Lines 373 to 397 in 48e2b57
Looking at the log from both tests they are exactly the same up until the call to While both tests make a call to Passing test logs
Failing test log
See full test log diff
--- failed.log
+++ passed.log
@@ -1,4 +1,4 @@
-Failed test log
+Passed test log
└-: visualize app
└-: gauge chart
@@ -101,173 +101,11 @@ Failed test log
│ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
│ debg -- currentRenderingCount=2
│ debg -- expectedCount=3
- │ debg browser[INFO] http://localhost:5620/325677afb049/bundles/core/core.entry.js 15:78214 "onContainerLoading - renderComplete"
+ │ debg browser[INFO] http://localhost:5620/XXXXXXXXXXXX/bundles/plugin/visualizations/1.0.0/visualizations.chunk.7.js 1221:14 "onContainerLoading"
+ │ debg browser[INFO] http://localhost:5620/XXXXXXXXXXXX/bundles/plugin/visualizations/1.0.0/visualizations.chunk.7.js 1238:14 "onContainerRender"
│ debg TestSubjects.find(visualizationLoader)
│ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
- │ debg -- expectedCount=3
- │ debg TestSubjects.find(visualizationLoader)
- │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
- │ debg -- currentRenderingCount=2
+ │ debg -- currentRenderingCount=3
│ debg -- expectedCount=3
- │ info Taking window screenshot "/opt/buildkite-agent/builds/bk-agent-prod-gcp-1720724252798929239/elastic/kibana-flaky-test-suite-runner/kibana/test/functional/screenshots/failure/visualize app gauge chart should format the metric correctly in percentage mode-c04e9b096275f91bc00a390653d79e70b48b3bb5e153567cc7fa59cc71390d31.png"
- │ info Current URL is: http://localhost:5620/app/visualize#/create?type=gauge&indexPattern=logstash-*&_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:%272015-09-19T06:31:44.000Z%27,to:%272015-09-23T18:31:44.000Z%27))&_a=(filters:!(),linked:!f,query:(language:kuery,query:%27%27),uiState:(),vis:(aggs:!((enabled:!t,id:%271%27,params:(field:bytes),schema:metric,type:avg)),params:(addLegend:!t,addTooltip:!t,gauge:(alignment:automatic,backStyle:Full,colorSchema:%27Green%20to%20Red%27,colorsRange:!((from:0,to:50),(from:50,to:75),(from:75,to:10000)),extendRange:!t,gaugeColorMode:Labels,gaugeStyle:Full,gaugeType:Arc,invertColors:!f,labels:(color:black,show:!t),orientation:vertical,percentageFormatPattern:%270.0%25%27,percentageMode:!t,scale:(color:%27rgba(105,112,125,0.2)%27,labels:!f,show:!t),style:(bgColor:!t,bgFill:%27rgba(105,112,125,0.2)%27,bgMask:!f,bgWidth:0.9,fontSize:60,mask:!f,maskBars:50,subText:%27%27,width:0.9),type:meter),isDisplayWarning:!f,type:gauge),title:%27%27,type:gauge))
- │ info Saving page source to: /opt/buildkite-agent/builds/bk-agent-prod-gcp-1720724252798929239/elastic/kibana-flaky-test-suite-runner/kibana/test/functional/failure_debug/html/visualize app gauge chart should format the metric correctly in percentage mode-c04e9b096275f91bc00a390653d79e70b48b3bb5e153567cc7fa59cc71390d31.html
- └- x fail: visualize app gauge chart should format the metric correctly in percentage mode
- │ Error: timed out waiting for rendering count to be greater than or equal to [3]
- │ at onFailure (retry_for_truthy.ts:39:13)
- │ at retryForSuccess (retry_for_success.ts:84:7)
- │ at retryForTruthy (retry_for_truthy.ts:27:3)
- │ at RetryService.waitFor (retry.ts:87:5)
- │ at VisualizeChartPageObject.waitForRenderingCount (visualize_chart_page.ts:215:5)
- │ at VisualizeEditorPageObject.clickGo (visualize_editor_page.ts:90:5)
- │ at Context.<anonymous> (_gauge_chart.ts:60:7)
- │ at Object.apply (wrap_function.js:73:16)
+ │ debg Find.allByCssSelector('[data-test-subj="visualizationLoader"] .chart svg text') with timeout=10000
+ └- ✓ pass (10.1s) In the end I think there is flakiness with the A trivial solution would be to trigger another click on go within the I think the real solution here is to avoid the render count and just assert the format is applied to the chart. Thoughts? |
While we could remove the
While for the second point I think it would be fine, but the former is what makes me a feel that it won't solve it completely. |
Removing the blocker label as it's a legacy code so it's justifiable it's not blocking. |
## Summary Fixes elastic#181884 Fixes elastic#181883 Fixes elastic#181895 Fixes elastic#181881 (cherry picked from commit f27a477)
# Backport This will backport the following commits from `main` to `8.15`: - [[Visualize] unskip visualize flaky tests (#190249)](#190249) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Marta Bondyra","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-08-15T19:19:49Z","message":"[Visualize] unskip visualize flaky tests (#190249)\n\n## Summary\r\n\r\nFixes https://github.com/elastic/kibana/issues/181884\r\nFixes https://github.com/elastic/kibana/issues/181883\r\nFixes https://github.com/elastic/kibana/issues/181895\r\nFixes https://github.com/elastic/kibana/issues/181881","sha":"f27a477719cff70c8f54049dfe1b4085d25cb356","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Visualizations","release_note:skip","backport:prev-minor","v8.16.0"],"title":"[Visualize] unskip visualize flaky tests","number":190249,"url":"https://github.com/elastic/kibana/pull/190249","mergeCommit":{"message":"[Visualize] unskip visualize flaky tests (#190249)\n\n## Summary\r\n\r\nFixes https://github.com/elastic/kibana/issues/181884\r\nFixes https://github.com/elastic/kibana/issues/181883\r\nFixes https://github.com/elastic/kibana/issues/181895\r\nFixes https://github.com/elastic/kibana/issues/181881","sha":"f27a477719cff70c8f54049dfe1b4085d25cb356"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/190249","number":190249,"mergeCommit":{"message":"[Visualize] unskip visualize flaky tests (#190249)\n\n## Summary\r\n\r\nFixes https://github.com/elastic/kibana/issues/181884\r\nFixes https://github.com/elastic/kibana/issues/181883\r\nFixes https://github.com/elastic/kibana/issues/181895\r\nFixes https://github.com/elastic/kibana/issues/181881","sha":"f27a477719cff70c8f54049dfe1b4085d25cb356"}}]}] BACKPORT--> Co-authored-by: Marta Bondyra <[email protected]>
A test failed on a tracked branch
First failure: CI Build - main
The text was updated successfully, but these errors were encountered: