Skip to content

Commit

Permalink
[APM] Unskip APM alerting tests (elastic#188006)
Browse files Browse the repository at this point in the history
fixes [elastic#176948](elastic#176948)
fixes [elastic#177061](elastic#177061)
fixes [elastic#177104](elastic#177104)

## Summary

I managed to reproduce the problem when `error_grouping_key` was null.
It was probably fixed here elastic#184642


https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/6512

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
crespocarlos and elasticmachine committed Jul 11, 2024
1 parent 976fed6 commit 5df7bb8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {

after(() => apmSynthtraceEsClient.clean());

// FLAKY: https://github.com/elastic/kibana/issues/176948
describe.skip('create rule without kql filter', () => {
describe('create rule without kql filter', () => {
let ruleId: string;
let alerts: ApmAlertFields[];
let actionId: string;
Expand Down Expand Up @@ -175,10 +174,10 @@ export default function ApiTest({ getService }: FtrProviderContext) {
environment: 'production',
interval: '1 hr',
reason:
'Error count is 30 in the last 1 hr for service: opbeans-php, env: production, name: tx-php, error key: c85df8159a74b47b461d6ddaa6ba7da38cfc3e74019aef66257d10df74adeb99, error name: a php error. Alert when > 1.',
'Error count is 30 in the last 1 hr for service: opbeans-php, env: production, name: tx-php, error key: 000000000000000000000a php error, error name: a php error. Alert when > 1.',
serviceName: 'opbeans-php',
transactionName: 'tx-php',
errorGroupingKey: 'c85df8159a74b47b461d6ddaa6ba7da38cfc3e74019aef66257d10df74adeb99',
errorGroupingKey: '000000000000000000000a php error',
errorGroupingName: 'a php error',
threshold: '1',
triggerValue: '30',
Expand All @@ -192,8 +191,8 @@ export default function ApiTest({ getService }: FtrProviderContext) {
const alertReasons = [alerts[0]['kibana.alert.reason'], alerts[1]['kibana.alert.reason']];

expect(alertReasons).to.eql([
'Error count is 30 in the last 1 hr for service: opbeans-php, env: production, name: tx-php, error key: c85df8159a74b47b461d6ddaa6ba7da38cfc3e74019aef66257d10df74adeb99, error name: a php error. Alert when > 1.',
'Error count is 15 in the last 1 hr for service: opbeans-java, env: production, name: tx-java, error key: b6a4ac83620b34ae44dd98a13e144782f88698f827af7edb10690c5e6e7d8597, error name: a java error. Alert when > 1.',
'Error count is 30 in the last 1 hr for service: opbeans-php, env: production, name: tx-php, error key: 000000000000000000000a php error, error name: a php error. Alert when > 1.',
'Error count is 15 in the last 1 hr for service: opbeans-java, env: production, name: tx-java, error key: 00000000000000000000a java error, error name: a java error. Alert when > 1.',
]);
});

Expand Down Expand Up @@ -252,8 +251,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
});
});

// FLAKY: https://github.com/elastic/kibana/issues/176964
describe.skip('create rule with kql filter for opbeans-php', () => {
describe('create rule with kql filter for opbeans-php', () => {
let ruleId: string;

before(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
await apmSynthtraceEsClient.clean();
});

// FLAKY: https://github.com/elastic/kibana/issues/176996
describe.skip('create rule for opbeans-java without kql filter', () => {
describe('create rule for opbeans-java without kql filter', () => {
let ruleId: string;
let actionId: string;
let alerts: ApmAlertFields[];
Expand Down Expand Up @@ -188,8 +187,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
});
});

// FLAKY: https://github.com/elastic/kibana/issues/177061
describe.skip('create rule for opbeans-node using kql filter', () => {
describe('create rule for opbeans-node using kql filter', () => {
let ruleId: string;
let alerts: ApmAlertFields[];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ export default function ApiTest({ getService }: FtrProviderContext) {
await apmSynthtraceEsClient.clean();
});

// FLAKY: https://github.com/elastic/kibana/issues/177104
describe('create rule without kql query', () => {
let ruleId: string;
let actionId: string;
Expand Down Expand Up @@ -197,7 +196,6 @@ export default function ApiTest({ getService }: FtrProviderContext) {
});
});

// FLAKY: https://github.com/elastic/kibana/issues/177108
describe('create rule with kql query', () => {
let ruleId: string;
let alerts: ApmAlertFields[];
Expand Down

0 comments on commit 5df7bb8

Please sign in to comment.