#1102303 golang-gopkg-irc.v4: FTBFS: flaky tests

#1102303#5
Date:
2025-04-07 13:20:55 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

[ please read the notes at the end ]
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --builddirectory=_build --buildsystem=golang
   dh_auto_clean -O--builddirectory=_build -O--buildsystem=golang
   dh_autoreconf_clean -O--builddirectory=_build -O--buildsystem=golang
   dh_clean -O--builddirectory=_build -O--buildsystem=golang
 debian/rules binary
dh binary --builddirectory=_build --buildsystem=golang
   dh_update_autotools_config -O--builddirectory=_build -O--buildsystem=golang
   dh_autoreconf -O--builddirectory=_build -O--buildsystem=golang
   dh_auto_configure -O--builddirectory=_build -O--buildsystem=golang
   dh_auto_build -O--builddirectory=_build -O--buildsystem=golang
	cd _build && go install -trimpath -v -p 1 gopkg.in/irc.v4
internal/goarch
internal/abi
internal/unsafeheader
internal/cpu
internal/bytealg
internal/byteorder
internal/chacha8rand
internal/coverage/rtcov
internal/godebugs
internal/goexperiment
internal/goos
internal/profilerecord
internal/runtime/atomic
internal/runtime/exithook
internal/asan
internal/msan
internal/race
internal/runtime/math
internal/runtime/sys
internal/runtime/maps
internal/runtime/syscall
internal/stringslite
runtime
internal/reflectlite
errors
sync/atomic
internal/sync
sync
io
iter
math/bits
unicode
unicode/utf8
bytes
strings
bufio
internal/bisect
internal/godebug
internal/itoa
internal/oserror
syscall
time
context
cmp
math
strconv
reflect
slices
internal/fmtsort
path
io/fs
internal/filepathlite
internal/syscall/unix
internal/poll
internal/syscall/execenv
internal/testlog
os
fmt
golang.org/x/time/rate
sort
regexp/syntax
regexp
gopkg.in/irc.v4
   dh_auto_test -O--builddirectory=_build -O--buildsystem=golang
	cd _build && go test -vet=off -v -p 1 gopkg.in/irc.v4
=== RUN   TestHandlerFunc
=== PAUSE TestHandlerFunc
=== RUN   TestCapReq
=== PAUSE TestCapReq
=== RUN   TestClient
=== PAUSE TestClient
=== RUN   TestSendLimit
=== PAUSE TestSendLimit
=== RUN   TestClientHandler
=== PAUSE TestClientHandler
=== RUN   TestFromChannel
=== PAUSE TestFromChannel
=== RUN   TestPingLoop
=== PAUSE TestPingLoop
=== RUN   TestWriteMessageError
=== PAUSE TestWriteMessageError
=== RUN   TestConn
=== PAUSE TestConn
=== RUN   TestDebugCallback
=== PAUSE TestDebugCallback
=== RUN   TestParseMessage
=== PAUSE TestParseMessage
=== RUN   TestMustParseMessage
=== PAUSE TestMustParseMessage
=== RUN   TestMessageParam
=== PAUSE TestMessageParam
=== RUN   TestMessageTrailing
=== PAUSE TestMessageTrailing
=== RUN   TestMessageCopy
=== PAUSE TestMessageCopy
=== RUN   TestMsgSplit
    parser_test.go:149: Disabled as the _testcases submodule is not available
--- SKIP: TestMsgSplit (0.00s)
=== RUN   TestMsgJoin
    parser_test.go:209: Disabled as the _testcases submodule is not available
--- SKIP: TestMsgJoin (0.00s)
=== RUN   TestUserhostSplit
    parser_test.go:256: Disabled as the _testcases submodule is not available
--- SKIP: TestUserhostSplit (0.00s)
=== RUN   TestMaskToRegex
=== PAUSE TestMaskToRegex
=== CONT  TestHandlerFunc
--- PASS: TestHandlerFunc (0.00s)
=== CONT  TestMaskToRegex
--- PASS: TestMaskToRegex (0.00s)
=== CONT  TestMessageCopy
--- PASS: TestMessageCopy (0.00s)
=== CONT  TestMessageTrailing
--- PASS: TestMessageTrailing (0.00s)
=== CONT  TestMessageParam
--- PASS: TestMessageParam (0.00s)
=== CONT  TestMustParseMessage
--- PASS: TestMustParseMessage (0.00s)
=== CONT  TestParseMessage
--- PASS: TestParseMessage (0.00s)
=== CONT  TestDebugCallback
--- PASS: TestDebugCallback (0.00s)
=== CONT  TestConn
--- PASS: TestConn (0.00s)
=== CONT  TestWriteMessageError
--- PASS: TestWriteMessageError (0.00s)
=== CONT  TestPingLoop
--- PASS: TestPingLoop (0.15s)
=== CONT  TestFromChannel
--- PASS: TestFromChannel (0.00s)
=== CONT  TestClientHandler
--- PASS: TestClientHandler (0.02s)
=== CONT  TestSendLimit
    client_test.go:291:
        	Error Trace:	/<<PKGBUILDDIR>>/_build/src/gopkg.in/irc.v4/client_test.go:291
        	Error:      	Max difference between 2025-04-02 10:13:14.395261686 +0000 UTC m=+0.200573674 and 2025-04-02 10:13:14.455759578 +0000 UTC m=+0.261071566 allowed is 60ms, but difference was -60.497892ms
        	Test:       	TestSendLimit
