[pkg-php-pear] Bug#835122: php-doctrine-cache: FTBFS too much often (failing tests)
Santiago Vila
sanvila at unex.es
Mon Aug 22 17:42:16 UTC 2016
Package: src:php-doctrine-cache
Version: 1.6.0-2
Severity: serious
Dear maintainer:
I tried to build this package in stretch with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
but it failed:
--------------------------------------------------------------------------------
[...]
debian/rules build-indep
dh build-indep --with phpcomposer
dh_testdir -i
dh_update_autotools_config -i
dh_auto_configure -i
debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
# Provide autoload for the binary package
phpab --output lib/Doctrine/Common/Cache/autoload.php \
lib/Doctrine/Common/Cache
phpab %development% - Copyright (C) 2009 - 2016 by Arne Blankerts
Scanning directory lib/Doctrine/Common/Cache
Autoload file lib/Doctrine/Common/Cache/autoload.php generated.
# Provide autoload for tests
mkdir --parents vendor
phpab \
--output vendor/autoload.php \
lib/Doctrine/Common/Cache \
tests/Doctrine/Tests \
/usr/share/php/php-nrk-predis
phpab %development% - Copyright (C) 2009 - 2016 by Arne Blankerts
Scanning directory lib/Doctrine/Common/Cache
Scanning directory tests/Doctrine/Tests
Scanning directory /usr/share/php/php-nrk-predis
Autoload file vendor/autoload.php generated.
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
php -d apc.enable_cli=on /usr/bin/phpunit
PHPUnit 5.4.6 by Sebastian Bergmann and contributors.
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 61 / 1309 ( 4%)
SSSSSSSSSSSSSSS.............................................. 122 / 1309 ( 9%)
............................................................. 183 / 1309 ( 13%)
....................................S.S......S............... 244 / 1309 ( 18%)
..........................................................S.S 305 / 1309 ( 23%)
...SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 366 / 1309 ( 27%)
SSSSSSSSSSSSSSSSSWWWWWW........E.E........................... 427 / 1309 ( 32%)
..........................................S.S...SSSSSSSSSSSSS 488 / 1309 ( 37%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 549 / 1309 ( 41%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 610 / 1309 ( 46%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 671 / 1309 ( 51%)
SSSSSSSSSSSSSSSSSSSSSSSSSSS....E.E........................... 732 / 1309 ( 55%)
....................................S.S...SSSSSSSSSSSSSSSSSSS 793 / 1309 ( 60%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 854 / 1309 ( 65%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 915 / 1309 ( 69%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 976 / 1309 ( 74%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 1037 / 1309 ( 79%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS......SSSSSSSSSSSSSS 1098 / 1309 ( 83%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 1159 / 1309 ( 88%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 1220 / 1309 ( 93%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 1281 / 1309 ( 97%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSS 1309 / 1309 (100%)
Time: 11.35 seconds, Memory: 12.00MB
There were 4 errors:
1) Doctrine\Tests\Common\Cache\FilesystemCacheTest::testWindowsPathLengthLimitIsCorrectlyHandled with data set #0 (257, false)
UnexpectedValueException: RecursiveDirectoryIterator::__construct(/tmp/do-not-try-to-enter-into-this-directory): failed to open dir: Permission denied
/<<PKGBUILDDIR>>/tests/Doctrine/Tests/Common/Cache/BaseFileCacheTest.php:27
2) Doctrine\Tests\Common\Cache\FilesystemCacheTest::testWindowsPathLengthLimitIsCorrectlyHandled with data set #2 (259, true)
UnexpectedValueException: RecursiveDirectoryIterator::__construct(/tmp/do-not-try-to-enter-into-this-directory): failed to open dir: Permission denied
/<<PKGBUILDDIR>>/tests/Doctrine/Tests/Common/Cache/BaseFileCacheTest.php:27
3) Doctrine\Tests\Common\Cache\PhpFileCacheTest::testWindowsPathLengthLimitIsCorrectlyHandled with data set #0 (257, false)
UnexpectedValueException: RecursiveDirectoryIterator::__construct(/tmp/do-not-try-to-enter-into-this-directory): failed to open dir: Permission denied
/<<PKGBUILDDIR>>/tests/Doctrine/Tests/Common/Cache/BaseFileCacheTest.php:27
4) Doctrine\Tests\Common\Cache\PhpFileCacheTest::testWindowsPathLengthLimitIsCorrectlyHandled with data set #2 (259, true)
UnexpectedValueException: RecursiveDirectoryIterator::__construct(/tmp/do-not-try-to-enter-into-this-directory): failed to open dir: Permission denied
/<<PKGBUILDDIR>>/tests/Doctrine/Tests/Common/Cache/BaseFileCacheTest.php:27
--
There were 6 warnings:
1) Doctrine\Tests\Common\Cache\FileCacheTest::testFilenameShouldCreateThePathWithOneSubDirectory
PHPUnit_Framework_TestCase::getMock() is deprecated, use PHPUnit_Framework_TestCase::createMock() or PHPUnit_Framework_TestCase::getMockBuilder() instead
2) Doctrine\Tests\Common\Cache\FileCacheTest::testFileExtensionCorrectlyEscaped
PHPUnit_Framework_TestCase::getMock() is deprecated, use PHPUnit_Framework_TestCase::createMock() or PHPUnit_Framework_TestCase::getMockBuilder() instead
3) Doctrine\Tests\Common\Cache\FileCacheTest::testFileExtensionSlashCorrectlyEscaped
PHPUnit_Framework_TestCase::getMock() is deprecated, use PHPUnit_Framework_TestCase::createMock() or PHPUnit_Framework_TestCase::getMockBuilder() instead
4) Doctrine\Tests\Common\Cache\FileCacheTest::testNonIntUmaskThrowsInvalidArgumentException
PHPUnit_Framework_TestCase::getMock() is deprecated, use PHPUnit_Framework_TestCase::createMock() or PHPUnit_Framework_TestCase::getMockBuilder() instead
5) Doctrine\Tests\Common\Cache\FileCacheTest::testGetDirectoryReturnsRealpathDirectoryString
PHPUnit_Framework_TestCase::getMock() is deprecated, use PHPUnit_Framework_TestCase::createMock() or PHPUnit_Framework_TestCase::getMockBuilder() instead
6) Doctrine\Tests\Common\Cache\FileCacheTest::testGetExtensionReturnsExtensionString
PHPUnit_Framework_TestCase::getMock() is deprecated, use PHPUnit_Framework_TestCase::createMock() or PHPUnit_Framework_TestCase::getMockBuilder() instead
ERRORS!
Tests: 62369, Assertions: 2107, Errors: 4, Warnings: 6, Skipped: 912.
debian/rules:22: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:3: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------
Because this source package only generates "Arch: all" packages, this
is the same as a FTBFS bug in the usual sense, and the fact that I was
doing "dpkg-buildpackage -A" does not mean anything special.
The first time it failed, the error was like this:
UnexpectedValueException: RecursiveDirectoryIterator::__construct(/tmp/systemd-[...]
where /tmp/systemd-[...] is one of those directories created by systemd on /tmp.
This led me to believe that the test suite was apparently choosing a
directory at random in /tmp and trying to list its contents (or maybe
trying to do a recursive listing of /tmp). So I created
/tmp/do-not-try-to-enter-into-this-directory
owned by root with mode 700, made sure this was the only directory in
/tmp and tried to build again.
The result is the build log shown above.
Needless to say, this bug makes quite difficult to build the package
on systems using systemd.
Thanks.
More information about the pkg-php-pear
mailing list