Bug#1122539: cryptsetup: autopkgtest 'upstream-testsuite' on amd64 is flaky

2025-12-11 Thread Guilhem Moulin
On Thu, 11 Dec 2025 at 22:29:41 +0100, Milan Broz wrote:
> On 12/11/25 12:30 PM, Luca Boccassi wrote:
>> The 'upstream-testsuite' is flaky on amd64 and often fails with:
>
> Is this CI running Debian unstable without any changes (udev etc)?

AFAICT it's an amd64 Debian testing kvm worker.  On Debian unstable (kernel 
6.17.11+deb14-amd64)
the same test seems to consistently fail with

$ sudo make -f Makefile.localtest -j tests CRYPTSETUP_PATH=/sbin 
TESTSUITE_NOSKIP=y
[…]
[reencryption-compat-test]
[1] Reencryption
[2] Reencryption with data shift
[3] Reencryption with keyfile
[4] Encryption of not yet encrypted device
[5] Reencryption using specific keyslot
[6] Reencryption using all active keyslots
[7] Reencryption of block devices with different block size
[512 sector]Cannot use scsi_debug module (in use or compiled-in), test 
skipped.

Removing `TESTSUITE_NOSKIP=y` solves this one, but that kind of defeats the 
purpose of
the debci test as described in 
https://gitlab.com/cryptsetup/cryptsetup/-/merge_requests/256 .

> IOW can this be reproduced outside of your CI?

Looks like a race condition in `reencryption-compat-test`
https://gitlab.com/cryptsetup/cryptsetup/-/blob/v2.8.1/tests/reencryption-compat-test#L372
 or
https://gitlab.com/cryptsetup/cryptsetup/-/blob/v2.8.1/tests/reencryption-compat-test#L114
(stages [5] and [512 sector]).

Tried it a few times locally and could only reproduce the latter, but
the former also works at times on the debci infrastructure (it's flaky).

I'll exclude that test for now.

-- 
Guilhem.


signature.asc
Description: PGP signature


Bug#1122539: cryptsetup: autopkgtest 'upstream-testsuite' on amd64 is flaky

2025-12-11 Thread Milan Broz

On 12/11/25 12:30 PM, Luca Boccassi wrote:

The 'upstream-testsuite' is flaky on amd64 and often fails with:


Is this CI running Debian unstable without any changes (udev etc)?

IOW can this be reproduced outside of your CI?
If so, I will check if it is upstream testsuite bug...

Milan



Bug#1122539: cryptsetup: autopkgtest 'upstream-testsuite' on amd64 is flaky

2025-12-11 Thread Luca Boccassi
Source: cryptsetup
Version: 2:2.8.1-1
Usertags: flaky
Severity: serious
Justification: flaky autopkgtests are RC as per RT and block other packages

Dear Maintainer(s),

The 'upstream-testsuite' is flaky on amd64 and often fails with:

1607s [5] Reencryption using specific keyslot
1608s losetup: reenc-data: failed to set up loop device: Device or resource busy

https://ci.debian.net/packages/c/cryptsetup/testing/amd64/66996185/
https://ci.debian.net/packages/c/cryptsetup/testing/amd64/66920126/
https://ci.debian.net/packages/c/cryptsetup/testing/amd64/66844560/
https://ci.debian.net/packages/c/cryptsetup/testing/amd64/66497426/
https://ci.debian.net/packages/c/cryptsetup/testing/amd64/66421946/
https://ci.debian.net/packages/c/cryptsetup/testing/amd64/66373137/