Skip to content

Commit 8282a2f

Browse files
authored
Upgrade Prometheus version to include loser tree postings improvement (#5711)
* upgrade Thanos version to include loser tree postings improvement Signed-off-by: Ben Ye <[email protected]> * update golangci-lint version Signed-off-by: Ben Ye <[email protected]> * disable revive Signed-off-by: Ben Ye <[email protected]> * fix golint issue Signed-off-by: Ben Ye <[email protected]> * fix lint again Signed-off-by: Ben Ye <[email protected]> * update promqlsmith dependency Signed-off-by: Ben Ye <[email protected]> * fix build Signed-off-by: Ben Ye <[email protected]> * fix lint Signed-off-by: Ben Ye <[email protected]> * upgrade thanos version to latest main Signed-off-by: Ben Ye <[email protected]> --------- Signed-off-by: Ben Ye <[email protected]>
1 parent 1caa451 commit 8282a2f

File tree

490 files changed

+32967
-5347
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

490 files changed

+32967
-5347
lines changed

.github/workflows/test-build-deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
lint:
1212
runs-on: ubuntu-20.04
1313
container:
14-
image: quay.io/cortexproject/build-image:update-go-1.21.3-e38685e50
14+
image: quay.io/cortexproject/build-image:upgrade-golangci-lint-2f73458a1
1515
steps:
1616
- name: Checkout Repo
1717
uses: actions/checkout@v2
@@ -40,7 +40,7 @@ jobs:
4040
test:
4141
runs-on: ubuntu-20.04
4242
container:
43-
image: quay.io/cortexproject/build-image:update-go-1.21.3-e38685e50
43+
image: quay.io/cortexproject/build-image:upgrade-golangci-lint-2f73458a1
4444
steps:
4545
- name: Checkout Repo
4646
uses: actions/checkout@v2
@@ -59,7 +59,7 @@ jobs:
5959
build:
6060
runs-on: ubuntu-20.04
6161
container:
62-
image: quay.io/cortexproject/build-image:update-go-1.21.3-e38685e50
62+
image: quay.io/cortexproject/build-image:upgrade-golangci-lint-2f73458a1
6363
steps:
6464
- name: Checkout Repo
6565
uses: actions/checkout@v2
@@ -190,14 +190,14 @@ jobs:
190190
run: |
191191
touch build-image/.uptodate
192192
MIGRATIONS_DIR=$(pwd)/cmd/cortex/migrations
193-
make BUILD_IMAGE=quay.io/cortexproject/build-image:update-go-1.21.3-e38685e50 TTY='' configs-integration-test
193+
make BUILD_IMAGE=quay.io/cortexproject/build-image:upgrade-golangci-lint-2f73458a1 TTY='' configs-integration-test
194194
195195
deploy_website:
196196
needs: [build, test]
197197
if: (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && github.repository == 'cortexproject/cortex'
198198
runs-on: ubuntu-20.04
199199
container:
200-
image: quay.io/cortexproject/build-image:update-go-1.21.3-e38685e50
200+
image: quay.io/cortexproject/build-image:upgrade-golangci-lint-2f73458a1
201201
steps:
202202
- name: Checkout Repo
203203
uses: actions/checkout@v2
@@ -239,7 +239,7 @@ jobs:
239239
if: (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && github.repository == 'cortexproject/cortex'
240240
runs-on: ubuntu-20.04
241241
container:
242-
image: quay.io/cortexproject/build-image:update-go-1.21.3-e38685e50
242+
image: quay.io/cortexproject/build-image:upgrade-golangci-lint-2f73458a1
243243
steps:
244244
- name: Checkout Repo
245245
uses: actions/checkout@v2

.golangci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,18 @@ linters-settings:
1919
exclude: ./.errcheck-exclude
2020
goimports:
2121
local-prefixes: "github.com/cortexproject/cortex"
22+
revive:
23+
severity: error # We only want critical issues.
2224

2325
depguard:
24-
list-type: blacklist
25-
include-go-root: true
26-
packages-with-error-message:
27-
- github.com/go-kit/kit/log: "Use github.com/go-kit/log instead of github.com/go-kit/kit/log"
26+
rules:
27+
main:
28+
list-mode: lax
29+
files:
30+
- $all
31+
deny:
32+
- pkg: "github.com/go-kit/kit/log"
33+
desc: Use github.com/go-kit/log instead of github.com/go-kit/kit/log"
2834

2935
run:
3036
timeout: 5m

build-image/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ RUN GOARCH=$(go env GOARCH) && \
2323
chmod +x shfmt && \
2424
mv shfmt /usr/bin
2525

26-
RUN curl -sfL https://github.com/raw/golangci/golangci-lint/master/install.sh| sh -s -- -b /usr/bin v1.51.2
26+
RUN curl -sfL https://github.com/raw/golangci/golangci-lint/master/install.sh| sh -s -- -b /usr/bin v1.54.1
2727

2828
ENV HUGO_VERSION=v0.101.0
2929
RUN go install github.com/client9/misspell/cmd/[email protected] &&\

go.mod

Lines changed: 49 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ go 1.21
44

55
require (
66
github.com/Masterminds/squirrel v1.5.4
7-
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137
7+
github.com/alecthomas/units v0.0.0-20231202071711-9a357b53e9c9
88
github.com/alicebob/miniredis/v2 v2.30.4
99
github.com/armon/go-metrics v0.4.1
10-
github.com/aws/aws-sdk-go v1.45.25
10+
github.com/aws/aws-sdk-go v1.48.14
1111
github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b
1212
github.com/cespare/xxhash v1.1.0
13-
github.com/cortexproject/promqlsmith v0.0.0-20230502194647-ed3e43bb7a52
13+
github.com/cortexproject/promqlsmith v0.0.0-20240115062247-9ed0dfba956d
1414
github.com/dustin/go-humanize v1.0.1
1515
github.com/efficientgo/core v1.0.0-rc.2
1616
github.com/facette/natsort v0.0.0-20181210072756-2cd4dd1e2dcb
1717
github.com/felixge/fgprof v0.9.3
1818
github.com/go-kit/log v0.2.1
19-
github.com/go-openapi/strfmt v0.21.7
19+
github.com/go-openapi/strfmt v0.21.9
2020
github.com/go-openapi/swag v0.22.4
2121
github.com/go-redis/redis/v8 v8.11.5
2222
github.com/gogo/protobuf v1.3.2
@@ -27,12 +27,12 @@ require (
2727
github.com/gorilla/mux v1.8.1
2828
github.com/grafana/regexp v0.0.0-20221122212121-6b5c0a4cb7fd
2929
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0
30-
github.com/hashicorp/consul/api v1.25.1
30+
github.com/hashicorp/consul/api v1.26.1
3131
github.com/hashicorp/go-cleanhttp v0.5.2
3232
github.com/hashicorp/go-sockaddr v1.0.6
3333
github.com/hashicorp/memberlist v0.5.0
3434
github.com/json-iterator/go v1.1.12
35-
github.com/klauspost/compress v1.17.3
35+
github.com/klauspost/compress v1.17.4
3636
github.com/lib/pq v1.10.9
3737
github.com/minio/minio-go/v7 v7.0.63
3838
github.com/mitchellh/go-wordwrap v1.0.1
@@ -42,34 +42,34 @@ require (
4242
github.com/opentracing/opentracing-go v1.2.0
4343
github.com/pkg/errors v0.9.1
4444
github.com/prometheus/alertmanager v0.26.0
45-
github.com/prometheus/client_golang v1.17.0
45+
github.com/prometheus/client_golang v1.18.0
4646
github.com/prometheus/client_model v0.5.0
47-
github.com/prometheus/common v0.45.0
47+
github.com/prometheus/common v0.45.1-0.20231122191551-832cd6e99f99
4848
// Prometheus maps version 2.x.y to tags v0.x.y.
49-
github.com/prometheus/prometheus v0.48.1-0.20231201222638-e4ec263bcc11
49+
github.com/prometheus/prometheus v0.48.1-0.20240115084306-17920623e7cd
5050
github.com/segmentio/fasthash v1.0.3
5151
github.com/sony/gobreaker v0.5.0
5252
github.com/spf13/afero v1.9.5
5353
github.com/stretchr/testify v1.8.4
5454
github.com/thanos-io/objstore v0.0.0-20231231041903-61cfed8cbb9d
55-
github.com/thanos-io/promql-engine v0.0.0-20231127105941-257543af55e8
56-
github.com/thanos-io/thanos v0.32.5-0.20231212162152-fc1a6edf7acc
55+
github.com/thanos-io/promql-engine v0.0.0-20240115075159-7de619aae856
56+
github.com/thanos-io/thanos v0.33.1-0.20240115194623-324846f66d5d
5757
github.com/uber/jaeger-client-go v2.30.0+incompatible
5858
github.com/weaveworks/common v0.0.0-20221201103051-7c2720a9024d
5959
go.etcd.io/etcd/api/v3 v3.5.11
6060
go.etcd.io/etcd/client/pkg/v3 v3.5.9
6161
go.etcd.io/etcd/client/v3 v3.5.7
6262
go.opentelemetry.io/contrib/propagators/aws v1.17.0
63-
go.opentelemetry.io/otel v1.19.0
64-
go.opentelemetry.io/otel/bridge/opentracing v1.19.0
65-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0
66-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.19.0
67-
go.opentelemetry.io/otel/sdk v1.19.0
68-
go.opentelemetry.io/otel/trace v1.19.0
63+
go.opentelemetry.io/otel v1.21.0
64+
go.opentelemetry.io/otel/bridge/opentracing v1.21.0
65+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0
66+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.21.0
67+
go.opentelemetry.io/otel/sdk v1.21.0
68+
go.opentelemetry.io/otel/trace v1.21.0
6969
go.uber.org/atomic v1.11.0
70-
golang.org/x/net v0.18.0
70+
golang.org/x/net v0.19.0
7171
golang.org/x/sync v0.5.0
72-
golang.org/x/time v0.4.0
72+
golang.org/x/time v0.5.0
7373
google.golang.org/grpc v1.59.0
7474
gopkg.in/yaml.v2 v2.4.0
7575
gopkg.in/yaml.v3 v3.0.1
@@ -80,7 +80,7 @@ require (
8080
github.com/VictoriaMetrics/fastcache v1.12.1
8181
github.com/cespare/xxhash/v2 v2.2.0
8282
github.com/google/go-cmp v0.6.0
83-
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa
83+
golang.org/x/exp v0.0.0-20231206192017-f3f8817b8deb
8484
google.golang.org/protobuf v1.31.0
8585
)
8686

@@ -90,9 +90,9 @@ require (
9090
cloud.google.com/go/compute/metadata v0.2.3 // indirect
9191
cloud.google.com/go/iam v1.1.5 // indirect
9292
cloud.google.com/go/storage v1.35.1 // indirect
93-
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.8.0 // indirect
93+
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.0 // indirect
9494
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.4.0 // indirect
95-
github.com/Azure/azure-sdk-for-go/sdk/internal v1.3.0 // indirect
95+
github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.0 // indirect
9696
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.0.0 // indirect
9797
github.com/AzureAD/microsoft-authentication-library-for-go v1.1.1 // indirect
9898
github.com/HdrHistogram/hdrhistogram-go v1.1.2 // indirect
@@ -111,6 +111,7 @@ require (
111111
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.13.5 // indirect
112112
github.com/aws/aws-sdk-go-v2/service/sts v1.16.19 // indirect
113113
github.com/aws/smithy-go v1.13.3 // indirect
114+
github.com/bboreham/go-loser v0.0.0-20230920113527-fcc2c21820a3 // indirect
114115
github.com/benbjohnson/clock v1.3.5 // indirect
115116
github.com/beorn7/perks v1.0.1 // indirect
116117
github.com/blang/semver/v4 v4.0.0 // indirect
@@ -124,10 +125,10 @@ require (
124125
github.com/edsrzf/mmap-go v1.1.0 // indirect
125126
github.com/efficientgo/tools/extkingpin v0.0.0-20220817170617-6c25e3b627dd // indirect
126127
github.com/fatih/color v1.15.0 // indirect
127-
github.com/felixge/httpsnoop v1.0.3 // indirect
128-
github.com/fsnotify/fsnotify v1.6.0 // indirect
128+
github.com/felixge/httpsnoop v1.0.4 // indirect
129+
github.com/fsnotify/fsnotify v1.7.0 // indirect
129130
github.com/go-logfmt/logfmt v0.6.0 // indirect
130-
github.com/go-logr/logr v1.2.4 // indirect
131+
github.com/go-logr/logr v1.3.0 // indirect
131132
github.com/go-logr/stdr v1.2.2 // indirect
132133
github.com/go-openapi/analysis v0.21.4 // indirect
133134
github.com/go-openapi/errors v0.20.4 // indirect
@@ -142,7 +143,7 @@ require (
142143
github.com/golang-jwt/jwt/v5 v5.0.0 // indirect
143144
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
144145
github.com/google/btree v1.0.1 // indirect
145-
github.com/google/pprof v0.0.0-20230926050212-f7f687d19a98 // indirect
146+
github.com/google/pprof v0.0.0-20231205033806-a5a03c77bf08 // indirect
146147
github.com/google/s2a-go v0.1.7 // indirect
147148
github.com/google/uuid v1.4.0 // indirect
148149
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
@@ -155,6 +156,7 @@ require (
155156
github.com/hashicorp/go-msgpack v0.5.5 // indirect
156157
github.com/hashicorp/go-multierror v1.1.1 // indirect
157158
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
159+
github.com/hashicorp/go-version v1.6.0 // indirect
158160
github.com/hashicorp/golang-lru v0.6.0 // indirect
159161
github.com/hashicorp/golang-lru/v2 v2.0.2 // indirect
160162
github.com/hashicorp/serf v0.10.1 // indirect
@@ -172,7 +174,8 @@ require (
172174
github.com/mattn/go-isatty v0.0.19 // indirect
173175
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
174176
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
175-
github.com/miekg/dns v1.1.56 // indirect
177+
github.com/metalmatze/signal v0.0.0-20210307161603-1c9aa721a97a // indirect
178+
github.com/miekg/dns v1.1.57 // indirect
176179
github.com/minio/md5-simd v1.1.2 // indirect
177180
github.com/minio/sha256-simd v1.0.1 // indirect
178181
github.com/mitchellh/go-homedir v1.1.0 // indirect
@@ -185,9 +188,10 @@ require (
185188
github.com/oklog/run v1.1.0 // indirect
186189
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect
187190
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
191+
github.com/prometheus-community/prom-label-proxy v0.7.0 // indirect
188192
github.com/prometheus/common/sigv4 v0.1.0 // indirect
189193
github.com/prometheus/exporter-toolkit v0.10.0 // indirect
190-
github.com/prometheus/procfs v0.11.1 // indirect
194+
github.com/prometheus/procfs v0.12.0 // indirect
191195
github.com/redis/rueidis v1.0.14-go1.18 // indirect
192196
github.com/rs/cors v1.9.0 // indirect
193197
github.com/rs/xid v1.5.0 // indirect
@@ -202,39 +206,43 @@ require (
202206
github.com/weaveworks/promrus v1.2.0 // indirect
203207
github.com/yuin/gopher-lua v1.1.0 // indirect
204208
github.com/zhangyunhao116/umap v0.0.0-20221211160557-cb7705fafa39 // indirect
205-
go.mongodb.org/mongo-driver v1.12.0 // indirect
209+
go.mongodb.org/mongo-driver v1.13.1 // indirect
206210
go.opencensus.io v0.24.0 // indirect
207-
go.opentelemetry.io/collector/featuregate v0.77.0 // indirect
208-
go.opentelemetry.io/collector/pdata v1.0.0-rcv0017 // indirect
209-
go.opentelemetry.io/collector/semconv v0.88.0 // indirect
210-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.45.0 // indirect
211+
go.opentelemetry.io/collector/featuregate v1.0.0 // indirect
212+
go.opentelemetry.io/collector/pdata v1.0.0 // indirect
213+
go.opentelemetry.io/collector/semconv v0.90.1 // indirect
214+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1 // indirect
211215
go.opentelemetry.io/contrib/propagators/autoprop v0.38.0 // indirect
212216
go.opentelemetry.io/contrib/propagators/b3 v1.13.0 // indirect
213217
go.opentelemetry.io/contrib/propagators/jaeger v1.13.0 // indirect
214218
go.opentelemetry.io/contrib/propagators/ot v1.13.0 // indirect
215-
go.opentelemetry.io/otel/metric v1.19.0 // indirect
219+
go.opentelemetry.io/otel/metric v1.21.0 // indirect
216220
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
217-
go.uber.org/goleak v1.2.1 // indirect
221+
go.uber.org/goleak v1.3.0 // indirect
218222
go.uber.org/multierr v1.11.0 // indirect
219223
go.uber.org/zap v1.21.0 // indirect
220224
go4.org/intern v0.0.0-20230525184215-6c62f75575cb // indirect
221225
go4.org/unsafe/assume-no-moving-gc v0.0.0-20230525183740-e7c30c78aeb2 // indirect
222226
golang.org/x/crypto v0.17.0 // indirect
223227
golang.org/x/mod v0.14.0 // indirect
224-
golang.org/x/oauth2 v0.14.0 // indirect
228+
golang.org/x/oauth2 v0.15.0 // indirect
225229
golang.org/x/sys v0.15.0 // indirect
226230
golang.org/x/text v0.14.0 // indirect
227-
golang.org/x/tools v0.15.0 // indirect
231+
golang.org/x/tools v0.16.0 // indirect
228232
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
229233
gonum.org/v1/gonum v0.12.0 // indirect
230-
google.golang.org/api v0.150.0 // indirect
234+
google.golang.org/api v0.153.0 // indirect
231235
google.golang.org/appengine v1.6.8 // indirect
232-
google.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 // indirect
233-
google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect
234-
google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17 // indirect
236+
google.golang.org/genproto v0.0.0-20231120223509-83a465c0220f // indirect
237+
google.golang.org/genproto/googleapis/api v0.0.0-20231127180814-3a041ad873d4 // indirect
238+
google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect
235239
gopkg.in/alecthomas/kingpin.v2 v2.2.6 // indirect
236240
gopkg.in/ini.v1 v1.67.0 // indirect
237241
gopkg.in/telebot.v3 v3.1.3 // indirect
242+
k8s.io/apimachinery v0.28.4 // indirect
243+
k8s.io/client-go v0.28.4 // indirect
244+
k8s.io/klog/v2 v2.110.1 // indirect
245+
k8s.io/utils v0.0.0-20230711102312-30195339c3c7 // indirect
238246
)
239247

240248
// Override since git.apache.org is down. The docs say to fetch from github.

0 commit comments

Comments
 (0)