Source: google-recaptcha
Version: 1.2.4-1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201226 ftbfs-bullseye
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> # keep in sync with debian/tests/phpunit
> find tests/ -type f -print0 | xargs -0 sed -i 's/function setUp()/function
> setUp(): void/g'
> find tests/ -type f -print0 | xargs -0 sed -i 's/function tearDown()/function
> tearDown(): void/g'
> phpunit --no-coverage
> PHPUnit 9.5.0 by Sebastian Bergmann and contributors.
>
> Runtime: PHP 7.4.11
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist
> Warning: Your XML configuration validates against a deprecated schema.
> Suggestion: Migrate your XML configuration using "--migrate-configuration"!
>
> EEEEE.................E............................ 51 / 51
> (100%)
>
> Time: 00:00.012, Memory: 6.00 MB
>
> There were 6 errors:
>
> 1) ReCaptcha\ReCaptchaTest::testExceptionThrownOnInvalidSecret with data set
> #0 ('')
> RuntimeException: No secret provided
>
> /<<PKGBUILDDIR>>/src/ReCaptcha/ReCaptcha.php:136
> /<<PKGBUILDDIR>>/tests/ReCaptcha/ReCaptchaTest.php:48
>
> 2) ReCaptcha\ReCaptchaTest::testExceptionThrownOnInvalidSecret with data set
> #1 (null)
> RuntimeException: No secret provided
>
> /<<PKGBUILDDIR>>/src/ReCaptcha/ReCaptcha.php:136
> /<<PKGBUILDDIR>>/tests/ReCaptcha/ReCaptchaTest.php:48
>
> 3) ReCaptcha\ReCaptchaTest::testExceptionThrownOnInvalidSecret with data set
> #2 (0)
> RuntimeException: No secret provided
>
> /<<PKGBUILDDIR>>/src/ReCaptcha/ReCaptcha.php:136
> /<<PKGBUILDDIR>>/tests/ReCaptcha/ReCaptchaTest.php:48
>
> 4) ReCaptcha\ReCaptchaTest::testExceptionThrownOnInvalidSecret with data set
> #3 (stdClass Object ())
> RuntimeException: The provided secret must be a string
>
> /<<PKGBUILDDIR>>/src/ReCaptcha/ReCaptcha.php:140
> /<<PKGBUILDDIR>>/tests/ReCaptcha/ReCaptchaTest.php:48
>
> 5) ReCaptcha\ReCaptchaTest::testExceptionThrownOnInvalidSecret with data set
> #4 (array())
> RuntimeException: No secret provided
>
> /<<PKGBUILDDIR>>/src/ReCaptcha/ReCaptcha.php:136
> /<<PKGBUILDDIR>>/tests/ReCaptcha/ReCaptchaTest.php:48
>
> 6) ReCaptcha\RequestMethod\PostTest::testHTTPContextOptions
> TypeError: Argument 2 passed to PHPUnit\Framework\Assert::assertContains()
> must be iterable, string given, called in
> /<<PKGBUILDDIR>>/tests/ReCaptcha/RequestMethod/PostTest.php on line 118
>
> /<<PKGBUILDDIR>>/tests/ReCaptcha/RequestMethod/PostTest.php:118
> /<<PKGBUILDDIR>>/tests/ReCaptcha/RequestMethod/PostTest.php:145
> /<<PKGBUILDDIR>>/src/ReCaptcha/RequestMethod/Post.php:80
> /<<PKGBUILDDIR>>/tests/ReCaptcha/RequestMethod/PostTest.php:61
>
> ERRORS!
> Tests: 51, Assertions: 139, Errors: 6.
> make[1]: *** [debian/rules:11: override_dh_auto_test] Error 2
The full build log is available from:
http://qa-logs.debian.net/2020/12/26/google-recaptcha_1.2.4-1_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with me
so that we can identify if something relevant changed in the meantime.
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.