Skip to content

Commit f08d042

Browse files
committed
Upgrade to cortex v1.21.0
Signed-off-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com>
1 parent cb85db0 commit f08d042

1,810 files changed

Lines changed: 153469 additions & 127423 deletions

File tree

Some content is hidden

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

.github/workflows/integration_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
- uses: actions/checkout@v4
1515
- uses: actions/setup-go@v5
1616
with:
17-
go-version: 1.24
17+
go-version: 1.25
1818
- name: Start Cortex
1919
run: |
2020
docker run -d --name cortex \
2121
-p 9009:9009 \
2222
-v ${{ github.workspace }}/integration/cortex-config.yaml:/etc/cortex/config.yaml \
23-
cortexproject/cortex:v1.20.1 \
23+
cortexproject/cortex:v1.21.0 \
2424
-config.file=/etc/cortex/config.yaml \
2525
-target=all,alertmanager
2626
- name: Wait for Cortex

.github/workflows/validate_pr.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ jobs:
1414
- uses: actions/checkout@v4
1515
- uses: actions/setup-go@v5
1616
with:
17-
go-version: 1.24
17+
go-version: 1.25
1818
cache: false
1919
- name: golangci-lint
2020
uses: golangci/golangci-lint-action@v6
2121
with:
22-
version: v1.64
22+
version: v2.11.4
2323
unit_tests:
2424
name: Unit-Tests
2525
runs-on: ubuntu-latest
2626
steps:
2727
- uses: actions/checkout@v4
2828
- uses: actions/setup-go@v5
2929
with:
30-
go-version: 1.24
30+
go-version: 1.25
3131
- name: Unit Tests
3232
run: make test
3333
build:
@@ -37,6 +37,6 @@ jobs:
3737
- uses: actions/checkout@v4
3838
- uses: actions/setup-go@v5
3939
with:
40-
go-version: 1.24
40+
go-version: 1.25
4141
- name: Build All
4242
run: make all

.golangci.yml

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,44 @@
1+
version: "2"
12
run:
2-
timeout: 10m
3-
modules-download-mode: vendor
43
build-tags:
54
- netgo
65
- require_docker
7-
6+
modules-download-mode: vendor
87
output:
98
formats:
10-
- format: line-number
11-
9+
text:
10+
path: stdout
11+
colors: false
1212
linters:
1313
enable:
14-
- goimports
15-
- revive
1614
- misspell
15+
- revive
16+
settings:
17+
errcheck:
18+
exclude-functions:
19+
- (github.com/go-kit/log.Logger).Log
20+
exclusions:
21+
generated: lax
22+
presets:
23+
- comments
24+
- common-false-positives
25+
- legacy
26+
- std-error-handling
27+
paths:
28+
- third_party$
29+
- builtin$
30+
- examples$
31+
formatters:
32+
enable:
1733
- gofmt
18-
19-
linters-settings:
20-
errcheck:
21-
exclude-functions:
22-
- (github.com/go-kit/log.Logger).Log
23-
goimports:
24-
local-prefixes: "github.com/cortexproject/cortex-tools"
34+
- goimports
35+
settings:
36+
goimports:
37+
local-prefixes:
38+
- github.com/cortexproject/cortex-tools
39+
exclusions:
40+
generated: lax
41+
paths:
42+
- third_party$
43+
- builtin$
44+
- examples$

go.mod

Lines changed: 116 additions & 108 deletions
Large diffs are not rendered by default.

go.sum

Lines changed: 302 additions & 268 deletions
Large diffs are not rendered by default.

pkg/rules/rules.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"fmt"
55
"strings"
66

7+
"github.com/prometheus/common/model"
78
"github.com/prometheus/prometheus/model/rulefmt"
89
"github.com/prometheus/prometheus/promql/parser"
910
log "github.com/sirupsen/logrus"
@@ -234,7 +235,7 @@ func (r RuleNamespace) Validate() []error {
234235
func ValidateRuleGroup(g rwrulefmt.RuleGroup) []error {
235236
var errs []error
236237
for _, r := range g.Rules {
237-
for _, we := range r.Validate(rulefmt.RuleNode{}) {
238+
for _, we := range r.Validate(rulefmt.RuleNode{}, model.LegacyValidation) {
238239
errs = append(errs, fmt.Errorf("group %q, rule %q: %s", g.Name, getRuleName(r), we.Error()))
239240
}
240241
}

0 commit comments

Comments
 (0)