X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fca805a18c671ccbb03cef640c15172d1f02ffe3..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 d5bb47f6ff..1c62605029 100644 --- a/services/api/test/fixtures/container_requests.yml +++ b/services/api/test/fixtures/container_requests.yml @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + queued: uuid: zzzzz-xvhdp-cr4queuedcontnr owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz @@ -16,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) %> @@ -35,6 +40,7 @@ running: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} requester_for_running: uuid: zzzzz-xvhdp-req4runningcntr @@ -55,6 +61,7 @@ requester_for_running: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} running_older: uuid: zzzzz-xvhdp-cr4runningcntn2 @@ -74,6 +81,7 @@ running_older: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} completed: uuid: zzzzz-xvhdp-cr4completedctr @@ -90,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 @@ -102,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 @@ -111,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 @@ -133,6 +371,7 @@ requester: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} cr_for_requester: uuid: zzzzz-xvhdp-cr4requestercnt @@ -153,6 +392,7 @@ cr_for_requester: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} cr_for_requester2: uuid: zzzzz-xvhdp-cr4requestercn2 @@ -160,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 @@ -172,6 +412,7 @@ cr_for_requester2: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} running_anonymous_accessible: uuid: zzzzz-xvhdp-runninganonaccs @@ -191,6 +432,7 @@ running_anonymous_accessible: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} cr_for_failed: uuid: zzzzz-xvhdp-cr4failedcontnr @@ -210,12 +452,13 @@ cr_for_failed: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} canceled_with_queued_container: uuid: zzzzz-xvhdp-canceledqueuedc owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz name: canceled with queued container - state: Committed + state: Final priority: 0 created_at: 2016-01-11 11:11:11.111111111 Z updated_at: 2016-01-11 11:11:11.111111111 Z @@ -229,12 +472,13 @@ canceled_with_queued_container: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} canceled_with_locked_container: uuid: zzzzz-xvhdp-canceledlocekdc owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz name: canceled with locked container - state: Committed + state: Final priority: 0 created_at: 2016-01-11 11:11:11.111111111 Z updated_at: 2016-01-11 11:11:11.111111111 Z @@ -248,6 +492,7 @@ canceled_with_locked_container: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} canceled_with_running_container: uuid: zzzzz-xvhdp-canceledrunning @@ -267,6 +512,65 @@ canceled_with_running_container: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} + +running_to_be_deleted: + uuid: zzzzz-xvhdp-cr5runningcntnr + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + name: running to be deleted + state: Committed + priority: 1 + created_at: <%= 2.days.ago.to_s(:db) %> + updated_at: <%= 1.days.ago.to_s(:db) %> + modified_at: <%= 1.days.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-runnincntrtodel + runtime_constraints: + vcpus: 1 + ram: 123 + mounts: {} + +completed_with_input_mounts: + uuid: zzzzz-xvhdp-crwithinputmnts + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + name: completed container request + state: Final + priority: 1 + created_at: <%= 24.hour.ago.to_s(:db) %> + updated_at: <%= 24.hour.ago.to_s(:db) %> + modified_at: <%= 24.hour.ago.to_s(:db) %> + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + container_image: test + cwd: test + output_path: test + 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-logcollection01 + output_uuid: zzzzz-4zz18-znfnqtbbv4spc3w + 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 @@ -687,6 +991,50 @@ uncommitted-with-required-and-optional-inputs: ram: 256000000 API: true +cr_in_trashed_project: + uuid: zzzzz-xvhdp-cr5trashedcontr + owner_uuid: zzzzz-j7d0g-trashedproject1 + name: completed container request + state: Final + 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-compltcontainer + 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 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper @@ -700,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