mosquitto icon indicating copy to clipboard operation
mosquitto copied to clipboard

08-ssl-connect-cert-auth-* tests fail when tests are run on a single CPU.

Open narc-Ontakac2 opened this issue 10 months ago • 5 comments

This time 08-ssl-connect-cert-auth-expired.py fails with

1741586296: OpenSSL Error[0]: error:0A000086:SSL routines::certificate verify failed

extendedKeyUsage = serverAuth does not fix this.

Note that this only happens with Debian unstable by now.

narc-Ontakac2 avatar Mar 10 '25 07:03 narc-Ontakac2

I just tried to reproduce this in a fresh, fully updated debian:unstable docker container and all the tests passed. Is there anything else I need to take into account?

ralight avatar Mar 11 '25 12:03 ralight

Thanks for the info. So this might be a Debian issue. The Debian package patches the tests so that they test the installed binaries.

narc-Ontakac2 avatar Mar 11 '25 19:03 narc-Ontakac2

It is the number of CPUs. The tests fail if they are run on only one CPU. This is the default for Debian autopkgtest (run locally).

taskset -c 0 make -C test/broker 08

will reproduce the issue.

narc-Ontakac2 avatar Mar 16 '25 11:03 narc-Ontakac2

This also happens during Debian CI autopkgtest, see this example.

narc-Ontakac2 avatar Mar 29 '25 07:03 narc-Ontakac2

The tasksel command helped a lot, I could consistently reproduce it with that. I've got a fix in place that I've run each test 100 times with no failures, so hopefully it'll work for you as well.

ralight avatar May 01 '25 14:05 ralight