Skip to content

Automation

Automation #1389

Triggered via schedule September 17, 2024 08:16
Status Failure
Total duration 1m 30s
Artifacts

automation.yml

on: schedule
automation  /  Generate job matrix
6s
automation / Generate job matrix
Matrix: automation / qa
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 20 warnings
UnusedBaselineEntry: src/App/Bsky/Feed/GetLikes.php#L1
src/App/Bsky/Feed/GetLikes.php:0:0: UnusedBaselineEntry: Baseline for issue "DuplicateParam" has 1 extra entry. (see https://psalm.dev/316)
UnusedBaselineEntry: src/App/Bsky/Feed/GetPostThread.php#L1
src/App/Bsky/Feed/GetPostThread.php:0:0: UnusedBaselineEntry: Baseline for issue "DuplicateParam" has 1 extra entry. (see https://psalm.dev/316)
UnusedBaselineEntry: src/App/Bsky/Feed/GetQuotes.php#L1
src/App/Bsky/Feed/GetQuotes.php:0:0: UnusedBaselineEntry: Baseline for issue "DuplicateParam" has 1 extra entry. (see https://psalm.dev/316)
UnusedBaselineEntry: src/App/Bsky/Feed/GetRepostedBy.php#L1
src/App/Bsky/Feed/GetRepostedBy.php:0:0: UnusedBaselineEntry: Baseline for issue "DuplicateParam" has 1 extra entry. (see https://psalm.dev/316)
UnusedBaselineEntry: src/Com/Atproto/Admin/GetSubjectStatus.php#L1
src/Com/Atproto/Admin/GetSubjectStatus.php:0:0: UnusedBaselineEntry: Baseline for issue "DuplicateParam" has 1 extra entry. (see https://psalm.dev/316)
UnusedBaselineEntry: src/Tools/Ozone/Moderation/GetRecord.php#L1
src/Tools/Ozone/Moderation/GetRecord.php:0:0: UnusedBaselineEntry: Baseline for issue "DuplicateParam" has 1 extra entry. (see https://psalm.dev/316)
automation / [PHP8.3][locked]Psalm on ubuntu
Process completed with exit code 2.
automation / [PHP8.3][locked]Infection on ubuntu: src/Value/Did.php#L20
Escaped Mutant for Mutator "PregMatchRemoveCaret": @@ @@ { // should we split the value into parts and validate each part? // and store the parts in the object - if (\preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === 0 || \preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === false) { + if (\preg_match('#did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === 0 || \preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === false) { // Todo: create custom exception throw new InvalidArgumentException('Invalid DID: ' . $this->did); }
automation / [PHP8.3][locked]Infection on ubuntu: src/Value/Did.php#L20
Escaped Mutant for Mutator "PregMatchRemoveCaret": @@ @@ { // should we split the value into parts and validate each part? // and store the parts in the object - if (\preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === 0 || \preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === false) { + if (\preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === 0 || \preg_match('#did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === false) { // Todo: create custom exception throw new InvalidArgumentException('Invalid DID: ' . $this->did); }
automation / [PHP8.3][locked]Infection on ubuntu: src/Value/Did.php#L20
Escaped Mutant for Mutator "PregMatchRemoveDollar": @@ @@ { // should we split the value into parts and validate each part? // and store the parts in the object - if (\preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === 0 || \preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === false) { + if (\preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === 0 || \preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]#', $this->did) === false) { // Todo: create custom exception throw new InvalidArgumentException('Invalid DID: ' . $this->did); }
automation / [PHP8.3][locked]Infection on ubuntu: src/Value/Did.php#L23
Escaped Mutant for Mutator "FalseValue": @@ @@ { // should we split the value into parts and validate each part? // and store the parts in the object - if (\preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === 0 || \preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === false) { + if (\preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === 0 || \preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === true) { // Todo: create custom exception throw new InvalidArgumentException('Invalid DID: ' . $this->did); }
automation / [PHP8.3][locked]Infection on ubuntu: src/Value/Did.php#L26
Escaped Mutant for Mutator "Concat": @@ @@ // and store the parts in the object if (\preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === 0 || \preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === false) { // Todo: create custom exception - throw new InvalidArgumentException('Invalid DID: ' . $this->did); + throw new InvalidArgumentException($this->did . 'Invalid DID: '); } } #[Override]
automation / [PHP8.3][locked]Infection on ubuntu: src/Value/Did.php#L26
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ // and store the parts in the object if (\preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === 0 || \preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === false) { // Todo: create custom exception - throw new InvalidArgumentException('Invalid DID: ' . $this->did); + throw new InvalidArgumentException($this->did); } } #[Override]
automation / [PHP8.3][locked]Infection on ubuntu: src/Value/Did.php#L26
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ // and store the parts in the object if (\preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === 0 || \preg_match('#^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$#', $this->did) === false) { // Todo: create custom exception - throw new InvalidArgumentException('Invalid DID: ' . $this->did); + throw new InvalidArgumentException('Invalid DID: '); } } #[Override]
automation / [PHP8.3][locked]Infection on ubuntu: src/Value/Handle.php#L20
Escaped Mutant for Mutator "PregMatchRemoveCaret": @@ @@ { public function __construct(private string $handle) { - if (\preg_match('#^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$#', $this->handle) === 0 || \preg_match('#^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$#', $this->handle) === false) { + if (\preg_match('#^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$#', $this->handle) === 0 || \preg_match('#([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$#', $this->handle) === false) { throw new InvalidArgumentException('Invalid handle: ' . $this->handle); } }
automation / [PHP8.3][locked]Infection on ubuntu: src/Value/Handle.php#L20
Escaped Mutant for Mutator "PregMatchRemoveDollar": @@ @@ { public function __construct(private string $handle) { - if (\preg_match('#^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$#', $this->handle) === 0 || \preg_match('#^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$#', $this->handle) === false) { + if (\preg_match('#^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$#', $this->handle) === 0 || \preg_match('#^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?#', $this->handle) === false) { throw new InvalidArgumentException('Invalid handle: ' . $this->handle); } }
automation / [PHP8.3][locked]Infection on ubuntu: src/Value/Handle.php#L23
Escaped Mutant for Mutator "FalseValue": @@ @@ { public function __construct(private string $handle) { - if (\preg_match('#^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$#', $this->handle) === 0 || \preg_match('#^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$#', $this->handle) === false) { + if (\preg_match('#^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$#', $this->handle) === 0 || \preg_match('#^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$#', $this->handle) === true) { throw new InvalidArgumentException('Invalid handle: ' . $this->handle); } }
PossiblyUnusedMethod: src/App/Bsky/Actor/GetPreferences.php#L18
src/App/Bsky/Actor/GetPreferences.php:18:21: PossiblyUnusedMethod: Cannot find any calls to method Ghostwriter\AtProtocol\App\Bsky\Actor\GetPreferences::__construct (see https://psalm.dev/087)
MissingThrowsDocblock: src/App/Bsky/Actor/GetPreferences.php#L28
src/App/Bsky/Actor/GetPreferences.php:28:26: MissingThrowsDocblock: InvalidArgumentException is thrown but not caught - please either catch or add a @throws annotation (see https://psalm.dev/169)
MissingThrowsDocblock: src/App/Bsky/Actor/GetPreferences.php#L29
src/App/Bsky/Actor/GetPreferences.php:29:23: MissingThrowsDocblock: InvalidArgumentException is thrown but not caught - please either catch or add a @throws annotation (see https://psalm.dev/169)
PossiblyUnusedMethod: src/App/Bsky/Actor/GetProfile.php#L18
src/App/Bsky/Actor/GetProfile.php:18:21: PossiblyUnusedMethod: Cannot find any calls to method Ghostwriter\AtProtocol\App\Bsky\Actor\GetProfile::__construct (see https://psalm.dev/087)
MissingThrowsDocblock: src/App/Bsky/Actor/GetProfile.php#L28
src/App/Bsky/Actor/GetProfile.php:28:26: MissingThrowsDocblock: InvalidArgumentException is thrown but not caught - please either catch or add a @throws annotation (see https://psalm.dev/169)
MissingThrowsDocblock: src/App/Bsky/Actor/GetProfile.php#L29
src/App/Bsky/Actor/GetProfile.php:29:23: MissingThrowsDocblock: InvalidArgumentException is thrown but not caught - please either catch or add a @throws annotation (see https://psalm.dev/169)
PossiblyUnusedMethod: src/App/Bsky/Actor/GetProfiles.php#L18
src/App/Bsky/Actor/GetProfiles.php:18:21: PossiblyUnusedMethod: Cannot find any calls to method Ghostwriter\AtProtocol\App\Bsky\Actor\GetProfiles::__construct (see https://psalm.dev/087)
MissingThrowsDocblock: src/App/Bsky/Actor/GetProfiles.php#L28
src/App/Bsky/Actor/GetProfiles.php:28:26: MissingThrowsDocblock: InvalidArgumentException is thrown but not caught - please either catch or add a @throws annotation (see https://psalm.dev/169)
MissingThrowsDocblock: src/App/Bsky/Actor/GetProfiles.php#L29
src/App/Bsky/Actor/GetProfiles.php:29:23: MissingThrowsDocblock: InvalidArgumentException is thrown but not caught - please either catch or add a @throws annotation (see https://psalm.dev/169)
PossiblyUnusedMethod: src/App/Bsky/Actor/GetSuggestions.php#L18
src/App/Bsky/Actor/GetSuggestions.php:18:21: PossiblyUnusedMethod: Cannot find any calls to method Ghostwriter\AtProtocol\App\Bsky\Actor\GetSuggestions::__construct (see https://psalm.dev/087)