runner = mock.MagicMock()
runner.project_uuid = "zzzzz-8i9sb-zzzzzzzzzzzzzzz"
runner.ignore_docker_for_reuse = False
- document_loader, avsc_names, schema_metadata, metaschema_loader = cwltool.process.get_schema("draft-3")
+ runner.num_retries = 0
+ document_loader, avsc_names, schema_metadata, metaschema_loader = cwltool.process.get_schema("v1.0")
tool = {
"inputs": [],
runner = mock.MagicMock()
runner.project_uuid = "zzzzz-8i9sb-zzzzzzzzzzzzzzz"
runner.ignore_docker_for_reuse = False
- document_loader, avsc_names, schema_metadata, metaschema_loader = cwltool.process.get_schema("draft-3")
+ runner.num_retries = 0
+ arvados_cwl.add_arv_hints()
+
+ document_loader, avsc_names, schema_metadata, metaschema_loader = cwltool.process.get_schema("v1.0")
+
tool = {
"inputs": [],
"tmpdirMin": 4000
}, {
"class": "http://arvados.org/cwl#RuntimeConstraints",
- "keep_cache": 512
+ "keep_cache": 512,
+ "outputDirType": "keep_output_dir"
}, {
"class": "http://arvados.org/cwl#APIRequirement",
}],
'script_parameters': {
'tasks': [{
'task.env': {'HOME': '$(task.outdir)', 'TMPDIR': '$(task.tmpdir)'},
+ 'task.keepTmpOutput': True,
'command': ['ls']
}]
},
['script_version', 'in git', '9e5b98e8f5f4727856b53447191f9c06e3da2ba6'],
['docker_image_locator', 'in docker', 'arvados/jobs']])
- @mock.patch("arvados.collection.Collection")
- def test_done(self, col):
+ @mock.patch("arvados.collection.CollectionReader")
+ def test_done(self, reader):
api = mock.MagicMock()
runner = mock.MagicMock()
runner.num_retries = 0
runner.ignore_docker_for_reuse = False
- col().open.return_value = []
+ reader().open.return_value = []
api.collections().list().execute.side_effect = ({"items": []},
{"items": [{"manifest_text": "XYZ"}]})
'owner_uuid': 'zzzzz-8i9sb-zzzzzzzzzzzzzzz',
'name': 'Output 9999999 of testjob'})
- @mock.patch("arvados.collection.Collection")
- def test_done_use_existing_collection(self, col):
+ @mock.patch("arvados.collection.CollectionReader")
+ def test_done_use_existing_collection(self, reader):
api = mock.MagicMock()
runner = mock.MagicMock()
runner.project_uuid = "zzzzz-8i9sb-zzzzzzzzzzzzzzz"
runner.num_retries = 0
- col().open.return_value = []
+ reader().open.return_value = []
api.collections().list().execute.side_effect = ({"items": [{"uuid": "zzzzz-4zz18-zzzzzzzzzzzzzz2"}]},)
arvjob = arvados_cwl.ArvadosJob(runner)
arvados_cwl.add_arv_hints()
runner = arvados_cwl.ArvCwlRunner(mock.MagicMock())
+
runner.project_uuid = "zzzzz-8i9sb-zzzzzzzzzzzzzzz"
runner.ignore_docker_for_reuse = False
+ runner.num_retries = 0
document_loader, avsc_names, schema_metadata, metaschema_loader = cwltool.process.get_schema("v1.0")
tool, metadata = document_loader.resolve_ref("tests/wf/scatter2.cwl")
'workflow.cwl': '$(task.keep)/99999999999999999999999999999999+118/workflow.cwl',
'cwl.input.yml': '$(task.keep)/99999999999999999999999999999999+118/cwl.input.yml'
},
- 'command': [u'cwltool', u'--no-container', u'--move-outputs', u'workflow.cwl#main', u'cwl.input.yml'],
+ 'command': [u'cwltool', u'--no-container', u'--move-outputs', u'--preserve-entire-environment', u'workflow.cwl#main', u'cwl.input.yml'],
'task.stdout': 'cwl.output.json'}]},
'runtime_constraints': {
'min_scratch_mb_per_node': 2048,