Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package golang-github-prometheus-prometheus
for openSUSE:Factory checked in at 2025-07-01 11:33:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/golang-github-prometheus-prometheus (Old)
and
/work/SRC/openSUSE:Factory/.golang-github-prometheus-prometheus.new.7067 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "golang-github-prometheus-prometheus"
Tue Jul 1 11:33:18 2025 rev:60 rq:1289191 version:3.4.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/golang-github-prometheus-prometheus/golang-github-prometheus-prometheus.changes
2025-06-04 20:27:25.170164293 +0200
+++
/work/SRC/openSUSE:Factory/.golang-github-prometheus-prometheus.new.7067/golang-github-prometheus-prometheus.changes
2025-07-01 11:33:40.124103103 +0200
@@ -1,0 +2,7 @@
+Mon Jun 30 04:54:33 UTC 2025 - Johannes Kastl
<[email protected]>
+
+- update to 3.4.2:
+ * [BUGFIX] OTLP receiver: Fix default configuration not being
+ respected if the otlp: block is unset in the config file. #16693
+
+-------------------------------------------------------------------
Old:
----
prometheus-3.4.1.tar.gz
web-ui-3.4.1.tar.gz
New:
----
prometheus-3.4.2.tar.gz
web-ui-3.4.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ golang-github-prometheus-prometheus.spec ++++++
--- /var/tmp/diff_new_pack.KGCWPj/_old 2025-07-01 11:33:42.140186641 +0200
+++ /var/tmp/diff_new_pack.KGCWPj/_new 2025-07-01 11:33:42.140186641 +0200
@@ -27,7 +27,7 @@
%endif
Name: golang-github-prometheus-prometheus
-Version: 3.4.1
+Version: 3.4.2
Release: 0
Summary: The Prometheus monitoring system and time series database
License: Apache-2.0
++++++ _service ++++++
--- /var/tmp/diff_new_pack.KGCWPj/_old 2025-07-01 11:33:42.212189623 +0200
+++ /var/tmp/diff_new_pack.KGCWPj/_new 2025-07-01 11:33:42.212189623 +0200
@@ -4,7 +4,7 @@
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="versionformat">@PARENT_TAG@</param>
- <param name="revision">v3.4.1</param>
+ <param name="revision">v3.4.2</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="match-tag">v3*</param>
</service>
@@ -13,7 +13,7 @@
<param name="compression">gz</param>
</service>
<service name="go_modules" mode="manual">
- <param name="archive">prometheus-3.4.1.tar.gz</param>
+ <param name="archive">prometheus-3.4.2.tar.gz</param>
</service>
</services>
++++++ npm_licenses.tar.bz2 ++++++
++++++ prometheus-3.4.1.tar.gz -> prometheus-3.4.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/.github/CODEOWNERS
new/prometheus-3.4.2/.github/CODEOWNERS
--- old/prometheus-3.4.1/.github/CODEOWNERS 1970-01-01 01:00:00.000000000
+0100
+++ new/prometheus-3.4.2/.github/CODEOWNERS 2025-06-26 22:48:39.000000000
+0200
@@ -0,0 +1,10 @@
+/web/ui @juliusv
+/web/ui/module @juliusv @nexucis
+/storage/remote @cstyan @bwplotka @tomwilkie
+/storage/remote/otlptranslator @aknuds1 @jesusvazquez
+/discovery/kubernetes @brancz
+/tsdb @jesusvazquez
+/promql @roidelapluie
+/cmd/promtool @dgl
+/documentation/prometheus-mixin @metalmatze
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/prometheus-3.4.1/.github/ISSUE_TEMPLATE/bug_report.yml
new/prometheus-3.4.2/.github/ISSUE_TEMPLATE/bug_report.yml
--- old/prometheus-3.4.1/.github/ISSUE_TEMPLATE/bug_report.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/prometheus-3.4.2/.github/ISSUE_TEMPLATE/bug_report.yml 2025-06-26
22:48:39.000000000 +0200
@@ -0,0 +1,74 @@
+---
+name: Bug report
+description: Create a report to help us improve.
+body:
+ - type: markdown
+ attributes:
+ value: |
+ Thank you for opening a bug report for Prometheus.
+
+ Please do *NOT* ask support questions in Github issues.
+
+ If your issue is not a feature request or bug report use our
[community support](https://prometheus.io/community/).
+
+ There is also [commercial
support](https://prometheus.io/support-training/) available.
+ - type: textarea
+ attributes:
+ label: What did you do?
+ description: Please provide steps for us to reproduce this issue.
+ validations:
+ required: true
+ - type: textarea
+ attributes:
+ label: What did you expect to see?
+ - type: textarea
+ attributes:
+ label: What did you see instead? Under which circumstances?
+ validations:
+ required: true
+ - type: markdown
+ attributes:
+ value: |
+ ## Environment
+ - type: input
+ attributes:
+ label: System information
+ description: insert output of `uname -srm` here, or operating system
version
+ placeholder: e.g. Linux 5.16.15 x86_64
+ - type: textarea
+ attributes:
+ label: Prometheus version
+ description: Insert output of `prometheus --version` here.
+ render: text
+ placeholder: |
+ e.g. prometheus, version 2.23.0 (branch: HEAD, revision:
26d89b4b0776fe4cd5a3656dfa520f119a375273)
+ build user: root@37609b3a0a21
+ build date: 20201126-10:56:17
+ go version: go1.15.5
+ platform: linux/amd64
+ - type: textarea
+ attributes:
+ label: Prometheus configuration file
+ description: Insert relevant configuration here. Don't forget to remove
secrets.
+ render: yaml
+ - type: textarea
+ attributes:
+ label: Alertmanager version
+ description: Insert output of `alertmanager --version` here (if relevant
to the issue).
+ render: text
+ placeholder: |
+ e.g. alertmanager, version 0.22.2 (branch: HEAD, revision:
44f8adc06af5101ad64bd8b9c8b18273f2922051)
+ build user: root@b595c7f32520
+ build date: 20210602-07:50:37
+ go version: go1.16.4
+ platform: linux/amd64
+ - type: textarea
+ attributes:
+ label: Alertmanager configuration file
+ description: Insert relevant configuration here. Don't forget to remove
secrets.
+ render: yaml
+ - type: textarea
+ attributes:
+ label: Logs
+ description: Insert Prometheus and Alertmanager logs relevant to the
issue here.
+ render: text
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/.github/ISSUE_TEMPLATE/config.yml
new/prometheus-3.4.2/.github/ISSUE_TEMPLATE/config.yml
--- old/prometheus-3.4.1/.github/ISSUE_TEMPLATE/config.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/prometheus-3.4.2/.github/ISSUE_TEMPLATE/config.yml 2025-06-26
22:48:39.000000000 +0200
@@ -0,0 +1,8 @@
+blank_issues_enabled: true
+contact_links:
+ - name: Prometheus Community Support
+ url: https://prometheus.io/community/
+ about: If you need help or support, please request help here.
+ - name: Commercial Support & Training
+ url: https://prometheus.io/support-training/
+ about: If you want commercial support or training, vendors are listed here.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/prometheus-3.4.1/.github/ISSUE_TEMPLATE/feature_request.yml
new/prometheus-3.4.2/.github/ISSUE_TEMPLATE/feature_request.yml
--- old/prometheus-3.4.1/.github/ISSUE_TEMPLATE/feature_request.yml
1970-01-01 01:00:00.000000000 +0100
+++ new/prometheus-3.4.2/.github/ISSUE_TEMPLATE/feature_request.yml
2025-06-26 22:48:39.000000000 +0200
@@ -0,0 +1,23 @@
+---
+name: Feature request
+description: Suggest an idea for this project.
+body:
+ - type: markdown
+ attributes:
+ value: >-
+ Please do *NOT* ask support questions in Github issues.
+
+
+ If your issue is not a feature request or bug report use
+ our [community support](https://prometheus.io/community/).
+
+
+ There is also [commercial
+ support](https://prometheus.io/support-training/) available.
+ - type: textarea
+ attributes:
+ label: Proposal
+ description: Use case. Why is this important?
+ placeholder: “Nice to have” is not a good use case. :)
+ validations:
+ required: true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/.github/PULL_REQUEST_TEMPLATE.md
new/prometheus-3.4.2/.github/PULL_REQUEST_TEMPLATE.md
--- old/prometheus-3.4.1/.github/PULL_REQUEST_TEMPLATE.md 1970-01-01
01:00:00.000000000 +0100
+++ new/prometheus-3.4.2/.github/PULL_REQUEST_TEMPLATE.md 2025-06-26
22:48:39.000000000 +0200
@@ -0,0 +1,19 @@
+<!--
+ Please give your PR a title in the form "area: short description". For
example "tsdb: reduce disk usage by 95%"
+
+ If your PR is to fix an issue, put "Fixes #issue-number" in the
description.
+
+ Don't forget!
+
+ - Please sign CNCF's Developer Certificate of Origin and sign-off your
commits by adding the -s / --signoff flag to `git commit`. See
https://github.com/apps/dco for more information.
+
+ - If the PR adds or changes a behaviour or fixes a bug of an exported API
it would need a unit/e2e test.
+
+ - Where possible use only exported APIs for tests to simplify the review
and make it as close as possible to an actual library usage.
+
+ - Performance improvements would need a benchmark test to prove it.
+
+ - All exposed objects should have a comment.
+
+ - All comments should start with a capital letter and end with a full stop.
+ -->
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/.github/dependabot.yml
new/prometheus-3.4.2/.github/dependabot.yml
--- old/prometheus-3.4.1/.github/dependabot.yml 1970-01-01 01:00:00.000000000
+0100
+++ new/prometheus-3.4.2/.github/dependabot.yml 2025-06-26 22:48:39.000000000
+0200
@@ -0,0 +1,27 @@
+version: 2
+updates:
+ - package-ecosystem: "docker"
+ directory: "/"
+ schedule:
+ interval: "monthly"
+ - package-ecosystem: "github-actions"
+ directories:
+ - "/"
+ - "/scripts"
+ schedule:
+ interval: "monthly"
+ - package-ecosystem: "gomod"
+ directories:
+ - "/"
+ - "/documentation/examples/remote_storage"
+ - "/internal/tools"
+ schedule:
+ interval: "monthly"
+ groups:
+ k8s.io:
+ patterns:
+ - "k8s.io/*"
+ go.opentelemetry.io:
+ patterns:
+ - "go.opentelemetry.io/*"
+ open-pull-requests-limit: 20
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/prometheus-3.4.1/.github/workflows/automerge-dependabot.yml
new/prometheus-3.4.2/.github/workflows/automerge-dependabot.yml
--- old/prometheus-3.4.1/.github/workflows/automerge-dependabot.yml
1970-01-01 01:00:00.000000000 +0100
+++ new/prometheus-3.4.2/.github/workflows/automerge-dependabot.yml
2025-06-26 22:48:39.000000000 +0200
@@ -0,0 +1,30 @@
+---
+name: Dependabot auto-merge
+on: pull_request
+
+concurrency:
+ group: ${{ github.workflow }}-${{ (github.event.pull_request &&
github.event.pull_request.number) || github.ref || github.run_id }}
+ cancel-in-progress: true
+
+permissions:
+ contents: read
+
+jobs:
+ dependabot:
+ permissions:
+ contents: write
+ pull-requests: write
+ runs-on: ubuntu-latest
+ if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' &&
github.repository_owner == 'prometheus' }}
+ steps:
+ - name: Dependabot metadata
+ id: metadata
+ uses: dependabot/fetch-metadata@d7267f607e9d3fb96fc2fbe83e0af444713e90b7
# v2.3.0
+ with:
+ github-token: "${{ secrets.GITHUB_TOKEN }}"
+ - name: Enable auto-merge for Dependabot PRs
+ if: ${{steps.metadata.outputs.update-type ==
'version-update:semver-minor' || steps.metadata.outputs.update-type ==
'version-update:semver-patch'}}
+ run: gh pr merge --auto --merge "$PR_URL"
+ env:
+ PR_URL: ${{github.event.pull_request.html_url}}
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/.github/workflows/buf-lint.yml
new/prometheus-3.4.2/.github/workflows/buf-lint.yml
--- old/prometheus-3.4.1/.github/workflows/buf-lint.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/prometheus-3.4.2/.github/workflows/buf-lint.yml 2025-06-26
22:48:39.000000000 +0200
@@ -0,0 +1,25 @@
+name: buf.build
+on:
+ pull_request:
+ paths:
+ - ".github/workflows/buf-lint.yml"
+ - "**.proto"
+permissions:
+ contents: read
+
+jobs:
+ buf:
+ name: lint
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+ - uses:
bufbuild/buf-setup-action@a47c93e0b1648d5651a065437926377d060baa99 # v1.50.0
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ - uses:
bufbuild/buf-lint-action@06f9dd823d873146471cfaaf108a993fe00e5325 # v1.1.1
+ with:
+ input: 'prompb'
+ - uses:
bufbuild/buf-breaking-action@c57b3d842a5c3f3b454756ef65305a50a587c5ba # v1.1.4
+ with:
+ input: 'prompb'
+ against:
'https://github.com/prometheus/prometheus.git#branch=main,ref=HEAD,subdir=prompb'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/.github/workflows/buf.yml
new/prometheus-3.4.2/.github/workflows/buf.yml
--- old/prometheus-3.4.1/.github/workflows/buf.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/prometheus-3.4.2/.github/workflows/buf.yml 2025-06-26
22:48:39.000000000 +0200
@@ -0,0 +1,29 @@
+name: buf.build
+on:
+ push:
+ branches:
+ - main
+permissions:
+ contents: read
+
+jobs:
+ buf:
+ name: lint and publish
+ runs-on: ubuntu-latest
+ if: github.repository_owner == 'prometheus'
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+ - uses:
bufbuild/buf-setup-action@a47c93e0b1648d5651a065437926377d060baa99 # v1.50.0
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ - uses:
bufbuild/buf-lint-action@06f9dd823d873146471cfaaf108a993fe00e5325 # v1.1.1
+ with:
+ input: 'prompb'
+ - uses:
bufbuild/buf-breaking-action@c57b3d842a5c3f3b454756ef65305a50a587c5ba # v1.1.4
+ with:
+ input: 'prompb'
+ against:
'https://github.com/prometheus/prometheus.git#branch=main,ref=HEAD~1,subdir=prompb'
+ - uses:
bufbuild/buf-push-action@a654ff18effe4641ebea4a4ce242c49800728459 # v1.1.1
+ with:
+ input: 'prompb'
+ buf_token: ${{ secrets.BUF_TOKEN }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/.github/workflows/ci.yml
new/prometheus-3.4.2/.github/workflows/ci.yml
--- old/prometheus-3.4.1/.github/workflows/ci.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/prometheus-3.4.2/.github/workflows/ci.yml 2025-06-26
22:48:39.000000000 +0200
@@ -0,0 +1,293 @@
+---
+name: CI
+on:
+ pull_request:
+ push:
+
+jobs:
+ test_go:
+ name: Go tests
+ runs-on: ubuntu-latest
+ container:
+ # Whenever the Go version is updated here, .promu.yml
+ # should also be updated.
+ image: quay.io/prometheus/golang-builder:1.24-base
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+ - uses: prometheus/promci@443c7fc2397e946bc9f5029e313a9c3441b9b86d #
v0.4.7
+ - uses: ./.github/promci/actions/setup_environment
+ with:
+ enable_npm: true
+ - run: make GOOPTS=--tags=stringlabels GO_ONLY=1 SKIP_GOLANGCI_LINT=1
+ - run: go test --tags=stringlabels ./tsdb/ -test.tsdb-isolation=false
+ - run: make -C documentation/examples/remote_storage
+ - run: make -C documentation/examples
+
+ test_go_more:
+ name: More Go tests
+ runs-on: ubuntu-latest
+ container:
+ image: quay.io/prometheus/golang-builder:1.24-base
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+ - uses: prometheus/promci@443c7fc2397e946bc9f5029e313a9c3441b9b86d #
v0.4.7
+ - uses: ./.github/promci/actions/setup_environment
+ - run: go test --tags=dedupelabels ./...
+ - run: go test -race ./cmd/prometheus
+ - run: GOARCH=386 go test ./...
+ - uses: ./.github/promci/actions/check_proto
+ with:
+ version: "3.15.8"
+
+ test_go_oldest:
+ name: Go tests with previous Go version
+ runs-on: ubuntu-latest
+ env:
+ # Enforce the Go version.
+ GOTOOLCHAIN: local
+ container:
+ # The go version in this image should be N-1 wrt test_go.
+ image: quay.io/prometheus/golang-builder:1.23-base
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+ - run: make build
+ # Don't run NPM build; don't run race-detector.
+ - run: make test GO_ONLY=1 test-flags=""
+
+ test_ui:
+ name: UI tests
+ runs-on: ubuntu-latest
+ # Whenever the Go version is updated here, .promu.yml
+ # should also be updated.
+ container:
+ image: quay.io/prometheus/golang-builder:1.24-base
+
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+ - uses: prometheus/promci@443c7fc2397e946bc9f5029e313a9c3441b9b86d #
v0.4.7
+ - uses: ./.github/promci/actions/setup_environment
+ with:
+ enable_go: false
+ enable_npm: true
+ - run: make assets-tarball
+ - run: make ui-lint
+ - run: make ui-test
+ - uses: ./.github/promci/actions/save_artifacts
+ with:
+ directory: .tarballs
+
+ test_windows:
+ name: Go tests on Windows
+ runs-on: windows-latest
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+ - uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b #
v5.4.0
+ with:
+ go-version: 1.24.x
+ - run: |
+ $TestTargets = go list ./... | Where-Object { $_ -NotMatch
"(github.com/prometheus/prometheus/config|github.com/prometheus/prometheus/web)"}
+ go test $TestTargets -vet=off -v
+ shell: powershell
+
+ test_mixins:
+ name: Mixins tests
+ runs-on: ubuntu-latest
+ # Whenever the Go version is updated here, .promu.yml
+ # should also be updated.
+ container:
+ image: quay.io/prometheus/golang-builder:1.24-base
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+ - run: go install ./cmd/promtool/.
+ - run: go install github.com/google/go-jsonnet/cmd/jsonnet@latest
+ - run: go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest
+ - run: go install
github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest
+ - run: make -C documentation/prometheus-mixin clean
+ - run: make -C documentation/prometheus-mixin jb_install
+ - run: make -C documentation/prometheus-mixin
+ - run: git diff --exit-code
+
+ build:
+ name: Build Prometheus for common architectures
+ runs-on: ubuntu-latest
+ if: |
+ !(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v2.'))
+ &&
+ !(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v3.'))
+ &&
+ !(github.event_name == 'pull_request' &&
startsWith(github.event.pull_request.base.ref, 'release-'))
+ &&
+ !(github.event_name == 'push' && github.event.ref == 'refs/heads/main')
+ strategy:
+ matrix:
+ thread: [ 0, 1, 2 ]
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+ - uses: prometheus/promci@443c7fc2397e946bc9f5029e313a9c3441b9b86d #
v0.4.7
+ - uses: ./.github/promci/actions/build
+ with:
+ promu_opts: "-p linux/amd64 -p windows/amd64 -p linux/arm64 -p
darwin/amd64 -p darwin/arm64 -p linux/386"
+ parallelism: 3
+ thread: ${{ matrix.thread }}
+ build_all:
+ name: Build Prometheus for all architectures
+ runs-on: ubuntu-latest
+ if: |
+ (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v2.'))
+ ||
+ (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v3.'))
+ ||
+ (github.event_name == 'pull_request' &&
startsWith(github.event.pull_request.base.ref, 'release-'))
+ ||
+ (github.event_name == 'push' && github.event.ref == 'refs/heads/main')
+ strategy:
+ matrix:
+ thread: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ]
+
+ # Whenever the Go version is updated here, .promu.yml
+ # should also be updated.
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+ - uses: prometheus/promci@443c7fc2397e946bc9f5029e313a9c3441b9b86d #
v0.4.7
+ - uses: ./.github/promci/actions/build
+ with:
+ parallelism: 12
+ thread: ${{ matrix.thread }}
+ build_all_status:
+ # This status check aggregates the individual matrix jobs of the "Build
+ # Prometheus for all architectures" step into a final status. Fails if a
+ # single matrix job fails, succeeds if all matrix jobs succeed.
+ # See https://github.com/orgs/community/discussions/4324 for why this is
+ # needed
+ name: Report status of build Prometheus for all architectures
+ runs-on: ubuntu-latest
+ needs: [build_all]
+ # The run condition needs to include always(). Otherwise actions
+ # behave unexpected:
+ # only "needs" will make the Status Report be skipped if one of the builds
fails
https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/using-jobs-in-a-workflow#defining-prerequisite-jobs
+ # And skipped is treated as success
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborat[…]n-repositories-with-code-quality-features/about-status-checks
+ # Adding always ensures that the status check is run independently of the
+ # results of Build All
+ if: always() && github.event_name == 'pull_request' &&
startsWith(github.event.pull_request.base.ref, 'release-')
+ steps:
+ - name: Successful build
+ if: ${{ !(contains(needs.*.result, 'failure')) &&
!(contains(needs.*.result, 'cancelled')) }}
+ run: exit 0
+ - name: Failing or cancelled build
+ if: ${{ contains(needs.*.result, 'failure') ||
contains(needs.*.result, 'cancelled') }}
+ run: exit 1
+ check_generated_parser:
+ name: Check generated parser
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+ - name: Install Go
+ uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b #
v5.4.0
+ with:
+ cache: false
+ go-version: 1.24.x
+ - name: Run goyacc and check for diff
+ run: make install-goyacc check-generated-parser
+ golangci:
+ name: golangci-lint
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+ - name: Install Go
+ uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b #
v5.4.0
+ with:
+ go-version: 1.24.x
+ - name: Install snmp_exporter/generator dependencies
+ run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
+ if: github.repository == 'prometheus/snmp_exporter'
+ - name: Lint
+ uses:
golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0.0
+ with:
+ args: --verbose
+ # Make sure to sync this with Makefile.common and
scripts/golangci-lint.yml.
+ version: v2.0.2
+ fuzzing:
+ uses: ./.github/workflows/fuzzing.yml
+ if: github.event_name == 'pull_request'
+ codeql:
+ uses: ./.github/workflows/codeql-analysis.yml
+
+ publish_main:
+ name: Publish main branch artifacts
+ runs-on: ubuntu-latest
+ needs: [test_ui, test_go, test_go_more, test_go_oldest, test_windows,
golangci, codeql, build_all]
+ if: github.event_name == 'push' && github.event.ref == 'refs/heads/main'
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+ - uses: prometheus/promci@443c7fc2397e946bc9f5029e313a9c3441b9b86d #
v0.4.7
+ - uses: ./.github/promci/actions/publish_main
+ with:
+ docker_hub_login: ${{ secrets.docker_hub_login }}
+ docker_hub_password: ${{ secrets.docker_hub_password }}
+ quay_io_login: ${{ secrets.quay_io_login }}
+ quay_io_password: ${{ secrets.quay_io_password }}
+ publish_release:
+ name: Publish release artefacts
+ runs-on: ubuntu-latest
+ needs: [test_ui, test_go, test_go_more, test_go_oldest, test_windows,
golangci, codeql, build_all]
+ if: |
+ (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v2.'))
+ ||
+ (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v3.'))
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+ - uses: prometheus/promci@443c7fc2397e946bc9f5029e313a9c3441b9b86d #
v0.4.7
+ - uses: ./.github/promci/actions/publish_release
+ with:
+ docker_hub_login: ${{ secrets.docker_hub_login }}
+ docker_hub_password: ${{ secrets.docker_hub_password }}
+ quay_io_login: ${{ secrets.quay_io_login }}
+ quay_io_password: ${{ secrets.quay_io_password }}
+ github_token: ${{ secrets.PROMBOT_GITHUB_TOKEN }}
+ publish_ui_release:
+ name: Publish UI on npm Registry
+ runs-on: ubuntu-latest
+ needs: [test_ui, codeql]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+ - uses: prometheus/promci@443c7fc2397e946bc9f5029e313a9c3441b9b86d #
v0.4.7
+ - name: Install nodejs
+ uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e #
v4.3.0
+ with:
+ node-version-file: "web/ui/.nvmrc"
+ registry-url: "https://registry.npmjs.org"
+ - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
+ with:
+ path: ~/.npm
+ key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
+ restore-keys: |
+ ${{ runner.os }}-node-
+ - name: Check libraries version
+ if: |
+ (github.event_name == 'push' && startsWith(github.ref,
'refs/tags/v2.'))
+ ||
+ (github.event_name == 'push' && startsWith(github.ref,
'refs/tags/v3.'))
+ run: ./scripts/ui_release.sh --check-package
"$(./scripts/get_module_version.sh ${{ github.ref_name }})"
+ - name: build
+ run: make assets
+ - name: Copy files before publishing libs
+ run: ./scripts/ui_release.sh --copy
+ - name: Publish dry-run libraries
+ if: |
+ !(github.event_name == 'push' && startsWith(github.ref,
'refs/tags/v2.'))
+ &&
+ !(github.event_name == 'push' && startsWith(github.ref,
'refs/tags/v3.'))
+ run: ./scripts/ui_release.sh --publish dry-run
+ - name: Publish libraries
+ if: |
+ (github.event_name == 'push' && startsWith(github.ref,
'refs/tags/v2.'))
+ ||
+ (github.event_name == 'push' && startsWith(github.ref,
'refs/tags/v3.'))
+ run: ./scripts/ui_release.sh --publish
+ env:
+ # The setup-node action writes an .npmrc file with this env variable
+ # as the placeholder for the auth token
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/prometheus-3.4.1/.github/workflows/codeql-analysis.yml
new/prometheus-3.4.2/.github/workflows/codeql-analysis.yml
--- old/prometheus-3.4.1/.github/workflows/codeql-analysis.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/prometheus-3.4.2/.github/workflows/codeql-analysis.yml 2025-06-26
22:48:39.000000000 +0200
@@ -0,0 +1,38 @@
+---
+name: "CodeQL"
+
+on:
+ workflow_call:
+ schedule:
+ - cron: "26 14 * * 1"
+
+permissions:
+ contents: read
+ security-events: write
+
+jobs:
+ analyze:
+ name: Analyze
+ runs-on: ubuntu-latest
+ permissions:
+ security-events: write
+
+ strategy:
+ fail-fast: false
+ matrix:
+ language: ["javascript"]
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+
+ - name: Initialize CodeQL
+ uses:
github/codeql-action/init@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
+ with:
+ languages: ${{ matrix.language }}
+
+ - name: Autobuild
+ uses:
github/codeql-action/autobuild@1b549b9259bda1cb5ddde3b41741a82a2d15a841 #
v3.28.13
+
+ - name: Perform CodeQL Analysis
+ uses:
github/codeql-action/analyze@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/prometheus-3.4.1/.github/workflows/container_description.yml
new/prometheus-3.4.2/.github/workflows/container_description.yml
--- old/prometheus-3.4.1/.github/workflows/container_description.yml
1970-01-01 01:00:00.000000000 +0100
+++ new/prometheus-3.4.2/.github/workflows/container_description.yml
2025-06-26 22:48:39.000000000 +0200
@@ -0,0 +1,57 @@
+---
+name: Push README to Docker Hub
+on:
+ push:
+ paths:
+ - "README.md"
+ - "README-containers.md"
+ - ".github/workflows/container_description.yml"
+ branches: [ main, master ]
+
+permissions:
+ contents: read
+
+jobs:
+ PushDockerHubReadme:
+ runs-on: ubuntu-latest
+ name: Push README to Docker Hub
+ if: github.repository_owner == 'prometheus' || github.repository_owner ==
'prometheus-community' # Don't run this workflow on forks.
+ steps:
+ - name: git checkout
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+ - name: Set docker hub repo name
+ run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV
+ - name: Push README to Dockerhub
+ uses:
christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8
# v1
+ env:
+ DOCKER_USER: ${{ secrets.DOCKER_HUB_LOGIN }}
+ DOCKER_PASS: ${{ secrets.DOCKER_HUB_PASSWORD }}
+ with:
+ destination_container_repo: ${{ env.DOCKER_REPO_NAME }}
+ provider: dockerhub
+ short_description: ${{ env.DOCKER_REPO_NAME }}
+ # Empty string results in README-containers.md being pushed if it
+ # exists. Otherwise, README.md is pushed.
+ readme_file: ''
+
+ PushQuayIoReadme:
+ runs-on: ubuntu-latest
+ name: Push README to quay.io
+ if: github.repository_owner == 'prometheus' || github.repository_owner ==
'prometheus-community' # Don't run this workflow on forks.
+ steps:
+ - name: git checkout
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+ - name: Set quay.io org name
+ run: echo "DOCKER_REPO=$(echo quay.io/${GITHUB_REPOSITORY_OWNER} | tr
-d '-')" >> $GITHUB_ENV
+ - name: Set quay.io repo name
+ run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV
+ - name: Push README to quay.io
+ uses:
christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8
# v1
+ env:
+ DOCKER_APIKEY: ${{ secrets.QUAY_IO_API_TOKEN }}
+ with:
+ destination_container_repo: ${{ env.DOCKER_REPO_NAME }}
+ provider: quay
+ # Empty string results in README-containers.md being pushed if it
+ # exists. Otherwise, README.md is pushed.
+ readme_file: ''
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/.github/workflows/fuzzing.yml
new/prometheus-3.4.2/.github/workflows/fuzzing.yml
--- old/prometheus-3.4.1/.github/workflows/fuzzing.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/prometheus-3.4.2/.github/workflows/fuzzing.yml 2025-06-26
22:48:39.000000000 +0200
@@ -0,0 +1,28 @@
+name: CIFuzz
+on:
+ workflow_call:
+permissions:
+ contents: read
+
+jobs:
+ Fuzzing:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Build Fuzzers
+ id: build
+ uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
+ with:
+ oss-fuzz-project-name: "prometheus"
+ dry-run: false
+ - name: Run Fuzzers
+ uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
+ with:
+ oss-fuzz-project-name: "prometheus"
+ fuzz-seconds: 600
+ dry-run: false
+ - name: Upload Crash
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
# v4.6.2
+ if: failure() && steps.build.outcome == 'success'
+ with:
+ name: artifacts
+ path: ./out/artifacts
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/.github/workflows/lock.yml
new/prometheus-3.4.2/.github/workflows/lock.yml
--- old/prometheus-3.4.1/.github/workflows/lock.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/prometheus-3.4.2/.github/workflows/lock.yml 2025-06-26
22:48:39.000000000 +0200
@@ -0,0 +1,23 @@
+name: 'Lock Threads'
+
+on:
+ schedule:
+ - cron: '13 23 * * *'
+ workflow_dispatch:
+
+permissions:
+ issues: write
+
+concurrency:
+ group: lock
+
+jobs:
+ action:
+ runs-on: ubuntu-latest
+ if: github.repository_owner == 'prometheus'
+ steps:
+ - uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 #
v5.0.1
+ with:
+ process-only: 'issues'
+ issue-inactive-days: '180'
+ github-token: ${{ secrets.PROMBOT_LOCKTHREADS_TOKEN }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/.github/workflows/prombench.yml
new/prometheus-3.4.2/.github/workflows/prombench.yml
--- old/prometheus-3.4.1/.github/workflows/prombench.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/prometheus-3.4.2/.github/workflows/prombench.yml 2025-06-26
22:48:39.000000000 +0200
@@ -0,0 +1,128 @@
+on:
+ repository_dispatch:
+ types: [prombench_start, prombench_restart, prombench_stop]
+name: Prombench Workflow
+env:
+ AUTH_FILE: ${{ secrets.TEST_INFRA_PROVIDER_AUTH }}
+ CLUSTER_NAME: test-infra
+ DOMAIN_NAME: prombench.prometheus.io
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GITHUB_ORG: prometheus
+ GITHUB_REPO: prometheus
+ GITHUB_STATUS_TARGET_URL:
https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
+ LAST_COMMIT_SHA: ${{ github.event.client_payload.LAST_COMMIT_SHA }}
+ GKE_PROJECT_ID: macro-mile-203600
+ PR_NUMBER: ${{ github.event.client_payload.PR_NUMBER }}
+ PROVIDER: gke
+ RELEASE: ${{ github.event.client_payload.RELEASE }}
+ BENCHMARK_VERSION: ${{ github.event.client_payload.BENCHMARK_VERSION }}
+ BENCHMARK_DIRECTORY: ${{ github.event.client_payload.BENCHMARK_DIRECTORY }}
+ ZONE: europe-west3-a
+jobs:
+ benchmark_start:
+ name: Benchmark Start
+ if: github.event.action == 'prombench_start'
+ runs-on: ubuntu-latest
+ steps:
+ - name: Update status to pending
+ run: >-
+ curl -i -X POST
+ -H "Authorization: Bearer $GITHUB_TOKEN"
+ -H "Content-Type: application/json"
+ --data '{"state":"pending", "context":
"prombench-status-update-start", "target_url": "'$GITHUB_STATUS_TARGET_URL'"}'
+
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
+ - name: Run make deploy to start test
+ id: make_deploy
+ uses: docker://prominfra/prombench:master
+ with:
+ args: >-
+ until make all_nodes_deleted; do echo "waiting for nodepools to be
deleted"; sleep 10; done;
+ make deploy;
+ - name: Update status to failure
+ if: failure()
+ run: >-
+ curl -i -X POST
+ -H "Authorization: Bearer $GITHUB_TOKEN"
+ -H "Content-Type: application/json"
+ --data '{"state":"failure", "context":
"prombench-status-update-start", "target_url": "'$GITHUB_STATUS_TARGET_URL'"}'
+
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
+ - name: Update status to success
+ if: success()
+ run: >-
+ curl -i -X POST
+ -H "Authorization: Bearer $GITHUB_TOKEN"
+ -H "Content-Type: application/json"
+ --data '{"state":"success", "context":
"prombench-status-update-start", "target_url": "'$GITHUB_STATUS_TARGET_URL'"}'
+
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
+ benchmark_cancel:
+ name: Benchmark Cancel
+ if: github.event.action == 'prombench_stop'
+ runs-on: ubuntu-latest
+ steps:
+ - name: Update status to pending
+ run: >-
+ curl -i -X POST
+ -H "Authorization: Bearer $GITHUB_TOKEN"
+ -H "Content-Type: application/json"
+ --data '{"state":"pending", "context":
"prombench-status-update-cancel", "target_url": "'$GITHUB_STATUS_TARGET_URL'"}'
+
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
+ - name: Run make clean to stop test
+ id: make_clean
+ uses: docker://prominfra/prombench:master
+ with:
+ args: >-
+ until make all_nodes_running; do echo "waiting for nodepools to be
created"; sleep 10; done;
+ make clean;
+ - name: Update status to failure
+ if: failure()
+ run: >-
+ curl -i -X POST
+ -H "Authorization: Bearer $GITHUB_TOKEN"
+ -H "Content-Type: application/json"
+ --data '{"state":"failure", "context":
"prombench-status-update-cancel", "target_url": "'$GITHUB_STATUS_TARGET_URL'"}'
+
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
+ - name: Update status to success
+ if: success()
+ run: >-
+ curl -i -X POST
+ -H "Authorization: Bearer $GITHUB_TOKEN"
+ -H "Content-Type: application/json"
+ --data '{"state":"success", "context":
"prombench-status-update-cancel", "target_url": "'$GITHUB_STATUS_TARGET_URL'"}'
+
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
+ benchmark_restart:
+ name: Benchmark Restart
+ if: github.event.action == 'prombench_restart'
+ runs-on: ubuntu-latest
+ steps:
+ - name: Update status to pending
+ run: >-
+ curl -i -X POST
+ -H "Authorization: Bearer $GITHUB_TOKEN"
+ -H "Content-Type: application/json"
+ --data '{"state":"pending", "context":
"prombench-status-update-restart", "target_url": "'$GITHUB_STATUS_TARGET_URL'"}'
+
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
+ - name: Run make clean then make deploy to restart test
+ id: make_restart
+ uses: docker://prominfra/prombench:master
+ with:
+ args: >-
+ until make all_nodes_running; do echo "waiting for nodepools to be
created"; sleep 10; done;
+ make clean;
+ until make all_nodes_deleted; do echo "waiting for nodepools to be
deleted"; sleep 10; done;
+ make deploy;
+ - name: Update status to failure
+ if: failure()
+ run: >-
+ curl -i -X POST
+ -H "Authorization: Bearer $GITHUB_TOKEN"
+ -H "Content-Type: application/json"
+ --data '{"state":"failure", "context":
"prombench-status-update-restart", "target_url": "'$GITHUB_STATUS_TARGET_URL'"}'
+
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
+ - name: Update status to success
+ if: success()
+ run: >-
+ curl -i -X POST
+ -H "Authorization: Bearer $GITHUB_TOKEN"
+ -H "Content-Type: application/json"
+ --data '{"state":"success", "context":
"prombench-status-update-restart", "target_url": "'$GITHUB_STATUS_TARGET_URL'"}'
+
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/.github/workflows/repo_sync.yml
new/prometheus-3.4.2/.github/workflows/repo_sync.yml
--- old/prometheus-3.4.1/.github/workflows/repo_sync.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/prometheus-3.4.2/.github/workflows/repo_sync.yml 2025-06-26
22:48:39.000000000 +0200
@@ -0,0 +1,19 @@
+---
+name: Sync repo files
+on:
+ schedule:
+ - cron: '44 17 * * *'
+permissions:
+ contents: read
+
+jobs:
+ repo_sync:
+ runs-on: ubuntu-latest
+ if: github.repository_owner == 'prometheus'
+ container:
+ image: quay.io/prometheus/golang-builder
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+ - run: ./scripts/sync_repo_files.sh
+ env:
+ GITHUB_TOKEN: ${{ secrets.PROMBOT_GITHUB_TOKEN }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/.github/workflows/scorecards.yml
new/prometheus-3.4.2/.github/workflows/scorecards.yml
--- old/prometheus-3.4.1/.github/workflows/scorecards.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/prometheus-3.4.2/.github/workflows/scorecards.yml 2025-06-26
22:48:39.000000000 +0200
@@ -0,0 +1,50 @@
+# Copyright 2022 Google LLC
+
+name: Scorecards supply-chain security
+on:
+ pull_request:
+ push:
+ branches: [ "main" ]
+
+# Declare default permissions as read only.
+permissions: read-all
+
+jobs:
+ analysis:
+ name: Scorecards analysis
+ runs-on: ubuntu-latest
+ permissions:
+ # Needed to upload the results to code-scanning dashboard.
+ security-events: write
+ # Used to receive a badge.
+ id-token: write
+
+ steps:
+ - name: "Checkout code"
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
tag=v4.2.2
+ with:
+ persist-credentials: false
+
+ - name: "Run analysis"
+ uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 #
tag=v2.4.1
+ with:
+ results_file: results.sarif
+ results_format: sarif
+ # Publish the results for public repositories to enable scorecard
badges. For more details, see
+ # https://github.com/ossf/scorecard-action#publishing-results.
+ publish_results: ${{ github.event_name != 'pull_request' }}
+
+ # Upload the results as artifacts (optional). Commenting out will
disable uploads of run results in SARIF
+ # format to the repository Actions tab.
+ - name: "Upload artifact"
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
# tag=v4.6.2
+ with:
+ name: SARIF file
+ path: results.sarif
+ retention-days: 5
+
+ # Upload the results to GitHub's code scanning dashboard.
+ - name: "Upload to code-scanning"
+ uses:
github/codeql-action/upload-sarif@1b549b9259bda1cb5ddde3b41741a82a2d15a841 #
tag=v3.28.13
+ with:
+ sarif_file: results.sarif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/.github/workflows/stale.yml
new/prometheus-3.4.2/.github/workflows/stale.yml
--- old/prometheus-3.4.1/.github/workflows/stale.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/prometheus-3.4.2/.github/workflows/stale.yml 2025-06-26
22:48:39.000000000 +0200
@@ -0,0 +1,31 @@
+name: Stale Check
+on:
+ workflow_dispatch: {}
+ schedule:
+ - cron: '16 22 * * *'
+permissions:
+ issues: write
+ pull-requests: write
+jobs:
+ stale:
+ if: github.repository_owner == 'prometheus' || github.repository_owner ==
'prometheus-community' # Don't run this workflow on forks.
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
+ with:
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
+ # opt out of defaults to avoid marking issues as stale and closing
them
+ # https://github.com/actions/stale#days-before-close
+ # https://github.com/actions/stale#days-before-stale
+ days-before-stale: -1
+ days-before-close: -1
+ # Setting it to empty string to skip comments.
+ # https://github.com/actions/stale#stale-pr-message
+ # https://github.com/actions/stale#stale-issue-message
+ stale-pr-message: ''
+ stale-issue-message: ''
+ operations-per-run: 30
+ # override days-before-stale, for only marking the pull requests as
stale
+ days-before-pr-stale: 60
+ stale-pr-label: stale
+ exempt-pr-labels: keepalive
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/.gitignore
new/prometheus-3.4.2/.gitignore
--- old/prometheus-3.4.1/.gitignore 1970-01-01 01:00:00.000000000 +0100
+++ new/prometheus-3.4.2/.gitignore 2025-06-26 22:48:39.000000000 +0200
@@ -0,0 +1,33 @@
+*#
+.#*
+/*.yaml
+/*.yml
+*.exe
+
+/prometheus
+/promtool
+benchmark.txt
+/data
+/data-agent
+/cmd/prometheus/data
+/cmd/prometheus/data-agent
+/cmd/prometheus/debug
+/benchout
+/cmd/promtool/data
+
+!/.travis.yml
+!/.promu.yml
+!/.golangci.yml
+/documentation/examples/remote_storage/remote_storage_adapter/remote_storage_adapter
+/documentation/examples/remote_storage/example_write_adapter/example_write_adapter
+
+npm_licenses.tar.bz2
+/web/ui/static
+
+/vendor
+/.build
+
+/**/node_modules
+
+# Ignore parser debug
+y.output
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/.gitpod.Dockerfile
new/prometheus-3.4.2/.gitpod.Dockerfile
--- old/prometheus-3.4.1/.gitpod.Dockerfile 1970-01-01 01:00:00.000000000
+0100
+++ new/prometheus-3.4.2/.gitpod.Dockerfile 2025-06-26 22:48:39.000000000
+0200
@@ -0,0 +1,33 @@
+FROM gitpod/workspace-full
+
+# Set Node.js version as an environment variable.
+ENV CUSTOM_NODE_VERSION=16
+
+# Install and use the specified Node.js version via nvm.
+RUN bash -c ". .nvm/nvm.sh && nvm install ${CUSTOM_NODE_VERSION} && nvm use
${CUSTOM_NODE_VERSION} && nvm alias default ${CUSTOM_NODE_VERSION}"
+
+# Ensure nvm uses the default Node.js version in all new shells.
+RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix
+
+# Remove any existing Go installation in $HOME path.
+RUN rm -rf $HOME/go $HOME/go-packages
+
+# Export go environment variables.
+RUN echo "export GOPATH=/workspace/go" >> ~/.bashrc.d/300-go && \
+ echo "export GOBIN=\$GOPATH/bin" >> ~/.bashrc.d/300-go && \
+ echo "export GOROOT=${HOME}/go" >> ~/.bashrc.d/300-go && \
+ echo "export PATH=\$GOROOT/bin:\$GOBIN:\$PATH" >> ~/.bashrc
+
+# Reload the environment variables to ensure go environment variables are
+# available in subsequent commands.
+RUN bash -c "source ~/.bashrc && source ~/.bashrc.d/300-go"
+
+# Fetch the Go version dynamically from the Prometheus go.mod file and Install
Go in $HOME path.
+RUN export CUSTOM_GO_VERSION=$(curl -sSL
"https://raw.githubusercontent.com/prometheus/prometheus/main/go.mod" | awk
'/^go/{print $2".0"}') && \
+ curl -fsSL
"https://dl.google.com/go/go${CUSTOM_GO_VERSION}.linux-amd64.tar.gz" | \
+ tar -xz -C $HOME
+
+# Fetch the goyacc parser version dynamically from the Prometheus Makefile
+# and install it globally in $GOBIN path.
+RUN GOYACC_VERSION=$(curl -fsSL
"https://raw.githubusercontent.com/prometheus/prometheus/main/Makefile" | awk
-F'=' '/GOYACC_VERSION \?=/{gsub(/ /, "", $2); print $2}') && \
+ go install "golang.org/x/tools/cmd/goyacc@${GOYACC_VERSION}"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/.gitpod.yml
new/prometheus-3.4.2/.gitpod.yml
--- old/prometheus-3.4.1/.gitpod.yml 1970-01-01 01:00:00.000000000 +0100
+++ new/prometheus-3.4.2/.gitpod.yml 2025-06-26 22:48:39.000000000 +0200
@@ -0,0 +1,20 @@
+image:
+ file: .gitpod.Dockerfile
+tasks:
+ - init:
+ make build
+ command: |
+ gp sync-done build
+ ./prometheus --config.file=documentation/examples/prometheus.yml
+ - command: |
+ cd web/ui/
+ gp sync-await build
+ unset BROWSER
+ export DANGEROUSLY_DISABLE_HOST_CHECK=true
+ npm start
+ openMode: split-right
+ports:
+ - port: 3000
+ onOpen: open-preview
+ - port: 9090
+ onOpen: ignore
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/CHANGELOG.md
new/prometheus-3.4.2/CHANGELOG.md
--- old/prometheus-3.4.1/CHANGELOG.md 2025-05-31 08:41:19.000000000 +0200
+++ new/prometheus-3.4.2/CHANGELOG.md 2025-06-26 22:48:39.000000000 +0200
@@ -1,5 +1,9 @@
# Changelog
+## 3.4.2 / 2025-06-26
+
+* [BUGFIX] OTLP receiver: Fix default configuration not being respected if the
`otlp:` block is unset in the config file. #16693
+
## 3.4.1 / 2025-05-31
* [BUGFIX] Parser: Add reproducer for a dangling-reference issue in parsers.
#16633
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/VERSION new/prometheus-3.4.2/VERSION
--- old/prometheus-3.4.1/VERSION 2025-05-31 08:41:19.000000000 +0200
+++ new/prometheus-3.4.2/VERSION 2025-06-26 22:48:39.000000000 +0200
@@ -1 +1 @@
-3.4.1
+3.4.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/config/config.go
new/prometheus-3.4.2/config/config.go
--- old/prometheus-3.4.1/config/config.go 2025-05-31 08:41:19.000000000
+0200
+++ new/prometheus-3.4.2/config/config.go 2025-06-26 22:48:39.000000000
+0200
@@ -157,6 +157,7 @@
DefaultConfig = Config{
GlobalConfig: DefaultGlobalConfig,
Runtime: DefaultRuntimeConfig,
+ OTLPConfig: DefaultOTLPConfig,
}
// DefaultGlobalConfig is the default global configuration.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/config/config_default_test.go
new/prometheus-3.4.2/config/config_default_test.go
--- old/prometheus-3.4.1/config/config_default_test.go 2025-05-31
08:41:19.000000000 +0200
+++ new/prometheus-3.4.2/config/config_default_test.go 2025-06-26
22:48:39.000000000 +0200
@@ -22,6 +22,7 @@
GlobalConfig: DefaultGlobalConfig,
Runtime: DefaultRuntimeConfig,
+ OTLPConfig: DefaultOTLPConfig,
RuleFiles: []string{
"testdata/first.rules",
"testdata/rules/second.rules",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/config/config_test.go
new/prometheus-3.4.2/config/config_test.go
--- old/prometheus-3.4.1/config/config_test.go 2025-05-31 08:41:19.000000000
+0200
+++ new/prometheus-3.4.2/config/config_test.go 2025-06-26 22:48:39.000000000
+0200
@@ -1775,6 +1775,26 @@
verify(t, err)
})
})
+
+ t.Run("good config - missing otlp config uses default", func(t
*testing.T) {
+ fpath := filepath.Join("testdata", "otlp_empty.yml")
+ verify := func(t *testing.T, conf *Config, err error) {
+ t.Helper()
+ require.NoError(t, err)
+ require.Equal(t, UnderscoreEscapingWithSuffixes,
conf.OTLPConfig.TranslationStrategy)
+ }
+
+ t.Run("LoadFile", func(t *testing.T) {
+ conf, err := LoadFile(fpath, false,
promslog.NewNopLogger())
+ verify(t, conf, err)
+ })
+ t.Run("Load", func(t *testing.T) {
+ content, err := os.ReadFile(fpath)
+ require.NoError(t, err)
+ conf, err := Load(string(content),
promslog.NewNopLogger())
+ verify(t, conf, err)
+ })
+ })
}
func TestLoadConfig(t *testing.T) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/config/testdata/otlp_empty.yml
new/prometheus-3.4.2/config/testdata/otlp_empty.yml
--- old/prometheus-3.4.1/config/testdata/otlp_empty.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/prometheus-3.4.2/config/testdata/otlp_empty.yml 2025-06-26
22:48:39.000000000 +0200
@@ -0,0 +1 @@
+global:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/web/ui/mantine-ui/package.json
new/prometheus-3.4.2/web/ui/mantine-ui/package.json
--- old/prometheus-3.4.1/web/ui/mantine-ui/package.json 2025-05-31
08:41:19.000000000 +0200
+++ new/prometheus-3.4.2/web/ui/mantine-ui/package.json 2025-06-26
22:48:39.000000000 +0200
@@ -1,7 +1,7 @@
{
"name": "@prometheus-io/mantine-ui",
"private": true,
- "version": "0.304.1",
+ "version": "0.304.2",
"type": "module",
"scripts": {
"start": "vite",
@@ -28,7 +28,7 @@
"@microsoft/fetch-event-source": "^2.0.1",
"@nexucis/fuzzy": "^0.5.1",
"@nexucis/kvsearch": "^0.9.1",
- "@prometheus-io/codemirror-promql": "0.304.1",
+ "@prometheus-io/codemirror-promql": "0.304.2",
"@reduxjs/toolkit": "^2.7.0",
"@tabler/icons-react": "^3.31.0",
"@tanstack/react-query": "^5.74.7",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/prometheus-3.4.1/web/ui/module/codemirror-promql/package.json
new/prometheus-3.4.2/web/ui/module/codemirror-promql/package.json
--- old/prometheus-3.4.1/web/ui/module/codemirror-promql/package.json
2025-05-31 08:41:19.000000000 +0200
+++ new/prometheus-3.4.2/web/ui/module/codemirror-promql/package.json
2025-06-26 22:48:39.000000000 +0200
@@ -1,6 +1,6 @@
{
"name": "@prometheus-io/codemirror-promql",
- "version": "0.304.1",
+ "version": "0.304.2",
"description": "a CodeMirror mode for the PromQL language",
"types": "dist/esm/index.d.ts",
"module": "dist/esm/index.js",
@@ -29,7 +29,7 @@
},
"homepage":
"https://github.com/prometheus/prometheus/blob/main/web/ui/module/codemirror-promql/README.md",
"dependencies": {
- "@prometheus-io/lezer-promql": "0.304.1",
+ "@prometheus-io/lezer-promql": "0.304.2",
"lru-cache": "^11.1.0"
},
"devDependencies": {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/prometheus-3.4.1/web/ui/module/lezer-promql/package.json
new/prometheus-3.4.2/web/ui/module/lezer-promql/package.json
--- old/prometheus-3.4.1/web/ui/module/lezer-promql/package.json
2025-05-31 08:41:19.000000000 +0200
+++ new/prometheus-3.4.2/web/ui/module/lezer-promql/package.json
2025-06-26 22:48:39.000000000 +0200
@@ -1,6 +1,6 @@
{
"name": "@prometheus-io/lezer-promql",
- "version": "0.304.1",
+ "version": "0.304.2",
"description": "lezer-based PromQL grammar",
"main": "dist/index.cjs",
"type": "module",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/web/ui/package-lock.json
new/prometheus-3.4.2/web/ui/package-lock.json
--- old/prometheus-3.4.1/web/ui/package-lock.json 2025-05-31
08:41:19.000000000 +0200
+++ new/prometheus-3.4.2/web/ui/package-lock.json 2025-06-26
22:48:39.000000000 +0200
@@ -1,12 +1,12 @@
{
"name": "prometheus-io",
- "version": "0.304.1",
+ "version": "0.304.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "prometheus-io",
- "version": "0.304.1",
+ "version": "0.304.2",
"workspaces": [
"mantine-ui",
"module/*"
@@ -24,7 +24,7 @@
},
"mantine-ui": {
"name": "@prometheus-io/mantine-ui",
- "version": "0.304.1",
+ "version": "0.304.2",
"dependencies": {
"@codemirror/autocomplete": "^6.18.6",
"@codemirror/language": "^6.11.0",
@@ -42,7 +42,7 @@
"@microsoft/fetch-event-source": "^2.0.1",
"@nexucis/fuzzy": "^0.5.1",
"@nexucis/kvsearch": "^0.9.1",
- "@prometheus-io/codemirror-promql": "0.304.1",
+ "@prometheus-io/codemirror-promql": "0.304.2",
"@reduxjs/toolkit": "^2.7.0",
"@tabler/icons-react": "^3.31.0",
"@tanstack/react-query": "^5.74.7",
@@ -189,10 +189,10 @@
},
"module/codemirror-promql": {
"name": "@prometheus-io/codemirror-promql",
- "version": "0.304.1",
+ "version": "0.304.2",
"license": "Apache-2.0",
"dependencies": {
- "@prometheus-io/lezer-promql": "0.304.1",
+ "@prometheus-io/lezer-promql": "0.304.2",
"lru-cache": "^11.1.0"
},
"devDependencies": {
@@ -222,7 +222,7 @@
},
"module/lezer-promql": {
"name": "@prometheus-io/lezer-promql",
- "version": "0.304.1",
+ "version": "0.304.2",
"license": "Apache-2.0",
"devDependencies": {
"@lezer/generator": "^1.7.3",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/prometheus-3.4.1/web/ui/package.json
new/prometheus-3.4.2/web/ui/package.json
--- old/prometheus-3.4.1/web/ui/package.json 2025-05-31 08:41:19.000000000
+0200
+++ new/prometheus-3.4.2/web/ui/package.json 2025-06-26 22:48:39.000000000
+0200
@@ -1,7 +1,7 @@
{
"name": "prometheus-io",
"description": "Monorepo for the Prometheus UI",
- "version": "0.304.1",
+ "version": "0.304.2",
"private": true,
"scripts": {
"build": "bash build_ui.sh --all",
++++++ vendor.tar.gz ++++++
/work/SRC/openSUSE:Factory/golang-github-prometheus-prometheus/vendor.tar.gz
/work/SRC/openSUSE:Factory/.golang-github-prometheus-prometheus.new.7067/vendor.tar.gz
differ: char 13, line 1
++++++ web-ui-3.4.1.tar.gz -> web-ui-3.4.2.tar.gz ++++++
/work/SRC/openSUSE:Factory/golang-github-prometheus-prometheus/web-ui-3.4.1.tar.gz
/work/SRC/openSUSE:Factory/.golang-github-prometheus-prometheus.new.7067/web-ui-3.4.2.tar.gz
differ: char 5, line 1