🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #7133

Bug#1155631: Please don't just skip failing tests

#7133
From: Simon Josefsson
Date: Wed, 02 Dec 2026 10:00
146 lines
9079 bytes
--=-=-=
Content-Type: text/plain

Mathias Gibbens <gibmat@debian.org> writes:

> Hi all,
>
>   I wanted to bring up a minor concern of mine that I've seen becoming
> more frequent in Go Team-maintained packages over the past few months.
> It seems that we are pretty quick to just disable a failing test,
> rather than trying to actually fix it and, once disabled

It would be great to have some wider discussion around this, at is a
complex issue even if on the surface it looks simple.

The efforts to try to fix an self-test failure issue may not immediately
be visible in the debian packaging fix that disable the test.  There may
be an upstream bug report filed.  There may be local analysis that the
self-tests is buggy.

There may be a deliberate subjective decision that the cost of debugging
a spurious failure in a unimportant self-test is not worth the cost of
blocking multiple CVE's in a security-critical update of another
package.  Disabling such tests allows progress.

There is the dynamic of unstable -> testing migrations.  Debian's
infrastructure promotes packages which have reliable self-tests.  If we
let packages sit in unstable for weeks or months while we debug a
self-test failure, there is a systemtic cost that we migrate new code
more slowly, and thus have less time to test the more modern code that
we would like to ship.  I also recall that packages sitting in unstable
without migrating to testing for some period of time will lead to a RC
buggy from the release team.  Therefor, I think we need to make sure
packages migrate quickly.

> there's not much (if any) context given to help future uploaders
> decide if the test should remain disabled or not.

I'm using the following idiom in several packages:

SKIP="TestNewOfflineClientFail|etc..."
override_dh_auto_test:
	-dh_auto_test $(DH_BUILD_OPTS) -- -run=$(SKIP)
	dh_auto_test $(DH_BUILD_OPTS) -- -skip=$(SKIP)

This means the failing test that I disable will be invoked so that the
debug logs are still visible in the build output, only that a failure
for the "skipped" tests are ignored.

This makes it possible to do continous upstream discussion pointing to
our build logs on some architecture for a failure.  It also allows us to
compare build failures in different build systems: Salsa, buildd,
reproducible-builds.org, reproduce.debian.net, debci incus/lxc, etc.

I've received criticism about use of this idiom, it seems some people
dislike the approach because it pollute the build logs with FAILs.
There could be other rationale, I may have misunderstood the criticism.

There is another aspect for flaky self-tests.  Flaky test failures is
harmful for our build systems, as it may involved multiple re-tries
before a build succeeds.  And worse, multiple debci/autopkgtest re-tries
before testing migration works.

Flaky tests are horrible when doing golang-*-x-* uploads that have say
hundreds of reverse build dependencies: if 1% of packages have a flaky
tests that FAILs 1% of the time, it pretty much means that new uploads
of a low-level package will migrate slower because of testing migration
blocking.

> Just papering over failing tests is a disservice as the action may be
> hiding legitimate issues that could affect users.

Agreed.  Still, I think there is a balance here: NOT disabling failing
spurious tests can also be a disservice to our users, if the self-tests
block deployment of new releases that fix bugs or security issues.

>   As a specific example, a new version of golang-github-zitadel-oidc
> was recently uploaded which disabled a test. (I happened to notice this
> since it's on my QA page. Simon, I'm not directing criticism
> specifically at you, this just happened to bring my concern to front of
> mind again. Thanks for the continued cleanup you've been doing of Go
> Team packages.)
>
>   When I look at the debci logs for this package for
> testing/{armhf,i386}[0,1], it's been consistently passing until the
> recent upload of golang-github-go-jose-go-jose. The specific test that
> fails ("TestJsonWebKeySet_UnmarshalJSON") points to exercising
> functionality that the go-jose library provides.
>
>   Because of this, my initial thought is that there's some issue with
> the latest release of golang-github-go-jose-go-jose on 32bit
> architectures. Maybe the affected code isn't exercised in that
> library's tests, so autopkgtests didn't catch it. But just disabling
> the newly-failing test in golang-github-zitadel-oidc may be sweeping a
> legitimate issue under the rug, and who knows where else this issue may
> then crop up for users once forky is released?
>
>   In an i386 Incus container, I've verified that golang-github-zitadel-
> oidc's tests in v3.53.0 pass just fine with with golang-github-go-jose-
> go-jose v4.1.6, but v4.1.7 and later cause that test to fail. So, it's
> pretty clear there's an actual issue in go-jose.

The problem was a bug in the zitadel self-tests:

https://github.com/zitadel/oidc/issues/1063

I didn't notice the problem when doing the reverse builds of the go-jose
update because it works fine on amd64.

You may disagree, but I think this is a situation where disabling the
buggy self-test in zitadel/oidc was warranted because it block testing
migration of the go-jose upload that fix multiple security problems.

But I do agree with you generally that this is not an uncomplicated
issue, and we need to find a suitable balance.  And sometimes make
mistakes and be on the wrong side of the right balance.

/Simon

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQOEBAEWCgMsFiEEo8ychwudMQq61M8vUXIrCP5HRaIFAmsP6jkbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyFBxzaW1vbkBqb3NlZnNzb24ub3JnwhwmAJgzBFyS
zrQWCSsGAQQB2kcPAQEHQAiHK2SL4a8QwZCvX1fkJU5l8aNp2jmw7hrcOfGGsZTr
tCVTaW1vbiBKb3NlZnNzb24gPHNpbW9uQGpvc2Vmc3Nvbi5vcmc+iJYEExYIAD4C
GwMFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AWIQSx0r0Tdb7LeEz0+MTXPPY4xTwG
vgUCatfMtwUJD2HCAwAKCRDXPPY4xTwGvue9AP40ROc4bUzq1zxU43T76rWP+6jv
mKO/CaPer1S2fZMOtQEAuMKQ3X/qP75LtsbJG82TaaIkg2UM5Mw+pp0UOfPJ6Aq4
OARcks9qEgorBgEEAZdVAQUBAQdAMZUbpg1up2WOwPlQn3pPVaRMejyZnScmD7d5
TRzHehwDAQgHiH4EGBYIACYCGwwWIQSx0r0Tdb7LeEz0+MTXPPY4xTwGvgUCatfL
twUJD2HATQAKCRDXPPY4xTwGvocHAP9g1zG1w10/lhb7ksrN9T8xnHTOZNibd27d
k+X+leRCkQD+OWllYuM1N1ZA/a5Qjyv7pnq+hrxeqSg+cnm4ArlDQwa4MwRcks+B
FgkrBgEEAdpHDwEBB0DsUwiDmnlwMSNoSF+ByvW0E6TVXou9PKDa9SpZvKghioj1
BBgWCAAmAhsCFiEEsdK9E3W+y3hM9PjE1zz2OMU8Br4FAmrXy7oFCQ9hwDYAgXYg
BBkWCAAdFiEEo8ychwudMQq61M8vUXIrCP5HRaIFAlySz4EACgkQUXIrCP5HRaKn
TAEAoB+OWrHmYCK8Cjr1DgPUH7JnhPBmR2DbhR5jPRREEugA+gOMeWmL6GOpaPfK
YLcNhzw4ZnAlxSLY1wq1eANBpiQOCRDXPPY4xTwGvjf7AP9MpnBFLDHomavCkXzR
aJEaYqYigvHl7W7qWuswi2FgTQEAg7xKIF4THHLZj4f48rwFG7VW2ts8o/SaYpJM
ogWJlwYACgkQUXIrCP5HRaI4tAD/SFfGqAEGYgm8ekuRXIzVM2Uug2P2pSGc4dOw
DFaouM4A/0wNSZWGO96RjxZexMSKZN98/1uNtlTFMT0gVVkfwn8G
=uCQV
-----END PGP SIGNATURE-----
--=-=-=--
Technical Details
Message-ID: <O5Pi1-fwfV-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!feed-eu-txt.newsdeef.eu!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
References: <O4lYJ-eDGU-5@gated-at.bofh.it> <O4PDr-eUPx-31@gated-at.bofh.it> <O4lYJ-eDGU-5@gated-at.bofh.it> <O4PDr-eUPx-31@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!feed-eu-txt.newsdeef.eu!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Simon Josefsson <simon@josefsson.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1155631: Please don't just skip failing tests
Date: Wed, 02 Dec 2026 11:00:01 +0100
Message-ID: <O5Pi1-fwfV-1@gated-at.bofh.it>
References: <O4lYJ-eDGU-5@gated-at.bofh.it> <O4PDr-eUPx-31@gated-at.bofh.it> <O4lYJ-eDGU-5@gated-at.bofh.it> <O4PDr-eUPx-31@gated-at.bofh.it>
X-Original-To: Mathias Gibbens <gibmat@debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Wed Dec  2 09:53:18 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -0.651
Reply-To: Simon Josefsson <simon@josefsson.org>, 1155631@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: team+pkg-go@tracker.debian.org
X-Debian-Pr-Message: followup 1155631
X-Debian-Pr-Package: golang-github-go-jose-go-jose
X-Debian-Pr-Source: golang-github-go-jose-go-jose
Openpgp: id=B1D2BD1375BECB784CF4F8C4D73CF638C53C06BE;
 url=https://josefsson.org/key-20190320.txt
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha512; protocol="application/pgp-signature"
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006476
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 146
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: debian-go@lists.debian.org,  1155631@bugs.debian.org
X-Original-Date: Wed, 02 Dec 2026 10:51:53 +0100
X-Original-Message-ID: <87zeuohux2.fsf@josefsson.org>
X-Original-References: <878q2dqs44.fsf@josefsson.org> <a4453b28020b2689e4daff1b1bca759d4bc9dac7.camel@debian.org> <878q2dqs44.fsf@josefsson.org> <a4453b28020b2689e4daff1b1bca759d4bc9dac7.camel@debian.org>