#1147746 prometheus: FTBFS with golang-k8s-client-go 0.36: discovery/kubernetes tests time out

Package:
src:prometheus
Source:
src:prometheus
Submitter:
Juan Manuel Méndez Rey
Date:
2026-09-18 01:25:04 UTC
Severity:
normal
Tags:
#1147746#5
Date:
2026-09-14 22:17:57 UTC
From:
To:
Since golang-k8s-client-go 0.36.4-1, the discovery/kubernetes tests fail
after 60s with "discoverer failed to sync" (55 tests).

client-go >= 0.35 enables the WatchListClient feature gate by default.
The fake clientset does not support it, so informers never sync.

Upstream fix (in v3.10.0):
https://github.com/prometheus/prometheus/commit/847e474bf4ffe637f1e6c9317f81d78015e40b7a

Backport, tested in sbuild (builds fine, all tests pass):
https://salsa.debian.org/mendezr/prometheus/-/commit/c9471026f

#1147746#8
Date:
2026-09-17 13:59:36 UTC
From:
To:
Hello,

Bug #1147746 in prometheus reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/go-team/packages/prometheus/-/commit/7a81f91f53ffc61fd47f6f7db1ecb341253dd803
------------------------------------------------------------------------
Backport upstream fix for discovery/kubernetes tests with client-go >= 0.35

Disable the WatchListClient feature gate in the tests; the fake
clientset does not support the WatchList protocol and informers never
sync with golang-k8s-client-go 0.36.4.

Closes: #1147746
Origin: backport, https://github.com/prometheus/prometheus/commit/847e474bf4ffe637f1e6c9317f81d78015e40b7a
Author: Ganesh Vernekar <ganesh.vernekar@reddit.com>
Reviewed-by: Juan Manuel Méndez Rey <juan.mendezr@proton.me>
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1147746

#1147746#15
Date:
2026-09-18 01:23:18 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
prometheus, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1147746@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Reinhard Tartler <siretart@tauware.de> (supplier of updated prometheus package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 17 Sep 2026 20:55:14 -0400
Source: prometheus
Architecture: source
Version: 3.5.3+ds1-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Changed-By: Reinhard Tartler <siretart@tauware.de>
Closes: 1099026 1135688 1145937 1147746
Changes:
 prometheus (3.5.3+ds1-4) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Juan Manuel Méndez Rey ]
   * Backport upstream fix for discovery/kubernetes tests with client-go
     >= 0.35 (Closes: #1147746)
 .
   [ Reinhard Tartler ]
   * debian/patches: unconditionally disable flaky
     TestHeadCompactionWhileScraping (Closes: #1145937)
   * debian/patches: skip flaky TestQueryConcurrency and
     TestEndpointsSlicesDiscoveryWithUpdatedNodeMetadata
     (Closes: #1099026, #1135688)
Checksums-Sha1:
 9ff54fec4a14c158c218d2f1e268d91e08256f9c 4873 prometheus_3.5.3+ds1-4.dsc
 7dbc5d980e6aed5acbf5835120cac459d1070c02 82020 prometheus_3.5.3+ds1-4.debian.tar.xz
Checksums-Sha256:
 24170a0f3ee2f498e0f916543f20838dd199fcdce6f9c5fb3d6758020d47ba77 4873 prometheus_3.5.3+ds1-4.dsc
 2f4a9e4bc8ad4e0ae19a805bfa0c5b817c199035d0addae11f1e3619462a1096 82020 prometheus_3.5.3+ds1-4.debian.tar.xz
Files:
 ca763485887207a84509d59c2b0525cb 4873 golang optional prometheus_3.5.3+ds1-4.dsc
 e77bd390df8b3c01c6c4e204f2726568 82020 golang optional prometheus_3.5.3+ds1-4.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEEMN59F2OrlFLH4IJQSadpd5QoJssFAmqsjLQUHHNpcmV0YXJ0
QHRhdXdhcmUuZGUACgkQSadpd5QoJst9IQ//QJwi6drA2a7adyFN/4OAe4pXwCJF
goRT8vjwosFop087lR/iHKtrh5zKODiYZh5OMxETNA+lI7zuHhfY4TtBP8hRuIWR
7LU6FgNfbdNBKnq+Lkdq0oMrWZ1PI7gb5NqHDs4rKr/5PBXD3gdvmBCRNJbZyE1j
DJA0LiKv9YDDSAtqJI240IJj08tg57LitxdWNjyf1NjNeQcVmp0FJuRovknQr4Xc
8oSch+X+Sv8ndGnnr0X5/mx2riIg8eYA4bmowx7s+GzxbqbqJ3cBzVfWL450bDyt
Gvd5UbzWoB5nuEjHjX0vZ3zmkuJV7NNKV5nDix1a6aB1g51deWCP5/+iOi9u4S4x
LvdQexVeU8CIsEzAnMC7JXv63xyQZIsHUpTaptKL6EDjN5C2vup3ZxIUJlqu1hAQ
0lu7+Y1I7HcE9OSIOhR+lFZoamrr88LlVMUMxVkmf+OAhWASgIfdZUfAfB3b3eAV
YZdb//Ctpk4iCs1g00akpG9EdVKB29XMyEg5DMBV+qJo88UACkqN5YWqdhxmCu+V
9jGKocnbM/YiX5T3IrHtwz42tvQRVZZ2ClQRDYZ3FBYvlLv4MAcwE3db2p2IHlD/
w6x4K2IJdy2WK3kASCPv4qv8TfmuCzMoezjWrJwV0tYNaKKoIvAzbnSTgHRBA8PW
GRoOJkQot/vUyaQ=
=tei8
-----END PGP SIGNATURE-----