Skip to content

Commit 67177ab

Browse files
committed
Merge branch 'main' into compass-receiver
2 parents 31d2bad + 9b35e76 commit 67177ab

Some content is hidden

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

48 files changed

+326
-161
lines changed

Diff for: .circleci/config.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
version: 2.1
33
orbs:
44
prometheus: prometheus/[email protected]
5-
go: circleci/go@1.12.0
5+
go: circleci/go@3.0.0
66
jobs:
77
test_frontend:
88
# We need to use a machine executor because the front-end validation runs
@@ -18,7 +18,7 @@ jobs:
1818
command: sudo rm -rf /usr/local/go
1919
# Whenever the Go version is updated here, .promu.yml should also be updated.
2020
- go/install:
21-
version: "1.23.2"
21+
version: "1.24.1"
2222
- run:
2323
name: Remove generated code
2424
command: make clean
@@ -47,7 +47,7 @@ jobs:
4747
test:
4848
docker:
4949
# Whenever the Go version is updated here, .promu.yml should also be updated.
50-
- image: quay.io/prometheus/golang-builder:1.22-base
50+
- image: quay.io/prometheus/golang-builder:1.24-base
5151
# maildev containers are for running the email tests against a "real" SMTP server.
5252
# See notify/email_test.go for details.
5353
- image: maildev/maildev:2.1.0
@@ -69,7 +69,7 @@ jobs:
6969
EMAIL_AUTH_CONFIG: /tmp/smtp_auth.yml
7070
steps:
7171
- prometheus/setup_environment
72-
- go/load-cache:
72+
- go/load-mod-cache:
7373
key: v1-go-mod
7474
- run:
7575
command: |
@@ -97,14 +97,14 @@ jobs:
9797
file: alertmanager
9898
- prometheus/store_artifact:
9999
file: amtool
100-
- go/save-cache:
100+
- go/save-mod-cache:
101101
key: v1-go-mod
102102
- store_test_results:
103103
path: test-results
104104
mixin:
105105
docker:
106106
# Whenever the Go version is updated here, .promu.yml should also be updated.
107-
- image: quay.io/prometheus/golang-builder:1.22-base
107+
- image: quay.io/prometheus/golang-builder:1.24-base
108108
steps:
109109
- checkout
110110
# pin the mixtool version until https://github.com/monitoring-mixins/mixtool/issues/135 is merged.

Diff for: .github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
# Whenever the Go version is updated here, .promu.yml
3838
# should also be updated.
3939
container:
40-
image: quay.io/prometheus/golang-builder:1.23-base
40+
image: quay.io/prometheus/golang-builder:1.24-base
4141
steps:
4242
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
4343
- uses: prometheus/promci@c3c93a50d581b928af720f0134b2b2dad32a6c41 # v0.4.6

Diff for: .github/workflows/golangci-lint.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ jobs:
2626
- name: Checkout repository
2727
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2828
- name: Install Go
29-
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
29+
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
3030
with:
31-
go-version: 1.23.x
31+
go-version: 1.24.x
3232
- name: Install snmp_exporter/generator dependencies
3333
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
3434
if: github.repository == 'prometheus/snmp_exporter'
3535
- name: Lint
36-
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
36+
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
3737
with:
3838
args: --verbose
39-
version: v1.61.0
39+
version: v1.64.6

Diff for: .github/workflows/mixin.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: install Go
1515
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
1616
with:
17-
go-version: 1.23.x
17+
go-version: 1.24.x
1818
# pin the mixtool version until https://github.com/monitoring-mixins/mixtool/issues/135 is merged.
1919
- run: go install github.com/monitoring-mixins/mixtool/cmd/mixtool@2282201396b69055bb0f92f187049027a16d2130
2020
- run: go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest

Diff for: .golangci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ issues:
2323
exclude-files:
2424
# Skip autogenerated files.
2525
- ^.*\.(pb|y)\.go$
26+
27+
run:
2628
timeout: 5m
2729

2830
linters-settings:

Diff for: .promu.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
go:
22
# Whenever the Go version is updated here,
33
# .circle/config.yml should also be updated.
4-
version: 1.23
4+
version: 1.24
55
repository:
66
path: github.com/prometheus/alertmanager
77
build:

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ SWAGGER = docker run \
6565
--user=$(shell id -u $(USER)):$(shell id -g $(USER)) \
6666
--rm \
6767
-v $(shell pwd):/go/src/github.com/prometheus/alertmanager \
68-
-w /go/src/github.com/prometheus/alertmanager quay.io/goswagger/swagger:v0.30.5
68+
-w /go/src/github.com/prometheus/alertmanager quay.io/goswagger/swagger:v0.31.0
6969

7070
api/v2/models api/v2/restapi api/v2/client: api/v2/openapi.yaml
7171
-rm -r api/v2/{client,models,restapi}

Diff for: Makefile.common

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_
6161
SKIP_GOLANGCI_LINT :=
6262
GOLANGCI_LINT :=
6363
GOLANGCI_LINT_OPTS ?=
64-
GOLANGCI_LINT_VERSION ?= v1.61.0
64+
GOLANGCI_LINT_VERSION ?= v1.64.6
6565
# golangci-lint only supports linux, darwin and windows platforms on i386/amd64/arm64.
6666
# windows isn't included here because of the path separator being different.
6767
ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux darwin))

Diff for: api/v2/api_test.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ package v2
1616
import (
1717
"bytes"
1818
"encoding/json"
19-
"fmt"
2019
"io"
2120
"net/http"
2221
"net/http/httptest"
@@ -206,7 +205,7 @@ func TestDeleteSilenceHandler(t *testing.T) {
206205
responder.WriteResponse(w, p)
207206
body, _ := io.ReadAll(w.Result().Body)
208207

209-
require.Equal(t, tc.expectedCode, w.Code, fmt.Sprintf("test case: %d, response: %s", i, string(body)))
208+
require.Equal(t, tc.expectedCode, w.Code, "test case: %d, response: %s", i, string(body))
210209
}
211210
}
212211

@@ -280,7 +279,7 @@ func TestPostSilencesHandler(t *testing.T) {
280279
w := httptest.NewRecorder()
281280
postSilences(t, w, api.postSilencesHandler, sil)
282281
body, _ := io.ReadAll(w.Result().Body)
283-
require.Equal(t, tc.expectedCode, w.Code, fmt.Sprintf("test case: %d, response: %s", i, string(body)))
282+
require.Equal(t, tc.expectedCode, w.Code, "test case: %d, response: %s", i, string(body))
284283
})
285284
}
286285
})

Diff for: api/v2/client/alert/alert_client.go

+27-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: api/v2/client/alert/get_alerts_responses.go

+13-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: api/v2/client/alert/post_alerts_responses.go

+11-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: api/v2/client/alertgroup/alertgroup_client.go

+27-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)