Skip to content

Conversation

mimir-vendoring[bot]
Copy link
Contributor

@mimir-vendoring mimir-vendoring bot commented Jul 16, 2025

Update mimir-prometheus dependency

This PR was automatically created by the update-vendored-mimir-prometheus.yml workflow.

Details:

Note to reviewer:

There are two manual changes to make it mergeable:

@mimir-vendoring mimir-vendoring bot added the vendored-mimir-prometheus-update Automated updated created by the github action update-mimir-prometheus label Jul 16, 2025
@mimir-vendoring mimir-vendoring bot requested review from stevesg and a team as code owners July 16, 2025 02:44
@Konstantinov-Innokentii
Copy link
Contributor

I'm on it, had no time to take a look due to pages/incident.

mimir-github-bot bot and others added 3 commits July 17, 2025 18:51
…rWithChunkSize

The latter was removed from upstream prometheus.

Signed-off-by: Innokentii Konstantinov <innokenty.konstantinov@grafana.com>
Signed-off-by: Innokentii Konstantinov <innokenty.konstantinov@grafana.com>
@Konstantinov-Innokentii Konstantinov-Innokentii force-pushed the bot/main/update-mimir-prometheus-acace3cd1e02-202507160242 branch from 72c3dd8 to b88e3b6 Compare July 17, 2025 10:51
Preserve original first point histogram count before schema reset handling to fix calculateHistogramRate calculations.
This fixes
test failures when histograms have incompatible schemas .

Signed-off-by: Innokentii Konstantinov <innokenty.konstantinov@grafana.com>
@Konstantinov-Innokentii Konstantinov-Innokentii force-pushed the bot/main/update-mimir-prometheus-acace3cd1e02-202507160242 branch from 54631c9 to 7db1868 Compare July 17, 2025 14:25
@@ -1969,6 +1969,7 @@ func runAnnotationTests(t *testing.T, testCases map[string]annotationTestCase) {
results := make([]*promql.Result, 0, 2)

for engineName, engine := range engines {
fmt.Println("engineName", engineName)
Copy link
Contributor

Choose a reason for hiding this comment

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

It's already removed :)

Signed-off-by: Innokentii Konstantinov <innokenty.konstantinov@grafana.com>
@@ -245,7 +258,6 @@ func calculateFloatRate(isCounter, isRate bool, rangeStart, rangeEnd int64, rang
averageDurationBetweenSamples := sampledInterval / float64(count-1)

extrapolationThreshold := averageDurationBetweenSamples * 1.1
extrapolateToInterval := sampledInterval
Copy link
Contributor

Choose a reason for hiding this comment

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

Changes in calculateFloatRate here just to keep this both funcs in sync with changes from prometheus/prometheus#16828

Copy link
Contributor

@dimitarvdimitrov dimitarvdimitrov left a comment

Choose a reason for hiding this comment

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

SGTM, but i didn't review the promQL changes in depth. lmk if you can't get anyone else from the MQE team to take a look and I will take a deeper look

Copy link
Contributor

Choose a reason for hiding this comment

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

do you know why these files keep changing? is this really the testing changes for 30 lines of code?

Screenshot 2025-07-17 at 20 20 17

anyways, I'd defer to someone else about the changes here and in streamingpromql

Copy link
Contributor

@Konstantinov-Innokentii Konstantinov-Innokentii Jul 18, 2025

Choose a reason for hiding this comment

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

In this case, durations are comments added, and functions changes are consequence of the prometheus/prometheus#16828

Copy link
Contributor

@Konstantinov-Innokentii Konstantinov-Innokentii Jul 18, 2025

Choose a reason for hiding this comment

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

is this really the testing changes for 30 lines of code?

Sorry, didn't get it. You mean promql/testdata changes in upstream?

Copy link
Contributor

Choose a reason for hiding this comment

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

durations.go only had documentation changes prometheus/prometheus#16863

functions.go had a change that affects just a few tests in native_histograms.text prometheus/prometheus#16828

The majority of the changes actually come from changes to the tests themselves: prometheus/prometheus#16585

Copy link
Contributor

@krajorama krajorama left a comment

Choose a reason for hiding this comment

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

PromQL related changes LGTM.

Co-authored-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
@Konstantinov-Innokentii Konstantinov-Innokentii merged commit 79f108a into main Jul 21, 2025
31 checks passed
@Konstantinov-Innokentii Konstantinov-Innokentii deleted the bot/main/update-mimir-prometheus-acace3cd1e02-202507160242 branch July 21, 2025 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vendored-mimir-prometheus-update Automated updated created by the github action update-mimir-prometheus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants