X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/05b38a78504bfa8955a70d50fa3c073206f6e780..39cfbff065282869d8dadab2474dfaae4ba0b86a:/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 34dbe9603b..a504c9fadd 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 @@ -48,11 +52,11 @@ has_component_with_completed_jobs: 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) %> @@ -64,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 @@ -79,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: {} @@ -93,32 +97,29 @@ has_job: state: Ready uuid: zzzzz-d1hrv-1yfj6xkidf2muk3 owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz - created_at: <%= 3.1.minute.ago.to_s(:db) %> + created_at: <%= 2.9.minute.ago.to_s(:db) %> 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: # Helps test that clients cope with funny-shaped components. # For an example, see #3321. - uuid: zzzzz-d1hrv-jobspeccomponts - created_at: <%= 30.minute.ago.to_s(:db) %> + uuid: zzzzz-d1hrv-1yfj61234abcdk4 + created_at: <%= 4.minute.ago.to_s(:db) %> owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz - created_at: 2014-04-14 12:35:04 -0400 - updated_at: 2014-04-14 12:35:04 -0400 - modified_at: 2014-04-14 12:35:04 -0400 modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz state: RunningOnServer components: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -131,7 +132,7 @@ pipeline_with_tagged_collection_input: state: Ready uuid: zzzzz-d1hrv-1yfj61234abcdk3 owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz - created_at: <%= 3.1.minute.ago.to_s(:db) %> + created_at: <%= 3.2.minute.ago.to_s(:db) %> components: part-one: script_parameters: @@ -144,7 +145,7 @@ pipeline_to_merge_params: uuid: zzzzz-d1hrv-1yfj6dcba4321k3 pipeline_template_uuid: zzzzz-p5p6p-aox0k0ofxrystgw owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz - created_at: <%= 3.1.minute.ago.to_s(:db) %> + created_at: <%= 3.3.minute.ago.to_s(:db) %> components: part-one: script_parameters: @@ -180,7 +181,7 @@ pipeline_with_newer_template: components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -192,12 +193,12 @@ pipeline_instance_owned_by_fuse: uuid: zzzzz-d1hrv-ri9dvgkgqs9y09j owner_uuid: zzzzz-tpzed-0fusedrivertest pipeline_template_uuid: zzzzz-p5p6p-vq4wuvy84xvaq2r - created_at: 2014-09-15 12:00:00 + created_at: 2014-09-16 12:00:00 name: "pipeline instance owned by FUSE" components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -209,12 +210,12 @@ pipeline_instance_in_fuse_project: uuid: zzzzz-d1hrv-scarxiyajtshq3l owner_uuid: zzzzz-j7d0g-0000ownedbyfuse pipeline_template_uuid: zzzzz-p5p6p-vq4wuvy84xvaq2r - created_at: 2014-09-15 12:00:00 + created_at: 2014-09-17 12:00:00 name: "pipeline instance in FUSE project" components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -226,11 +227,11 @@ pipeline_owned_by_active_in_aproject: state: Complete uuid: zzzzz-d1hrv-ju5ghi0i9z2kqc6 owner_uuid: zzzzz-j7d0g-v955i6s2oi1cbso - created_at: 2014-09-15 12:00:00 + created_at: 2014-09-18 12:00:00 components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -242,11 +243,11 @@ pipeline_owned_by_active_in_home: state: Complete uuid: zzzzz-d1hrv-lihrbd0i9z2kqc6 owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz - created_at: 2014-09-15 12:00:00 + created_at: 2014-09-19 12:00:00 components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -263,7 +264,7 @@ pipeline_in_publicly_accessible_project: components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -273,7 +274,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 @@ -286,11 +287,11 @@ pipeline_in_publicly_accessible_project_but_other_objects_elsewhere: name: Pipeline in public project with other objects elsewhere pipeline_template_uuid: zzzzz-p5p6p-aox0k0ofxrystgw state: Complete - created_at: 2014-09-15 12:00:00 + created_at: 2014-09-20 12:00:00 components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -300,7 +301,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 @@ -313,11 +314,11 @@ new_pipeline_in_publicly_accessible_project: name: Pipeline in New state in publicly accessible project pipeline_template_uuid: zzzzz-p5p6p-tmpltpublicproj state: New - created_at: 2014-09-15 12:00:00 + created_at: 2014-09-21 12:00:00 components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -330,11 +331,11 @@ new_pipeline_in_publicly_accessible_project_but_other_objects_elsewhere: name: Pipeline in New state in public project with objects elsewhere pipeline_template_uuid: zzzzz-p5p6p-aox0k0ofxrystgw state: New - created_at: 2014-09-15 12:00:00 + created_at: 2014-09-22 12:00:00 components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -347,11 +348,11 @@ new_pipeline_in_publicly_accessible_project_with_dataclass_file_and_other_object name: Pipeline in public project in New state with file type data class with objects elsewhere pipeline_template_uuid: zzzzz-p5p6p-aox0k0ofxrystgw state: New - created_at: 2014-09-15 12:00:00 + created_at: 2014-09-23 12:00:00 components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -362,17 +363,17 @@ pipeline_in_running_state: name: running_with_job uuid: zzzzz-d1hrv-runningpipeline owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz - created_at: <%= 3.1.minute.ago.to_s(:db) %> - started_at: <%= 3.1.minute.ago.to_s(:db) %> + created_at: <%= 2.8.minute.ago.to_s(:db) %> + started_at: <%= 2.8.minute.ago.to_s(:db) %> state: RunningOnServer 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 @@ -392,7 +393,7 @@ complete_pipeline_with_two_jobs: uuid: zzzzz-d1hrv-twodonepipeline owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz state: Complete - created_at: <%= 3.minute.ago.to_s(:db) %> + created_at: <%= 2.5.minute.ago.to_s(:db) %> started_at: <%= 2.minute.ago.to_s(:db) %> finished_at: <%= 1.minute.ago.to_s(:db) %> components: @@ -420,6 +421,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 @@ -437,12 +477,14 @@ 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_60_crs @@ -456,7 +498,7 @@ pipeline_<%=i%>_of_2_pipelines_and_60_crs: components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true @@ -477,7 +519,7 @@ pipeline_<%=i%>_of_25: components: foo: script: foo - script_version: master + script_version: main script_parameters: input: required: true