X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e02bf11203b85a6baac31584b9ba451c92be21b3..8ce476b7864f1a2d1f05cd0a770ae159eeb845eb:/services/api/test/fixtures/pipeline_instances.yml diff --git a/services/api/test/fixtures/pipeline_instances.yml b/services/api/test/fixtures/pipeline_instances.yml index ff7864d283..0865503281 100644 --- a/services/api/test/fixtures/pipeline_instances.yml +++ b/services/api/test/fixtures/pipeline_instances.yml @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + new_pipeline: state: New uuid: zzzzz-d1hrv-f4gneyn6br1xize @@ -18,7 +22,7 @@ has_component_with_no_script_parameters: components: foo: script: foo - script_version: master + script_version: main script_parameters: {} has_component_with_empty_script_parameters: @@ -29,7 +33,7 @@ has_component_with_empty_script_parameters: components: foo: script: foo - script_version: master + script_version: main has_component_with_completed_jobs: # Test that the job "started_at" and "finished_at" fields are parsed @@ -42,16 +46,17 @@ has_component_with_completed_jobs: state: Complete uuid: zzzzz-d1hrv-i3e77t9z5y8j9cc owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + created_at: <%= 11.minute.ago.to_s(:db) %> started_at: <%= 10.minute.ago.to_s(:db) %> finished_at: <%= 9.minute.ago.to_s(:db) %> components: foo: script: foo - script_version: master + script_version: main script_parameters: {} job: uuid: zzzzz-8i9sb-rft1xdewxkwgxnz - script_version: master + script_version: main created_at: <%= 10.minute.ago.to_s(:db) %> started_at: <%= 10.minute.ago.to_s(:db) %> finished_at: <%= 9.minute.ago.to_s(:db) %> @@ -63,11 +68,11 @@ has_component_with_completed_jobs: done: 1 bar: script: bar - script_version: master + script_version: main script_parameters: {} job: uuid: zzzzz-8i9sb-r2dtbzr6bfread7 - script_version: master + script_version: main created_at: <%= 9.minute.ago.to_s(:db) %> started_at: <%= 9.minute.ago.to_s(:db) %> state: Running @@ -78,11 +83,11 @@ has_component_with_completed_jobs: done: 3 baz: script: baz - script_version: master + script_version: main script_parameters: {} job: uuid: zzzzz-8i9sb-c7408rni11o7r6s - script_version: master + script_version: main created_at: <%= 9.minute.ago.to_s(:db) %> state: Queued tasks_summary: {} @@ -96,11 +101,11 @@ has_job: components: foo: script: foo - script_version: master + script_version: main script_parameters: {} job: { uuid: zzzzz-8i9sb-pshmckwoma9plh7, - script_version: master + script_version: main } components_is_jobspec: @@ -117,7 +122,7 @@ components_is_jobspec: state: RunningOnServer components: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -179,7 +184,7 @@ pipeline_with_newer_template: components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -196,7 +201,7 @@ pipeline_instance_owned_by_fuse: components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -213,7 +218,7 @@ pipeline_instance_in_fuse_project: components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -229,7 +234,7 @@ pipeline_owned_by_active_in_aproject: components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -245,7 +250,7 @@ pipeline_owned_by_active_in_home: components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -258,11 +263,11 @@ pipeline_in_publicly_accessible_project: name: Pipeline in publicly accessible project pipeline_template_uuid: zzzzz-p5p6p-tmpltpublicproj state: Complete - created_at: <%= 1.minute.ago.to_s(:db) %> + created_at: <%= 30.minute.ago.to_s(:db) %> components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -272,7 +277,7 @@ pipeline_in_publicly_accessible_project: uuid: zzzzz-8i9sb-jyq01m7in1jlofj repository: active/foo script: foo - script_version: master + script_version: main script_parameters: input: zzzzz-4zz18-4en62shvi99lxd4 log: zzzzz-4zz18-4en62shvi99lxd4 @@ -289,7 +294,7 @@ pipeline_in_publicly_accessible_project_but_other_objects_elsewhere: components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -299,7 +304,7 @@ pipeline_in_publicly_accessible_project_but_other_objects_elsewhere: uuid: zzzzz-8i9sb-aceg2bnq7jt7kon repository: active/foo script: foo - script_version: master + script_version: main script_parameters: input: zzzzz-4zz18-bv31uwvy3neko21 log: zzzzz-4zz18-bv31uwvy3neko21 @@ -316,7 +321,7 @@ new_pipeline_in_publicly_accessible_project: components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -333,7 +338,7 @@ new_pipeline_in_publicly_accessible_project_but_other_objects_elsewhere: components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -350,7 +355,7 @@ new_pipeline_in_publicly_accessible_project_with_dataclass_file_and_other_object components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -367,16 +372,17 @@ pipeline_in_running_state: components: foo: script: foo - script_version: master + script_version: main script_parameters: {} job: uuid: zzzzz-8i9sb-pshmckwoma9plh7 - script_version: master + script_version: main running_pipeline_with_complete_job: uuid: zzzzz-d1hrv-partdonepipelin owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz state: RunningOnServer + created_at: <%= 15.minute.ago.to_s(:db) %> components: previous: job: @@ -390,8 +396,9 @@ complete_pipeline_with_two_jobs: uuid: zzzzz-d1hrv-twodonepipeline owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz state: Complete - started_at: <%= 10.minute.ago.to_s(:db) %> - finished_at: <%= 9.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) %> components: ancient: job: @@ -405,6 +412,7 @@ complete_pipeline_with_two_jobs: failed_pipeline_with_two_jobs: uuid: zzzzz-d1hrv-twofailpipeline owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + created_at: <%= 55.minute.ago.to_s(:db) %> state: Failed components: ancient: @@ -416,6 +424,45 @@ failed_pipeline_with_two_jobs: uuid: zzzzz-8i9sb-cjs4pklxxjykqqq log: zzzzz-4zz18-op4e2lbej01tcvu +# This pipeline is a child of another running job and has it's own running children +job_child_pipeline_with_components_at_level_2: + state: RunningOnServer + uuid: zzzzz-d1hrv-picomponentsl02 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + created_at: <%= 12.hour.ago.to_s(:db) %> + started_at: <%= 12.hour.ago.to_s(:db) %> + components: + foo: + script: foo + script_version: main + script_parameters: {} + job: + uuid: zzzzz-8i9sb-job1atlevel3noc + script_version: main + created_at: <%= 12.hour.ago.to_s(:db) %> + started_at: <%= 12.hour.ago.to_s(:db) %> + state: Running + tasks_summary: + failed: 0 + todo: 0 + running: 1 + done: 1 + bar: + script: bar + script_version: main + script_parameters: {} + job: + uuid: zzzzz-8i9sb-job2atlevel3noc + script_version: main + created_at: <%= 12.hour.ago.to_s(:db) %> + started_at: <%= 12.hour.ago.to_s(:db) %> + state: Running + tasks_summary: + failed: 0 + todo: 1 + running: 2 + done: 3 + # 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 @@ -433,26 +480,28 @@ pipeline_<%=i%>_of_10: components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true dataclass: Collection title: foo instance input + job: + state: Failed <% end %> -# pipelines in project_with_2_pipelines_and_100_jobs +# pipelines in project_with_2_pipelines_and_60_crs <% for i in 1..2 do %> -pipeline_<%=i%>_of_2_pipelines_and_100_jobs: +pipeline_<%=i%>_of_2_pipelines_and_60_crs: name: pipeline_<%= i %> state: New uuid: zzzzz-d1hrv-abcgneyn6brx<%= i.to_s.rjust(3, '0') %> - owner_uuid: zzzzz-j7d0g-nnjobspipelines + owner_uuid: zzzzz-j7d0g-nnncrspipelines created_at: <%= i.minute.ago.to_s(:db) %> components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -473,7 +522,7 @@ pipeline_<%=i%>_of_25: components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true