prometheus/rules
Oleg Zaytsev 4c1e71fa0b
Reduce the flakiness of TestAsyncRuleEvaluation (#14300)
* Reduce the flakiness of TestAsyncRuleEvaluation

This tests sleeps for 15 millisecond per rule group, and then comprares
the entire execution time to be smaller than a multiple of that delay.

The ruleCount is 6, so it assumes that the test will come to the
assertions in less than 90ms.

Meanwhile, the Github's Windows runner:
- ...Huh, oh? What? How much time? milliwhat? Sorry I don't speak that.

TL;DR, this increases the delay to 250 millisecond. This won't prevent
the test from being flaky, but will reduce the flakiness by several
orders of magnitude and hopefully won't be an issue anymore.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>

* Make tests parallel

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>

---------

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
2024-06-14 15:02:46 +02:00
..
fixtures Block until all rules, both sync & async, have completed evaluating 2024-01-29 10:08:41 +01:00
alerting.go Feature: Allow configuration of a rule evaluation delay (#14061) 2024-05-30 11:49:50 +01:00
alerting_test.go Feature: Allow configuration of a rule evaluation delay (#14061) 2024-05-30 11:49:50 +01:00
group.go Fix Group.Equals() to take in account the new queryOffset too (#14273) 2024-06-06 18:47:36 +01:00
group_test.go Fix Group.Equals() to take in account the new queryOffset too (#14273) 2024-06-06 18:47:36 +01:00
manager.go Feature: Allow configuration of a rule evaluation delay (#14061) 2024-05-30 11:49:50 +01:00
manager_test.go Reduce the flakiness of TestAsyncRuleEvaluation (#14300) 2024-06-14 15:02:46 +02:00
origin.go Decouple ruler dependency controller from concurrency controller 2024-02-02 10:06:37 +01:00
origin_test.go Feature: Allow configuration of a rule evaluation delay (#14061) 2024-05-30 11:49:50 +01:00
recording.go Feature: Allow configuration of a rule evaluation delay (#14061) 2024-05-30 11:49:50 +01:00
recording_test.go Feature: Allow configuration of a rule evaluation delay (#14061) 2024-05-30 11:49:50 +01:00
rule.go Feature: Allow configuration of a rule evaluation delay (#14061) 2024-05-30 11:49:50 +01:00