Repository navigation
Commit 1317cd0
Fix flaky TestGetRules: stop scheduled evaluations from racing pre-evaluation state assertions (#7857)
* Initial plan
* Fix flaky TestGetRules by preventing scheduled rule evaluation
The unknown-state and unknown/ok-health filter subtests assert the
transient pre-evaluation state of rules. Build the test rulers with a
no-op GroupEvalIterationFunc so a scheduled group evaluation (slotted
at a hash-based offset within the group interval) cannot fire within
the test window and move rules out of StateUnknown/HealthUnknown.
Also rename the subtest to match the filter it actually exercises.
Signed-off-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: CharlieTLe <3375195+CharlieTLe@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: CharlieTLe <3375195+CharlieTLe@users.noreply.github.com>
Co-authored-by: Charlie Le <charlie_le@apple.com>1 parent a3773c2 commit 1317cd0
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
917 | 917 | | |
918 | 918 | | |
919 | 919 | | |
920 | | - | |
| 920 | + | |
921 | 921 | | |
922 | 922 | | |
923 | | - | |
| 923 | + | |
924 | 924 | | |
925 | 925 | | |
926 | 926 | | |
| |||
1363 | 1363 | | |
1364 | 1364 | | |
1365 | 1365 | | |
1366 | | - | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
1367 | 1373 | | |
1368 | 1374 | | |
1369 | 1375 | | |
| |||
0 commit comments