X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5d164d74505c232cfa232d69a56273da2d02b72a..3ec51dcf456b2afe02857089895a261653abddd4:/services/api/test/fixtures/container_requests.yml diff --git a/services/api/test/fixtures/container_requests.yml b/services/api/test/fixtures/container_requests.yml index 29ce4f5aea..1c62605029 100644 --- a/services/api/test/fixtures/container_requests.yml +++ b/services/api/test/fixtures/container_requests.yml @@ -20,13 +20,14 @@ queued: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} running: uuid: zzzzz-xvhdp-cr4runningcntnr owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz name: running state: Committed - priority: 1 + priority: 501 created_at: <%= 2.minute.ago.to_s(:db) %> updated_at: <%= 1.minute.ago.to_s(:db) %> modified_at: <%= 1.minute.ago.to_s(:db) %> @@ -39,6 +40,7 @@ running: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} requester_for_running: uuid: zzzzz-xvhdp-req4runningcntr @@ -59,6 +61,7 @@ requester_for_running: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} running_older: uuid: zzzzz-xvhdp-cr4runningcntn2 @@ -78,6 +81,7 @@ running_older: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} completed: uuid: zzzzz-xvhdp-cr4completedctr @@ -94,11 +98,12 @@ completed: output_path: test command: ["echo", "hello"] container_uuid: zzzzz-dz642-compltcontainer - log_uuid: zzzzz-4zz18-y9vne9npefyxh8g + log_uuid: zzzzz-4zz18-logcollection01 output_uuid: zzzzz-4zz18-znfnqtbbv4spc3w runtime_constraints: vcpus: 1 ram: 123 + mounts: {} completed-older: uuid: zzzzz-xvhdp-cr4completedcr2 @@ -106,7 +111,7 @@ completed-older: name: completed state: Final priority: 1 - created_at: 2016-01-11 11:11:11.111111111 Z + created_at: <%= 30.minute.ago.to_s(:db) %> updated_at: 2016-01-11 11:11:11.111111111 Z modified_at: 2016-01-11 11:11:11.111111111 Z modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz @@ -115,9 +120,238 @@ completed-older: output_path: test command: ["arvados-cwl-runner", "echo", "hello"] container_uuid: zzzzz-dz642-compltcontainr2 + log_uuid: zzzzz-4zz18-logcollection02 + output_uuid: zzzzz-4zz18-znfnqtbbv4spc3w runtime_constraints: vcpus: 1 ram: 123 + mounts: {} + +completed_diagnostics: + name: CWL diagnostics hasher + uuid: zzzzz-xvhdp-diagnostics0001 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + state: Final + priority: 1 + created_at: 2020-11-02T00:03:50.229364000Z + modified_at: 2020-11-02T00:20:44.041122000Z + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + container_image: d967ef4a1ca90a096a39f5ce68e4a2e7+261 + cwd: /var/spool/cwl + output_path: /var/spool/cwl + command: [ + "arvados-cwl-runner", + "--local", + "--api=containers", + "--no-log-timestamps", + "--disable-validate", + "--disable-color", + "--eval-timeout=20", + "--thread-count=1", + "--disable-reuse", + "--collection-cache-size=256", + "--on-error=continue", + "/var/lib/cwl/workflow.json#main", + "/var/lib/cwl/cwl.input.json" + ] + container_uuid: zzzzz-dz642-diagcompreq0001 + log_uuid: zzzzz-4zz18-diagcompreqlog1 + output_uuid: zzzzz-4zz18-znfnqtbbv4spc3w + runtime_constraints: + vcpus: 1 + ram: 1342177280 + API: true + +completed_diagnostics_hasher1: + name: hasher1 + uuid: zzzzz-xvhdp-diag1hasher0001 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + state: Final + priority: 500 + created_at: 2020-11-02T00:03:50.229364000Z + modified_at: 2020-11-02T00:20:44.041122000Z + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + container_image: d967ef4a1ca90a096a39f5ce68e4a2e7+261 + cwd: /var/spool/cwl + output_name: Output for step hasher1 + output_path: /var/spool/cwl + command: [ + "md5sum", + "/keep/9f26a86b6030a69ad222cf67d71c9502+65/hasher-input-file.txt" + ] + container_uuid: zzzzz-dz642-diagcomphasher1 + requesting_container_uuid: zzzzz-dz642-diagcompreq0001 + log_uuid: zzzzz-4zz18-dlogcollhash001 + output_uuid: zzzzz-4zz18-znfnqtbbv4spc3w + runtime_constraints: + vcpus: 1 + ram: 2684354560 + API: true + +completed_diagnostics_hasher2: + name: hasher2 + uuid: zzzzz-xvhdp-diag1hasher0002 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + state: Final + priority: 500 + created_at: 2020-11-02T00:17:07.067464000Z + modified_at: 2020-11-02T00:20:23.557498000Z + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + container_image: d967ef4a1ca90a096a39f5ce68e4a2e7+261 + cwd: /var/spool/cwl + output_name: Output for step hasher2 + output_path: /var/spool/cwl + command: [ + "md5sum", + "/keep/d3a687732e84061f3bae15dc7e313483+62/hasher1.md5sum.txt" + ] + container_uuid: zzzzz-dz642-diagcomphasher2 + requesting_container_uuid: zzzzz-dz642-diagcompreq0001 + log_uuid: zzzzz-4zz18-dlogcollhash002 + output_uuid: zzzzz-4zz18-znfnqtbbv4spc3w + runtime_constraints: + vcpus: 2 + ram: 2684354560 + API: true + +completed_diagnostics_hasher3: + name: hasher3 + uuid: zzzzz-xvhdp-diag1hasher0003 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + state: Final + priority: 500 + created_at: 2020-11-02T00:20:30.960251000Z + modified_at: 2020-11-02T00:20:38.799377000Z + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + container_image: d967ef4a1ca90a096a39f5ce68e4a2e7+261 + cwd: /var/spool/cwl + output_name: Output for step hasher3 + output_path: /var/spool/cwl + command: [ + "md5sum", + "/keep/6bd770f6cf8f83e7647c602eecfaeeb8+62/hasher2.md5sum.txt" + ] + container_uuid: zzzzz-dz642-diagcomphasher3 + requesting_container_uuid: zzzzz-dz642-diagcompreq0001 + log_uuid: zzzzz-4zz18-dlogcollhash003 + output_uuid: zzzzz-4zz18-znfnqtbbv4spc3w + runtime_constraints: + vcpus: 1 + ram: 2684354560 + API: true + +completed_diagnostics2: + name: Copy of CWL diagnostics hasher + uuid: zzzzz-xvhdp-diagnostics0002 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + state: Final + priority: 1 + created_at: 2020-11-03T15:54:30.098485000Z + modified_at: 2020-11-03T16:17:53.406809000Z + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + container_image: d967ef4a1ca90a096a39f5ce68e4a2e7+261 + cwd: /var/spool/cwl + output_path: /var/spool/cwl + command: [ + "arvados-cwl-runner", + "--local", + "--api=containers", + "--no-log-timestamps", + "--disable-validate", + "--disable-color", + "--eval-timeout=20", + "--thread-count=1", + "--disable-reuse", + "--collection-cache-size=256", + "--on-error=continue", + "/var/lib/cwl/workflow.json#main", + "/var/lib/cwl/cwl.input.json" + ] + container_uuid: zzzzz-dz642-diagcompreq0002 + log_uuid: zzzzz-4zz18-diagcompreqlog2 + output_uuid: zzzzz-4zz18-znfnqtbbv4spc3w + runtime_constraints: + vcpus: 1 + ram: 1342177280 + API: true + +completed_diagnostics_hasher1_reuse: + name: hasher1 + uuid: zzzzz-xvhdp-diag2hasher0001 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + state: Final + priority: 500 + created_at: 2020-11-02T00:03:50.229364000Z + modified_at: 2020-11-02T00:20:44.041122000Z + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + container_image: d967ef4a1ca90a096a39f5ce68e4a2e7+261 + cwd: /var/spool/cwl + output_name: Output for step hasher1 + output_path: /var/spool/cwl + command: [ + "md5sum", + "/keep/9f26a86b6030a69ad222cf67d71c9502+65/hasher-input-file.txt" + ] + container_uuid: zzzzz-dz642-diagcomphasher1 + requesting_container_uuid: zzzzz-dz642-diagcompreq0002 + log_uuid: zzzzz-4zz18-dlogcollhash001 + output_uuid: zzzzz-4zz18-znfnqtbbv4spc3w + runtime_constraints: + vcpus: 1 + ram: 2684354560 + API: true + +completed_diagnostics_hasher2_reuse: + name: hasher2 + uuid: zzzzz-xvhdp-diag2hasher0002 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + state: Final + priority: 500 + created_at: 2020-11-02T00:17:07.067464000Z + modified_at: 2020-11-02T00:20:23.557498000Z + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + container_image: d967ef4a1ca90a096a39f5ce68e4a2e7+261 + cwd: /var/spool/cwl + output_name: Output for step hasher2 + output_path: /var/spool/cwl + command: [ + "md5sum", + "/keep/d3a687732e84061f3bae15dc7e313483+62/hasher1.md5sum.txt" + ] + container_uuid: zzzzz-dz642-diagcomphasher2 + requesting_container_uuid: zzzzz-dz642-diagcompreq0002 + log_uuid: zzzzz-4zz18-dlogcollhash002 + output_uuid: zzzzz-4zz18-znfnqtbbv4spc3w + runtime_constraints: + vcpus: 2 + ram: 2684354560 + API: true + +completed_diagnostics_hasher3_reuse: + name: hasher3 + uuid: zzzzz-xvhdp-diag2hasher0003 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + state: Final + priority: 500 + created_at: 2020-11-02T00:20:30.960251000Z + modified_at: 2020-11-02T00:20:38.799377000Z + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + container_image: d967ef4a1ca90a096a39f5ce68e4a2e7+261 + cwd: /var/spool/cwl + output_name: Output for step hasher3 + output_path: /var/spool/cwl + command: [ + "md5sum", + "/keep/6bd770f6cf8f83e7647c602eecfaeeb8+62/hasher2.md5sum.txt" + ] + container_uuid: zzzzz-dz642-diagcomphasher3 + requesting_container_uuid: zzzzz-dz642-diagcompreq0002 + log_uuid: zzzzz-4zz18-dlogcollhash003 + output_uuid: zzzzz-4zz18-znfnqtbbv4spc3w + runtime_constraints: + vcpus: 1 + ram: 2684354560 + API: true requester: uuid: zzzzz-xvhdp-9zacv3o1xw6sxz5 @@ -137,6 +371,7 @@ requester: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} cr_for_requester: uuid: zzzzz-xvhdp-cr4requestercnt @@ -157,6 +392,7 @@ cr_for_requester: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} cr_for_requester2: uuid: zzzzz-xvhdp-cr4requestercn2 @@ -164,7 +400,7 @@ cr_for_requester2: name: requester_cr2 state: Final priority: 1 - created_at: 2016-01-11 11:11:11.111111111 Z + created_at: <%= 30.minute.ago.to_s(:db) %> updated_at: 2016-01-11 11:11:11.111111111 Z modified_at: 2016-01-11 11:11:11.111111111 Z modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz @@ -176,6 +412,7 @@ cr_for_requester2: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} running_anonymous_accessible: uuid: zzzzz-xvhdp-runninganonaccs @@ -195,6 +432,7 @@ running_anonymous_accessible: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} cr_for_failed: uuid: zzzzz-xvhdp-cr4failedcontnr @@ -214,6 +452,7 @@ cr_for_failed: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} canceled_with_queued_container: uuid: zzzzz-xvhdp-canceledqueuedc @@ -233,6 +472,7 @@ canceled_with_queued_container: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} canceled_with_locked_container: uuid: zzzzz-xvhdp-canceledlocekdc @@ -252,6 +492,7 @@ canceled_with_locked_container: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} canceled_with_running_container: uuid: zzzzz-xvhdp-canceledrunning @@ -271,6 +512,7 @@ canceled_with_running_container: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} running_to_be_deleted: uuid: zzzzz-xvhdp-cr5runningcntnr @@ -290,6 +532,7 @@ running_to_be_deleted: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} completed_with_input_mounts: uuid: zzzzz-xvhdp-crwithinputmnts @@ -304,25 +547,30 @@ completed_with_input_mounts: container_image: test cwd: test output_path: test - command: ["echo", "hello"] + command: ["echo", "hello", "/bin/sh", "-c", "'cat' '/keep/fa7aeb5140e2848d39b416daeef4ffc5+45/foobar' '/keep/fa7aeb5140e2848d39b416daeef4ffc5+45/baz' '|' 'gzip' '>' '/dev/null'"] runtime_constraints: vcpus: 1 ram: 123 container_uuid: zzzzz-dz642-compltcontainer - log_uuid: zzzzz-4zz18-y9vne9npefyxh8g + log_uuid: zzzzz-4zz18-logcollection01 output_uuid: zzzzz-4zz18-znfnqtbbv4spc3w - mounts: - /var/lib/cwl/cwl.input.json: - content: - input1: - basename: foo - class: File - location: "keep:fa7aeb5140e2848d39b416daeef4ffc5+45/foo" - input2: - basename: bar - class: File - location: "keep:fa7aeb5140e2848d39b416daeef4ffc5+45/bar" - /var/lib/cwl/workflow.json: "keep:1fd08fc162a5c6413070a8bd0bffc818+150" + mounts: { + "/var/lib/cwl/cwl.input.json": { + "kind": "json", + "content": { + "input1": { + "basename": "foo", + "class": "File", + "location": "keep:fa7aeb5140e2848d39b416daeef4ffc5+45/foo", + }, + "input2": { + "basename": "bar", + "class": "File", + "location": "keep:fa7aeb5140e2848d39b416daeef4ffc5+45/bar", + } + } + } + } uncommitted: uuid: zzzzz-xvhdp-cr4uncommittedc @@ -758,11 +1006,33 @@ cr_in_trashed_project: output_path: test command: ["echo", "hello"] container_uuid: zzzzz-dz642-compltcontainer - log_uuid: zzzzz-4zz18-y9vne9npefyxh8g + log_uuid: zzzzz-4zz18-logcollection01 output_uuid: zzzzz-4zz18-znfnqtbbv4spc3w runtime_constraints: vcpus: 1 ram: 123 + mounts: {} + +runtime_token: + uuid: zzzzz-xvhdp-11eklkhy0n4dm86 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + name: queued + state: Committed + priority: 1 + created_at: <%= 2.minute.ago.to_s(:db) %> + updated_at: <%= 1.minute.ago.to_s(:db) %> + modified_at: <%= 1.minute.ago.to_s(:db) %> + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + container_image: test + cwd: test + output_path: test + command: ["echo", "hello"] + container_uuid: zzzzz-dz642-20isqbkl8xwnsao + runtime_token: v2/zzzzz-gj3su-2nj68s291f50gd9/2d19ue6ofx26o3mm7fs9u6t7hov9um0v92dzwk1o2xed3abprw + runtime_constraints: + vcpus: 1 + ram: 123 + mounts: {} # Test Helper trims the rest of the file @@ -778,6 +1048,7 @@ cr_<%=i%>_of_60: name: cr-<%= i.to_s %> output_path: test command: ["echo", "hello"] + mounts: {} <% end %> # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper