php build failure

  • Done
  • quality assurance status badge
Details
5 participants
  • Diego Nicola Barbato
  • Leo Famulari
  • Maxim Cournoyer
  • Tobias Geerinckx-Rice
  • Mathieu Othacehe
Owner
unassigned
Submitted by
Mathieu Othacehe
Severity
normal
M
M
Mathieu Othacehe wrote on 15 Dec 2021 14:52
(address . bug-guix@gnu.org)
874k7aj7q8.fsf@gnu.org
Hello,

The php package test suite is failing this way on master:

Toggle snippet (48 lines)
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
int openssl_x509_checkpurpose ( mixed $x509cert , int $purpose [, array $cainfo = array() [, string $untrustedfile ]] ) function [ext/openssl/tests/openssl_x509_checkpurpose_basic.phpt]
=====================================================================

=====================================================================
WARNED TEST SUMMARY
---------------------------------------------------------------------
FPM: Buffered worker output decorated log with multiple continuous messages (stdout/stderr mixed) [sapi/fpm/tests/log-bwd-multiple-msgs-stdout-stderr.phpt] (warn: XFAIL section but test passes)
=====================================================================

You may have found a problem in PHP.
This report can be automatically sent to the PHP QA team at
http://qa.php.net/reports and http://news.php.net/php.qa.reports
This gives us a better understanding of PHP's behavior.
If you don't want to send the report immediately you can choose
option "s" to save it. You can then email it to qa-reports@lists.php.net later.
Do you want to send this report now? [Yns]:
Notice: Trying to access array offset on value of type bool in /tmp/guix-build-php-7.4.26.drv-0/php-7.4.26/run-tests.php on line 934

Please enter your email address.
(Your address will be mangled so that it will not go out on any
mailinglist in plain text): sh: line 1: autoconf: command not found

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /tmp/guix-build-php-7.4.26.drv-0/php-7.4.26/run-tests.php on line 1133

Warning: fsockopen(): unable to connect to qa.php.net:80 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /tmp/guix-build-php-7.4.26.drv-0/php-7.4.26/run-tests.php on line 1133

The test script was unable to automatically send the report to PHP's QA Team
Please send /tmp/guix-build-php-7.4.26.drv-0/php-7.4.26/php_test_results_20211215_1332.txt to qa-reports@lists.php.net manually, thank you.
make: *** [Makefile:238: test] Error 1

Test suite failed, dumping logs.
error: in phase 'check': uncaught exception:
%exception #<&invoke-error program: "make" arguments: ("test" "-j" "32") exit-status: 2 term-signal: #f stop-signal: #f>
phase `check' failed after 971.4 seconds
command "make" "test" "-j" "32" failed with status 2
builder for `/gnu/store/qvgr41cvrh6b3m5bk5n93gcw0rk0kax5-php-7.4.26.drv' failed with exit code 1
@ build-failed /gnu/store/qvgr41cvrh6b3m5bk5n93gcw0rk0kax5-php-7.4.26.drv - 1 builder for `/gnu/store/qvgr41cvrh6b3m5bk5n93gcw0rk0kax5-php-7.4.26.drv' failed with exit code 1
derivation '/gnu/store/qvgr41cvrh6b3m5bk5n93gcw0rk0kax5-php-7.4.26.drv' offloaded to '10.0.0.1' failed: build of `/gnu/store/qvgr41cvrh6b3m5bk5n93gcw0rk0kax5-php-7.4.26.drv' failed
build of /gnu/store/qvgr41cvrh6b3m5bk5n93gcw0rk0kax5-php-7.4.26.drv failed
View build log at '/var/log/guix/drvs/qv/gr41cvrh6b3m5bk5n93gcw0rk0kax5-php-7.4.26.drv.bz2'.
guix build: error: build of `/gnu/store/qvgr41cvrh6b3m5bk5n93gcw0rk0kax5-php-7.4.26.drv' failed

The openssl_x509_checkpurpose test seems to blame.

Thanks,

Mathieu
D
D
Diego Nicola Barbato wrote on 16 Dec 2021 18:32
(name . Mathieu Othacehe)(address . othacehe@gnu.org)(address . 52513@debbugs.gnu.org)
878rwkihg3.fsf@GlaDOS.home
Hi Mathieu,

Mathieu Othacehe <othacehe@gnu.org> writes:

Toggle quote (18 lines)
> Hello,
>
> The php package test suite is failing this way on master:
>
> =====================================================================
>
> =====================================================================
> FAILED TEST SUMMARY
> ---------------------------------------------------------------------
> int openssl_x509_checkpurpose ( mixed $x509cert , int $purpose [, array $cainfo = array() [, string $untrustedfile ]] ) function [ext/openssl/tests/openssl_x509_checkpurpose_basic.phpt]
> =====================================================================
>
> =====================================================================
> WARNED TEST SUMMARY
> ---------------------------------------------------------------------
> FPM: Buffered worker output decorated log with multiple continuous messages (stdout/stderr mixed) [sapi/fpm/tests/log-bwd-multiple-msgs-stdout-stderr.phpt] (warn: XFAIL section but test passes)
> =====================================================================

[...]

Toggle quote (14 lines)
> Test suite failed, dumping logs.
> error: in phase 'check': uncaught exception:
> %exception #<&invoke-error program: "make" arguments: ("test" "-j" "32") exit-status: 2 term-signal: #f stop-signal: #f>
> phase `check' failed after 971.4 seconds
> command "make" "test" "-j" "32" failed with status 2
> builder for `/gnu/store/qvgr41cvrh6b3m5bk5n93gcw0rk0kax5-php-7.4.26.drv' failed with exit code 1
> @ build-failed /gnu/store/qvgr41cvrh6b3m5bk5n93gcw0rk0kax5-php-7.4.26.drv - 1 builder for `/gnu/store/qvgr41cvrh6b3m5bk5n93gcw0rk0kax5-php-7.4.26.drv' failed with exit code 1
> derivation '/gnu/store/qvgr41cvrh6b3m5bk5n93gcw0rk0kax5-php-7.4.26.drv' offloaded to '10.0.0.1' failed: build of `/gnu/store/qvgr41cvrh6b3m5bk5n93gcw0rk0kax5-php-7.4.26.drv' failed
> build of /gnu/store/qvgr41cvrh6b3m5bk5n93gcw0rk0kax5-php-7.4.26.drv failed
> View build log at '/var/log/guix/drvs/qv/gr41cvrh6b3m5bk5n93gcw0rk0kax5-php-7.4.26.drv.bz2'.
> guix build: error: build of `/gnu/store/qvgr41cvrh6b3m5bk5n93gcw0rk0kax5-php-7.4.26.drv' failed
>
> The openssl_x509_checkpurpose test seems to blame.

The test fails because two of the certificates it uses have expired on
11 December 2021. Upstream has already fixed it [1] but the change has
not made it into the 7.4.27 (!) release. We could apply their fix with
a patch or just disable the openssl_x509_checkpurpose test.

[...]

HTH,

Diego

T
T
Tobias Geerinckx-Rice wrote on 16 Dec 2021 18:38
(name . Diego Nicola Barbato)(address . dnbarbato@posteo.de)
874k78phvy.fsf@nckx
Diego,

I *just* pushed a commit disabling this test whilst I investigate
further.

Diego Nicola Barbato ???
Toggle quote (8 lines)
> The test fails because two of the certificates it uses have
> expired on
> 11 December 2021. Upstream has already fixed it [1] but the
> change has
> not made it into the 7.4.27 (!) release. We could apply their
> fix with
> a patch or just disable the openssl_x509_checkpurpose test.

Hah, this was exactly what I suspected

<nckx> (Hm, x509… Could it be a system time issue?)

thank you for doing the research!

I'll try cherry-picking their patch; or otherwise update the
comment.

Kind regards,

T G-R
-----BEGIN PGP SIGNATURE-----

iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYbt6MQ0cbWVAdG9iaWFz
LmdyAAoJEA2w/4hPVW15cOEBAKGV6boUVSDZd3gXxkWwceA7neBZEeWYB4kjfuKm
dEAjAQCiPUOtEOFnIWSj1NwbTD0/ArUMsi2N9DJe0EflVuv3Cw==
=W9Bw
-----END PGP SIGNATURE-----

L
L
Leo Famulari wrote on 16 Dec 2021 20:27
(name . Diego Nicola Barbato)(address . dnbarbato@posteo.de)
YbuTO00R6XZ3KLpq@jasmine.lan
On Thu, Dec 16, 2021 at 05:32:28PM +0000, Diego Nicola Barbato wrote:
Toggle quote (5 lines)
> The test fails because two of the certificates it uses have expired on
> 11 December 2021. Upstream has already fixed it [1] but the change has
> not made it into the 7.4.27 (!) release. We could apply their fix with
> a patch or just disable the openssl_x509_checkpurpose test.

Oof. This is common failure of programs that use X.509 certificates in
test suites, and it's problematic for Guix because it makes our codebase
"expire".
M
M
Maxim Cournoyer wrote on 18 Dec 2021 05:18
(name . Leo Famulari)(address . leo@famulari.name)
87zgoy4kb7.fsf@gmail.com
Hi,

Leo Famulari <leo@famulari.name> writes:

Toggle quote (10 lines)
> On Thu, Dec 16, 2021 at 05:32:28PM +0000, Diego Nicola Barbato wrote:
>> The test fails because two of the certificates it uses have expired on
>> 11 December 2021. Upstream has already fixed it [1] but the change has
>> not made it into the 7.4.27 (!) release. We could apply their fix with
>> a patch or just disable the openssl_x509_checkpurpose test.
>
> Oof. This is common failure of programs that use X.509 certificates in
> test suites, and it's problematic for Guix because it makes our codebase
> "expire".

Yep. I'd just disable the test to guard against future occurrences.
Test failures in PHP don't come in short supply...

Maxim
M
M
Mathieu Othacehe wrote on 19 Dec 2021 17:38
(address . 52513-done@debbugs.gnu.org)
878rwgr1lu.fsf@gnu.org
This one is fixed, thanks to all the persons involved!

Mathieu
Closed
?