Skip to content

Creation of PHAR using Nix, in a reproducible environment #1419

Creation of PHAR using Nix, in a reproducible environment

Creation of PHAR using Nix, in a reproducible environment #1419

Re-run triggered December 20, 2023 10:18
Status Failure
Total duration 2m 51s
Artifacts

continuous-integration.yml

on: pull_request
Generate job matrix
10s
Generate job matrix
Matrix: Check Backwards Compatibility
Matrix: Composer Require Checker
Matrix: QA Checks
Fit to window
Zoom out
Zoom in

Annotations

15 errors and 5 warnings
Composer Require Checker (locked, 8.1, ubuntu-latest)
Process completed with exit code 255.
Composer Require Checker (locked, 8.3, ubuntu-latest)
The job was canceled because "locked_8_1_ubuntu-latest" failed.
Composer Require Checker (locked, 8.3, ubuntu-latest)
The operation was canceled.
Composer Require Checker (locked, 8.2, ubuntu-latest)
The job was canceled because "locked_8_1_ubuntu-latest" failed.
Composer Require Checker (locked, 8.2, ubuntu-latest)
The operation was canceled.
MissingImmutableAnnotation: src/SourceLocator/LocatedSourceWithStrippedSourcesDirectory.php#L14
src/SourceLocator/LocatedSourceWithStrippedSourcesDirectory.php:14:63: MissingImmutableAnnotation: Roave\BetterReflection\SourceLocator\Located\LocatedSource is marked @psalm-immutable, but Roave\BackwardCompatibility\SourceLocator\LocatedSourceWithStrippedSourcesDirectory is not marked @psalm-immutable (see https://psalm.dev/213)
MissingImmutableAnnotation: src/SourceLocator/LocatedSourceWithStrippedSourcesDirectory.php#L22
src/SourceLocator/LocatedSourceWithStrippedSourcesDirectory.php:22:5: MissingImmutableAnnotation: Roave\BetterReflection\SourceLocator\Located\LocatedSource::getSource is marked @psalm-external-mutation-free, but Roave\BackwardCompatibility\SourceLocator\LocatedSourceWithStrippedSourcesDirectory::getSource is not marked @psalm-external-mutation-free (see https://psalm.dev/213)
MissingImmutableAnnotation: src/SourceLocator/LocatedSourceWithStrippedSourcesDirectory.php#L27
src/SourceLocator/LocatedSourceWithStrippedSourcesDirectory.php:27:5: MissingImmutableAnnotation: Roave\BetterReflection\SourceLocator\Located\LocatedSource::getName is marked @psalm-external-mutation-free, but Roave\BackwardCompatibility\SourceLocator\LocatedSourceWithStrippedSourcesDirectory::getName is not marked @psalm-external-mutation-free (see https://psalm.dev/213)
MissingImmutableAnnotation: src/SourceLocator/LocatedSourceWithStrippedSourcesDirectory.php#L32
src/SourceLocator/LocatedSourceWithStrippedSourcesDirectory.php:32:5: MissingImmutableAnnotation: Roave\BetterReflection\SourceLocator\Located\LocatedSource::getFileName is marked @psalm-external-mutation-free, but Roave\BackwardCompatibility\SourceLocator\LocatedSourceWithStrippedSourcesDirectory::getFileName is not marked @psalm-external-mutation-free (see https://psalm.dev/213)
MoreSpecificReturnType: src/SourceLocator/LocatedSourceWithStrippedSourcesDirectory.php#L32
src/SourceLocator/LocatedSourceWithStrippedSourcesDirectory.php:32:36: MoreSpecificReturnType: The declared return type 'non-empty-string|null' for Roave\BackwardCompatibility\SourceLocator\LocatedSourceWithStrippedSourcesDirectory::getFileName is more specific than the inferred return type 'null|string' (see https://psalm.dev/070)
LessSpecificReturnStatement: src/SourceLocator/LocatedSourceWithStrippedSourcesDirectory.php#L40
src/SourceLocator/LocatedSourceWithStrippedSourcesDirectory.php:40:16: LessSpecificReturnStatement: The type 'string' is more general than the declared return type 'non-empty-string|null' for Roave\BackwardCompatibility\SourceLocator\LocatedSourceWithStrippedSourcesDirectory::getFileName (see https://psalm.dev/129)
PossiblyNullArgument: src/SourceLocator/LocatedSourceWithStrippedSourcesDirectory.php#L40
src/SourceLocator/LocatedSourceWithStrippedSourcesDirectory.php:40:31: PossiblyNullArgument: Argument 1 of substr_replace cannot be null, possibly null value provided (see https://psalm.dev/078)
MissingImmutableAnnotation: src/SourceLocator/LocatedSourceWithStrippedSourcesDirectory.php#L43
src/SourceLocator/LocatedSourceWithStrippedSourcesDirectory.php:43:5: MissingImmutableAnnotation: Roave\BetterReflection\SourceLocator\Located\LocatedSource::isInternal is marked @psalm-external-mutation-free, but Roave\BackwardCompatibility\SourceLocator\LocatedSourceWithStrippedSourcesDirectory::isInternal is not marked @psalm-external-mutation-free (see https://psalm.dev/213)
MissingImmutableAnnotation: src/SourceLocator/LocatedSourceWithStrippedSourcesDirectory.php#L48
src/SourceLocator/LocatedSourceWithStrippedSourcesDirectory.php:48:5: MissingImmutableAnnotation: Roave\BetterReflection\SourceLocator\Located\LocatedSource::getExtensionName is marked @psalm-external-mutation-free, but Roave\BackwardCompatibility\SourceLocator\LocatedSourceWithStrippedSourcesDirectory::getExtensionName is not marked @psalm-external-mutation-free (see https://psalm.dev/213)
MissingImmutableAnnotation: src/SourceLocator/LocatedSourceWithStrippedSourcesDirectory.php#L53
src/SourceLocator/LocatedSourceWithStrippedSourcesDirectory.php:53:5: MissingImmutableAnnotation: Roave\BetterReflection\SourceLocator\Located\LocatedSource::isEvaled is marked @psalm-external-mutation-free, but Roave\BackwardCompatibility\SourceLocator\LocatedSourceWithStrippedSourcesDirectory::isEvaled is not marked @psalm-external-mutation-free (see https://psalm.dev/213)
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...: src/Change.php#L80
Escaped Mutant for Mutator "CloneRemoval": --- Original +++ New @@ @@ /** @internal */ public function withFilePositionsIfNotAlreadySet(string|null $file, int|null $line, int|null $column) : self { - $instance = clone $this; + $instance = $this; $instance->file ??= $file; $instance->line ??= $line; $instance->column ??= $column;
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...: src/Formatter/JunitFormatter.php#L52
Escaped Mutant for Mutator "CastString": --- Original +++ New @@ @@ $this->output->writeLn(sprintf('<testsuite name="roave/backward-compatibility-check" tests="%d" failures="%d" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/junit-team/junit5/732a5400f80c8f446daa8b43eaa4b41b3da929be/platform-tests/src/test/resources/jenkins-junit.xsd">', $changeCount, $changeCount)); foreach ($changes as $change) { $filename = $change->file === null ? null : Str\replace($change->file, $basePath, ''); - $name = $this->escapeXmlAttribute(implode(':', [$filename ?? '', (string) ($change->line ?? ''), (string) ($change->column ?? '')])); + $name = $this->escapeXmlAttribute(implode(':', [$filename ?? '', $change->line ?? '', (string) ($change->column ?? '')])); $this->output->writeLn(sprintf(' <testcase name="%s"><failure type="error" message="%s"/></testcase>', $this->escapeXmlAttribute($name), $this->escapeXmlAttribute(trim($change->__toString())))); } $this->output->writeLn('</testsuite>');
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...: src/Formatter/JunitFormatter.php#L53
Escaped Mutant for Mutator "CastString": --- Original +++ New @@ @@ $this->output->writeLn(sprintf('<testsuite name="roave/backward-compatibility-check" tests="%d" failures="%d" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/junit-team/junit5/732a5400f80c8f446daa8b43eaa4b41b3da929be/platform-tests/src/test/resources/jenkins-junit.xsd">', $changeCount, $changeCount)); foreach ($changes as $change) { $filename = $change->file === null ? null : Str\replace($change->file, $basePath, ''); - $name = $this->escapeXmlAttribute(implode(':', [$filename ?? '', (string) ($change->line ?? ''), (string) ($change->column ?? '')])); + $name = $this->escapeXmlAttribute(implode(':', [$filename ?? '', (string) ($change->line ?? ''), $change->column ?? ''])); $this->output->writeLn(sprintf(' <testcase name="%s"><failure type="error" message="%s"/></testcase>', $this->escapeXmlAttribute($name), $this->escapeXmlAttribute(trim($change->__toString())))); } $this->output->writeLn('</testsuite>');
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...: src/Formatter/JunitFormatter.php#L68
Escaped Mutant for Mutator "BitwiseOr": --- Original +++ New @@ @@ } private function escapeXmlAttribute(string $value) : string { - return htmlspecialchars($value, ENT_XML1 | ENT_COMPAT, 'UTF-8'); + return htmlspecialchars($value, ENT_XML1 & ENT_COMPAT, 'UTF-8'); } }
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...: src/LocateDependencies/LocateDependenciesViaComposer.php#L66
Escaped Mutant for Mutator "UnwrapFinally": --- Original +++ New @@ @@ private function runInDirectory(callable $callable, string $directoryOfExecution) : void { $originalDirectory = Env\current_dir(); - try { - Env\set_current_dir($directoryOfExecution); - $callable(); - } finally { - Env\set_current_dir($originalDirectory); - } + Env\set_current_dir($directoryOfExecution); + $callable(); + Env\set_current_dir($originalDirectory); } }