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-10-27 14:38:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/golang-github-prometheus-prometheus (Old)
and
/work/SRC/openSUSE:Factory/.golang-github-prometheus-prometheus.new.1980 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "golang-github-prometheus-prometheus"
Mon Oct 27 14:38:12 2025 rev:62 rq:1313393 version:3.7.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/golang-github-prometheus-prometheus/golang-github-prometheus-prometheus.changes
2025-07-26 13:40:16.286650888 +0200
+++
/work/SRC/openSUSE:Factory/.golang-github-prometheus-prometheus.new.1980/golang-github-prometheus-prometheus.changes
2025-10-27 14:39:05.568996529 +0100
@@ -1,0 +2,193 @@
+Thu Oct 23 06:23:46 UTC 2025 - Johannes Kastl
<[email protected]>
+
+- update to 3.7.2:
+ * [BUGFIX] AWS SD: Fix AWS SDK v2 credentials handling for EC2
+ and Lightsail discovery. #17355
+ * [BUGFIX] AWS SD: Load AWS region from IMDS when not set. #17376
+ * [BUGFIX] Relabeling: Fix labelmap action validation with the
+ legacy metric name validation scheme. #17372
+ * [BUGFIX] PromQL: Fix parsing failure when anchored and smoothed
+ are used as metric names and label names. #17353
+ * [BUGFIX] PromQL: Fix formatting of range vector selectors with
+ smoothed/anchored modifier. #17354
+
+-------------------------------------------------------------------
+Thu Oct 23 06:13:11 UTC 2025 - Johannes Kastl
<[email protected]>
+
+- update to 3.7.1:
+ * [BUGFIX] OTLP: Prefix key_ to label name when translating an OTel
+ attribute name starting with a single underscore, and keep
+ multiple consecutive underscores in label name when translating an
+ OTel attribute name. This reverts the breaking changes introduced
+ in 3.7.0. #17344
+
+-------------------------------------------------------------------
+Fri Oct 17 08:39:26 UTC 2025 - Johannes Kastl
<[email protected]>
+
+- Add 0003-Remove-build-react-app.patch
+- Removed:
+ * npm_licenses.tar.bz
+ * web-ui-3.5.0.tar.gz
+- Use node modules build service for building UI assets
+- update to 3.7.0:
+ Warning
+ We discovered a breaking change in the OTLP endpoint:
+ OpenTelemetry attribute names starting with underscore, for
+ example '_attrib', are no longer automatically translated to
+ key_attrib. We are working on a fix and expect to release 3.7.1.
+ Changes:
+ * [CHANGE] Remote-write: the following metrics are deprecated:
+ - prometheus_remote_storage_samples_in_total, use
+ prometheus_wal_watcher_records_read_total{type="samples"} and
+ prometheus_remote_storage_samples_dropped_total instead,
+ - prometheus_remote_storage_histograms_in_total, use
+ prometheus_wal_watcher_records_read_total{type=~".*histogram_samples"}
+ and prometheus_remote_storage_histograms_dropped_total
+ instead,
+ - prometheus_remote_storage_exemplars_in_total, use
+ prometheus_wal_watcher_records_read_total{type="exemplars"}
+ and prometheus_remote_storage_exemplars_dropped_total
+ instead,
+ - prometheus_remote_storage_highest_timestamp_in_seconds, use
+ the more accurate
+ prometheus_remote_storage_queue_highest_timestamp_seconds
+ instead in dashboards and alerts to properly account for
+ relabeling and for more accuracy. #17065
+ * [FEATURE] PromQL: Add support for experimental anchored and
+ smoothed rate behind feature flag
+ promql-extended-range-selectors. #16457
+ * [FEATURE] Federation: Add support for native histograms with
+ custom buckets (NHCB). #17215
+ * [FEATURE] PromQL: Add first_over_time(...) and
+ ts_of_first_over_time(...) behind feature flag
+ experimental-promql-functions. #16963 #17021
+ * [FEATURE] Remote-write: Add support for Azure Workload Identity
+ as an authentication method for the receiver. #16788
+ * [FEATURE] Remote-write: Add type and unit labels to outgoing
+ time series in remote-write 2.0 when the type-and-unit-labels
+ feature flag is enabled. #17033
+ * [FEATURE] OTLP: Write start time of metrics as created time
+ zero samples into TSDB when created-timestamp-zero-ingestion
+ feature flag is enabled. #16951
+ * [ENHANCEMENT] PromQL: Add warn-level annotations for counter
+ reset conflicts in certain histogram operations. #17051 #17094
+ * [ENHANCEMENT] UI: Add scrape interval and scrape timeout to
+ targets page. #17158
+ * [ENHANCEMENT] TSDB: Reduce the resolution of native histograms
+ read from chunks or remote read if the schema is exponential.
+ #17213
+ * [ENHANCEMENT] Remote write: Add logging for unexpected metadata
+ in sample batches, when metadata entries are found in
+ samples-only batches. #17034 #17082
+ * [ENHANCEMENT] Rules: Support concurrent evaluation for rules
+ querying ALERTS and ALERTS_FOR_STATE. #17064
+ * [ENHANCEMENT] TSDB: Add logs to improve visibility into
+ internal operations. #17074
+ * [PERF] OTLP: Write directly to TSDB instead of passing through
+ a Remote-Write adapter when receiving OTLP metrics. #16951
+ * [PERF] OTLP: Reduce number of logs emitted from OTLP endpoint.
+ No need to log duplicate sample errors. #17201
+ * [PERF] PromQL: Move more work to preprocessing step. #16896
+ * [PERF] PromQL: Reduce allocations when walking the syntax tree.
+ #16593
+ * [PERF] TSDB: Optimize appender creation, slightly speeding up
+ startup. #16922
+ * [PERF] TSDB: Improve speed of querying a series with multiple
+ matchers. #13971
+ * [BUGFIX] Alerting: Mutating alerts relabeling (using replace
+ actions, etc.) within a
+ alertmanager_config.alert_relabel_configs block is now scoped
+ correctly and no longer yields altered alerts to subsequent
+ blocks. #17063
+ * [BUGFIX] Config: Infer valid escaping scheme when scrape config
+ validation scheme is set. #16923
+ * [BUGFIX] TSDB: Correctly handle appending mixed-typed samples
+ to the same series. #17071 #17241 #17290 #17295 #17296
+ * [BUGFIX] Remote-write: Prevent sending unsupported native
+ histograms with custom buckets (NHCB) over Remote-write 1.0,
+ log warning. #17146
+ * [BUGFIX] TSDB: Fix metadata entries handling on
+ metadata-wal-records experimental feature for native histograms
+ with custom buckets (NHCB) in protobuf scraping. #17156
+ * [BUGFIX] TSDB: Ignore Native Histograms with invalid schemas
+ during WAL/WBL replay. #17214
+ * [BUGFIX] PromQL: Avoid empty metric names in annotations for
+ histogram_quantile(). #16794
+ * [BUGFIX] PromQL: Correct inaccurate character positions in
+ errors for some aggregate expressions. #16996 #17031
+ * [BUGFIX] PromQL: Fix info() function on churning series. #17135
+ * [BUGFIX] PromQL: Set native histogram to gauge type when
+ subtracting or multiplying/dividing with negative factors.
+ #17004
+ * [BUGFIX] TSDB: Reject unsupported native histogram schemas when
+ attempting to append to TSDB. For scrape and remote-write
+ implement reducing the resolution to fit the maximum if the
+ schema is within the -9 to 52. #17189
+ * [BUGFIX] Remote-write: Fix HTTP handler to return after writing
+ error response for invalid compression. #17050
+ * [BUGFIX] Remote-write: Return HTTP error 400 instead of 5xx for
+ wrongly formatted Native Histograms. #17210
+ * [BUGFIX] Scrape: Prevent staleness markers from generating
+ unnecessary series. #16429
+ * [BUGFIX] TSDB: Avoid misleading Failed to calculate size of
+ \"wal\" dir error logs during WAL clean-up. #17006
+ * [BUGFIX] TSDB: Prevent erroneously dropping series records
+ during WAL checkpoints. #17029
+ * [BUGFIX] UI: Fix redirect to path of -web.external-url if
+ -web.route-prefix is configured. #17240
+ * [BUGIFX] Remote-write: Do not panic on invalid symbol table in
+ remote-write 2.0. #17160
+
+-------------------------------------------------------------------
+Mon Sep 22 12:29:04 UTC 2025 - Johannes Kastl
<[email protected]>
+
+- update to 3.6.0:
+ * [FEATURE] PromQL: Add step(), and min() and max() on durations,
+ behind feature flag promql-duration-expr. #16777
+ * [FEATURE] API: Add a /v1/status/tsdb/blocks endpoint exposing
+ metadata about loaded blocks. #16695
+ * [FEATURE] Templates: Add toDuration() and now() functions.
+ #16619
+ * [ENHANCEMENT] Discovery: Add support for attaching namespace
+ metadata to targets. #16831
+ * [ENHANCEMENT] OTLP: Support new
+ UnderscoreEscapingWithoutSuffixes strategy via
+ otlp.translation_strategy. #16849
+ * [ENHANCEMENT] OTLP: Support including scope metadata as metric
+ labels via otlp.promote_scope_metadata. #16878
+ * [ENHANCEMENT] OTLP: Add __type__ and __unit__ labels when
+ feature flag type-and-unit-labels is enabled. #16630
+ * [ENHANCEMENT] Tracing: Send the traceparent HTTP header during
+ scrapes. #16425
+ * [ENHANCEMENT] UI: Add option to disable info and warning query
+ messages under Query page settings. #16901
+ * [ENHANCEMENT] UI: Improve metadata handling for
+ _count/_sum/_bucket suffixes. #16910
+ * [ENHANCEMENT] TSDB: Track stale series in the Head block via
+ the prometheus_tsdb_head_stale_series metric. #16925
+ * [PERF] PromQL: Improve performance due to internal
+ optimizations. #16797
+ * [BUGFIX] Config: Fix "unknown global name escaping method"
+ error messages produced during config validation. #16801
+ * [BUGFIX] Discovery: Fix race condition during shutdown. #16820
+ * [BUGFIX] OTLP: Generate target_info samples between the
+ earliest and latest samples per resource. #16737
+ * [BUGFIX] PromQL: Fail when NaN is passed as parameter to
+ topk(), bottomk(), limitk() and limit_ratio(). #16725
+ * [BUGFIX] PromQL: Fix extrapolation for native counter
+ histograms. #16828
+ * [BUGFIX] PromQL: Reduce numerical errors by disabling some
+ optimizations. #16895
+ * [BUGFIX] PromQL: Fix inconsistencies when using native
+ histograms in subqueries. #16879
+ * [BUGFIX] PromQL: Fix inconsistent annotations for rate() and
+ increase() on histograms when feature flag type-and-unit-labels
+ is enabled. #16915
+ * [BUGFIX] Scraping: Fix memory corruption in slicelabels builds.
+ #16946
+ * [BUGFIX] TSDB: Fix panic on append when feature flag
+ created-timestamp-zero-ingestion is enabled. #16332
+ * [BUGFIX] TSDB: Fix panic on append for native histograms with
+ empty buckets. #16893
+
+-------------------------------------------------------------------
Old:
----
npm_licenses.tar.bz2
prometheus-3.5.0.tar.gz
web-ui-3.5.0.tar.gz
New:
----
0003-Remove-build-react-app.patch
node_modules.obscpio
node_modules.spec.inc
package-lock.json
prometheus-3.7.2.obscpio
prometheus.obsinfo
----------(New B)----------
New:
- Add 0003-Remove-build-react-app.patch
- Removed:
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ golang-github-prometheus-prometheus.spec ++++++
--- /var/tmp/diff_new_pack.lgzm9v/_old 2025-10-27 14:39:10.397200398 +0100
+++ /var/tmp/diff_new_pack.lgzm9v/_new 2025-10-27 14:39:10.401200567 +0100
@@ -1,7 +1,7 @@
#
# spec file for package golang-github-prometheus-prometheus
#
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2017 Silvio Moioli <[email protected]>
#
# All modifications and additions to the file contributed by third parties
@@ -27,26 +27,30 @@
%endif
Name: golang-github-prometheus-prometheus
-Version: 3.5.0
+Version: 3.7.2
Release: 0
Summary: The Prometheus monitoring system and time series database
License: Apache-2.0
Group: System/Monitoring
URL: https://prometheus.io/
-# also includes web assets generated with `make assets`
Source: prometheus-%{version}.tar.gz
Source1: vendor.tar.gz
-Source2: web-ui-%{version}.tar.gz
Source3: prometheus.service
Source4: prometheus.yml
Source5: prometheus.sysconfig
Source6: prometheus.firewall.xml
-Source7: npm_licenses.tar.bz2
Source8: Makefile
Source9: PACKAGING_README.md
+#
+Source10: package-lock.json
+Source11: node_modules.spec.inc
+%include %{_sourcedir}/node_modules.spec.inc
+#
Patch1: 0001-Do-not-force-the-pure-Go-name-resolver.patch
# Lifted from Debian's prometheus package
Patch2: 0002-Default-settings.patch
+Patch3: 0003-Remove-build-react-app.patch
+#
BuildRequires: fdupes
%if 0%{?suse_version} == 1500 && 0%{?sle_version} < 150300
BuildRequires: firewall-macros
@@ -55,6 +59,7 @@
# with -buildmode=pie
BuildRequires: glibc-devel-static
BuildRequires: golang-github-prometheus-promu >= 0.14.0
+BuildRequires: local-npm-registry
BuildRequires: golang(API) >= 1.23
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1500
@@ -64,7 +69,11 @@
Requires(pre): group(prometheus)
Requires(post): %fillup_prereq
Provides: prometheus = %{version}
-ExcludeArch: s390
+
+#
+# Error: Your current platform "linux" and architecture "ia32" combination is
not yet supported by the native Rollup build
+# => exclude i586
+ExcludeArch: s390 %{ix86}
%systemd_ordering
%description
@@ -78,10 +87,20 @@
- multiple modes of graphing and dashboarding support
%prep
-%setup -q -a1 -n prometheus-%{version}
-%autosetup -D -a2 -p1 -n prometheus-%{version}
+%autosetup -a1 -p1 -n prometheus-%{version}
+pushd web/ui
+local-npm-registry %{_sourcedir} install --include=dev
+popd
%build
+pushd web/ui
+npm run build
+popd
+rm -f npm_licenses.tar.bz2 npm_licenses
+ln -s . npm_licenses
+find npm_licenses/web/ui/node_modules -iname "license*" | tar cfj
npm_licenses.tar.bz2 --files-from=-
+rm -f npm_licenses
+./scripts/compress_assets.sh
%ifarch i586 s390x armv7hl armv7l armv7l:armv6l:armv5tel armv6hl
export BUILD_CGO_FLAG="--cgo"
%endif
@@ -114,7 +133,7 @@
install -Dd -m 0750 %{buildroot}%{_localstatedir}/lib/prometheus/data
install -Dd -m 0750 %{buildroot}%{_localstatedir}/lib/prometheus/metrics
-install -D -m0644 %{SOURCE7}
%{buildroot}/%{_defaultlicensedir}/%{name}/npm_licenses.tar.bz2
+install -D -m0644 %{_builddir}/prometheus-%{version}/npm_licenses.tar.bz2
%{buildroot}/%{_defaultlicensedir}/%{name}/npm_licenses.tar.bz2
%fdupes %{buildroot}/%{_prefix}
++++++ 0003-Remove-build-react-app.patch ++++++
Index: prometheus-3.5.0/web/ui/build_ui.sh
===================================================================
--- prometheus-3.5.0.orig/web/ui/build_ui.sh
+++ prometheus-3.5.0/web/ui/build_ui.sh
@@ -30,14 +30,6 @@ function buildModule() {
done
}
-function buildReactApp() {
- echo "build react-app"
- (cd react-app && npm run build)
- mkdir -p ${assetsDir}
- rm -rf ${assetsDir}/react-app
- mv ./react-app/build ${assetsDir}/react-app
-}
-
function buildMantineUI() {
echo "build mantine-ui"
npm run build -w @prometheus-io/mantine-ui
@@ -50,7 +42,6 @@ for i in "$@"; do
case ${i} in
--all)
buildModule
- buildReactApp
buildMantineUI
shift
;;
++++++ Makefile ++++++
--- /var/tmp/diff_new_pack.lgzm9v/_old 2025-10-27 14:39:10.485204114 +0100
+++ /var/tmp/diff_new_pack.lgzm9v/_new 2025-10-27 14:39:10.489204283 +0100
@@ -1,32 +1,49 @@
+.ONESHELL:
+
NAME = prometheus
SPEC = golang-github-prometheus-prometheus.spec
-default: clean tar
+default: clean obs_scm go_modules package_lock_json node_modules
clean:
- rm -rf prometheus $(NAME)-*.tar $(NAME)-*.tar.gz web-ui-*.tar.gz
npm_licenses.tar.bz2 vendor.tar.gz
+ rm -rf prometheus $(NAME)-*.tar $(NAME)-*.tar.gz $(NAME)-*.obscpio
vendor.tar.gz package-lock.json *[0-9].tgz
+
+.SILENT: obs_scm
+obs_scm:
+ osc service manualrun obs_scm
+
+.SILENT: go_modules
+go_modules:
+ osc service manualrun go_modules
+
+.SILENT: node_modules
+node_modules:
+ osc service manualrun node_modules
-tar:
- osc service manualrun
- @version=$$( awk '/^Version:/ {print $$2;exit;}' $(SPEC) ) && \
- echo "Package version is $$version" && \
- basename=$(NAME)-$$version && \
- tar=$$basename.tar && \
- web_ui=web-ui-$$version.tar && \
- wd=$$(pwd) && \
- tmpdir=$$(mktemp -d -p /tmp) && \
- cd $$tmpdir && \
- tar -zxf $$wd/$$tar.gz && \
- cd $$basename && \
- make assets npm_licenses assets-compress && \
- tar -cf $$wd/$$web_ui web/ui/static/react-app && \
- find web/ui/static -type f -name '*.gz' -exec tar -rf $$wd/$$web_ui
"{}" \; && \
- tar -rf $$wd/$$web_ui web/ui/embed.go && \
- cd .. && \
- echo "Creating web assets tarball" && \
- mv $$basename/npm_licenses.tar.bz2 $$wd && \
- cd $$wd && \
- gzip -f $$web_ui && \
+.SILENT: package_lock_json
+package_lock_json:
+ echo "Preparing webui dependencies"
+ version=$$( awk '/^Version:/ {print $$2;exit;}' $(SPEC) )
+ echo "Setting basename"
+ basename=$(NAME)-$$version
+ echo "Setting obscpio"
+ obscpio=$$basename.obscpio
+ working_directory=$$(pwd)
+ tmpdir=$$(mktemp -d -p /tmp)
+ echo "Changing into tmpdir"
+ cd $$tmpdir
+ echo "Extracting obscpio archive"
+ cpio -id < $$working_directory/$$obscpio
+ echo "Changing into services"
+ cd $$basename/web/ui/
+ echo "Removing package-lock.json"
+ rm -vf package-lock.json
+ echo "Starting npm install"
+ npm install --package-lock-only
+ echo "Copy package-lock.json"
+ cp -vf package-lock.json $$working_directory/
+ echo "Cleaning up"
+ cd $$working_directory/
rm -rf $$tmpdir
- echo "Finished successfully"
+ echo "Finished"
++++++ PACKAGING_README.md ++++++
--- /var/tmp/diff_new_pack.lgzm9v/_old 2025-10-27 14:39:10.513205296 +0100
+++ /var/tmp/diff_new_pack.lgzm9v/_new 2025-10-27 14:39:10.521205634 +0100
@@ -1,9 +1,14 @@
# Packaging prometheus
In addition to the source code in the tarball, this package also
-needs the assets for the web UI. These can be generated by the
-`Makefile` that is present in this package.
+needs the assets for the web UI. These can be generated during the
+build at the build server using the node modules service. The
+required dependecies definition can be generated by the `Makefile`
+which is present in this package.
To do that, you need to have `make` and `npm` installed locally.
+For the OBS workflow you also need `obs-service-go_modules`,
+`obs-service-node_modules` as well as `obs-service-tar_scm` and
+`obs-service-recompress`.
1. Change the version in the `_service` file
2. Change the version in the spec file
@@ -11,6 +16,4 @@
4. Create a changelog entry
5. Commit the changes as usual
-For the OBS workflow you also need `obs-service-go_modules` as well
-as `obs-service-tar_scm` and `obs-service-recompress`.
++++++ _service ++++++
--- /var/tmp/diff_new_pack.lgzm9v/_old 2025-10-27 14:39:10.553206985 +0100
+++ /var/tmp/diff_new_pack.lgzm9v/_new 2025-10-27 14:39:10.565207492 +0100
@@ -1,10 +1,10 @@
<services>
- <service name="tar_scm" mode="manual">
+ <service name="obs_scm" mode="manual">
<param name="url">https://github.com/prometheus/prometheus.git</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="versionformat">@PARENT_TAG@</param>
- <param name="revision">v3.5.0</param>
+ <param name="revision">v3.7.2</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="match-tag">v3*</param>
</service>
@@ -13,7 +13,19 @@
<param name="compression">gz</param>
</service>
<service name="go_modules" mode="manual">
- <param name="archive">prometheus-3.5.0.tar.gz</param>
+ <param name="archive">prometheus-*.obscpio</param>
+ </service>
+ <service name="node_modules" mode="manual">
+ <param name="cpio">node_modules.obscpio</param>
+ <param name="output">node_modules.spec.inc</param>
+ <param name="source-offset">10000</param>
+ </service>
+ <!-- services below are running at buildtime -->
+ <service name="tar" mode="buildtime">
+ </service>
+ <service name="recompress" mode="buildtime">
+ <param name="file">*.tar</param>
+ <param name="compression">gz</param>
</service>
</services>
++++++ node_modules.spec.inc ++++++
++++ 723 lines (skipped)
++++++ package-lock.json ++++++
++++ 12120 lines (skipped)
++++++ prometheus.obsinfo ++++++
name: prometheus
version: 3.7.2
mtime: 1761136316
commit: 7f2e7c86f800230ce13ce022cddaeba7cd2a9cc1
++++++ vendor.tar.gz ++++++
/work/SRC/openSUSE:Factory/golang-github-prometheus-prometheus/vendor.tar.gz
/work/SRC/openSUSE:Factory/.golang-github-prometheus-prometheus.new.1980/vendor.tar.gz
differ: char 13, line 1