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: Firefox XPack UI Functional Tests.x-pack/test/functional/apps/infra/home_page·ts - InfraOps App Metrics UI Home page with metrics present change color palette #118481

Closed
kibanamachine opened this issue Nov 13, 2021 · 10 comments · Fixed by #118712 or #119042
Assignees
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Nov 13, 2021

A test failed on a tracked branch

Error: expected [ { name: 'demo-stack-client-01',
    value: 0.6,
    color: '#ebf4f2' },
  { name: 'demo-stack-haproxy-01',
    value: 0.8,
    color: '#aed3ca' },
  { name: 'demo-stack-redis-01',
    value: 1,
    color: '#85bdb1' },
  { name: 'demo-stack-nginx-01',
    value: 1.1,
    color: '#70b2a4' },
  { name: 'demo-stack-mysql-01',
    value: 1.2,
    color: '#5aa898' },
  { name: 'demo-stack-apache-01',
    value: 1.4,
    color: '#209280' } ] to sort of equal [ { name: 'demo-stack-client-01',
    value: 0.6,
    color: '#6092c0' },
  { name: 'demo-stack-haproxy-01',
    value: 0.8,
    color: '#b5c9df' },
  { name: 'demo-stack-redis-01',
    value: 1,
    color: '#f1d9b9' },
  { name: 'demo-stack-nginx-01',
    value: 1.1,
    color: '#eec096' },
  { name: 'demo-stack-mysql-01',
    value: 1.2,
    color: '#eba47a' },
  { name: 'demo-stack-apache-01',
    value: 1.4,
    color: '#e7664c' } ]
    at Assertion.assert (/opt/local-ssd/buildkite/builds/kb-n2-4-f27d0989dbf6d72c/elastic/kibana-hourly/kibana/node_modules/@kbn/expect/expect.js:100:11)
    at Assertion.eql (/opt/local-ssd/buildkite/builds/kb-n2-4-f27d0989dbf6d72c/elastic/kibana-hourly/kibana/node_modules/@kbn/expect/expect.js:244:8)
    at Context.<anonymous> (test/functional/apps/infra/home_page.ts:113:35)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at Object.apply (/opt/local-ssd/buildkite/builds/kb-n2-4-f27d0989dbf6d72c/elastic/kibana-hourly/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16) {
  actual: '[\n' +
    '  {\n' +
    '    "color": "#ebf4f2"\n' +
    '    "name": "demo-stack-client-01"\n' +
    '    "value": 0.6\n' +
    '  }\n' +
    '  {\n' +
    '    "color": "#aed3ca"\n' +
    '    "name": "demo-stack-haproxy-01"\n' +
    '    "value": 0.8\n' +
    '  }\n' +
    '  {\n' +
    '    "color": "#85bdb1"\n' +
    '    "name": "demo-stack-redis-01"\n' +
    '    "value": 1\n' +
    '  }\n' +
    '  {\n' +
    '    "color": "#70b2a4"\n' +
    '    "name": "demo-stack-nginx-01"\n' +
    '    "value": 1.1\n' +
    '  }\n' +
    '  {\n' +
    '    "color": "#5aa898"\n' +
    '    "name": "demo-stack-mysql-01"\n' +
    '    "value": 1.2\n' +
    '  }\n' +
    '  {\n' +
    '    "color": "#209280"\n' +
    '    "name": "demo-stack-apache-01"\n' +
    '    "value": 1.4\n' +
    '  }\n' +
    ']',
  expected: '[\n' +
    '  {\n' +
    '    "color": "#6092c0"\n' +
    '    "name": "demo-stack-client-01"\n' +
    '    "value": 0.6\n' +
    '  }\n' +
    '  {\n' +
    '    "color": "#b5c9df"\n' +
    '    "name": "demo-stack-haproxy-01"\n' +
    '    "value": 0.8\n' +
    '  }\n' +
    '  {\n' +
    '    "color": "#f1d9b9"\n' +
    '    "name": "demo-stack-redis-01"\n' +
    '    "value": 1\n' +
    '  }\n' +
    '  {\n' +
    '    "color": "#eec096"\n' +
    '    "name": "demo-stack-nginx-01"\n' +
    '    "value": 1.1\n' +
    '  }\n' +
    '  {\n' +
    '    "color": "#eba47a"\n' +
    '    "name": "demo-stack-mysql-01"\n' +
    '    "value": 1.2\n' +
    '  }\n' +
    '  {\n' +
    '    "color": "#e7664c"\n' +
    '    "name": "demo-stack-apache-01"\n' +
    '    "value": 1.4\n' +
    '  }\n' +
    ']',
  showDiff: true
}

First failure: CI Build - main

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Nov 13, 2021
@botelastic botelastic bot added the needs-team Issues missing a team label label Nov 13, 2021
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@mshustov mshustov added the Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services label Nov 15, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI)

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@mistic
Copy link
Member

mistic commented Nov 16, 2021

Skipped at 88624ee

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - 8.0

@miltonhultgren
Copy link
Contributor

@weltenwort Seems wrapping in retry didn't do the trick?

@weltenwort
Copy link
Member

Hm, the screenshot indicates that the new color was indeed not applied. So maybe there's another timing issue when trying to change the palette?

        await pageObjects.infraHome.openLegendControls();
        await pageObjects.infraHome.changePalette('temperature');
        await pageObjects.infraHome.applyLegendControls();

Hard to tell without a local reproduction. But adding the retries to the expectation was an improvement nonetheless.

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:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
Projects
None yet
6 participants