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

prometheus: update to 3.0.1. #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions srcpkgs/prometheus/patches/TestDropOldTimeSeries.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
commit 5935d82988b6f4d36ffc7eaf1a954d662d35e837
Author: Joel Beckmeyer <[email protected]>
Date: Mon Dec 16 08:41:50 2024 -0500

fix TestDropOldTimeSeries on 32-bit

Signed-off-by: Joel Beckmeyer <[email protected]>

diff --git a/storage/remote/queue_manager_test.go b/storage/remote/queue_manager_test.go
index 4b7c5a4e9..2dba17832 100644
--- a/storage/remote/queue_manager_test.go
+++ b/storage/remote/queue_manager_test.go
@@ -2073,7 +2073,7 @@ func createTimeseriesWithOldSamples(numSamples, numSeries int, extraLabels ...la
for j := 0; j < numSamples/2; j++ {
sample := record.RefSample{
Ref: chunks.HeadSeriesRef(i),
- T: int64(int(time.Now().UnixMilli()) + j),
+ T: time.Now().UnixMilli() + int64(j),
V: float64(i),
}
samples = append(samples, sample)
Loading
Loading