--- FAIL: TestSendLimit (0.09s)
=== CONT  TestClient
--- PASS: TestClient (0.16s)
=== CONT  TestCapReq
--- PASS: TestCapReq (0.09s)
FAIL
FAIL	gopkg.in/irc.v4	0.516s
FAIL
dh_auto_test: error: cd _build && go test -vet=off -v -p 1 gopkg.in/irc.v4 returned exit code 1
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202503/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

In this particular case, the build was made on AWS machines of type
m7a.medium and r7a.medium. Incidentally, those machines have a single CPU,
but at this point it's not clear yet if that's the condition which triggers
the build failure or, for example, the fact that they are overall slower
than other instance types, or maybe some other reason.

If you could not reproduce the bug using GRUB_CMDLINE_LINUX="nr_cpus=1"
please contact me privately, as I am willing to provide ssh access to a
virtual machine where the bug is fully reproducible.

Disclaimer: Please note that this is probably a violation of
Debian Policy 4.2, and the only reason I'm initially reporting
it as "important" is to avoid discussing about the severity.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:golang-gopkg-irc.v4, so that this is still
visible in the BTS web page for this package.

Thanks.

#1102303#10
Date:
2026-09-21 11:15:29 UTC
From:
To:
Hello,

Bug #1102303 in golang-gopkg-irc.v4 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/golang-gopkg-irc.v4/-/commit/49cce4ef432ffdec1acbf279a9810bcf2277cc19

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1102303

#1102303#17
Date:
2026-09-21 12:14:02 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
golang-gopkg-irc.v4, 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 1102303@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Santiago Vila <sanvila@debian.org> (supplier of updated golang-gopkg-irc.v4 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: Mon, 21 Sep 2026 12:55:00 +0200
Source: golang-gopkg-irc.v4
Architecture: source
Version: 4.0.0+dfsg-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Changed-By: Santiago Vila <sanvila@debian.org>
Closes: 1102303
Changes:
 golang-gopkg-irc.v4 (4.0.0+dfsg-3) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Taavi Väänänen ]
   * Update my email address
 .
   [ Santiago Vila ]
   * Skip flaky test TestSendLimit. Closes: #1102303.
   * Drop "Rules-Requires-Root: no" (default).
   * Drop "Priority: optional" (default).
   * Update standards-version.
   * Switch to debian/salsa-ci.yml.
Checksums-Sha1:
 3bf2f83ad20bfaa03f3d699fa1c773d98a0ef208 1913 golang-gopkg-irc.v4_4.0.0+dfsg-3.dsc
 986e3b6355332a2843b739a5f83956b57675749a 2880 golang-gopkg-irc.v4_4.0.0+dfsg-3.debian.tar.xz
 5dacd81402000dc0d89831a137d883b636ddbfac 5382 golang-gopkg-irc.v4_4.0.0+dfsg-3_source.buildinfo
Checksums-Sha256:
 01564ecb35ede06636cee21fcd4495c168ad4319796aad28cd3fb09ccc492ee4 1913 golang-gopkg-irc.v4_4.0.0+dfsg-3.dsc
 44cf8776b29f507131e47cedf5b4eb74c92d03ae8e39efb401d189c201212ed7 2880 golang-gopkg-irc.v4_4.0.0+dfsg-3.debian.tar.xz
 7dbc80a7c7a204853472e5f19ef5c46cfc71c8b59d35af048b6ddb990603f844 5382 golang-gopkg-irc.v4_4.0.0+dfsg-3_source.buildinfo
Files:
 609f320cba8fadc16db6fea61d80ad1a 1913 golang optional golang-gopkg-irc.v4_4.0.0+dfsg-3.dsc
 51e7e94dc2b4005480e16c710c9539c2 2880 golang optional golang-gopkg-irc.v4_4.0.0+dfsg-3.debian.tar.xz
 fa661bace619e1d5b2d1002c17ff1ca4 5382 golang optional golang-gopkg-irc.v4_4.0.0+dfsg-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEE1Uw7+v+wQt44LaXXQc5/C58bizIFAmqxEWYACgkQQc5/C58b
izLaOgf/cPjh87LLDp+8JkrvHCI1zcBsm1MzPWMiOXfqmZWxDMvpTetJIF6d2ebe
jh8NB1Tvg8fjSwCz5aU6IrO6bgVm7vFuElawQVqJrUhNQCi6mRH75NEAhRuEIxVp
5v7GNvOcRo7Bxgwe73pxiGwvazQ22FykEl+uxXMXWfsBhTwrc5RSX8fXl6e6Re2q
xet4tHwGyyycoOrXn+KZutk74rQGCb2WJX6X8MlRlrZvse+k5QjhmFanJHeGwsUy
rCsSHHXlRf4yLuZYtBxjVMJog0YcCzpL7BN3RZnWu7FXTEUONF2JCbPc0ZONYWJ+
p0XvVdmECmUfYhvzs4s4RniYALOz1A==
=MA91
-----END PGP SIGNATURE-----