prometheus/rules
Julien Pivotto 9f2022e6f6 rules: fix flaky TestDependencyMapUpdatesOnGroupUpdate
The test called ruleManager.start() before ruleManager.Update(), so the
group goroutine skipped the <-m.block wait and began evaluating
immediately. The fixture has a recording rule, and if the first 10s
tick fired before defer ruleManager.Stop() ran, Eval was called with a
nil QueryFunc (and nil Appendable), causing a nil pointer dereference.

Fix by providing Appendable, Queryable, and QueryFunc in the
ManagerOptions, matching the pattern used by other tests that load real
rule files and start the manager.

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-04-27 16:28:28 +02:00
..
fixtures Optimise concurrent rule evaluation for rules querying ALERTS and ALERTS_FOR_STATE (#17064) 2025-08-21 16:57:57 +02:00
alerting.go rules: skip template labels when querying ALERTS_FOR_STATE for restore 2026-03-26 15:06:01 +01:00
alerting_test.go rules: add goroutine dump and increase timeout in template test 2026-03-31 17:53:52 +02:00
group.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
group_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
manager.go rulefmt: warn when multi-document rule files are detected (#18114) 2026-04-09 14:40:18 +02:00
manager_test.go rules: fix flaky TestDependencyMapUpdatesOnGroupUpdate 2026-04-27 16:28:28 +02:00
origin.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
origin_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
recording.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
recording_test.go Refactor parse.go into an instance-based Parser interface 2026-02-11 11:21:49 +01:00
rule.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00