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

TestPrometheusCompatibilityQueryFuzz test failure with bottomk #6323

Open
yeya24 opened this issue Nov 7, 2024 · 0 comments
Open

TestPrometheusCompatibilityQueryFuzz test failure with bottomk #6323

yeya24 opened this issue Nov 7, 2024 · 0 comments

Comments

@yeya24
Copy link
Contributor

yeya24 commented Nov 7, 2024

Describe the bug
TestPrometheusCompatibilityQueryFuzz test failed.

See https://github.com/cortexproject/cortex/actions/runs/11732101325/job/32683790091?pr=6311#step:10:409

range query: bottomk by (job) (pi(), days_in_month(-{__name__="test_series_a"} offset 1m17s))

Cortex Response:

res1: {job="test", series="0", status_code="200"} =>
        31 @[1731012111.347]
        31 @[1731012171.347]
        31 @[1731012231.347]
        31 @[1731012291.347]
        31 @[1731012351.347]
        31 @[1731012[411](https://github.com/cortexproject/cortex/actions/runs/11732101325/job/32683790091?pr=6311#step:10:412).347]
        31 @[1731012471.347]
        31 @[1731012531.347]
        31 @[1731012591.347]
        31 @[1731012651.347]
        31 @[1731012711.347]
        31 @[1731012771.347]
        31 @[1731012831.347]
        31 @[1731012891.347]
        31 @[1731012951.347]
        31 @[1731013011.347]
        31 @[1731013071.347]
        31 @[1731013131.347]
        31 @[1731013191.347]
        31 @[1731013251.347]
        31 @[1731013311.347]
        31 @[1731013371.347]
        31 @[1731013[431](https://github.com/cortexproject/cortex/actions/runs/11732101325/job/32683790091?pr=6311#step:10:432).347]
        31 @[1731013491.347]
        31 @[1731013551.347]
        31 @[1731013611.347]
        31 @[1731013671.347]
        31 @[1731013731.347]
        31 @[1731013791.347]
        31 @[1731013851.347]
        31 @[1731013911.347]
        31 @[1731013971.347]
        {job="test", series="0", status_code="400"} =>
...

Prometheus response: 

res2: {job="test", series="0", status_code="500"} =>
        31 @[1731012771.347]
        31 @[1731012831.347]
        31 @[1731012891.347]
        31 @[1731012951.347]
        31 @[1731013011.347]
        31 @[1731013071.347]
        31 @[1731013131.347]
        31 @[1731013191.347]
        31 @[1731013251.347]
        31 @[1731013311.347]
        31 @[1731013371.347]
        31 @[1731013431.347]
        31 @[1731013491.347]
        31 @[1731013551.347]
        31 @[1731013611.347]
        31 @[1731013671.347]
        31 @[1731013731.347]
        31 @[1731013791.347]
        31 @[1731013851.347]
        31 @[1731013911.347]
        31 @[1731013971.347]
        31 @[1731014031.347]
        {job="test", series="0", status_code="502"} =>
...

More Context

It might be related to prometheus/prometheus#14083 as Prometheus starts to always sort matrix response by labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant