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: Serverless Search Functional Tests - Common Group 3.x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/metric·ts - Visualizations - Group 2 lens app - Agg based Vis Open in Lens Metric should convert color ranges #191151

Closed
kibanamachine opened this issue Aug 23, 2024 · 14 comments · Fixed by #191388
Assignees
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Aug 23, 2024

A test failed on a tracked branch

Error: expected [ { title: 'osx',
    subtitle: 'Average machine.ram',
    extraText: '',
    value: '13,228,964,670.613',
    color: 'rgba(165, 0, 38, 1)',
    trendlineColor: undefined,
    showingTrendline: false,
    showingBar: false },
  { title: 'win 7',
    subtitle: 'Average machine.ram',
    extraText: '',
    value: '13,186,695,551.251',
    color: 'rgba(253, 191, 111, 1)',
    trendlineColor: undefined,
    showingTrendline: false,
    showingBar: false },
  { title: 'win xp',
    subtitle: 'Average machine.ram',
    extraText: '',
    value: '13,073,190,186.423',
    color: 'rgba(183, 224, 117, 1)',
    trendlineColor: undefined,
    showingTrendline: false,
    showingBar: false },
  { title: 'win 8',
    subtitle: 'Average machine.ram',
    extraText: '',
    value: '13,031,579,645.108',
    color: 'rgba(194, 229, 138, 1)',
    trendlineColor: undefined,
    showingTrendline: false,
    showingBar: false },
  { title: 'ios',
    subtitle: 'Average machine.ram',
    extraText: '',
    value: '13,009,497,206.823',
    color: 'rgba(183, 224, 117, 1)',
    trendlineColor: undefined,
    showingTrendline: false,
    showingBar: false },
  { title: undefined,
    subtitle: undefined,
    extraText: undefined,
    value: undefined,
    color: 'rgba(255, 255, 255, 1)',
    trendlineColor: undefined,
    showingTrendline: false,
    showingBar: false } ] to sort of equal [ { title: 'osx',
    subtitle: 'Average machine.ram',
    extraText: '',
    value: '13,228,964,670.613',
    color: 'rgba(165, 0, 38, 1)',
    trendlineColor: undefined,
    showingBar: false,
    showingTrendline: false },
  { title: 'win 7',
    subtitle: 'Average machine.ram',
    extraText: '',
    value: '13,186,695,551.251',
    color: 'rgba(253, 191, 111, 1)',
    trendlineColor: undefined,
    showingBar: false,
    showingTrendline: false },
  { title: 'win xp',
    subtitle: 'Average machine.ram',
    extraText: '',
    value: '13,073,190,186.423',
    color: 'rgba(183, 224, 117, 1)',
    trendlineColor: undefined,
    showingBar: false,
    showingTrendline: false },
  { title: 'win 8',
    subtitle: 'Average machine.ram',
    extraText: '',
    value: '13,031,579,645.108',
    color: 'rgba(183, 224, 117, 1)',
    trendlineColor: undefined,
    showingBar: false,
    showingTrendline: false },
  { title: 'ios',
    subtitle: 'Average machine.ram',
    extraText: '',
    value: '13,009,497,206.823',
    color: 'rgba(183, 224, 117, 1)',
    trendlineColor: undefined,
    showingBar: false,
    showingTrendline: false },
  { title: undefined,
    subtitle: undefined,
    extraText: undefined,
    value: undefined,
    color: 'rgba(255, 255, 255, 1)',
    trendlineColor: undefined,
    showingBar: false,
    showingTrendline: false } ]
    at Assertion.assert (expect.js:100:11)
    at Assertion.eql (expect.js:244:8)
    at Context.<anonymous> (metric.ts:133:23)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Object.apply (wrap_function.js:73:16) {
  actual: '[\n' +
    '  {\n' +
    '    "color": "rgba(165, 0, 38, 1)"\n' +
    '    "extraText": ""\n' +
    '    "showingBar": false\n' +
    '    "showingTrendline": false\n' +
    '    "subtitle": "Average machine.ram"\n' +
    '    "title": "osx"\n' +
    '    "trendlineColor": [undefined]\n' +
    '    "value": "13,228,964,670.613"\n' +
    '  }\n' +
    '  {\n' +
    '    "color": "rgba(253, 191, 111, 1)"\n' +
    '    "extraText": ""\n' +
    '    "showingBar": false\n' +
    '    "showingTrendline": false\n' +
    '    "subtitle": "Average machine.ram"\n' +
    '    "title": "win 7"\n' +
    '    "trendlineColor": [undefined]\n' +
    '    "value": "13,186,695,551.251"\n' +
    '  }\n' +
    '  {\n' +
    '    "color": "rgba(183, 224, 117, 1)"\n' +
    '    "extraText": ""\n' +
    '    "showingBar": false\n' +
    '    "showingTrendline": false\n' +
    '    "subtitle": "Average machine.ram"\n' +
    '    "title": "win xp"\n' +
    '    "trendlineColor": [undefined]\n' +
    '    "value": "13,073,190,186.423"\n' +
    '  }\n' +
    '  {\n' +
    '    "color": "rgba(194, 229, 138, 1)"\n' +
    '    "extraText": ""\n' +
    '    "showingBar": false\n' +
    '    "showingTrendline": false\n' +
    '    "subtitle": "Average machine.ram"\n' +
    '    "title": "win 8"\n' +
    '    "trendlineColor": [undefined]\n' +
    '    "value": "13,031,579,645.108"\n' +
    '  }\n' +
    '  {\n' +
    '    "color": "rgba(183, 224, 117, 1)"\n' +
    '    "extraText": ""\n' +
    '    "showingBar": false\n' +
    '    "showingTrendline": false\n' +
    '    "subtitle": "Average machine.ram"\n' +
    '    "title": "ios"\n' +
    '    "trendlineColor": [undefined]\n' +
    '    "value": "13,009,497,206.823"\n' +
    '  }\n' +
    '  {\n' +
    '    "color": "rgba(255, 255, 255, 1)"\n' +
    '    "extraText": [undefined]\n' +
    '    "showingBar": false\n' +
    '    "showingTrendline": false\n' +
    '    "subtitle": [undefined]\n' +
    '    "title": [undefined]\n' +
    '    "trendlineColor": [undefined]\n' +
    '    "value": [undefined]\n' +
    '  }\n' +
    ']',
  expected: '[\n' +
    '  {\n' +
    '    "color": "rgba(165, 0, 38, 1)"\n' +
    '    "extraText": ""\n' +
    '    "showingBar": false\n' +
    '    "showingTrendline": false\n' +
    '    "subtitle": "Average machine.ram"\n' +
    '    "title": "osx"\n' +
    '    "trendlineColor": [undefined]\n' +
    '    "value": "13,228,964,670.613"\n' +
    '  }\n' +
    '  {\n' +
    '    "color": "rgba(253, 191, 111, 1)"\n' +
    '    "extraText": ""\n' +
    '    "showingBar": false\n' +
    '    "showingTrendline": false\n' +
    '    "subtitle": "Average machine.ram"\n' +
    '    "title": "win 7"\n' +
    '    "trendlineColor": [undefined]\n' +
    '    "value": "13,186,695,551.251"\n' +
    '  }\n' +
    '  {\n' +
    '    "color": "rgba(183, 224, 117, 1)"\n' +
    '    "extraText": ""\n' +
    '    "showingBar": false\n' +
    '    "showingTrendline": false\n' +
    '    "subtitle": "Average machine.ram"\n' +
    '    "title": "win xp"\n' +
    '    "trendlineColor": [undefined]\n' +
    '    "value": "13,073,190,186.423"\n' +
    '  }\n' +
    '  {\n' +
    '    "color": "rgba(183, 224, 117, 1)"\n' +
    '    "extraText": ""\n' +
    '    "showingBar": false\n' +
    '    "showingTrendline": false\n' +
    '    "subtitle": "Average machine.ram"\n' +
    '    "title": "win 8"\n' +
    '    "trendlineColor": [undefined]\n' +
    '    "value": "13,031,579,645.108"\n' +
    '  }\n' +
    '  {\n' +
    '    "color": "rgba(183, 224, 117, 1)"\n' +
    '    "extraText": ""\n' +
    '    "showingBar": false\n' +
    '    "showingTrendline": false\n' +
    '    "subtitle": "Average machine.ram"\n' +
    '    "title": "ios"\n' +
    '    "trendlineColor": [undefined]\n' +
    '    "value": "13,009,497,206.823"\n' +
    '  }\n' +
    '  {\n' +
    '    "color": "rgba(255, 255, 255, 1)"\n' +
    '    "extraText": [undefined]\n' +
    '    "showingBar": false\n' +
    '    "showingTrendline": false\n' +
    '    "subtitle": [undefined]\n' +
    '    "title": [undefined]\n' +
    '    "trendlineColor": [undefined]\n' +
    '    "value": [undefined]\n' +
    '  }\n' +
    ']',
  showDiff: true
}

First failure: kibana-on-merge - main

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Aug 23, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Aug 23, 2024
@kibanamachine kibanamachine added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Aug 23, 2024
@elasticmachine
Copy link
Contributor

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

@botelastic botelastic bot removed the needs-team Issues missing a team label label Aug 23, 2024
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@mbondyra mbondyra self-assigned this Aug 26, 2024
kibanamachine pushed a commit to kibanamachine/kibana that referenced this issue Aug 27, 2024
## Summary

Fixes elastic#190227

Fixes elastic#190737
elastic#190990
elastic#190802
elastic#179307 (couldn't find the
rootcause so just decided to align the solution with other files that
follow similar path and are not flaky)

Fixes elastic#191151
elastic#191152
elastic#191176
elastic#191177
elastic#191178
elastic#191153
elastic#191238

Fixes elastic#190711

(cherry picked from commit 2a033c1)
kibanamachine referenced this issue Aug 27, 2024
# Backport

This will backport the following commits from `main` to `8.15`:
- [[Managed Content] fix flaky tests
(#191388)](#191388)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Marta
Bondyra","email":"4283304+mbondyra@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-08-27T20:12:59Z","message":"[Managed
Content] fix flaky tests (#191388)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/190227\r\n\r\nFixes
https://github.com/elastic/kibana/issues/190737\r\nhttps://github.com/elastic/kibana/issues/190990\r\nhttps://github.com/elastic/kibana/issues/190802\r\nhttps://github.com/elastic/kibana/issues/179307
(couldn't find the\r\nrootcause so just decided to align the solution
with other files that\r\nfollow similar path and are not
flaky)\r\n\r\nFixes
https://github.com/elastic/kibana/issues/191151\r\nhttps://github.com/elastic/kibana/issues/191152\r\nhttps://github.com/elastic/kibana/issues/191176\r\nhttps://github.com/elastic/kibana/issues/191177\r\nhttps://github.com/elastic/kibana/issues/191178\r\nhttps://github.com/elastic/kibana/issues/191153\r\nhttps://github.com/elastic/kibana/issues/191238\r\n\r\nFixes
https://github.com/elastic/kibana/issues/190711","sha":"2a033c1621414e838c2fc7de1710c0fc3ee340e1","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Visualizations","release_note:skip","Feature:Lens","backport:prev-minor","v8.16.0"],"title":"[Managed
Content] fix flaky
tests","number":191388,"url":"https://github.com/elastic/kibana/pull/191388","mergeCommit":{"message":"[Managed
Content] fix flaky tests (#191388)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/190227\r\n\r\nFixes
https://github.com/elastic/kibana/issues/190737\r\nhttps://github.com/elastic/kibana/issues/190990\r\nhttps://github.com/elastic/kibana/issues/190802\r\nhttps://github.com/elastic/kibana/issues/179307
(couldn't find the\r\nrootcause so just decided to align the solution
with other files that\r\nfollow similar path and are not
flaky)\r\n\r\nFixes
https://github.com/elastic/kibana/issues/191151\r\nhttps://github.com/elastic/kibana/issues/191152\r\nhttps://github.com/elastic/kibana/issues/191176\r\nhttps://github.com/elastic/kibana/issues/191177\r\nhttps://github.com/elastic/kibana/issues/191178\r\nhttps://github.com/elastic/kibana/issues/191153\r\nhttps://github.com/elastic/kibana/issues/191238\r\n\r\nFixes
https://github.com/elastic/kibana/issues/190711","sha":"2a033c1621414e838c2fc7de1710c0fc3ee340e1"}},"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/191388","number":191388,"mergeCommit":{"message":"[Managed
Content] fix flaky tests (#191388)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/190227\r\n\r\nFixes
https://github.com/elastic/kibana/issues/190737\r\nhttps://github.com/elastic/kibana/issues/190990\r\nhttps://github.com/elastic/kibana/issues/190802\r\nhttps://github.com/elastic/kibana/issues/179307
(couldn't find the\r\nrootcause so just decided to align the solution
with other files that\r\nfollow similar path and are not
flaky)\r\n\r\nFixes
https://github.com/elastic/kibana/issues/191151\r\nhttps://github.com/elastic/kibana/issues/191152\r\nhttps://github.com/elastic/kibana/issues/191176\r\nhttps://github.com/elastic/kibana/issues/191177\r\nhttps://github.com/elastic/kibana/issues/191178\r\nhttps://github.com/elastic/kibana/issues/191153\r\nhttps://github.com/elastic/kibana/issues/191238\r\n\r\nFixes
https://github.com/elastic/kibana/issues/190711","sha":"2a033c1621414e838c2fc7de1710c0fc3ee340e1"}}]}]
BACKPORT-->

Co-authored-by: Marta Bondyra <4283304+mbondyra@users.noreply.github.com>
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 Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants