14198: Tests for hints in different places
authorPeter Amstutz <pamstutz@veritasgenetics.com>
Sat, 17 Nov 2018 03:01:45 +0000 (22:01 -0500)
committerPeter Amstutz <pamstutz@veritasgenetics.com>
Wed, 21 Nov 2018 18:05:27 +0000 (13:05 -0500)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz@veritasgenetics.com>

sdk/cwl/tests/federation/cases/hint-on-tool.cwl [new file with mode: 0644]
sdk/cwl/tests/federation/cases/hint-on-wf.cwl [new file with mode: 0644]
sdk/cwl/tests/federation/cases/runner-home-step-remote.cwl
sdk/cwl/tests/federation/cases/runner-remote-step-home.cwl
sdk/cwl/tests/federation/data/hint-on-tool.txt [new file with mode: 0644]
sdk/cwl/tests/federation/data/hint-on-wf.txt [new file with mode: 0644]
sdk/cwl/tests/federation/main.cwl

diff --git a/sdk/cwl/tests/federation/cases/hint-on-tool.cwl b/sdk/cwl/tests/federation/cases/hint-on-tool.cwl
new file mode 100644 (file)
index 0000000..93e6d2c
--- /dev/null
@@ -0,0 +1,28 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+cwlVersion: v1.0
+class: Workflow
+$namespaces:
+  arv: "http://arvados.org/cwl#"
+requirements:
+  InlineJavascriptRequirement: {}
+  DockerRequirement:
+    dockerPull: arvados/fed-test:hint-on-tool
+inputs:
+  inp:
+    type: File
+    inputBinding: {}
+  runOnCluster: string
+outputs:
+  hash:
+    type: File
+    outputSource: md5sum/hash
+steps:
+  md5sum:
+    in:
+      inp: inp
+      runOnCluster: runOnCluster
+    out: [hash]
+    run: md5sum-tool-hint.cwl
diff --git a/sdk/cwl/tests/federation/cases/hint-on-wf.cwl b/sdk/cwl/tests/federation/cases/hint-on-wf.cwl
new file mode 100644 (file)
index 0000000..4323659
--- /dev/null
@@ -0,0 +1,30 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+cwlVersion: v1.0
+class: Workflow
+$namespaces:
+  arv: "http://arvados.org/cwl#"
+requirements:
+  InlineJavascriptRequirement: {}
+  DockerRequirement:
+    dockerPull: arvados/fed-test:hint-on-wf
+hints:
+  arv:ClusterTarget:
+    cluster_id: $(inputs.runOnCluster)
+inputs:
+  inp:
+    type: File
+    inputBinding: {}
+  runOnCluster: string
+outputs:
+  hash:
+    type: File
+    outputSource: md5sum/hash
+steps:
+  md5sum:
+    in:
+      inp: inp
+    out: [hash]
+    run: md5sum.cwl
index 67779f9aa085fbddd909e234b7c78d224981e39d..182ca1ec4efa29978c9e21c6d6d994bfec5def56 100644 (file)
@@ -11,9 +11,7 @@ requirements:
   DockerRequirement:
     dockerPull: arvados/fed-test:runner-home-step-remote
 inputs:
-  inp:
-    type: File
-    inputBinding: {}
+  inp: File
   runOnCluster: string
 outputs:
   hash:
index a74d2f5507afc18092558cdcc456a5e04ef3a5ad..963c84f32cc7a5d0f167a83d644221b3734b4bc0 100644 (file)
@@ -11,9 +11,8 @@ requirements:
   DockerRequirement:
     dockerPull: arvados/fed-test:runner-remote-step-home
 inputs:
-  inp:
-    type: File
-    inputBinding: {}
+  inp: File
+  runOnCluster: string
 outputs:
   hash:
     type: File
@@ -22,6 +21,7 @@ steps:
   md5sum:
     in:
       inp: inp
+      runOnCluster: runOnCluster
     out: [hash]
     hints:
       arv:ClusterTarget:
