14018: Add missing file. Remove debug print()
authorPeter Amstutz <peter.amstutz@curii.com>
Mon, 13 Sep 2021 16:23:37 +0000 (12:23 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Mon, 13 Sep 2021 16:23:37 +0000 (12:23 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

sdk/cwl/arvados_cwl/arvcontainer.py
sdk/cwl/tests/wf/submit_wf_process_properties.cwl [new file with mode: 0644]

index 3065e1a7cd18cd431aff04e72e97477e08ace088..1029ca0e05bff2e0bf501f61fa65f19ea482b2e6 100644 (file)
@@ -482,9 +482,7 @@ class RunnerContainer(Runner):
         properties_req, _ = self.embedded_tool.get_requirement("http://arvados.org/cwl#ProcessProperties")
         if properties_req:
             builder = make_builder(self.job_order, self.embedded_tool.hints, self.embedded_tool.requirements, runtimeContext, self.embedded_tool.metadata)
-            print("ZZZZZZ", properties_req["processProperties"])
             for pr in properties_req["processProperties"]:
-                print("ZZZZZZ", pr)
                 container_req["properties"][pr["propertyName"]] = builder.do_eval(pr["propertyValue"])
 
         # --local means execute the workflow instead of submitting a container request
diff --git a/sdk/cwl/tests/wf/submit_wf_process_properties.cwl b/sdk/cwl/tests/wf/submit_wf_process_properties.cwl
new file mode 100644 (file)
index 0000000..0d66927
--- /dev/null
@@ -0,0 +1,39 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+# Test case for arvados-cwl-runner
+#
+# Used to test whether scanning a workflow file for dependencies
+# (e.g. submit_tool.cwl) and uploading to Keep works as intended.
+
+$namespaces:
+  arv: "http://arvados.org/cwl#"
+
+class: Workflow
+cwlVersion: v1.0
+
+hints:
+  arv:ProcessProperties:
+    processProperties:
+      foo: bar
+      baz: $(inputs.x.basename)
+      quux:
+        propertyValue:
+          q1: 1
+          q2: 2
+
+inputs:
+  - id: x
+    type: File
+  - id: y
+    type: Directory
+  - id: z
+    type: Directory
+outputs: []
+steps:
+  - id: step1
+    in:
+      - { id: x, source: "#x" }
+    out: []
+    run: ../tool/submit_tool.cwl