-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 promtail test #1520
Comments
@cyriltovena Is my understanding correct? If we have below loglines
After Pipeline Processing we should have entries like below.
In this run https://circleci.com/gh/grafana/loki/16854?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-checks-link, pipeline has returned the processed lines in reverse and that's why the error. If there is no order for Pipeline processing then the logic should be changed here https://github.com/grafana/loki/blob/master/pkg/promtail/promtail_test.go#L133-L156. |
It should be ordered not sure what you mean |
@cyriltovena The expected labels and entries are Labels
Returned Labels
Entries
Returned Entries
So, what I meant was if you see the expected labels and the returned labels it's actually in reversed order. So, pipeline has processed second log entry first and then the first log entry. I guess this is not the expected behaviour |
For sure that test is a big one there must be a race somewhere. |
I think the test is using files on the filesystem so may be one file is read before causing the race, I would be ok to not verify order but only assert exact entries expected. We have other tests that cover the ordering. |
@cyriltovena The entries belong to the same file.
However, I will work on this to change the logic of matching expected labels/entries and returned labels/entries |
I am still confused. If this part of the test(https://github.com/grafana/loki/blob/master/pkg/promtail/promtail_test.go#L218-L222) is working correctly then even this(https://github.com/grafana/loki/blob/master/pkg/promtail/promtail_test.go#L225-L236) should work as well. If there is no order in processing the entries, maybe something to do with pipeline stage? |
Describe the bug
It seems that a flaky promtail test is causing multiple CI to fail.
To Reproduce
https://circleci.com/gh/grafana/loki/16854?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-checks-link
The text was updated successfully, but these errors were encountered: