Skip to content

Commit 953dbc5

Browse files
Merge tag 'refs/tags/v0.28.0' into release-2.14
v0.28.0 # -----BEGIN PGP SIGNATURE----- # # iQIzBAABCgAdFiEEoFiTUofnXYMugU5GxkayPJ4yRfEFAmeHiMoACgkQxkayPJ4y # RfFq2Q//RSeZQdRhvzlqmiUy3qEbpSuUDWXpNYY2qWTyDO+9Gr9zbq3G8/WhAxm3 # kkljI9daS+2jrmLv3C0cYWpp6Rvx3wB4jL2Bti0sDOTb5ZdSbZeDA+wiXd9eE8sD # eynxViAZvFXjQWY57wRCUmz1UlglRecleGdA718MmDu3RuEHNOglsj0ozseUnyDG # c1ysDJGB1eiKJ9cIjsjVs9O7b3zBp1z8aE/SlwCATre/XaUnC+UgUMj47qiTNdy0 # cm727KaKMlgJsnWgupV/1UWrdSpAfYLyRRp0reRdm3CK5m39bVhDiG0jrSfJ2iDu # q4CHIWkvyXhmyVKs+K8jW5j8gfPqhq9+CVrwbJNNPz6nggN/KA6BnLZ4FdrGzUjb # LMmCPbYoCcvdPjwzHqpy+dZITvN+L3BjBEXstLjFEMmcpRP+ptGwYsndB83btqr3 # ycMSpkHouc7LFagduiUKhZUOSuxdWbatgk0rC+81myACrw1/rEOPWa5wHu7v0xbV # ir/OGQXYLtWjfVXFvbaXqaQyPPq5CLPvyaSK22B20CSFopYy+EazVk4gHiW3zeZw # Gkty2GJXstf3+ogV0BXH93gvdQJNhi8F7i9D9zjiPNAH8pIRrtXGqrKwnM4hEhgk # IgMu0pjhTVp1OjMJuTLw4Ux6rSEG0YqJXjm4W3aVWk4BYsgP0w8= # =bn9X # -----END PGP SIGNATURE----- # gpg: directory '/home/runner/.gnupg' created # gpg: keybox '/home/runner/.gnupg/pubring.kbx' created # gpg: Signature made Wed Jan 15 10:07:06 2025 UTC # gpg: using RSA key A058935287E75D832E814E46C646B23C9E3245F1 # gpg: Can't check signature: No public key
2 parents 4022269 + 4ce04fb commit 953dbc5

File tree

184 files changed

+11473
-4648
lines changed

Some content is hidden

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

184 files changed

+11473
-4648
lines changed

.circleci/config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
version: 2.1
33
orbs:
44
prometheus: prometheus/prometheus@0.17.1
5-
go: circleci/go@1.9.0
5+
go: circleci/go@1.12.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.21.3"
21+
version: "1.23.2"
2222
- run:
2323
name: Remove generated code
2424
command: make clean
@@ -47,15 +47,15 @@ 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.21-base
50+
- image: quay.io/prometheus/golang-builder:1.22-base
5151
# maildev containers are for running the email tests against a "real" SMTP server.
5252
# See notify/email_test.go for details.
53-
- image: maildev/maildev:1.1.0
53+
- image: maildev/maildev:2.1.0
5454
name: maildev-noauth
5555
entrypoint: bin/maildev
5656
command:
5757
- -v
58-
- image: maildev/maildev:1.1.0
58+
- image: maildev/maildev:2.1.0
5959
name: maildev-auth
6060
entrypoint: bin/maildev
6161
command:
@@ -104,7 +104,7 @@ jobs:
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.21-base
107+
- image: quay.io/prometheus/golang-builder:1.22-base
108108
steps:
109109
- checkout
110110
# pin the mixtool version until https://github.com/monitoring-mixins/mixtool/issues/135 is merged.

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ version: 2
22
updates:
33
- package-ecosystem: "gomod"
44
directory: "/"
5+
open-pull-requests-limit: 20
56
schedule:
67
interval: "monthly"
78
- package-ecosystem: "docker"
@@ -10,5 +11,6 @@ updates:
1011
interval: "monthly"
1112
- package-ecosystem: "npm"
1213
directory: "/ui/react-app"
14+
open-pull-requests-limit: 20
1315
schedule:
1416
interval: "monthly"

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
name: Test alertmanager frontend
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1212
- run: make clean
1313
- run: make all
1414
working-directory: ./ui/app
@@ -37,10 +37,10 @@ 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.21-base
40+
image: quay.io/prometheus/golang-builder:1.23-base
4141
steps:
42-
- uses: actions/checkout@v3
43-
- uses: prometheus/promci@v0.0.2
42+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
43+
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0
4444
- uses: ./.github/promci/actions/setup_environment
4545
- run: make
4646
- run: git diff --exit-code
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
name: Push README to Docker Hub
3+
on:
4+
push:
5+
paths:
6+
- "README.md"
7+
- "README-containers.md"
8+
- ".github/workflows/container_description.yml"
9+
branches: [ main, master ]
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
PushDockerHubReadme:
16+
runs-on: ubuntu-latest
17+
name: Push README to Docker Hub
18+
if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
19+
steps:
20+
- name: git checkout
21+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22+
- name: Set docker hub repo name
23+
run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV
24+
- name: Push README to Dockerhub
25+
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1
26+
env:
27+
DOCKER_USER: ${{ secrets.DOCKER_HUB_LOGIN }}
28+
DOCKER_PASS: ${{ secrets.DOCKER_HUB_PASSWORD }}
29+
with:
30+
destination_container_repo: ${{ env.DOCKER_REPO_NAME }}
31+
provider: dockerhub
32+
short_description: ${{ env.DOCKER_REPO_NAME }}
33+
# Empty string results in README-containers.md being pushed if it
34+
# exists. Otherwise, README.md is pushed.
35+
readme_file: ''
36+
37+
PushQuayIoReadme:
38+
runs-on: ubuntu-latest
39+
name: Push README to quay.io
40+
if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
41+
steps:
42+
- name: git checkout
43+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
44+
- name: Set quay.io org name
45+
run: echo "DOCKER_REPO=$(echo quay.io/${GITHUB_REPOSITORY_OWNER} | tr -d '-')" >> $GITHUB_ENV
46+
- name: Set quay.io repo name
47+
run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV
48+
- name: Push README to quay.io
49+
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1
50+
env:
51+
DOCKER_APIKEY: ${{ secrets.QUAY_IO_API_TOKEN }}
52+
with:
53+
destination_container_repo: ${{ env.DOCKER_REPO_NAME }}
54+
provider: quay
55+
# Empty string results in README-containers.md being pushed if it
56+
# exists. Otherwise, README.md is pushed.
57+
readme_file: ''

.github/workflows/golangci-lint.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,16 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Checkout repository
27-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
28-
- name: install Go
29-
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
27+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28+
- name: Install Go
29+
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
3030
with:
31-
go-version: 1.21.x
31+
go-version: 1.23.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@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
36+
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
3737
with:
38-
version: v1.55.2
38+
args: --verbose
39+
version: v1.61.0

.github/workflows/mixin.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout repository
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1414
- name: install Go
15-
uses: actions/setup-go@v2
15+
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
1616
with:
17-
go-version: 1.21.x
17+
go-version: 1.23.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

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
thread: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ]
1818
needs: ci
1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2121
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0
2222
- uses: ./.github/promci/actions/build
2323
with:
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ubuntu-latest
2929
needs: build
3030
steps:
31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3232
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0
3333
- uses: ./.github/promci/actions/publish_main
3434
with:

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
thread: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ]
1818
needs: ci
1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2121
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0
2222
- uses: ./.github/promci/actions/build
2323
with:
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ubuntu-latest
2929
needs: build
3030
steps:
31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3232
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0
3333
- uses: ./.github/promci/actions/publish_release
3434
with:

.golangci.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
1-
run:
2-
skip-files:
3-
# Skip autogenerated files.
4-
- ^.*\.(pb|y)\.go$
5-
timeout: 5m
6-
71
output:
82
sort-results: true
93

104
linters:
115
enable:
126
- depguard
137
- errorlint
8+
- godot
149
- gofumpt
1510
- goimports
1611
- misspell
1712
- revive
1813
- testifylint
14+
- sloglint
1915

2016
issues:
2117
max-issues-per-linter: 0
@@ -24,6 +20,10 @@ issues:
2420
- path: _test.go
2521
linters:
2622
- errcheck
23+
exclude-files:
24+
# Skip autogenerated files.
25+
- ^.*\.(pb|y)\.go$
26+
timeout: 5m
2727

2828
linters-settings:
2929
depguard:
@@ -47,10 +47,15 @@ linters-settings:
4747
- (net/http.ResponseWriter).Write
4848
# No need to check for errors on server's shutdown.
4949
- (*net/http.Server).Shutdown
50-
# Never check for logger errors.
51-
- (github.com/go-kit/log.Logger).Log
5250
# Never check for rollback errors as Rollback() is called when a previous error was detected.
5351
- (github.com/prometheus/prometheus/storage.Appender).Rollback
52+
godot:
53+
scope: toplevel
54+
exclude:
55+
- "^ ?This file is safe to edit"
56+
- "^ ?scheme value"
57+
period: true
58+
capital: true
5459
goimports:
5560
local-prefixes: github.com/prometheus/alertmanager
5661
gofumpt:

.promu.yml

Lines changed: 1 addition & 2 deletions
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.21
4+
version: 1.23
55
repository:
66
path: github.com/prometheus/alertmanager
77
build:
@@ -11,7 +11,6 @@ build:
1111
path: ./cmd/alertmanager
1212
- name: amtool
1313
path: ./cmd/amtool
14-
flags: -a
1514
tags:
1615
all:
1716
- netgo

0 commit comments

Comments
 (0)