Merge branch '14873-api-rails5-upgrade'
[arvados.git] / services / api / test / fixtures / pipeline_instances.yml
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 new_pipeline:
6   state: New
7   uuid: zzzzz-d1hrv-f4gneyn6br1xize
8   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
9   created_at: <%= 1.minute.ago.to_s(:db) %>
10
11 new_pipeline_in_subproject:
12   state: New
13   uuid: zzzzz-d1hrv-subprojpipeline
14   owner_uuid: zzzzz-j7d0g-axqo7eu9pwvna1x
15   created_at: <%= 1.minute.ago.to_s(:db) %>
16
17 has_component_with_no_script_parameters:
18   state: Ready
19   uuid: zzzzz-d1hrv-1xfj6xkicf2muk2
20   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
21   created_at: <%= 10.minute.ago.to_s(:db) %>
22   components:
23    foo:
24     script: foo
25     script_version: master
26     script_parameters: {}
27
28 has_component_with_empty_script_parameters:
29   state: Ready
30   uuid: zzzzz-d1hrv-jq16l10gcsnyumo
31   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
32   created_at: <%= 3.minute.ago.to_s(:db) %>
33   components:
34    foo:
35     script: foo
36     script_version: master
37
38 has_component_with_completed_jobs:
39   # Test that the job "started_at" and "finished_at" fields are parsed
40   # into Time fields when rendering. These jobs must *not* have their
41   # own fixtures; the point is to force the
42   # pipeline_instances_controller_test in Workbench to parse the
43   # "components" field. (The relevant code paths are also used when a
44   # user has permission to read the pipeline instance itself, but not
45   # the jobs referenced by its components hash.)
46   state: Complete
47   uuid: zzzzz-d1hrv-i3e77t9z5y8j9cc
48   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
49   created_at: <%= 11.minute.ago.to_s(:db) %>
50   started_at: <%= 10.minute.ago.to_s(:db) %>
51   finished_at: <%= 9.minute.ago.to_s(:db) %>
52   components:
53    foo:
54     script: foo
55     script_version: master
56     script_parameters: {}
57     job:
58       uuid: zzzzz-8i9sb-rft1xdewxkwgxnz
59       script_version: master
60       created_at: <%= 10.minute.ago.to_s(:db) %>
61       started_at: <%= 10.minute.ago.to_s(:db) %>
62       finished_at: <%= 9.minute.ago.to_s(:db) %>
63       state: Complete
64       tasks_summary:
65         failed: 0
66         todo: 0
67         running: 0
68         done: 1
69    bar:
70     script: bar
71     script_version: master
72     script_parameters: {}
73     job:
74       uuid: zzzzz-8i9sb-r2dtbzr6bfread7
75       script_version: master
76       created_at: <%= 9.minute.ago.to_s(:db) %>
77       started_at: <%= 9.minute.ago.to_s(:db) %>
78       state: Running
79       tasks_summary:
80         failed: 0
81         todo: 1
82         running: 2
83         done: 3
84    baz:
85     script: baz
86     script_version: master
87     script_parameters: {}
88     job:
89       uuid: zzzzz-8i9sb-c7408rni11o7r6s
90       script_version: master
91       created_at: <%= 9.minute.ago.to_s(:db) %>
92       state: Queued
93       tasks_summary: {}
94
95 has_job:
96   name: pipeline_with_job
97   state: Ready
98   uuid: zzzzz-d1hrv-1yfj6xkidf2muk3
99   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
100   created_at: <%= 3.1.minute.ago.to_s(:db) %>
101   components:
102    foo:
103     script: foo
104     script_version: master
105     script_parameters: {}
106     job: {
107             uuid: zzzzz-8i9sb-pshmckwoma9plh7,
108             script_version: master
109          }
110
111 components_is_jobspec:
112   # Helps test that clients cope with funny-shaped components.
113   # For an example, see #3321.
114   uuid: zzzzz-d1hrv-jobspeccomponts
115   created_at: <%= 30.minute.ago.to_s(:db) %>
116   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
117   created_at: 2014-04-14 12:35:04 -0400
118   updated_at: 2014-04-14 12:35:04 -0400
119   modified_at: 2014-04-14 12:35:04 -0400
120   modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr
121   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
122   state: RunningOnServer
123   components:
124     script: foo
125     script_version: master
126     script_parameters:
127       input:
128         required: true
129         dataclass: Collection
130         title: "Foo/bar pair"
131         description: "Provide a collection containing at least two files."
132
133 pipeline_with_tagged_collection_input:
134   name: pipeline_with_tagged_collection_input
135   state: Ready
136   uuid: zzzzz-d1hrv-1yfj61234abcdk3
137   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
138   created_at: <%= 3.1.minute.ago.to_s(:db) %>
139   components:
140     part-one:
141       script_parameters:
142         input:
143           value: zzzzz-4zz18-znfnqtbbv4spc3w
144
145 pipeline_to_merge_params:
146   name: pipeline_to_merge_params
147   state: Ready
148   uuid: zzzzz-d1hrv-1yfj6dcba4321k3
149   pipeline_template_uuid: zzzzz-p5p6p-aox0k0ofxrystgw
150   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
151   created_at: <%= 3.1.minute.ago.to_s(:db) %>
152   components:
153     part-one:
154       script_parameters:
155         input:
156           required: true
157           dataclass: Collection
158           title: "Foo/bar pair"
159           description: "Provide a collection containing at least two files."
160     part-two:
161       script_parameters:
162         input:
163           output_of: part-one
164         integer_with_default:
165           default: 123
166         integer_with_value:
167           value: 123
168         string_with_default:
169           default: baz
170         string_with_value:
171           value: baz
172         plain_string: qux
173         array_with_default:
174           default: [1,1,2,3,5]
175         array_with_value:
176           value: [1,1,2,3,5]
177
178 pipeline_with_newer_template:
179   state: Complete
180   uuid: zzzzz-d1hrv-9fm8l10i9z2kqc6
181   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
182   pipeline_template_uuid: zzzzz-p5p6p-vq4wuvy84xvaq2r
183   created_at: 2014-09-15 12:00:00
184   components:
185     foo:
186       script: foo
187       script_version: master
188       script_parameters:
189         input:
190           required: true
191           dataclass: Collection
192           title: foo instance input
193
194 pipeline_instance_owned_by_fuse:
195   state: Complete
196   uuid: zzzzz-d1hrv-ri9dvgkgqs9y09j
197   owner_uuid: zzzzz-tpzed-0fusedrivertest
198   pipeline_template_uuid: zzzzz-p5p6p-vq4wuvy84xvaq2r
199   created_at: 2014-09-15 12:00:00
200   name: "pipeline instance owned by FUSE"
201   components:
202     foo:
203       script: foo
204       script_version: master
205       script_parameters:
206         input:
207           required: true
208           dataclass: Collection
209           title: foo instance input
210
211 pipeline_instance_in_fuse_project:
212   state: Complete
213   uuid: zzzzz-d1hrv-scarxiyajtshq3l
214   owner_uuid: zzzzz-j7d0g-0000ownedbyfuse
215   pipeline_template_uuid: zzzzz-p5p6p-vq4wuvy84xvaq2r
216   created_at: 2014-09-15 12:00:00
217   name: "pipeline instance in FUSE project"
218   components:
219     foo:
220       script: foo
221       script_version: master
222       script_parameters:
223         input:
224           required: true
225           dataclass: Collection
226           title: foo instance input
227
228 pipeline_owned_by_active_in_aproject:
229   name: Completed pipeline in A Project
230   state: Complete
231   uuid: zzzzz-d1hrv-ju5ghi0i9z2kqc6
232   owner_uuid: zzzzz-j7d0g-v955i6s2oi1cbso
233   created_at: 2014-09-15 12:00:00
234   components:
235     foo:
236       script: foo
237       script_version: master
238       script_parameters:
239         input:
240           required: true
241           dataclass: Collection
242           title: foo instance input
243
244 pipeline_owned_by_active_in_home:
245   name: Completed pipeline in active user home
246   state: Complete
247   uuid: zzzzz-d1hrv-lihrbd0i9z2kqc6
248   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
249   created_at: 2014-09-15 12:00:00
250   components:
251     foo:
252       script: foo
253       script_version: master
254       script_parameters:
255         input:
256           required: true
257           dataclass: Collection
258           title: foo instance input
259
260 pipeline_in_publicly_accessible_project:
261   uuid: zzzzz-d1hrv-n68vc490mloy4fi
262   owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0
263   name: Pipeline in publicly accessible project
264   pipeline_template_uuid: zzzzz-p5p6p-tmpltpublicproj
265   state: Complete
266   created_at: <%= 30.minute.ago.to_s(:db) %>
267   components:
268     foo:
269       script: foo
270       script_version: master
271       script_parameters:
272         input:
273           required: true
274           dataclass: Collection
275           title: foo instance input
276       job:
277         uuid: zzzzz-8i9sb-jyq01m7in1jlofj
278         repository: active/foo
279         script: foo
280         script_version: master
281         script_parameters:
282           input: zzzzz-4zz18-4en62shvi99lxd4
283         log: zzzzz-4zz18-4en62shvi99lxd4
284         output: b519d9cb706a29fc7ea24dbea2f05851+93
285         state: Complete
286
287 pipeline_in_publicly_accessible_project_but_other_objects_elsewhere:
288   uuid: zzzzz-d1hrv-pisharednotobjs
289   owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0
290   name: Pipeline in public project with other objects elsewhere
291   pipeline_template_uuid: zzzzz-p5p6p-aox0k0ofxrystgw
292   state: Complete
293   created_at: 2014-09-15 12:00:00
294   components:
295     foo:
296       script: foo
297       script_version: master
298       script_parameters:
299         input:
300           required: true
301           dataclass: Collection
302           title: foo instance input
303       job:
304         uuid: zzzzz-8i9sb-aceg2bnq7jt7kon
305         repository: active/foo
306         script: foo
307         script_version: master
308         script_parameters:
309           input: zzzzz-4zz18-bv31uwvy3neko21
310         log: zzzzz-4zz18-bv31uwvy3neko21
311         output: zzzzz-4zz18-bv31uwvy3neko21
312         state: Complete
313
314 new_pipeline_in_publicly_accessible_project:
315   uuid: zzzzz-d1hrv-newpisharedobjs
316   owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0
317   name: Pipeline in New state in publicly accessible project
318   pipeline_template_uuid: zzzzz-p5p6p-tmpltpublicproj
319   state: New
320   created_at: 2014-09-15 12:00:00
321   components:
322     foo:
323       script: foo
324       script_version: master
325       script_parameters:
326         input:
327           required: true
328           dataclass: Collection
329           value: b519d9cb706a29fc7ea24dbea2f05851+93
330
331 new_pipeline_in_publicly_accessible_project_but_other_objects_elsewhere:
332   uuid: zzzzz-d1hrv-newsharenotobjs
333   owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0
334   name: Pipeline in New state in public project with objects elsewhere
335   pipeline_template_uuid: zzzzz-p5p6p-aox0k0ofxrystgw
336   state: New
337   created_at: 2014-09-15 12:00:00
338   components:
339     foo:
340       script: foo
341       script_version: master
342       script_parameters:
343         input:
344           required: true
345           dataclass: Collection
346           value: zzzzz-4zz18-bv31uwvy3neko21
347
348 new_pipeline_in_publicly_accessible_project_with_dataclass_file_and_other_objects_elsewhere:
349   uuid: zzzzz-d1hrv-newsharenotfile
350   owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0
351   name: Pipeline in public project in New state with file type data class with objects elsewhere
352   pipeline_template_uuid: zzzzz-p5p6p-aox0k0ofxrystgw
353   state: New
354   created_at: 2014-09-15 12:00:00
355   components:
356     foo:
357       script: foo
358       script_version: master
359       script_parameters:
360         input:
361           required: true
362           dataclass: File
363           value: zzzzz-4zz18-bv31uwvy3neko21/bar
364
365 pipeline_in_running_state:
366   name: running_with_job
367   uuid: zzzzz-d1hrv-runningpipeline
368   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
369   created_at: <%= 3.1.minute.ago.to_s(:db) %>
370   started_at: <%= 3.1.minute.ago.to_s(:db) %>
371   state: RunningOnServer
372   components:
373    foo:
374     script: foo
375     script_version: master
376     script_parameters: {}
377     job:
378       uuid: zzzzz-8i9sb-pshmckwoma9plh7
379       script_version: master
380
381 running_pipeline_with_complete_job:
382   uuid: zzzzz-d1hrv-partdonepipelin
383   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
384   state: RunningOnServer
385   created_at: <%= 15.minute.ago.to_s(:db) %>
386   components:
387    previous:
388     job:
389       uuid: zzzzz-8i9sb-cjs4pklxxjykqqq
390       log: zzzzz-4zz18-op4e2lbej01tcvu
391    running:
392     job:
393       uuid: zzzzz-8i9sb-pshmckwoma9plh7
394
395 complete_pipeline_with_two_jobs:
396   uuid: zzzzz-d1hrv-twodonepipeline
397   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
398   state: Complete
399   created_at: <%= 3.minute.ago.to_s(:db) %>
400   started_at: <%= 2.minute.ago.to_s(:db) %>
401   finished_at: <%= 1.minute.ago.to_s(:db) %>
402   components:
403    ancient:
404     job:
405       uuid: zzzzz-8i9sb-ahd7cie8jah9qui
406       log: zzzzz-4zz18-op4e2lbej01tcvu
407    previous:
408     job:
409       uuid: zzzzz-8i9sb-cjs4pklxxjykqqq
410       log: zzzzz-4zz18-op4e2lbej01tcvu
411
412 failed_pipeline_with_two_jobs:
413   uuid: zzzzz-d1hrv-twofailpipeline
414   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
415   created_at: <%= 55.minute.ago.to_s(:db) %>
416   state: Failed
417   components:
418    ancient:
419     job:
420       uuid: zzzzz-8i9sb-ahd7cie8jah9qui
421       log: zzzzz-4zz18-op4e2lbej01tcvu
422    previous:
423     job:
424       uuid: zzzzz-8i9sb-cjs4pklxxjykqqq
425       log: zzzzz-4zz18-op4e2lbej01tcvu
426
427 # This pipeline is a child of another running job and has it's own running children
428 job_child_pipeline_with_components_at_level_2:
429   state: RunningOnServer
430   uuid: zzzzz-d1hrv-picomponentsl02
431   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
432   created_at: <%= 12.hour.ago.to_s(:db) %>
433   started_at: <%= 12.hour.ago.to_s(:db) %>
434   components:
435    foo:
436     script: foo
437     script_version: master
438     script_parameters: {}
439     job:
440       uuid: zzzzz-8i9sb-job1atlevel3noc
441       script_version: master
442       created_at: <%= 12.hour.ago.to_s(:db) %>
443       started_at: <%= 12.hour.ago.to_s(:db) %>
444       state: Running
445       tasks_summary:
446         failed: 0
447         todo: 0
448         running: 1
449         done: 1
450    bar:
451     script: bar
452     script_version: master
453     script_parameters: {}
454     job:
455       uuid: zzzzz-8i9sb-job2atlevel3noc
456       script_version: master
457       created_at: <%= 12.hour.ago.to_s(:db) %>
458       started_at: <%= 12.hour.ago.to_s(:db) %>
459       state: Running
460       tasks_summary:
461         failed: 0
462         todo: 1
463         running: 2
464         done: 3
465
466 # Test Helper trims the rest of the file
467
468 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper
469
470 # pipelines in project_with_10_pipelines
471 <% for i in 1..10 do %>
472 pipeline_<%=i%>_of_10:
473   name: pipeline_<%= i %>
474   uuid: zzzzz-d1hrv-10pipelines0<%= i.to_s.rjust(3, '0') %>
475   owner_uuid: zzzzz-j7d0g-000010pipelines
476   created_at: <%= (2*(i-1)).hour.ago.to_s(:db) %>
477   started_at: <%= (2*(i-1)).hour.ago.to_s(:db) %>
478   finished_at: <%= (i-1).minute.ago.to_s(:db) %>
479   state: Failed
480   components:
481     foo:
482       script: foo
483       script_version: master
484       script_parameters:
485         input:
486           required: true
487           dataclass: Collection
488           title: foo instance input
489       job:
490         state: Failed
491 <% end %>
492
493 # pipelines in project_with_2_pipelines_and_60_crs
494 <% for i in 1..2 do %>
495 pipeline_<%=i%>_of_2_pipelines_and_60_crs:
496   name: pipeline_<%= i %>
497   state: New
498   uuid: zzzzz-d1hrv-abcgneyn6brx<%= i.to_s.rjust(3, '0') %>
499   owner_uuid: zzzzz-j7d0g-nnncrspipelines
500   created_at: <%= i.minute.ago.to_s(:db) %>
501   components:
502     foo:
503       script: foo
504       script_version: master
505       script_parameters:
506         input:
507           required: true
508           dataclass: Collection
509           title: foo instance input
510 <% end %>
511
512 # pipelines in project_with_25_pipelines
513 <% for i in 1..25 do %>
514 pipeline_<%=i%>_of_25:
515   name: pipeline_<%=i%>
516   state: Failed
517   uuid: zzzzz-d1hrv-25pipelines0<%= i.to_s.rjust(3, '0') %>
518   owner_uuid: zzzzz-j7d0g-000025pipelines
519   created_at: <%= i.hour.ago.to_s(:db) %>
520   started_at: <%= i.hour.ago.to_s(:db) %>
521   finished_at: <%= i.minute.ago.to_s(:db) %>
522   components:
523     foo:
524       script: foo
525       script_version: master
526       script_parameters:
527         input:
528           required: true
529           dataclass: Collection
530           title: foo instance input
531 <% end %>
532
533 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper