#1135357 golang-github-scylladb-go-set: FTBFS: flaky tests

#1135357#5
Date:
2026-05-01 15:13:23 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the most relevant part.
If required, the full build log is available here:

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

In fact, I've actually put several build logs, because the failing tests
are not always the same (the failure rate is around 25% here).

I think this happens because the tests are very poorly designed.

For example, in several places of i8set/i8set_test.go, two random integers
are chosen, and (afaik) they are expected to be different, but the integers have 8 bits,
and this is done several times, so the probability of collision accumulates and
becomes quite high overall.

I believe this is also the reason why the tests behave in a flaky way in ci.debian.net:

https://ci.debian.net/packages/g/golang-github-scylladb-go-set/testing/riscv64/70735449/

(I don't think the riscv64 architecture is special at all)

Maybe some of the tests should just use hardcoded values instead of tempting fate.


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

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible (in this case, where the package fails 25% of the time).

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

Thanks.
--------------------------------------------------------------------------------
[...]
=== RUN   TestAdd
    u8set_test.go:33: expected 2 entries, got 1
--- FAIL: TestAdd (0.00s)
[...]