Predefined output formats - ELK, cron. New demo and docs. #1670
main.yml
on: pull_request
Matrix: Linters
Matrix: PHPUnit
Matrix: Reports
Annotations
42 errors
PHPUnit (8.1, none, --prefer-lowest):
tests/CliMultiProcessTest.php#L21
JBZoo\PHPUnit\CliMultiProcessTest::testAsRealExecution
JBZoo\PHPUnit\CmdResult Object
(
[code] => 255
[std] =>
[err] => PHP Fatal error: Uncaught Error: Call to undefined method Monolog\Formatter\NormalizerFormatter::normalizeValue() in src/OutputMods/AbstractOutputMode.php:236
Stack trace:
#0 src/OutputMods/AbstractOutputMode.php(102): JBZoo\Cli\OutputMods\AbstractOutputMode->prepareContext()
#1 src/OutputMods/Text.php(50): JBZoo\Cli\OutputMods\AbstractOutputMode->_()
#2 src/CliCommand.php(168): JBZoo\Cli\OutputMods\Text->onExecBefore()
#3 vendor/symfony/console/Command/Command.php(298): JBZoo\Cli\CliCommand->execute()
#4 vendor/symfony/console/Application.php(1005): Symfony\Component\Console\Command\Command->run()
#5 vendor/symfony/console/Application.php(299): Symfony\Component\Console\Application->doRunCommand()
#6 vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#7 tests/TestApp/bin.php(33): Symfony\Component\Console\Application->run()
#8 tests/TestApp/cli-wrapper.php(43): require_once('...')
#9 {main}
thrown in src/OutputMods/AbstractOutputMode.php on line 236
[cmd] => JBZOO_TEST_VAR=123456 php tests/TestApp/cli-wrapper.php test:sleep-multi 123 " qwerty " -v --sleep="1" --no-progress --pm-max="50" --no-ansi
)
Failed asserting that 255 is identical to 0.
vendor/jbzoo/phpunit/src/functions/aliases.php:129
tests/CliMultiProcessTest.php:33
|
PHPUnit (8.1, none, --prefer-lowest):
tests/CliMultiProcessTest.php#L56
JBZoo\PHPUnit\CliMultiProcessTest::testAsVirtalExecution
Error: Call to undefined method Monolog\Formatter\NormalizerFormatter::normalizeValue()
src/OutputMods/AbstractOutputMode.php:236
src/OutputMods/AbstractOutputMode.php:102
src/OutputMods/Text.php:50
src/CliCommand.php:168
vendor/symfony/console/Command/Command.php:298
tests/Helper.php:84
tests/CliMultiProcessTest.php:59
|
PHPUnit (8.1, none, --prefer-lowest):
tests/CliMultiProcessTest.php#L83
JBZoo\PHPUnit\CliMultiProcessTest::testException
Failed asserting that 255 is identical to 1.
vendor/jbzoo/phpunit/src/functions/aliases.php:129
tests/CliMultiProcessTest.php:95
|
PHPUnit (8.1, none, --prefer-lowest):
tests/CliMultiProcessTest.php#L117
JBZoo\PHPUnit\CliMultiProcessTest::testNumberOfCpuCores
Failed asserting that '' contains "Debug: Max number of sub-processes: 50".
vendor/jbzoo/phpunit/src/functions/aliases.php:245
tests/CliMultiProcessTest.php:124
|
PHPUnit (8.1, none, --prefer-lowest):
tests/CliOptionsTest.php#L21
JBZoo\PHPUnit\CliOptionsTest::testOptionNone
Failed asserting that null is identical to Array &0 (
'Default' => false
'Bool' => false
'Int' => 0
'Float' => 0
'String' => ''
'Array' => Array &1 (
0 => false
)
).
vendor/jbzoo/phpunit/src/functions/aliases.php:129
tests/CliOptionsTest.php:33
|
PHPUnit (8.1, none, --prefer-lowest):
tests/CliOptionsTest.php#L46
JBZoo\PHPUnit\CliOptionsTest::testOptionRequired
Failed asserting that null is identical to Array &0 (
'Default' => null
'Bool' => false
'Int' => 0
'Float' => 0
'String' => ''
'Array' => Array &1 ()
).
vendor/jbzoo/phpunit/src/functions/aliases.php:129
tests/CliOptionsTest.php:57
|
PHPUnit (8.1, none, --prefer-lowest):
tests/CliOptionsTest.php#L80
JBZoo\PHPUnit\CliOptionsTest::testOptionRequiredAndDefault
Failed asserting that null is identical to Array &0 (
'Default' => '456.8'
'Bool' => true
'Int' => 456
'Float' => 456.8
'String' => '456.8'
'Array' => Array &1 (
0 => '456.8'
)
).
vendor/jbzoo/phpunit/src/functions/aliases.php:129
tests/CliOptionsTest.php:91
|
PHPUnit (8.1, none, --prefer-lowest):
tests/CliOptionsTest.php#L124
JBZoo\PHPUnit\CliOptionsTest::testOptionOptional
Failed asserting that null is identical to Array &0 (
'Default' => null
'Bool' => false
'Int' => 0
'Float' => 0
'String' => ''
'Array' => Array &1 ()
).
vendor/jbzoo/phpunit/src/functions/aliases.php:129
tests/CliOptionsTest.php:135
|
PHPUnit (8.1, none, --prefer-lowest):
tests/CliOptionsTest.php#L168
JBZoo\PHPUnit\CliOptionsTest::testOptionOptionalDefault
Failed asserting that null is identical to Array &0 (
'Default' => '456.8'
'Bool' => true
'Int' => 456
'Float' => 456.8
'String' => '456.8'
'Array' => Array &1 (
0 => '456.8'
)
).
vendor/jbzoo/phpunit/src/functions/aliases.php:129
tests/CliOptionsTest.php:179
|
PHPUnit (8.1, none, --prefer-lowest):
tests/CliOptionsTest.php#L212
JBZoo\PHPUnit\CliOptionsTest::testOptionArrayOptional
Failed asserting that null is identical to Array &0 (
'Default' => Array &1 ()
'Bool' => false
'Int' => 0
'Float' => 0
'String' => ''
'Array' => Array &2 ()
).
vendor/jbzoo/phpunit/src/functions/aliases.php:129
tests/CliOptionsTest.php:223
|
PHPUnit (8.2, none, --prefer-lowest)
The job was canceled because "_8_1_none_--prefer-lowest" failed.
|
PHPUnit (8.2, none, --prefer-lowest):
tests/CliMultiProcessTest.php#L21
JBZoo\PHPUnit\CliMultiProcessTest::testAsRealExecution
JBZoo\PHPUnit\CmdResult Object
(
[code] => 255
[std] =>
[err] => PHP Fatal error: Uncaught Error: Call to undefined method Monolog\Formatter\NormalizerFormatter::normalizeValue() in src/OutputMods/AbstractOutputMode.php:236
Stack trace:
#0 src/OutputMods/AbstractOutputMode.php(102): JBZoo\Cli\OutputMods\AbstractOutputMode->prepareContext()
#1 src/OutputMods/Text.php(50): JBZoo\Cli\OutputMods\AbstractOutputMode->_()
#2 src/CliCommand.php(168): JBZoo\Cli\OutputMods\Text->onExecBefore()
#3 vendor/symfony/console/Command/Command.php(298): JBZoo\Cli\CliCommand->execute()
#4 vendor/symfony/console/Application.php(1005): Symfony\Component\Console\Command\Command->run()
#5 vendor/symfony/console/Application.php(299): Symfony\Component\Console\Application->doRunCommand()
#6 vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#7 tests/TestApp/bin.php(33): Symfony\Component\Console\Application->run()
#8 tests/TestApp/cli-wrapper.php(43): require_once('...')
#9 {main}
thrown in src/OutputMods/AbstractOutputMode.php on line 236
[cmd] => JBZOO_TEST_VAR=123456 php tests/TestApp/cli-wrapper.php test:sleep-multi 123 " qwerty " -v --sleep="1" --no-progress --pm-max="50" --no-ansi
)
Failed asserting that 255 is identical to 0.
vendor/jbzoo/phpunit/src/functions/aliases.php:129
tests/CliMultiProcessTest.php:33
|
PHPUnit (8.2, none, --prefer-lowest):
tests/CliMultiProcessTest.php#L56
JBZoo\PHPUnit\CliMultiProcessTest::testAsVirtalExecution
Error: Call to undefined method Monolog\Formatter\NormalizerFormatter::normalizeValue()
src/OutputMods/AbstractOutputMode.php:236
src/OutputMods/AbstractOutputMode.php:102
src/OutputMods/Text.php:50
src/CliCommand.php:168
vendor/symfony/console/Command/Command.php:298
tests/Helper.php:84
tests/CliMultiProcessTest.php:59
|
PHPUnit (8.2, none, --prefer-lowest):
tests/CliMultiProcessTest.php#L83
JBZoo\PHPUnit\CliMultiProcessTest::testException
Failed asserting that 255 is identical to 1.
vendor/jbzoo/phpunit/src/functions/aliases.php:129
tests/CliMultiProcessTest.php:95
|
PHPUnit (8.2, none, --prefer-lowest):
tests/CliMultiProcessTest.php#L117
JBZoo\PHPUnit\CliMultiProcessTest::testNumberOfCpuCores
Failed asserting that '' contains "Debug: Max number of sub-processes: 50".
vendor/jbzoo/phpunit/src/functions/aliases.php:245
tests/CliMultiProcessTest.php:124
|
PHPUnit (8.2, none, --prefer-lowest):
tests/CliOptionsTest.php#L21
JBZoo\PHPUnit\CliOptionsTest::testOptionNone
Failed asserting that null is identical to Array &0 (
'Default' => false
'Bool' => false
'Int' => 0
'Float' => 0
'String' => ''
'Array' => Array &1 (
0 => false
)
).
vendor/jbzoo/phpunit/src/functions/aliases.php:129
tests/CliOptionsTest.php:26
|
PHPUnit (8.2, none, --prefer-lowest):
tests/CliOptionsTest.php#L46
JBZoo\PHPUnit\CliOptionsTest::testOptionRequired
Failed asserting that null is identical to Array &0 (
'Default' => null
'Bool' => false
'Int' => 0
'Float' => 0
'String' => ''
'Array' => Array &1 ()
).
vendor/jbzoo/phpunit/src/functions/aliases.php:129
tests/CliOptionsTest.php:50
|
PHPUnit (8.2, none, --prefer-lowest):
tests/CliOptionsTest.php#L80
JBZoo\PHPUnit\CliOptionsTest::testOptionRequiredAndDefault
Failed asserting that null is identical to Array &0 (
'Default' => '456.8'
'Bool' => true
'Int' => 456
'Float' => 456.8
'String' => '456.8'
'Array' => Array &1 (
0 => '456.8'
)
).
vendor/jbzoo/phpunit/src/functions/aliases.php:129
tests/CliOptionsTest.php:84
|
PHPUnit (8.2, none, --prefer-lowest):
tests/CliOptionsTest.php#L124
JBZoo\PHPUnit\CliOptionsTest::testOptionOptional
Failed asserting that null is identical to Array &0 (
'Default' => null
'Bool' => false
'Int' => 0
'Float' => 0
'String' => ''
'Array' => Array &1 ()
).
vendor/jbzoo/phpunit/src/functions/aliases.php:129
tests/CliOptionsTest.php:128
|
PHPUnit (8.2, none, --prefer-lowest):
tests/CliOptionsTest.php#L168
JBZoo\PHPUnit\CliOptionsTest::testOptionOptionalDefault
Failed asserting that null is identical to Array &0 (
'Default' => '456.8'
'Bool' => true
'Int' => 456
'Float' => 456.8
'String' => '456.8'
'Array' => Array &1 (
0 => '456.8'
)
).
vendor/jbzoo/phpunit/src/functions/aliases.php:129
tests/CliOptionsTest.php:172
|
PHPUnit (8.2, none, --prefer-lowest):
tests/CliOptionsTest.php#L212
JBZoo\PHPUnit\CliOptionsTest::testOptionArrayOptional
Failed asserting that null is identical to Array &0 (
'Default' => Array &1 ()
'Bool' => false
'Int' => 0
'Float' => 0
'String' => ''
'Array' => Array &2 ()
).
vendor/jbzoo/phpunit/src/functions/aliases.php:129
tests/CliOptionsTest.php:216
|
Linters (8.2):
src/OutputMods/Cron.php#L25
The type "'cron'" for JBZoo\Cli\OutputMods\Cron::NAME does not satisfy the type "'text'" inherited from JBZoo\Cli\OutputMods\Text::NAME
Rule : InvalidClassConstantType
File Path : src/OutputMods/Cron.php:25
Snippet : `public const NAME = 'cron';`
Docs : https://psalm.dev/309
Severity : error
Error Level: 1
|
Linters (8.2):
src/OutputMods/Cron.php#L27
The type "'Shortcut for crontab. It's basically focused on logs output.\n It's combination ...'" for JBZoo\Cli\OutputMods\Cron::DESCRIPTION does not satisfy the type "'Default text output format, userfriendly and easy to read.'" inherited from JBZoo\Cli\OutputMods\Text::DESCRIPTION
Rule : InvalidClassConstantType
File Path : src/OutputMods/Cron.php:27
Snippet : `public const DESCRIPTION = "Shortcut for crontab. It's basically focused on logs output.\n"`
Docs : https://psalm.dev/309
Severity : error
Error Level: 1
|
Linters (8.2):
src/ProgressBars/ProgressBarLight.php#L39
iterable<mixed, mixed> cannot be cast to string
Rule : PossiblyInvalidCast
File Path : src/ProgressBars/ProgressBarLight.php:39
Snippet : `if (\str_contains((string)$stepResult, self::BREAK)) {`
Docs : https://psalm.dev/190
Severity : error
Error Level: 3
|
Linters (8.2)
Process completed with exit code 2.
|
Linters (8.1)
The job was canceled because "_8_2" failed.
|
Linters (8.1):
src/OutputMods/Cron.php#L25
The type "'cron'" for JBZoo\Cli\OutputMods\Cron::NAME does not satisfy the type "'text'" inherited from JBZoo\Cli\OutputMods\Text::NAME
Rule : InvalidClassConstantType
File Path : src/OutputMods/Cron.php:25
Snippet : `public const NAME = 'cron';`
Docs : https://psalm.dev/309
Severity : error
Error Level: 1
|
Linters (8.1):
src/OutputMods/Cron.php#L27
The type "'Shortcut for crontab. It's basically focused on logs output.\n It's combination ...'" for JBZoo\Cli\OutputMods\Cron::DESCRIPTION does not satisfy the type "'Default text output format, userfriendly and easy to read.'" inherited from JBZoo\Cli\OutputMods\Text::DESCRIPTION
Rule : InvalidClassConstantType
File Path : src/OutputMods/Cron.php:27
Snippet : `public const DESCRIPTION = "Shortcut for crontab. It's basically focused on logs output.\n"`
Docs : https://psalm.dev/309
Severity : error
Error Level: 1
|
Linters (8.1):
src/ProgressBars/ProgressBarLight.php#L39
iterable<mixed, mixed> cannot be cast to string
Rule : PossiblyInvalidCast
File Path : src/ProgressBars/ProgressBarLight.php:39
Snippet : `if (\str_contains((string)$stepResult, self::BREAK)) {`
Docs : https://psalm.dev/190
Severity : error
Error Level: 3
|
Linters (8.1)
The operation was canceled.
|
PHPUnit (8.1, xdebug)
The job was canceled because "_8_1_none_--prefer-lowest" failed.
|
PHPUnit (8.1, xdebug)
The operation was canceled.
|
PHPUnit (8.2, xdebug)
The job was canceled because "_8_1_none_--prefer-lowest" failed.
|
PHPUnit (8.2, xdebug)
The operation was canceled.
|
PHPUnit (8.2, xdebug, --prefer-lowest)
The job was canceled because "_8_1_none_--prefer-lowest" failed.
|
PHPUnit (8.2, xdebug, --prefer-lowest)
The operation was canceled.
|
PHPUnit (8.2, none)
The job was canceled because "_8_1_none_--prefer-lowest" failed.
|
PHPUnit (8.2, none)
The operation was canceled.
|
PHPUnit (8.1, none)
The job was canceled because "_8_1_none_--prefer-lowest" failed.
|
PHPUnit (8.1, none)
The operation was canceled.
|
PHPUnit (8.1, xdebug, --prefer-lowest)
The job was canceled because "_8_1_none_--prefer-lowest" failed.
|
PHPUnit (8.1, xdebug, --prefer-lowest)
The operation was canceled.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Reports - 8.1
Expired
|
1.56 MB |
|
Reports - 8.2
Expired
|
1.56 MB |
|