This PR extends MQE's tests to aid in catching native histogram use-after-return bugs, and fixes some issues they've uncovered.
Now, during tests in the streamingpromql package, any histograms in slices returned to the HPoint or FloatHistogram pools will immediately be mutated. This ensures that any possible use-after-return bugs are triggered deterministically.
Which issue(s) this PR fixes or relates to
(none)
Checklist
[x] Tests updated.
[n/a] Documentation added.
[x] CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
What this PR does
This PR extends MQE's tests to aid in catching native histogram use-after-return bugs, and fixes some issues they've uncovered.
Now, during tests in the
streamingpromql
package, any histograms in slices returned to theHPoint
orFloatHistogram
pools will immediately be mutated. This ensures that any possible use-after-return bugs are triggered deterministically.Which issue(s) this PR fixes or relates to
(none)
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
.about-versioning.md
updated with experimental features.