diff --git a/sdk/cwl/tests/federation/data/hint-on-tool.txt b/sdk/cwl/tests/federation/data/hint-on-tool.txt
new file mode 100644 (file)
index 0000000..c396125
--- /dev/null
@@ -0,0 +1,16 @@
+Call me hint-on-tool. Some years ago--never mind how long precisely--having
+little or no money in my purse, and nothing particular to interest me on
+shore, I thought I would sail about a little and see the watery part of
+the world. It is a way I have of driving off the spleen and regulating
+the circulation. Whenever I find myself growing grim about the mouth;
+whenever it is a damp, drizzly November in my soul; whenever I find
+myself involuntarily pausing before coffin warehouses, and bringing up
+the rear of every funeral I meet; and especially whenever my hypos get
+such an upper hand of me, that it requires a strong moral principle to
+prevent me from deliberately stepping into the street, and methodically
+knocking people's hats off--then, I account it high time to get to sea
+as soon as I can. This is my substitute for pistol and ball. With a
+philosophical flourish Cato throws himself upon his sword; I quietly
+take to the ship. There is nothing surprising in this. If they but knew
+it, almost all men in their degree, some time or other, cherish very
+nearly the same feelings towards the ocean with me.
diff --git a/sdk/cwl/tests/federation/data/hint-on-wf.txt b/sdk/cwl/tests/federation/data/hint-on-wf.txt
new file mode 100644 (file)
index 0000000..f4aa872
--- /dev/null
@@ -0,0 +1,16 @@
+Call me hint-on-wf. Some years ago--never mind how long precisely--having
+little or no money in my purse, and nothing particular to interest me on
+shore, I thought I would sail about a little and see the watery part of
+the world. It is a way I have of driving off the spleen and regulating
+the circulation. Whenever I find myself growing grim about the mouth;
+whenever it is a damp, drizzly November in my soul; whenever I find
+myself involuntarily pausing before coffin warehouses, and bringing up
+the rear of every funeral I meet; and especially whenever my hypos get
+such an upper hand of me, that it requires a strong moral principle to
+prevent me from deliberately stepping into the street, and methodically
+knocking people's hats off--then, I account it high time to get to sea
+as soon as I can. This is my substitute for pistol and ball. With a
+philosophical flourish Cato throws himself upon his sword; I quietly
+take to the ship. There is nothing surprising in this. If they but knew
+it, almost all men in their degree, some time or other, cherish very
+nearly the same feelings towards the ocean with me.
index d07cdfd18e32eab8ace76caa6f784f25353b5436..a00e6d3d9ad96b8d4dcf62574f7a3cc5565ec78f 100755 (executable)
@@ -60,6 +60,12 @@ outputs:
   threestep-remote-success:
     type: Any
     outputSource: threestep-remote/success
+  hint-on-wf-success:
+    type: Any
+    outputSource: hint-on-wf/success
+  hint-on-tool-success:
+    type: Any
+    outputSource: hint-on-tool/success
 
 steps:
   base-case:
@@ -495,9 +501,9 @@ steps:
       scrub_image: {default: "arvados/fed-test:hint-on-wf"}
       scrub_collections:
         default:
-          - 3bc373e38751fe13dcbd62778d583242+81   # input collection
-          - 428e6d91e41a3af3ae287b453949e7fd+51   # md5sum output collection
-          - a4b0ddd866525655e8480f83a1ca83c6+112  # runner output json
+          - 862433f328041b2525c90b1dc3c462fd+62   # input collection
+          - 9a68b0b9720977faba8a28e75a4398b7+51   # md5sum output collection
+          - 6a601cddb36ee2f766783b1aa9ff8d66+112  # runner output json
     out: [out, success]
     run: framework/testcase.cwl
 
@@ -532,8 +538,8 @@ steps:
       scrub_image: {default: "arvados/fed-test:hint-on-tool"}
       scrub_collections:
         default:
-          - 3bc373e38751fe13dcbd62778d583242+81   # input collection
-          - 428e6d91e41a3af3ae287b453949e7fd+51   # md5sum output collection
-          - a4b0ddd866525655e8480f83a1ca83c6+112  # runner output json
+          - 6803004a4f8db9f8d1d54f6229851599+64   # input collection
+          - cacb0d56235564b5ff485c5b31215ab5+51   # md5sum output collection
+          - 2b50af43fdd84a9e906be2d54b92cddf+112  # runner output json
     out: [out, success]
     run: framework/testcase.cwl