Actions
Bug #11606
closed[CWL] [API] empty array submitted as null
Start date:
05/02/2017
Due date:
% Done:
100%
Estimated time:
(Total: 0.00 h)
Story points:
-
Description
https://workbench.9tee4.arvadosapi.com/container_requests/9tee4-xvhdp-9xb0s71vn96wfjc#Log
2017-05-01T20:04:11.122532550Z cwltool INFO: /usr/bin/arvados-cwl-runner fea486f94bb5cc8f51d9563eafc172b6ba2aec57 1.0.20170501164306, arvados-python-client 0.1.20170427165906, cwltool 1.0.20170413194156 2017-05-01T20:04:11.159842126Z cwltool INFO: Resolved '/var/lib/cwl/workflow.json#main' to 'file:///var/lib/cwl/workflow.json#main' 2017-05-01T20:04:12.339124255Z cwltool ERROR: Tool definition failed validation: 2017-05-01T20:04:12.339124255Z ../../lib/cwl/workflow.json:1:12: Object `../../lib/cwl/workflow.json#main` is not valid because 2017-05-01T20:04:12.339124255Z tried `Workflow` but 2017-05-01T20:04:12.339124255Z ../../lib/cwl/workflow.json:1:45: the `inputs` field is not valid because 2017-05-01T20:04:12.339124255Z the value None is not a list, expected list of 2017-05-01T20:04:12.339124255Z InputParameter 2017-05-01T20:04:12.953171642Z Container exited with code: 1
API log entry:
{"method":"POST","path":"/arvados/v1/container_requests","format":"json","controller":"Arvados::V1::ContainerRequestsController","action":"create","status":200,"duration":126.18,"view":0.42,"db":57.3,"params_truncated":"[...]","@timestamp":"2017-05-01T20:03:45.886888550Z","@version":"1","message":"[200] POST /arvados/v1/container_requests (Arvados::V1::ContainerRequestsController#create)"}
Container request received by API server (reformatted params_truncated):
{
"runtime_constraints": {
"API": true,
"vcpus": 1,
"ram": 1073741824
},
"container_image": "arvados/jobs:fea486f94bb5cc8f51d9563eafc172b6ba2aec57",
"owner_uuid": null,
"properties": {},
"name": "count-lines9-wf.cwl",
"priority": 1,
"state": "Committed",
"output_path": "/var/spool/cwl",
"mounts": {
"/var/spool/cwl": {
"writable": true,
"kind": "collection"
},
"stdout": {
"path": "/var/spool/cwl/cwl.output.json",
"kind": "file"
},
"/var/lib/cwl/workflow.json": {
"content": {
"cwlVersion": "v1.0",
"$graph": [
{
"class": "Workflow",
"inputs": null,
"outputs": [
{
"type": "int",
"outputSource": "#main/step2/output",
"id": "#main/count_output"
}
],
"steps": [
{
Actions