Merge branch '18562-preemptible'
[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: main
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: main
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: main
56     script_parameters: {}
57     job:
58       uuid: zzzzz-8i9sb-rft1xdewxkwgxnz
59       script_version: main
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: main
72     script_parameters: {}
73     job:
74       uuid: zzzzz-8i9sb-r2dtbzr6bfread7
75       script_version: main
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: main
87     script_parameters: {}
88     job:
89       uuid: zzzzz-8i9sb-c7408rni11o7r6s
90       script_version: main
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: main
105     script_parameters: {}
106     job: {
107             uuid: zzzzz-8i9sb-pshmckwoma9plh7,
108             script_version: main
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-1yfj61234abcdk4
115   created_at: <%= 2.minute.ago.to_s(:db) %>
116   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
117   modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr
118   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
119   state: RunningOnServer
120   components:
121     script: foo
122     script_version: main
123     script_parameters:
124       input:
125         required: true
126         dataclass: Collection
127         title: "Foo/bar pair"
128         description: "Provide a collection containing at least two files."
129
130 pipeline_with_tagged_collection_input:
131   name: pipeline_with_tagged_collection_input
132   state: Ready
133   uuid: zzzzz-d1hrv-1yfj61234abcdk3
134   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
135   created_at: <%= 3.1.minute.ago.to_s(:db) %>
136   components:
137     part-one:
138       script_parameters:
139         input:
140           value: zzzzz-4zz18-znfnqtbbv4spc3w
141
142 pipeline_to_merge_params:
143   name: pipeline_to_merge_params
144   state: Ready
145   uuid: zzzzz-d1hrv-1yfj6dcba4321k3
146   pipeline_template_uuid: zzzzz-p5p6p-aox0k0ofxrystgw
147   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
148   created_at: <%= 3.1.minute.ago.to_s(:db) %>
149   components:
150     part-one:
151       script_parameters:
152         input:
153           required: true
154           dataclass: Collection
155           title: "Foo/bar pair"
156           description: "Provide a collection containing at least two files."
157     part-two:
158       script_parameters:
159         input:
160           output_of: part-one
161         integer_with_default:
162           default: 123
163         integer_with_value:
164           value: 123
165         string_with_default:
166           default: baz
167         string_with_value:
168           value: baz
169         plain_string: qux
170         array_with_default:
171           default: [1,1,2,3,5]
172         array_with_value:
173           value: [1,1,2,3,5]
174
175 pipeline_with_newer_template:
176   state: Complete
177   uuid: zzzzz-d1hrv-9fm8l10i9z2kqc6
178   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
179   pipeline_template_uuid: zzzzz-p5p6p-vq4wuvy84xvaq2r
180   created_at: 2014-09-15 12:00:00
181   components:
182     foo:
183       script: foo
184       script_version: main
185       script_parameters:
186         input:
187           required: true
188           dataclass: Collection
189           title: foo instance input
190
191 pipeline_instance_owned_by_fuse:
192   state: Complete
193   uuid: zzzzz-d1hrv-ri9dvgkgqs9y09j
194   owner_uuid: zzzzz-tpzed-0fusedrivertest
195   pipeline_template_uuid: zzzzz-p5p6p-vq4wuvy84xvaq2r
196   created_at: 2014-09-15 12:00:00
197   name: "pipeline instance owned by FUSE"
198   components:
199     foo:
200       script: foo
201       script_version: main
202       script_parameters:
203         input:
204           required: true
205           dataclass: Collection
206           title: foo instance input
207
208 pipeline_instance_in_fuse_project:
209   state: Complete
210   uuid: zzzzz-d1hrv-scarxiyajtshq3l
211   owner_uuid: zzzzz-j7d0g-0000ownedbyfuse
212   pipeline_template_uuid: zzzzz-p5p6p-vq4wuvy84xvaq2r
213   created_at: 2014-09-15 12:00:00
214   name: "pipeline instance in FUSE project"
215   components:
216     foo:
217       script: foo
218       script_version: main
219       script_parameters:
220         input:
221           required: true
222           dataclass: Collection
223           title: foo instance input
224
225 pipeline_owned_by_active_in_aproject:
226   name: Completed pipeline in A Project
227   state: Complete
228   uuid: zzzzz-d1hrv-ju5ghi0i9z2kqc6
229   owner_uuid: zzzzz-j7d0g-v955i6s2oi1cbso
230   created_at: 2014-09-15 12:00:00
231   components:
232     foo:
233       script: foo
234       script_version: main
235       script_parameters:
236         input:
237           required: true
238           dataclass: Collection
239           title: foo instance input
240
241 pipeline_owned_by_active_in_home:
242   name: Completed pipeline in active user home
243   state: Complete
244   uuid: zzzzz-d1hrv-lihrbd0i9z2kqc6
245   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
246   created_at: 2014-09-15 12:00:00
247   components:
248     foo:
249       script: foo
250       script_version: main
251       script_parameters:
252         input:
253           required: true
254           dataclass: Collection
255           title: foo instance input
256
257 pipeline_in_publicly_accessible_project:
258   uuid: zzzzz-d1hrv-n68vc490mloy4fi
259   owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0
260   name: Pipeline in publicly accessible project
261   pipeline_template_uuid: zzzzz-p5p6p-tmpltpublicproj
262   state: Complete
263   created_at: <%= 30.minute.ago.to_s(:db) %>
264   components:
265     foo:
266       script: foo
267       script_version: main
268       script_parameters:
269         input:
270           required: true
271           dataclass: Collection
272           title: foo instance input
273       job:
274         uuid: zzzzz-8i9sb-jyq01m7in1jlofj
275         repository: active/foo
276         script: foo
277         script_version: main
278         script_parameters:
279           input: zzzzz-4zz18-4en62shvi99lxd4
280         log: zzzzz-4zz18-4en62shvi99lxd4
281         output: b519d9cb706a29fc7ea24dbea2f05851+93
282         state: Complete
283
284 pipeline_in_publicly_accessible_project_but_other_objects_elsewhere:
285   uuid: zzzzz-d1hrv-pisharednotobjs
286   owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0
287   name: Pipeline in public project with other objects elsewhere
288   pipeline_template_uuid: zzzzz-p5p6p-aox0k0ofxrystgw
289   state: Complete
290   created_at: 2014-09-15 12:00:00
291   components:
292     foo:
293       script: foo
294       script_version: main
295       script_parameters:
296         input:
297           required: true
298           dataclass: Collection
299           title: foo instance input
300       job:
301         uuid: zzzzz-8i9sb-aceg2bnq7jt7kon
302         repository: active/foo
303         script: foo
304         script_version: main
305         script_parameters:
306           input: zzzzz-4zz18-bv31uwvy3neko21
307         log: zzzzz-4zz18-bv31uwvy3neko21
308         output: zzzzz-4zz18-bv31uwvy3neko21
309         state: Complete
310
311 new_pipeline_in_publicly_accessible_project:
312   uuid: zzzzz-d1hrv-newpisharedobjs
313   owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0
314   name: Pipeline in New state in publicly accessible project
315   pipeline_template_uuid: zzzzz-p5p6p-tmpltpublicproj
316   state: New
317   created_at: 2014-09-15 12:00:00
318   components:
319     foo:
320       script: foo
321       script_version: main
322       script_parameters:
323         input:
324           required: true
325           dataclass: Collection
326           value: b519d9cb706a29fc7ea24dbea2f05851+93
327
328 new_pipeline_in_publicly_accessible_project_but_other_objects_elsewhere:
329   uuid: zzzzz-d1hrv-newsharenotobjs
330   owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0
331   name: Pipeline in New state in public project with objects elsewhere
332   pipeline_template_uuid: zzzzz-p5p6p-aox0k0ofxrystgw
333   state: New
334   created_at: 2014-09-15 12:00:00
335   components:
336     foo:
337       script: foo
338       script_version: main
339       script_parameters:
340         input:
341           required: true
342           dataclass: Collection
343           value: zzzzz-4zz18-bv31uwvy3neko21
344
345 new_pipeline_in_publicly_accessible_project_with_dataclass_file_and_other_objects_elsewhere:
346   uuid: zzzzz-d1hrv-newsharenotfile
347   owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0
348   name: Pipeline in public project in New state with file type data class with objects elsewhere
349   pipeline_template_uuid: zzzzz-p5p6p-aox0k0ofxrystgw
350   state: New
351   created_at: 2014-09-15 12:00:00
352   components:
353     foo:
354       script: foo
355       script_version: main
356       script_parameters:
357         input:
358           required: true
359           dataclass: File
360           value: zzzzz-4zz18-bv31uwvy3neko21/bar
361
362 pipeline_in_running_state:
363   name: running_with_job
364   uuid: zzzzz-d1hrv-runningpipeline
365   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
366   created_at: <%= 3.1.minute.ago.to_s(:db) %>
367   started_at: <%= 3.1.minute.ago.to_s(:db) %>
368   state: RunningOnServer
369   components:
370    foo:
371     script: foo
372     script_version: main
373     script_parameters: {}
374     job:
375       uuid: zzzzz-8i9sb-pshmckwoma9plh7
376       script_version: main
377
378 running_pipeline_with_complete_job:
379   uuid: zzzzz-d1hrv-partdonepipelin
380   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
381   state: RunningOnServer
382   created_at: <%= 15.minute.ago.to_s(:db) %>
383   components:
384    previous:
385     job:
386       uuid: zzzzz-8i9sb-cjs4pklxxjykqqq
387       log: zzzzz-4zz18-op4e2lbej01tcvu
388    running:
389     job:
390       uuid: zzzzz-8i9sb-pshmckwoma9plh7
391
392 complete_pipeline_with_two_jobs:
393   uuid: zzzzz-d1hrv-twodonepipeline
394   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
395   state: Complete
396   created_at: <%= 3.minute.ago.to_s(:db) %>
397   started_at: <%= 2.minute.ago.to_s(:db) %>
398   finished_at: <%= 1.minute.ago.to_s(:db) %>
399   components:
400    ancient:
401     job:
402       uuid: zzzzz-8i9sb-ahd7cie8jah9qui
403       log: zzzzz-4zz18-op4e2lbej01tcvu
404    previous:
405     job:
406       uuid: zzzzz-8i9sb-cjs4pklxxjykqqq
407       log: zzzzz-4zz18-op4e2lbej01tcvu
408
409 failed_pipeline_with_two_jobs:
410   uuid: zzzzz-d1hrv-twofailpipeline
411   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
412   created_at: <%= 55.minute.ago.to_s(:db) %>
413   state: Failed
414   components:
415    ancient:
416     job:
417       uuid: zzzzz-8i9sb-ahd7cie8jah9qui
418       log: zzzzz-4zz18-op4e2lbej01tcvu
419    previous:
420     job:
421       uuid: zzzzz-8i9sb-cjs4pklxxjykqqq
422       log: zzzzz-4zz18-op4e2lbej01tcvu
423
424 # This pipeline is a child of another running job and has it's own running children
425 job_child_pipeline_with_components_at_level_2:
426   state: RunningOnServer
427   uuid: zzzzz-d1hrv-picomponentsl02
428   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
429   created_at: <%= 12.hour.ago.to_s(:db) %>
430   started_at: <%= 12.hour.ago.to_s(:db) %>
431   components:
432    foo:
433     script: foo
434     script_version: main
435     script_parameters: {}
436     job:
437       uuid: zzzzz-8i9sb-job1atlevel3noc
438       script_version: main
439       created_at: <%= 12.hour.ago.to_s(:db) %>
440       started_at: <%= 12.hour.ago.to_s(:db) %>
441       state: Running
442       tasks_summary:
443         failed: 0
444         todo: 0
445         running: 1
446         done: 1
447    bar:
448     script: bar
449     script_version: main
450     script_parameters: {}
451     job:
452       uuid: zzzzz-8i9sb-job2atlevel3noc
453       script_version: main
454       created_at: <%= 12.hour.ago.to_s(:db) %>
455       started_at: <%= 12.hour.ago.to_s(:db) %>
456       state: Running
457       tasks_summary:
458         failed: 0
459         todo: 1
460         running: 2
461         done: 3
462
463 # Test Helper trims the rest of the file
464
465 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper
466
467 # pipelines in project_with_10_pipelines
468 <% for i in 1..10 do %>
469 pipeline_<%=i%>_of_10:
470   name: pipeline_<%= i %>
471   uuid: zzzzz-d1hrv-10pipelines0<%= i.to_s.rjust(3, '0') %>
472   owner_uuid: zzzzz-j7d0g-000010pipelines
473   created_at: <%= (2*(i-1)).hour.ago.to_s(:db) %>
474   started_at: <%= (2*(i-1)).hour.ago.to_s(:db) %>
475   finished_at: <%= (i-1).minute.ago.to_s(:db) %>
476   state: Failed
477   components:
478     foo:
479       script: foo
480       script_version: main
481       script_parameters:
482         input:
483           required: true
484           dataclass: Collection
485           title: foo instance input
486       job:
487         state: Failed
488 <% end %>
489
490 # pipelines in project_with_2_pipelines_and_60_crs
491 <% for i in 1..2 do %>
492 pipeline_<%=i%>_of_2_pipelines_and_60_crs:
493   name: pipeline_<%= i %>
494   state: New
495   uuid: zzzzz-d1hrv-abcgneyn6brx<%= i.to_s.rjust(3, '0') %>
496   owner_uuid: zzzzz-j7d0g-nnncrspipelines
497   created_at: <%= i.minute.ago.to_s(:db) %>
498   components:
499     foo:
500       script: foo
501       script_version: main
502       script_parameters:
503         input:
504           required: true
505           dataclass: Collection
506           title: foo instance input
507 <% end %>
508
509 # pipelines in project_with_25_pipelines
510 <% for i in 1..25 do %>
511 pipeline_<%=i%>_of_25:
512   name: pipeline_<%=i%>
513   state: Failed
514   uuid: zzzzz-d1hrv-25pipelines0<%= i.to_s.rjust(3, '0') %>
515   owner_uuid: zzzzz-j7d0g-000025pipelines
516   created_at: <%= i.hour.ago.to_s(:db) %>
517   started_at: <%= i.hour.ago.to_s(:db) %>
518   finished_at: <%= i.minute.ago.to_s(:db) %>
519   components:
520     foo:
521       script: foo
522       script_version: main
523       script_parameters:
524         input:
525           required: true
526           dataclass: Collection
527           title: foo instance input
528 <% end %>
529
530 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper