-
Notifications
You must be signed in to change notification settings - Fork 832
Closed
Labels
component/rulesBits & bobs todo with rules and alerts: the ruler, config service etc.Bits & bobs todo with rules and alerts: the ruler, config service etc.type/flaky-test
Description
--- FAIL: TestRuler_rules_special_characters (0.06s)
api_test.go:217:
Error Trace: /__w/cortex/cortex/pkg/ruler/api_test.go:217
Error: Not equal:
expected: "{\"status\":\"success\",\"data\":{\"groups\":[{\"name\":\")(_+?/|group1+/?\",\"file\":\")(_+?/|namespace1+/?\",\"rules\":[{\"name\":\"UP_RULE\",\"query\":\"up\",\"labels\":{},\"health\":\"unknown\",\"lastError\":\"\",\"type\":\"recording\",\"lastEvaluation\":\"0001-01-01T00:00:00Z\",\"evaluationTime\":0},{\"state\":\"inactive\",\"name\":\"UP_ALERT\",\"query\":\"up \\u003c 1\",\"duration\":0,\"keepFiringFor\":0,\"labels\":{},\"annotations\":{},\"alerts\":[],\"health\":\"unknown\",\"lastError\":\"\",\"type\":\"alerting\",\"lastEvaluation\":\"0001-01-01T00:00:00Z\",\"evaluationTime\":0}],\"interval\":10,\"lastEvaluation\":\"0001-01-01T00:00:00Z\",\"evaluationTime\":0,\"limit\":0}]}}"
actual : "{\"status\":\"success\",\"data\":{\"groups\":[{\"name\":\")(_+?/|group1+/?\",\"file\":\")(_+?/|namespace1+/?\",\"rules\":[{\"name\":\"UP_RULE\",\"query\":\"up\",\"labels\":{},\"health\":\"ok\",\"lastError\":\"\",\"type\":\"recording\",\"lastEvaluation\":\"2025-01-07T23:11:31.187313641Z\",\"evaluationTime\":0.000727462},{\"state\":\"inactive\",\"name\":\"UP_ALERT\",\"query\":\"up \\u003c 1\",\"duration\":0,\"keepFiringFor\":0,\"labels\":{},\"annotations\":{},\"alerts\":[],\"health\":\"ok\",\"lastError\":\"\",\"type\":\"alerting\",\"lastEvaluation\":\"2025-01-07T23:11:31.188061562Z\",\"evaluationTime\":0.000665497}],\"interval\":10,\"lastEvaluation\":\"2025-01-07T23:11:31.187284648Z\",\"evaluationTime\":0.001453932,\"limit\":0}]}}"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-{"status":"success","data":{"groups":[{"name":")(_+?/|group1+/?","file":")(_+?/|namespace1+/?","rules":[{"name":"UP_RULE","query":"up","labels":{},"health":"unknown","lastError":"","type":"recording","lastEvaluation":"0001-01-01T00:00:00Z","evaluationTime":0},{"state":"inactive","name":"UP_ALERT","query":"up \u003c 1","duration":0,"keepFiringFor":0,"labels":{},"annotations":{},"alerts":[],"health":"unknown","lastError":"","type":"alerting","lastEvaluation":"0001-01-01T00:00:00Z","evaluationTime":0}],"interval":10,"lastEvaluation":"0001-01-01T00:00:00Z","evaluationTime":0,"limit":0}]}}
+{"status":"success","data":{"groups":[{"name":")(_+?/|group1+/?","file":")(_+?/|namespace1+/?","rules":[{"name":"UP_RULE","query":"up","labels":{},"health":"ok","lastError":"","type":"recording","lastEvaluation":"2025-01-07T23:11:31.187313641Z","evaluationTime":0.000727462},{"state":"inactive","name":"UP_ALERT","query":"up \u003c 1","duration":0,"keepFiringFor":0,"labels":{},"annotations":{},"alerts":[],"health":"ok","lastError":"","type":"alerting","lastEvaluation":"2025-01-07T23:11:31.188061562Z","evaluationTime":0.000665497}],"interval":10,"lastEvaluation":"2025-01-07T23:11:31.187284648Z","evaluationTime":0.001453932,"limit":0}]}}
Test: TestRuler_rules_special_characters
Seen here: https://github.com/cortexproject/cortex/actions/runs/12660798931/job/35282733186
Metadata
Metadata
Assignees
Labels
component/rulesBits & bobs todo with rules and alerts: the ruler, config service etc.Bits & bobs todo with rules and alerts: the ruler, config service etc.type/flaky-test