[ARVADOS] updated: c96214468a927d56c03876de43fa16073fc26df5

Git user git at public.curoverse.com
Thu Sep 15 17:00:14 EDT 2016


Summary of changes:
 sdk/cwl/arvados_cwl/arvworkflow.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

       via  c96214468a927d56c03876de43fa16073fc26df5 (commit)
      from  bc6b243539b5480493c7aa758a1272a1a42b58f1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit c96214468a927d56c03876de43fa16073fc26df5
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Thu Sep 15 17:00:08 2016 -0400

    10081: Quote expression interpolations.  Set hints and requirements.

diff --git a/sdk/cwl/arvados_cwl/arvworkflow.py b/sdk/cwl/arvados_cwl/arvworkflow.py
index d0d2749..c20bffa 100644
--- a/sdk/cwl/arvados_cwl/arvworkflow.py
+++ b/sdk/cwl/arvados_cwl/arvworkflow.py
@@ -59,7 +59,7 @@ class ArvadosWorkflow(Workflow):
         if req:
             document_loader, workflowobj, uri = (self.doc_loader, self.doc_loader.fetch(self.tool["id"]), self.tool["id"])
             workflowobj["requirements"] = self.requirements + workflowobj.get("requirements", [])
-            workflowobj["hints"] = self.requirements + workflowobj.get("hints", [])
+            workflowobj["hints"] = self.hints + workflowobj.get("hints", [])
             packed = pack(document_loader, workflowobj, uri, self.metadata)
             wf_runner = {
                 "class": "CommandLineTool",
@@ -67,19 +67,20 @@ class ArvadosWorkflow(Workflow):
                 "inputs": self.tool["inputs"],
                 "outputs": self.tool["outputs"],
                 "stdout": "cwl.output.json",
-                "requirements": [
+                "requirements": workflowobj["requirements"]+[
                     {"class": "InlineJavascriptRequirement"},
                     {
                     "class": "InitialWorkDirRequirement",
                     "listing": [{
                             "entryname": "workflow.json",
-                            "entry": json.dumps(packed, sort_keys=True, indent=4)
+                            "entry": json.dumps(packed, sort_keys=True, indent=4).replace('$(', '\$(').replace('${', '\${')
                         }, {
                             "entryname": "cwl.input.json",
                             "entry": "$(JSON.stringify(inputs))"
                         }]
                 }],
-                "arguments": ["--debug", "workflow.json", "cwl.input.json"]
+                "hints": workflowobj["hints"],
+                "arguments": ["workflow.json", "cwl.input.json"]
             }
             kwargs["loader"] = self.doc_loader
             kwargs["avsc_names"] = self.doc_schema

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list