Skip to content

Commit

Permalink
Flaky test: Detection rule telemetry elastic#162407 (elastic#162681)
Browse files Browse the repository at this point in the history
## Summary

Original ticket: elastic#156088

It looks like flakiness happens due to another rule from previous test
case being scheduled by alerting framework and running even after we
deleted it (since we called delete rule after it was scheduled). That
rule scheduled earlier produces some unexpected artifacts in metrics,
specifically `stats.detection_rules.detection_rule_status` where
occasionally see

<img width="1255" alt="Screenshot 2023-07-25 at 15 13 29"
src="https://github.com/elastic/kibana/assets/2700761/5d1cc334-25b5-4bf2-8822-c9858a0b72bf">

Since, in this test case the rule is disabled, we should not see this
data.

As a fix, we decided to test against specific metrics attributes
`stats.detection_rules.detection_rule_usage` which we expect being
updated.
  • Loading branch information
e40pud authored Jul 31, 2023
1 parent 0e081d8 commit 9036b15
Showing 1 changed file with 447 additions and 726 deletions.
Loading

0 comments on commit 9036b15

Please sign in to comment.