elastic / kibana

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

Failing test: APM Deployment Agnostic - serverless Transaction groups alerts when data is loaded with avg transaction duration alerts returns the correct number of alert counts #201531

Closed rmyz closed 1 day ago

rmyz commented 3 days ago

The following test Transaction groups alerts when data is loaded with avg transaction duration alerts returns the correct number of alert counts under x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/transactions/transactions_groups_alerts.spec.ts is flaky and it fails on MKI.

Failure details

Transaction groups alerts when data is loaded with avg transaction duration alerts returns the correct number of alert counts

Error message

Error: expected [ { name: 'GET /api/failed/request', alertsCount: 0 },
  { name: 'GET /api/request/p95', alertsCount: 0 },
  { name: 'GET /api/request/p99', alertsCount: 0 },
  { name: 'GET /api/product/list', alertsCount: 1 },
  { name: 'GET /api/request/avg', alertsCount: 1 } ] to sort of equal [ { name: 'GET /api/failed/request', alertsCount: 0 },
  { name: 'GET /api/request/p95', alertsCount: 0 },
  { name: 'GET /api/request/p99', alertsCount: 0 },
  { name: 'GET /api/request/avg', alertsCount: 1 } ]
    at Assertion.assert (expect.js:100:11)
    at Assertion.eql (expect.js:244:8)
    at Context. (transactions_groups_alerts.spec.ts:222:31)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Object.apply (wrap_function.js:74:16) {
  actual: '[\n' +
    '  {\n' +
    '    "alertsCount": 0\n' +
    '    "name": "GET /api/failed/request"\n' +
    '  }\n' +
    '  {\n' +
    '    "alertsCount": 0\n' +
    '    "name": "GET /api/request/p95"\n' +
    '  }\n' +
    '  {\n' +
    '    "alertsCount": 0\n' +
    '    "name": "GET /api/request/p99"\n' +
    '  }\n' +
    '  {\n' +
    '    "alertsCount": 1\n' +
    '    "name": "GET /api/product/list"\n' +
    '  }\n' +
    '  {\n' +
    '    "alertsCount": 1\n' +
    '    "name": "GET /api/request/avg"\n' +
    '  }\n' +
    ']',
  expected: '[\n' +
    '  {\n' +
    '    "alertsCount": 0\n' +
    '    "name": "GET /api/failed/request"\n' +
    '  }\n' +
    '  {\n' +
    '    "alertsCount": 0\n' +
    '    "name": "GET /api/request/p95"\n' +
    '  }\n' +
    '  {\n' +
    '    "alertsCount": 0\n' +
    '    "name": "GET /api/request/p99"\n' +
    '  }\n' +
    '  {\n' +
    '    "alertsCount": 1\n' +
    '    "name": "GET /api/request/avg"\n' +
    '  }\n' +
    ']',
  showDiff: true
}

A proper fix will be needed in order to close this ticket.

elasticmachine commented 3 days ago

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)