[pkg-php-pear] Bug#1074201: php-monolog: FTBFS with pkg-php-tools_1.45+nmu1: make[1]: *** [debian/rules:15: override_dh_auto_test] Error 1

Athos Ribeiro athoscribeiro at gmail.com
Mon Jun 24 14:20:03 BST 2024


Source: php-monolog
Version: 2.9.3-1
Severity: normal
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-pear at lists.alioth.debian.org
Usertags: pkg-php-tools-1.45

Hi,

During a test rebuild, php-monolog was found to fail to build with
pkg-php-tools 1.45 available in experimental.

To reproduce this locally, you need to install pkg-php-tools from experimental
on an unstable system or build chroot.

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> phpunit --include-path src --exclude-group Elasticsearch
> PHPUnit 9.6.19 by Sebastian Bergmann and contributors.
> 
> Warning:       Your XML configuration validates against a deprecated schema.
> Suggestion:    Migrate your XML configuration using "--migrate-configuration"!
> 
> ...........SS.......SSSSSSSSS..........................W.....   61 / 1127 (  5%)
> S.WW.........SSSSSSSSS..S....................................  122 / 1127 ( 10%)
> .....................S.....SSSSSSSSSSSS......................  183 / 1127 ( 16%)
> .................WWSSSS............WWWWWW....SS..............  244 / 1127 ( 21%)
> ..............................SSSSSSSSSSSSSSSSSSSSSSSSS......  305 / 1127 ( 27%)
> ................WWWWWWWW...W......W.S........................  366 / 1127 ( 32%)
> .....................................................WWWWWWWW  427 / 1127 ( 37%)
> WWWWW.......................................FFSS.............  488 / 1127 ( 43%)
> .....W.W.............W..........SS........WW.................  549 / 1127 ( 48%)
> .............................................................  610 / 1127 ( 54%)
> .............................................................  671 / 1127 ( 59%)
> .............................................................  732 / 1127 ( 64%)
> .............................................................  793 / 1127 ( 70%)
> .............................................................  854 / 1127 ( 75%)
> .............................................................  915 / 1127 ( 81%)
> .............................................................  976 / 1127 ( 86%)
> ........S......W.W.S......................................... 1037 / 1127 ( 92%)
> ............................................................. 1098 / 1127 ( 97%)
> .............................                                 1127 / 1127 (100%)
> 
> Time: 00:05.197, Memory: 333.20 MB
> 
> There were 41 warnings:
> 
> 1) Monolog\Formatter\LineFormatterTest::testDefFormatWithExceptionAndStacktrace
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 2) Monolog\Formatter\LineFormatterTest::testFormatShouldStripInlineLineBreaks
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 3) Monolog\Formatter\LineFormatterTest::testFormatShouldNotStripInlineLineBreaksWhenFlagIsSet
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 4) Monolog\Handler\FlowdockHandlerTest::testWriteHeader
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 5) Monolog\Handler\FlowdockHandlerTest::testWriteContent
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 6) Monolog\Handler\InsightOpsHandlerTest::testWriteContent
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 7) Monolog\Handler\InsightOpsHandlerTest::testWriteBatchContent
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 8) Monolog\Handler\LogEntriesHandlerTest::testWriteContent
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 9) Monolog\Handler\LogEntriesHandlerTest::testWriteBatchContent
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 10) Monolog\Handler\LogmaticHandlerTest::testWriteContent
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 11) Monolog\Handler\LogmaticHandlerTest::testWriteBatchContent
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 12) Monolog\Handler\PushoverHandlerTest::testWriteHeader
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 13) Monolog\Handler\PushoverHandlerTest::testWriteContent
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 14) Monolog\Handler\PushoverHandlerTest::testWriteWithComplexTitle
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 15) Monolog\Handler\PushoverHandlerTest::testWriteWithComplexMessage
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 16) Monolog\Handler\PushoverHandlerTest::testWriteWithTooLongMessage
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 17) Monolog\Handler\PushoverHandlerTest::testWriteWithHighPriority
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 18) Monolog\Handler\PushoverHandlerTest::testWriteWithEmergencyPriority
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 19) Monolog\Handler\PushoverHandlerTest::testWriteToMultipleUsers
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 20) Monolog\Handler\RedisHandlerTest::testPredisHandle
> PHPUnit\Framework\TestCase::prophesize() is deprecated and will be removed in PHPUnit 10. Please use the trait provided by phpspec/prophecy-phpunit.
> 
> 21) Monolog\Handler\RedisPubSubHandlerTest::testPredisHandle
> PHPUnit\Framework\TestCase::prophesize() is deprecated and will be removed in PHPUnit 10. Please use the trait provided by phpspec/prophecy-phpunit.
> 
> 22) Monolog\Handler\SlackHandlerTest::testWriteHeader
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 23) Monolog\Handler\SlackHandlerTest::testWriteContent
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 24) Monolog\Handler\SlackHandlerTest::testWriteContentUsesFormatterIfProvided
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 25) Monolog\Handler\SlackHandlerTest::testWriteContentWithEmoji
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 26) Monolog\Handler\SlackHandlerTest::testWriteContentWithColors with data set #0 (100, '%23e3e4e6')
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 27) Monolog\Handler\SlackHandlerTest::testWriteContentWithColors with data set #1 (200, 'good')
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 28) Monolog\Handler\SlackHandlerTest::testWriteContentWithColors with data set #2 (250, 'good')
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 29) Monolog\Handler\SlackHandlerTest::testWriteContentWithColors with data set #3 (300, 'warning')
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 30) Monolog\Handler\SlackHandlerTest::testWriteContentWithColors with data set #4 (400, 'danger')
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 31) Monolog\Handler\SlackHandlerTest::testWriteContentWithColors with data set #5 (500, 'danger')
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 32) Monolog\Handler\SlackHandlerTest::testWriteContentWithColors with data set #6 (550, 'danger')
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 33) Monolog\Handler\SlackHandlerTest::testWriteContentWithColors with data set #7 (600, 'danger')
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 34) Monolog\Handler\SlackHandlerTest::testWriteContentWithPlainTextMessage
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 35) Monolog\Handler\SyslogUdpHandlerTest::testWeSplitIntoLines
> The at() matcher has been deprecated. It will be removed in PHPUnit 10. Please refactor your test to not rely on the order in which methods are invoked.
> 
> 36) Monolog\Handler\SyslogUdpHandlerTest::testRfc
> The at() matcher has been deprecated. It will be removed in PHPUnit 10. Please refactor your test to not rely on the order in which methods are invoked.
> 
> 37) Monolog\Handler\UdpSocketTest::testWeDoNotTruncateShortMessages
> The at() matcher has been deprecated. It will be removed in PHPUnit 10. Please refactor your test to not rely on the order in which methods are invoked.
> 
> 38) Monolog\LoggerTest::testLog
> PHPUnit\Framework\TestCase::prophesize() is deprecated and will be removed in PHPUnit 10. Please use the trait provided by phpspec/prophecy-phpunit.
> 
> 39) Monolog\LoggerTest::testLogNotHandled
> PHPUnit\Framework\TestCase::prophesize() is deprecated and will be removed in PHPUnit 10. Please use the trait provided by phpspec/prophecy-phpunit.
> 
> 40) Monolog\Processor\MemoryPeakUsageProcessorTest::testProcessor
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> 41) Monolog\Processor\MemoryUsageProcessorTest::testProcessor
> assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.
> 
> --
> 
> There were 2 failures:
> 
> 1) Monolog\Handler\StreamHandlerTest::testWriteNonExistingAndNotCreatablePath with data set "/foo/bar/…" ('/foo/bar/1241/8899')
> Failed asserting that exception of type "UnexpectedValueException" is thrown.
> 
> 2) Monolog\Handler\StreamHandlerTest::testWriteNonExistingAndNotCreatablePath with data set "file:///foo/bar/…" ('file:///foo/bar/8191/3308')
> Failed asserting that exception of type "UnexpectedValueException" is thrown.
> 
> FAILURES!
> Tests: 1127, Assertions: 1849, Failures: 2, Warnings: 41, Skipped: 73.
> make[1]: *** [debian/rules:15: override_dh_auto_test] Error 1


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/pkg-php-tools_virt-provides/0/php-monolog/php-monolog_2.9.3-1+rebuild1719080393_amd64-2024-06-22T18:19:54Z.build



More information about the pkg-php-pear mailing list