X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6fb70ef1e1398c30137580c8417e98693dfbfc1d..918e16de43e993894dcaffbe0cafa0fc1d2f16b3:/services/api/test/fixtures/jobs.yml diff --git a/services/api/test/fixtures/jobs.yml b/services/api/test/fixtures/jobs.yml index 584cc23f39..809ba0e138 100644 --- a/services/api/test/fixtures/jobs.yml +++ b/services/api/test/fixtures/jobs.yml @@ -465,9 +465,9 @@ job_with_latest_version: supplied_script_version: master script_parameters: input: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45 - created_at: <%= 4.minute.ago.to_s(:db) %> - started_at: <%= 3.minute.ago.to_s(:db) %> - finished_at: <%= 2.minute.ago.to_s(:db) %> + created_at: <%= 3.minute.ago.to_s(:db) %> + started_at: <%= 2.minute.ago.to_s(:db) %> + finished_at: <%= 1.minute.ago.to_s(:db) %> running: false success: true output: fa7aeb5140e2848d39b416daeef4ffc5+45 @@ -510,6 +510,8 @@ completed_job_in_publicly_accessible_project: log: zzzzz-4zz18-4en62shvi99lxd4 output: b519d9cb706a29fc7ea24dbea2f05851+93 script_parameters_digest: 02a085407e751d00b5dc88f1bd5e8247 + started_at: <%= 10.minute.ago.to_s(:db) %> + finished_at: <%= 5.minute.ago.to_s(:db) %> job_in_publicly_accessible_project_but_other_objects_elsewhere: uuid: zzzzz-8i9sb-jyq01muyhgr4ofj @@ -555,3 +557,178 @@ running_job_with_components: component1: zzzzz-8i9sb-jyq01m7in1jlofj component2: zzzzz-d1hrv-partdonepipelin script_parameters_digest: 99914b932bd37a50b983c5e7c90ae93b + +# This main level job is in running state with one job and one pipeline instance components +running_job_with_components_at_level_1: + uuid: zzzzz-8i9sb-jobcomponentsl1 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + cancelled_at: ~ + cancelled_by_user_uuid: ~ + cancelled_by_client_uuid: ~ + created_at: <%= 12.hour.ago.to_s(:db) %> + started_at: <%= 12.hour.ago.to_s(:db) %> + finished_at: ~ + repository: active/foo + script: hash + script_version: 1de84a854e2b440dc53bf42f8548afa4c17da332 + script_parameters_digest: 99914b932bd37a50b983c5e7c90ae93b + running: true + success: ~ + output: ~ + priority: 0 + log: ~ + is_locked_by_uuid: zzzzz-tpzed-xurymjxw79nv3jz + tasks_summary: + failed: 0 + todo: 3 + running: 1 + done: 1 + runtime_constraints: {} + state: Running + components: + component1: zzzzz-8i9sb-jobcomponentsl2 + component2: zzzzz-d1hrv-picomponentsl02 + +# This running job, a child of level_1, has one child component +running_job_with_components_at_level_2: + uuid: zzzzz-8i9sb-jobcomponentsl2 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + cancelled_at: ~ + cancelled_by_user_uuid: ~ + cancelled_by_client_uuid: ~ + created_at: <%= 12.hour.ago.to_s(:db) %> + started_at: <%= 12.hour.ago.to_s(:db) %> + finished_at: ~ + repository: active/foo + script: hash + script_version: 1de84a854e2b440dc53bf42f8548afa4c17da332 + script_parameters_digest: 99914b932bd37a50b983c5e7c90ae93b + running: true + success: ~ + output: ~ + priority: 0 + log: ~ + is_locked_by_uuid: zzzzz-tpzed-xurymjxw79nv3jz + tasks_summary: + failed: 0 + todo: 3 + running: 1 + done: 1 + runtime_constraints: {} + state: Running + components: + component1: zzzzz-8i9sb-job1atlevel3noc + +# The below two running jobs, children of level_2, have no child components +running_job_1_with_components_at_level_3: + uuid: zzzzz-8i9sb-job1atlevel3noc + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + cancelled_at: ~ + cancelled_by_user_uuid: ~ + cancelled_by_client_uuid: ~ + created_at: <%= 12.hour.ago.to_s(:db) %> + started_at: <%= 12.hour.ago.to_s(:db) %> + finished_at: ~ + repository: active/foo + script: hash + script_version: 1de84a854e2b440dc53bf42f8548afa4c17da332 + script_parameters_digest: 99914b932bd37a50b983c5e7c90ae93b + running: true + success: ~ + output: ~ + priority: 0 + log: ~ + is_locked_by_uuid: zzzzz-tpzed-xurymjxw79nv3jz + tasks_summary: + failed: 0 + todo: 3 + running: 1 + done: 1 + runtime_constraints: {} + state: Running + +running_job_2_with_components_at_level_3: + uuid: zzzzz-8i9sb-job2atlevel3noc + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + cancelled_at: ~ + cancelled_by_user_uuid: ~ + cancelled_by_client_uuid: ~ + created_at: <%= 12.hour.ago.to_s(:db) %> + started_at: <%= 12.hour.ago.to_s(:db) %> + finished_at: ~ + repository: active/foo + script: hash + script_version: 1de84a854e2b440dc53bf42f8548afa4c17da332 + script_parameters_digest: 99914b932bd37a50b983c5e7c90ae93b + running: true + success: ~ + output: ~ + priority: 0 + log: ~ + is_locked_by_uuid: zzzzz-tpzed-xurymjxw79nv3jz + tasks_summary: + failed: 0 + todo: 3 + running: 1 + done: 1 + runtime_constraints: {} + state: Running + +# The two jobs below are so confused, they have circular relationship +running_job_1_with_circular_component_relationship: + uuid: zzzzz-8i9sb-job1withcirculr + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + cancelled_at: ~ + cancelled_by_user_uuid: ~ + cancelled_by_client_uuid: ~ + created_at: <%= 12.hour.ago.to_s(:db) %> + started_at: <%= 12.hour.ago.to_s(:db) %> + finished_at: ~ + repository: active/foo + script: hash + script_version: 1de84a854e2b440dc53bf42f8548afa4c17da332 + script_parameters_digest: 99914b932bd37a50b983c5e7c90ae93b + running: true + success: ~ + output: ~ + priority: 0 + log: ~ + is_locked_by_uuid: zzzzz-tpzed-xurymjxw79nv3jz + tasks_summary: + failed: 0 + todo: 3 + running: 1 + done: 1 + runtime_constraints: {} + state: Running + components: + component1: zzzzz-8i9sb-job2withcirculr + +running_job_2_with_circular_component_relationship: + uuid: zzzzz-8i9sb-job2withcirculr + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + cancelled_at: ~ + cancelled_by_user_uuid: ~ + cancelled_by_client_uuid: ~ + created_at: <%= 12.hour.ago.to_s(:db) %> + started_at: <%= 12.hour.ago.to_s(:db) %> + finished_at: ~ + repository: active/foo + script: hash + script_version: 1de84a854e2b440dc53bf42f8548afa4c17da332 + script_parameters_digest: 99914b932bd37a50b983c5e7c90ae93b + running: true + success: ~ + output: ~ + priority: 0 + log: ~ + is_locked_by_uuid: zzzzz-tpzed-xurymjxw79nv3jz + tasks_summary: + failed: 0 + todo: 3 + running: 1 + done: 1 + runtime_constraints: {} + state: Running + components: + component1: zzzzz-8i9sb-job1withcirculr