Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky test: TestRuler_rules_special_characters #6546

Open
dsabsay opened this issue Jan 24, 2025 · 1 comment · May be fixed by #6549
Open

Flaky test: TestRuler_rules_special_characters #6546

dsabsay opened this issue Jan 24, 2025 · 1 comment · May be fixed by #6549
Labels
component/rules Bits & bobs todo with rules and alerts: the ruler, config service etc. type/flaky-test

Comments

@dsabsay
Copy link
Contributor

dsabsay commented Jan 24, 2025

--- 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

@dsabsay
Copy link
Contributor Author

dsabsay commented Jan 24, 2025

I am working on this.

@dosubot dosubot bot added component/rules Bits & bobs todo with rules and alerts: the ruler, config service etc. type/flaky-test labels Jan 24, 2025
@dsabsay dsabsay linked a pull request Jan 24, 2025 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/rules Bits & bobs todo with rules and alerts: the ruler, config service etc. type/flaky-test
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant