Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

charleskorn
Copy link
Contributor

sum and avg could return incorrect results, or, in the case of avg, panic, if mixed custom and exponential buckets were encountered at a single timestamp, or if incompatible custom buckets were encountered at a single timestamp.

…ncompatible custom buckets, produces incorrect results

Signed-off-by: Charles Korn <[email protected]>
…ncompatible custom buckets, produces incorrect results or panics

Signed-off-by: Charles Korn <[email protected]>
Signed-off-by: Charles Korn <[email protected]>
@krajorama
Copy link
Member

Thank you. Related to #13494

charleskorn added a commit to grafana/mimir that referenced this pull request Aug 8, 2024
…tions (#8924)

* Enable histogram test cases.

* Enable test cases we now support

* Emit warnings from `rate` and `sum` if a custom and exponential buckets are seen at the same timestamp, or if incompatible custom buckets are seen at the same timestamp

* Add changelog entry

# Conflicts:
#	CHANGELOG.md

* Address PR feedback: move custom bucket check earlier in `rate`

* Address PR feedback: clarify comments

* Address PR feedback: extend test case range to include samples after an ignored sample

* Skip `TestAnnotations` test case that fails on Prometheus' engine due to prometheus/prometheus#14609

* Skip test cases that fail on Prometheus' engine due to prometheus/prometheus#14611

* Fix failing test
Copy link
Member

@beorn7 beorn7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much. Looks good, just ideas about naming and more tests.

@charleskorn charleskorn requested a review from beorn7 August 9, 2024 07:21
Copy link
Contributor

@zenador zenador left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thank you!

beorn7
beorn7 previously approved these changes Aug 13, 2024
Copy link
Member

@beorn7 beorn7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much.

@beorn7
Copy link
Member

beorn7 commented Aug 13, 2024

@charleskorn could you resolve the merge conflicts once more? I'll try to merge ASAP after that.

…stograms

# Conflicts:
#	promql/promqltest/testdata/native_histograms.test
@charleskorn
Copy link
Contributor Author

@charleskorn could you resolve the merge conflicts once more? I'll try to merge ASAP after that.

Yep, done.

@beorn7 beorn7 merged commit 9849418 into prometheus:main Aug 14, 2024
charleskorn added a commit to grafana/mimir that referenced this pull request Sep 2, 2024
krajorama added a commit to grafana/mimir that referenced this pull request Sep 2, 2024
#9156)

* Update mimir-prometheus

Signed-off-by: György Krajcsovits <[email protected]>

* DefaultChunkedReadLimit was moved from storage to config

Signed-off-by: György Krajcsovits <[email protected]>

* Adopt to new remote read client interface

Signed-off-by: György Krajcsovits <[email protected]>

* Update otlp generate code

Signed-off-by: György Krajcsovits <[email protected]>

* OTLP: ignore annotations for now

Signed-off-by: György Krajcsovits <[email protected]>

* Remote read Content-Type unset in tests

Signed-off-by: György Krajcsovits <[email protected]>

* Use client_golang 1.19.1

Signed-off-by: György Krajcsovits <[email protected]>

* Update engine test cases from upstream

Signed-off-by: György Krajcsovits <[email protected]>

* Mark unsupported engine expressions

Signed-off-by: György Krajcsovits <[email protected]>

* Disable test that assumes the newly added `promql-delayed-name-removal` flag is enabled

* Re-enable running MQE test cases against Prometheus' engine now that prometheus/prometheus#14611 has been merged

* Updates due to review

Add changelog.

Signed-off-by: György Krajcsovits <[email protected]>

---------

Signed-off-by: György Krajcsovits <[email protected]>
Co-authored-by: Charles Korn <[email protected]>
grafanabot pushed a commit to grafana/mimir that referenced this pull request Sep 2, 2024
#9156)

* Update mimir-prometheus

Signed-off-by: György Krajcsovits <[email protected]>

* DefaultChunkedReadLimit was moved from storage to config

Signed-off-by: György Krajcsovits <[email protected]>

* Adopt to new remote read client interface

Signed-off-by: György Krajcsovits <[email protected]>

* Update otlp generate code

Signed-off-by: György Krajcsovits <[email protected]>

* OTLP: ignore annotations for now

Signed-off-by: György Krajcsovits <[email protected]>

* Remote read Content-Type unset in tests

Signed-off-by: György Krajcsovits <[email protected]>

* Use client_golang 1.19.1

Signed-off-by: György Krajcsovits <[email protected]>

* Update engine test cases from upstream

Signed-off-by: György Krajcsovits <[email protected]>

* Mark unsupported engine expressions

Signed-off-by: György Krajcsovits <[email protected]>

* Disable test that assumes the newly added `promql-delayed-name-removal` flag is enabled

* Re-enable running MQE test cases against Prometheus' engine now that prometheus/prometheus#14611 has been merged

* Updates due to review

Add changelog.

Signed-off-by: György Krajcsovits <[email protected]>

---------

Signed-off-by: György Krajcsovits <[email protected]>
Co-authored-by: Charles Korn <[email protected]>
(cherry picked from commit 61634ee)
krajorama added a commit to grafana/mimir that referenced this pull request Sep 2, 2024
#9156) (#9176)

* Update mimir-prometheus

Signed-off-by: György Krajcsovits <[email protected]>

* DefaultChunkedReadLimit was moved from storage to config

Signed-off-by: György Krajcsovits <[email protected]>

* Adopt to new remote read client interface

Signed-off-by: György Krajcsovits <[email protected]>

* Update otlp generate code

Signed-off-by: György Krajcsovits <[email protected]>

* OTLP: ignore annotations for now

Signed-off-by: György Krajcsovits <[email protected]>

* Remote read Content-Type unset in tests

Signed-off-by: György Krajcsovits <[email protected]>

* Use client_golang 1.19.1

Signed-off-by: György Krajcsovits <[email protected]>

* Update engine test cases from upstream

Signed-off-by: György Krajcsovits <[email protected]>

* Mark unsupported engine expressions

Signed-off-by: György Krajcsovits <[email protected]>

* Disable test that assumes the newly added `promql-delayed-name-removal` flag is enabled

* Re-enable running MQE test cases against Prometheus' engine now that prometheus/prometheus#14611 has been merged

* Updates due to review

Add changelog.

Signed-off-by: György Krajcsovits <[email protected]>

---------

Signed-off-by: György Krajcsovits <[email protected]>
Co-authored-by: Charles Korn <[email protected]>
(cherry picked from commit 61634ee)

Co-authored-by: George Krajcsovits <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants