Skip to content

Switch to task processing #156

Switch to task processing

Switch to task processing #156

Triggered via pull request July 3, 2024 15:57
Status Failure
Total duration 6m 11s
Artifacts

psalm.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 1 warning
TooManyArguments: lib/Controller/AssistantController.php#L61
lib/Controller/AssistantController.php:61:12: TooManyArguments: Too many arguments for OCP\TaskProcessing\Task::__construct - expecting 0 but saw 5 (see https://psalm.dev/026)
TooManyArguments: lib/Controller/ChattyLLMController.php#L461
lib/Controller/ChattyLLMController.php:461:11: TooManyArguments: Too many arguments for OCP\TaskProcessing\Task::__construct - expecting 0 but saw 5 (see https://psalm.dev/026)
InvalidReturnType: lib/Service/AssistantService.php#L113
lib/Service/AssistantService.php:113:13: InvalidReturnType: The declared return type 'array<array-key, array{description: string, id: string, inputShape: array<string, array{description: string, name: string, type: int}>, name: string, optionalInputShape: array<string, array{description: string, name: string, type: int}>, optionalOutputShape: array<string, array{description: string, name: string, type: int}>, outputShape: array<string, array{description: string, name: string, type: int}>, priority: int}>' for OCA\Assistant\Service\AssistantService::getAvailableTaskTypes is incorrect, got 'list{0?: array{description: string, id: string, inputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor|array{description: 'plop', name: 'Input audio list'|'Input file list'|'Input image list', type: 'ListOfAudios'|'ListOfFiles'|'ListOfImages'}>, name: string, optionalInputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, optionalOutputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, outputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor|array{description: 'plop', name: 'Output file list'|'Output image list'|'Output image', type: 'Image'|'ListOfFiles'|'ListOfImages'}>, priority: 0|1|2|3|4|6|7|8|9|10|1000}, 1?: array{description: string, id: string, inputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor|array{description: 'plop', name: 'Input audio list'|'Input file list'|'Input image list', type: 'ListOfAudios'|'ListOfFiles'|'ListOfImages'}>, name: string, optionalInputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, optionalOutputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, outputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor|array{description: 'plop', name: 'Output file list'|'Output image list'|'Output image', type: 'Image'|'ListOfFiles'|'ListOfImages'}>, priority: 0|1|2|3|4|6|7|8|9|10|1000}, ...<array{description: string, id: string, inputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor|array{description: 'plop', name: 'Input audio list'|'Input file list'|'Input image list', type: 'ListOfAudios'|'ListOfFiles'|'ListOfImages'}>, name: string, optionalInputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, optionalOutputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, outputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor|array{description: 'plop', name: 'Output file list'|'Output image list'|'Output image', type: 'Image'|'ListOfFiles'|'ListOfImages'}>, priority: 0|1|2|3|4|6|7|8|9|10|1000}>}' (see https://psalm.dev/011)
RedundantCondition: lib/Service/AssistantService.php#L119
lib/Service/AssistantService.php:119:7: RedundantCondition: Operand of type true is always truthy (see https://psalm.dev/122)
InvalidReturnStatement: lib/Service/AssistantService.php#L185
lib/Service/AssistantService.php:185:10: InvalidReturnStatement: The inferred type 'list{0?: array{description: string, id: string, inputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor|array{description: 'plop', name: 'Input audio list'|'Input file list'|'Input image list', type: 'ListOfAudios'|'ListOfFiles'|'ListOfImages'}>, name: string, optionalInputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, optionalOutputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, outputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor|array{description: 'plop', name: 'Output file list'|'Output image list'|'Output image', type: 'Image'|'ListOfFiles'|'ListOfImages'}>, priority: 0|1|2|3|4|6|7|8|9|10|1000}, 1?: array{description: string, id: string, inputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor|array{description: 'plop', name: 'Input audio list'|'Input file list'|'Input image list', type: 'ListOfAudios'|'ListOfFiles'|'ListOfImages'}>, name: string, optionalInputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, optionalOutputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, outputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor|array{description: 'plop', name: 'Output file list'|'Output image list'|'Output image', type: 'Image'|'ListOfFiles'|'ListOfImages'}>, priority: 0|1|2|3|4|6|7|8|9|10|1000}, ...<array{description: string, id: string, inputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor|array{description: 'plop', name: 'Input audio list'|'Input file list'|'Input image list', type: 'ListOfAudios'|'ListOfFiles'|'ListOfImages'}>, name: string, optionalInputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, optionalOutputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, outputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor|array{description: 'plop', name: 'Output file list'|'Output image list'|'Output image', type: 'Image'|'ListOfFiles'|'ListOfImages'}>, priority: 0|1|2|3|4|6|7|8|9|10|1000}>}' does not match the declared return type 'array<array-key, array{description: string, id: string, inputShape: array<string, array{description: string, name: string, type: int}>, name: string, optionalInputShape: array<string, array{description: string, name: string, type: int}>, optionalOutputShape: array<string, array{description: string, name: string, type: int}>, outputShape: array<string, array{description: string, name: string, type: int}>, priority: int}>' for OCA\Assistant\Service\AssistantService::getAvailableTaskTypes (see https://psalm.dev/128)
TypeDoesNotContainType: lib/Service/AssistantService.php#L282
lib/Service/AssistantService.php:282:7: TypeDoesNotContainType: Operand of type false is always falsy (see https://psalm.dev/056)
Psalm check
Process completed with exit code 2.
Psalm check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.