forked from cloudfoundry/persi-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmapfs-release.yml
1246 lines (1178 loc) · 36.8 KB
/
mapfs-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
# This pipeline is set automatically, any non-committed changes will be lost.
#
# To set the pipeline, run:
# fly -t cryo-runway set-pipeline -p mapfs-release -c mapfs-release.yml
#
# ************************************
# Secrets we need to run this pipeline
# ************************************
cerberus_secrets:
#! gcr_viewer_key was needed on 2024-03-20 for getting concourse container images from our GCR instance. Generated by using personal creds to log into the mapbu-cryogenics google cloud project.
- &gcr_viewer_key ((gcr.viewer_key))
#! as of 2024-03-18 github creds are required to access various repos used in this CI. most importantly for autobumping and releasing the bosh release. They live in lastpass ( and cerberus )
- &github-ssh-key ((github.ssh_key))
- &github-access-token ((github.access_token))
- &github-user ((github.user))
- &github-email ((github.email))
#! as of 23/04/2024 gchat webhook is used to send us ci status messages. It was created in gchat space settings after logging in with personal creds
- &gchat_webhook ((gchat-webhook.url))
#! aws uploader role was needed on 2024-03-20 for uploading blobs to the aws s3 blobstore of the release. It was generated by creating a Service Request for a switch role user for the cryogenics account
- &aws-uploader-role-id ((aws/mapfs-uploader.role_id))
- &aws-uploader-role-secret ((aws/mapfs-uploader.role_secret))
- &aws-uploader-role-arn ((aws/mapfs-uploader.role_arn))
- &shepherd-token ((shepherd.sa_key))
# **************
# End of secrets
# **************
number_of_retries: &number_of_retries 2
groups:
- name: test
jobs:
- claim-env-combined-nfs-mapfs-volume-release-tests
- combined-nfs-mapfs-volume-release-tests
- env-gate
- claim-env
- deploy-cf
- cats-nfs
- drats
- pats
- unclaim-env
- claim-ldap-env
- deploy-cf-with-ldap
- pats-nfs-ldap
- unclaim-ldap-env
- merge-pr
- check-for-cves
- name: bump
jobs:
- bump-libfuse
- bump-golang
- update-go-directive-for-mapfs
- update-go-directive-for-mapfs-release
- name: release
jobs:
- check-for-changes
- shipit-mapfs
- manual-bump-mapfs-patch
- manual-bump-mapfs-minor
- manual-bump-mapfs-major
resource_types:
- name: semver
source:
repository: us-west2-docker.pkg.dev/mapbu-cryogenics/dockerhub-proxy-cache/concourse/semver-resource
tag: "1.6"
username: _json_key
password: *gcr_viewer_key
type: registry-image
- name: google-chat-notify-resource
type: registry-image
source:
repository: us-west2-docker.pkg.dev/mapbu-cryogenics/dockerhub-proxy-cache/springio/google-chat-notify-resource
username: _json_key
password: *gcr_viewer_key
tag: 0.0.1-SNAPSHOT
- name: git
type: registry-image
source:
repository: us-west2-docker.pkg.dev/mapbu-cryogenics/dockerhub-proxy-cache/concourse/git-resource
tag: ubuntu
username: _json_key
password: *gcr_viewer_key
- name: pcf-pool
type: registry-image
source:
repository: us-west2-docker.pkg.dev/shepherd-268822/shepherd2/concourse-resource
tag: v1
username: _json_key
password: *gcr_viewer_key
- name: pull-request
type: registry-image
source:
repository: us-west2-docker.pkg.dev/mapbu-cryogenics/concourse-resources/pr-queue-resource
username: _json_key
password: *gcr_viewer_key
resources:
- name: env-tas-xenial
icon: pool
type: pcf-pool
source:
url: https://v2.shepherd.run
service-account-key: *shepherd-token
compatibility-mode: environments-app
lease:
namespace: cryogenics
pool:
namespace: official
name: tas-2_11
- name: git-concourse-cve-scan
type: git
source:
uri: [email protected]:pivotal/concourse-cve-scan.git
branch: feat/add-vex-consideration
private_key: *github-ssh-key
- name: git-tas-vex
type: git
source:
uri: [email protected]:pivotal/tas-vex.git
branch: main
private_key: *github-ssh-key
- name: libfuse-git-release
type: github-release
source:
access_token: *github-access-token
repository: libfuse
user: libfuse
tag_filter: "fuse-(.*)"
- name: github-release-tas-cve
type: github-release
source:
access_token: *github-access-token
repository: tas-cve
user: pivotal
- name: gchat-cryo-notification
type: google-chat-notify-resource
source:
url: *gchat_webhook
- name: every-week
type: time
source:
interval: 168h # 24h*7days
- name: every-hour
type: time
icon: clock-outline
source:
interval: 1h
- name: shepherd-env
type: pcf-pool
source:
url: https://v2.shepherd.run
service-account-key: *shepherd-token
lease:
namespace: cryogenics
pool:
namespace: official
name: cfd
compatibility_mode: environments-app
debug: true
- name: persi-ci
type: git
source:
uri: https://github.com/cloudfoundry/persi-ci
branch: master
- name: nfs-volume-release
type: git
source:
branch: master
private_key: *github-ssh-key
uri: [email protected]:cloudfoundry/nfs-volume-release.git
ignore_paths:
- scripts
- name: mapfs
type: git
source:
private_key: *github-ssh-key
uri: [email protected]:cloudfoundry/mapfs.git
branch: master
- name: mapfs-write
type: git
source:
private_key: *github-ssh-key
uri: [email protected]:cloudfoundry/mapfs.git
commit_filter:
exclude:
- ;resource comment; This resource is used exclusively for pushing new changes
- name: mapfs-release
type: pull-request
source:
base_branch: master
access_token: *github-access-token
repository: cloudfoundry/mapfs-release
disable_forks: true
autosync_pr: true
- name: mapfs-release-master
type: git
source:
branch: master
private_key: *github-ssh-key
uri: [email protected]:cloudfoundry/mapfs-release.git
# Resource used to track production changes in the release job so that we don't
# trigger a release with only changes (CI, tests, etc.) that are not relevant to
# customers.
- name: mapfs-release-master-production-files-only
type: git
source:
branch: master
private_key: *github-ssh-key
uri: [email protected]:cloudfoundry/mapfs-release.git
paths:
- .final_builds
- LICENSE
- NOTICE
- config
- jobs
- packages
- releases
- src
- name: mapfs-version
type: semver
source:
access_key_id: *aws-uploader-role-id
bucket: mapfs-versions
initial_version: 1.2.4
key: current-version
region_name: us-east-1
secret_access_key: *aws-uploader-role-secret
assume_role_arn: *aws-uploader-role-arn
- name: github-release-mapfs
type: github-release
source:
user: cloudfoundry
repository: mapfs-release
drafts: true
access_token: *github-access-token
- name: cf-deployment
type: git
source:
branch: release-candidate
uri: https://github.com/cloudfoundry/cf-deployment.git
- name: cf-deployment-concourse-tasks
type: git
source:
branch: main
uri: https://github.com/cloudfoundry/cf-deployment-concourse-tasks.git
- name: cf-volume-services-acceptance-tests
type: git
source:
uri: https://github.com/cloudfoundry/cf-volume-services-acceptance-tests.git
branch: main
- name: cf-acceptance-tests
type: git
source:
branch: release-candidate
uri: https://github.com/cloudfoundry/cf-acceptance-tests.git
- name: bbr-binary-release
type: github-release
source:
owner: cloudfoundry-incubator
repository: bosh-backup-and-restore
access_token: *github-access-token
- name: disaster-recovery-acceptance-tests
type: git
source:
uri: https://github.com/cloudfoundry-incubator/disaster-recovery-acceptance-tests.git
branch: main
- name: golang-release
type: git
icon: tag
source:
uri: https://github.com/bosh-packages/golang-release.git
tag_filter: v*
- name: mapfs-release-write
icon: github
type: git
source:
private_key: *github-ssh-key
uri: [email protected]:cloudfoundry/mapfs-release.git
commit_filter:
exclude:
- ;resource comment; This resource is used exclusively for pushing new changes
- name: cryogenics-concourse-tasks
type: git
icon: github
source:
uri: [email protected]:pivotal/cryogenics-concourse-tasks.git
private_key: *github-ssh-key
branch: main
- name: image-cryogenics-essentials
icon: docker
type: registry-image
source:
repository: us-west2-docker.pkg.dev/mapbu-cryogenics/essentials/cryo-essentials
tag: latest
username: _json_key
password: *gcr_viewer_key
- name: python-docker
icon: docker
type: registry-image
source:
repository: us-west2-docker.pkg.dev/mapbu-cryogenics/dockerhub-proxy-cache/python
tag: 3.9.4
username: _json_key
password: *gcr_viewer_key
jobs:
- name: check-for-cves
plan:
- in_parallel:
- get: git-concourse-cve-scan
- get: github-release-tas-cve
- get: mapfs-release
trigger: true
- get: git-tas-vex
- task: run-scan
file: git-concourse-cve-scan/tasks/scan/scan.yml
input_mapping:
concourse-cve-scan: git-concourse-cve-scan
tas-cve: github-release-tas-cve
target-bosh-release: mapfs-release
tas-vex: git-tas-vex
params:
DRY_RUN: true
GRYPE_FAILURE_LEVEL: negligible # Can be any of: none | negligible | low | medium | high | critical
RELEASE_NAME: mapfs
RELEASE_VERSION: pre-release-cve-scan
- name: bump-libfuse
serial: true
plan:
- in_parallel:
- get: cryogenics-concourse-tasks
- get: libfuse-git-release
trigger: true
- get: mapfs-release-master
- get: image-cryogenics-essentials
- load_var: libfuse-release-version
file: libfuse-git-release/version
- task: bump-libfuse
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/deps-automation/bump-blob/task.yml
input_mapping:
distributed-package: libfuse-git-release
bosh-release: mapfs-release-master
output_mapping:
bosh-release-updated: mapfs-release-bumped
params:
AWS_ACCESS_KEY_ID: *aws-uploader-role-id
AWS_SECRET_ACCESS_KEY: *aws-uploader-role-secret
AWS_ROLE_ARN: *aws-uploader-role-arn
GIT_USERNAME: *github-user
GIT_EMAIL: *github-email
GIT_BRANCH: &libfuse-bump-branch bump-libfuse-to-v((.:libfuse-release-version))
BLOB_NAME: fuse-
BLOB_EXTENSION: .tar.gz
BLOB_DIRECTORY: fuse/
- put: mapfs-release-write
params:
repository: mapfs-release-bumped
branch: *libfuse-bump-branch
force: true # If the last PR got stuck just overwrite it with new stuff
on_success:
task: create-pull-request
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/github-automation/create-pr/task.yml
input_mapping:
source-repo: mapfs-release-write
params:
GITHUB_TOKEN: *github-access-token
BASE: master
BRANCH: *libfuse-bump-branch
TITLE: "Bump libfuse to v((.:libfuse-release-version))"
LABELS: dependencies
- name: bump-golang
serial: true
plan:
- in_parallel:
- get: cryogenics-concourse-tasks
- get: golang-release
trigger: true
- get: mapfs-release-master
- get: image-cryogenics-essentials
- load_var: golang-release-version
file: golang-release/.git/describe_ref
- task: bump-golang
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/deps-automation/bump-golang/task.yml
input_mapping:
release: mapfs-release-master
vendored-package-release: golang-release
params:
VENDORED_PACKAGE_NAME: golang-1-linux
VENDOR_UPDATES_BRANCH: &golang-vendor-branch bump-golang-vendor-((.:golang-release-version))
COMMIT_USERNAME: bump-golang CI job
COMMIT_USEREMAIL: [email protected]
AWS_ACCESS_KEY_ID: *aws-uploader-role-id
AWS_SECRET_ACCESS_KEY: *aws-uploader-role-secret
AWS_ASSUME_ROLE_ARN: *aws-uploader-role-arn
- put: mapfs-release-write
params:
repository: release-with-updated-vendored-package
branch: *golang-vendor-branch
force: true # If the last PR got stuck just overwrite it with new stuff
- try:
# We've seen cases where there are 2 or more new releases of
# golang-release which causes this job to trigger 2x or more. A PR will
# be created on the 1st build. On the following ones, it is possible
# that this task will fail as there exist already a PR (which is
# probably flowing through the pipeline). To prevent this scenario
# we're making this step best-effort.
# This also makes the job idempotent. If we re-trigger the job but if
# there are no new version of golang-release, this step will fail
# saying "Your branch is up-to-date with
# 'origin/golang-vendor-update'."
task: create-golang-vendor-pull-request
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/github-automation/create-pr/task.yml
params:
BASE: master
BRANCH: *golang-vendor-branch
LABELS: dependencies
TITLE: Update vendored package golang-1-linux
MESSAGE: "This is an automatically generated Pull Request from the Cryogenics CI Bot.\
\nI have detected a new version of [golang-release](https://github.com/bosh-packages/golang-release) and \
automatically bumped\nthis package to benefit from the latest changes.\
\nIf this does not look right, please reach out to the \
mapbu-cryogenics team.\n"
input_mapping:
source-repo: mapfs-release-write
- name: update-go-directive-for-mapfs
serial: true
plan:
- in_parallel:
- get: golang-release
trigger: true
passed:
- bump-golang
- get: cryogenics-concourse-tasks
passed:
- bump-golang
- get: mapfs
- get: image-cryogenics-essentials
- task: update-go-directive
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/tasks/bosh/update-go-directive/task.yml
input_mapping:
bosh-release-repo-with-vendored-golang: golang-release
golang-project-repo: mapfs
output_mapping:
golang-project-repo: mapfs
params:
COMMIT_USERNAME: bump-golang CI job
COMMIT_USEREMAIL: [email protected]
PATH_TO_GO_MODULE: .
- load_var: golang-release-version
file: golang-release/.git/describe_ref
- put: mapfs-write
params:
repository: mapfs
branch: &mapfs-gomod-update-branch bump-golang-vendor-((.:golang-release-version))
force: true # If the last PR got stuck just overwrite it with new stuff
- task: create-gomod-directive-update-pull-request
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/github-automation/create-pr/task.yml
params:
BASE: master
BRANCH: *mapfs-gomod-update-branch
LABELS: dependencies
TITLE: Update gomod directive
MESSAGE: |
This is an automatically generated Pull Request from the Cryogenics CI
Bot. I have detected a new version of
[golang-release](https://github.com/bosh-packages/golang-release) and
automatically updated the go mod directive for this go module. If this
does not look right, please reach out to the
mapbu-cryogenics team.
input_mapping:
source-repo: mapfs-write
- name: update-go-directive-for-mapfs-release
serial: true
plan:
- in_parallel:
- get: golang-release
trigger: true
passed:
- bump-golang
- get: cryogenics-concourse-tasks
passed:
- bump-golang
- get: mapfs-release-master
- get: image-cryogenics-essentials
- task: update-go-directive
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/tasks/bosh/update-go-directive/task.yml
input_mapping:
bosh-release-repo-with-vendored-golang: golang-release
golang-project-repo: mapfs-release-master
output_mapping:
golang-project-repo: mapfs-release-master
params:
COMMIT_USERNAME: bump-golang CI job
COMMIT_USEREMAIL: [email protected]
PATH_TO_GO_MODULE: src/bosh_release
- load_var: golang-release-version
file: golang-release/.git/describe_ref
- put: mapfs-release-write
params:
repository: mapfs-release-master
branch: &mapfs-release-gomod-update-branch bump-release-golang-vendor-((.:golang-release-version))
force: true # If the last PR got stuck just overwrite it with new stuff
- task: create-gomod-directive-update-pull-request
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/github-automation/create-pr/task.yml
params:
BASE: master
BRANCH: *mapfs-release-gomod-update-branch
LABELS: dependencies
TITLE: Update gomod directive
MESSAGE: |
This is an automatically generated Pull Request from the Cryogenics CI
Bot. I have detected a new version of
[golang-release](https://github.com/bosh-packages/golang-release) and
automatically updated the go mod directive for this go module. If this
does not look right, please reach out to the
mapbu-cryogenics team.
input_mapping:
source-repo: mapfs-release-write
- name: claim-env-combined-nfs-mapfs-volume-release-tests
plan:
- in_parallel:
fail_fast: true
steps:
- get: mapfs-release
trigger: true
- get: nfs-volume-release
- put: env-tas-xenial
params:
action: create
duration: 6h
resource: env
timeout: 6h
- name: combined-nfs-mapfs-volume-release-tests
plan:
- in_parallel:
fail_fast: true
steps:
- get: persi-ci
- get: cryogenics-concourse-tasks
- get: mapfs-release
- get: nfs-volume-release
- get: image-cryogenics-essentials
- get: env-tas-xenial
trigger: true
passed: [ claim-env-combined-nfs-mapfs-volume-release-tests ]
- task: rspec
image: image-cryogenics-essentials
file: persi-ci/scripts/ci/run-rspec.build.yml
input_mapping:
test-repo: nfs-volume-release
- in_parallel:
# we never test that the release can be upgraded in place (meaning without recreating the VM).
# This lead to a broken release because of pre-start script failing to run a 2nd time on
# the same VM. It slipped through because all of our deploy scenarios included recreating the VM
# with a new stemcell.
- task: upgrade-release-in-existing-cf
image: image-cryogenics-essentials
config:
platform: linux
inputs:
- name: env-tas-xenial
run:
path: bash
args:
- -c
- |
set -eu
set -o pipefail
. <(smith -l env-tas-xenial/metadata bosh)
export BOSH_DEPLOYMENT=$(bosh ds | grep '^cf-' | awk '{print $1}')
bosh manifest > cf.yml
cat << EOF > ops.yml
- type: replace
path: /releases/name=mapfs
value:
name: mapfs
version: latest
EOF
until [[ $(bosh releases | grep mapfs | wc -l) -gt 1 ]]; do echo "waiting for dev release to be available"; done
bosh deploy cf.yml -o ops.yml -n
- task: bosh-release-test
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/vol-service/run-bosh-release-tests-in-shepherd/task.yml
params:
STEMCELL_LINE: xenial
TEST_REPO: nfs-volume-release
input_mapping:
shepherd-env: env-tas-xenial
- task: bosh-release-test-mapfs
image: image-cryogenics-essentials
attempts: *number_of_retries
file: cryogenics-concourse-tasks/vol-service/run-bosh-release-tests-in-shepherd/task.yml
params:
STEMCELL: xenial
TEST_REPO: mapfs-release
input_mapping:
shepherd-env: env-tas-xenial
- name: env-gate
plan:
- get: env-tas-xenial
passed: [ combined-nfs-mapfs-volume-release-tests ]
- in_parallel:
fail_fast: true
steps:
- put: env-tas-xenial
params:
action: release
resource: env-tas-xenial
- get: nfs-volume-release
passed:
- combined-nfs-mapfs-volume-release-tests
- get: mapfs-release
trigger: true
passed:
- combined-nfs-mapfs-volume-release-tests
- get: every-hour
- name: claim-env
plan:
- in_parallel:
fail_fast: true
steps:
- get: persi-ci
- get: nfs-volume-release
passed:
- env-gate
- get: image-cryogenics-essentials
- get: mapfs-release
trigger: true
passed:
- env-gate
- put: shepherd-env
params:
action: create
duration: 6h
resource: shepherd-env
timeout: 6h
- put: shepherd-env
params:
action: extend
expire-in: 6h
resource: shepherd-env
- task: output-env-details
image: image-cryogenics-essentials
file: persi-ci/scripts/ci/claim-pooled-env.build.yml
input_mapping:
pooled-env: shepherd-env
- name: claim-ldap-env
plan:
- in_parallel:
fail_fast: true
steps:
- get: persi-ci
- get: image-cryogenics-essentials
- get: nfs-volume-release
passed:
- env-gate
- get: mapfs-release
trigger: true
passed:
- env-gate
- put: shepherd-env
params:
action: create
duration: 6h
resource: shepherd-env
timeout: 6h
- put: shepherd-env
params:
action: extend
expire-in: 6h
resource: shepherd-env
- task: output-env-details
image: image-cryogenics-essentials
file: persi-ci/scripts/ci/claim-pooled-env.build.yml
input_mapping:
pooled-env: shepherd-env
- name: deploy-cf
public: true
build_logs_to_retain: 100
plan:
- in_parallel:
fail_fast: true
steps:
- get: shepherd-env
passed: [ claim-env ]
trigger: true
- get: cf-deployment-concourse-tasks
- get: image-cryogenics-essentials
- get: cf-deployment
- get: persi-ci
- get: nfs-volume-release
passed: [ claim-env ]
- get: mapfs-release
passed: [ claim-env ]
- task: pin-cf-deployment-version
image: image-cryogenics-essentials
file: persi-ci/scripts/ci/pin_cf_deployment_version.build.yml
input_mapping:
toolsmiths-env: shepherd-env
- task: collect-persi-ci-ops-files
image: image-cryogenics-essentials
file: cf-deployment-concourse-tasks/collect-ops-files/task.yml
input_mapping:
base-ops-files: cf-deployment
new-ops-files: persi-ci
params:
BASE_OPS_FILE_DIR: "operations"
- task: generate-variables
image: image-cryogenics-essentials
file: persi-ci/scripts/ci/generate_variables.build.yml
input_mapping:
smith-env: shepherd-env
params:
GENERATE_NFS_VARS: true
GENERATE_SMB_VARS: false
- task: bosh-deploy-cf
image: image-cryogenics-essentials
attempts: *number_of_retries
file: persi-ci/scripts/ci/deploy-cf-with-multiple-releases.build.yml
input_mapping:
cf-deployment: cf-deployment
toolsmiths-env: shepherd-env
ops-files: collected-ops-files
vars-files: generated-vars
params:
VARS_FILES: "nfs-vars.yml"
OPS_FILES: "operations/use-compiled-releases.yml
operations/scale-to-one-az.yml
operations/enable-nfs-volume-service.yml
updated-nfs-releases.yml
operations/test/enable-nfs-test-server.yml
operations/backup-and-restore/enable-backup-restore.yml
operations/backup-and-restore/enable-restore-nfs-broker.yml
operations/experimental/fast-deploy-with-downtime-and-danger.yml"
- task: run-smoke-tests
image: image-cryogenics-essentials
file: cf-deployment-concourse-tasks/run-errand/task.yml
input_mapping:
toolsmiths-env: shepherd-env
params:
ERRAND_NAME: smoke_tests
- task: run-nfs-broker-errand
image: image-cryogenics-essentials
attempts: *number_of_retries
file: cf-deployment-concourse-tasks/run-errand/task.yml
input_mapping:
toolsmiths-env: shepherd-env
params:
ERRAND_NAME: nfsbrokerpush
INSTANCE: nfs-broker-push
- name: cats-nfs
serial_groups:
- acceptance-tests
plan:
- in_parallel:
fail_fast: true
steps:
- get: nfs-volume-release
passed: [ deploy-cf ]
- get: shepherd-env
passed: [ deploy-cf ]
trigger: true
- get: persi-ci
- get: cf-acceptance-tests
- get: cf-deployment-concourse-tasks
- get: image-cryogenics-essentials
- get: mapfs-release
passed: [ deploy-cf ]
- task: generate-cats-config
image: image-cryogenics-essentials
file: persi-ci/scripts/ci/generate_cats_config.build.yml
input_mapping:
smith-env: shepherd-env
params:
VAR_RESOLVER_SCRIPT: persi-ci/scripts/ci/cf_deployment_helpers_shp.sh
CF_USERNAME: admin
PLAN_NAME: Existing
SERVICE_NAME: nfs
- task: run-cats
image: image-cryogenics-essentials
file: cf-deployment-concourse-tasks/run-cats/task.yml
input_mapping:
integration-config: cats-config
params:
CONFIG_FILE_PATH: cats.json
- name: drats
serial: true
serial_groups:
- acceptance-tests
plan:
- in_parallel:
fail_fast: true
steps:
- get: nfs-volume-release
passed: [ deploy-cf ]
- get: bbr-binary-release
- get: disaster-recovery-acceptance-tests
- get: image-cryogenics-essentials
- get: persi-ci
- get: mapfs-release
passed: [ deploy-cf ]
- get: shepherd-env
passed: [ deploy-cf ]
trigger: true
- task: generate-integration-config
image: image-cryogenics-essentials
file: persi-ci/scripts/ci/generate-drats-integration-config.build.yml
params:
INTEGRATION_CONFIG_FILE_PATH: config/drats-nfs.json
UPDATE_INTEGRATION_CONFIG_SCRIPT: persi-ci/scripts/ci/drats-update-integration-config-shp.sh
input_mapping:
integration-configs: persi-ci
smith-env: shepherd-env
- task: drats-with-integration-config
image: image-cryogenics-essentials
file: disaster-recovery-acceptance-tests/ci/tasks/drats-with-integration-config/task.yml
privileged: true
input_mapping:
drats-integration-config: updated-integration-configs
params:
CONFIG_FILE_PATH: config/drats-nfs.json
- name: pats
serial_groups:
- acceptance-tests
plan:
- in_parallel:
fail_fast: true
steps:
- get: cf-volume-services-acceptance-tests
- get: persi-ci
- get: image-cryogenics-essentials
- get: shepherd-env
passed: [ deploy-cf ]
trigger: true
- get: nfs-volume-release
passed: [ deploy-cf ]
- get: mapfs-release
passed: [ deploy-cf ]
- task: generate-pats-config-nfs
image: image-cryogenics-essentials
file: persi-ci/scripts/ci/generate_pats_config_shp.build.yml
params:
VAR_RESOLVER_SCRIPT: persi-ci/scripts/ci/cf_deployment_helpers_shp.sh
CF_USERNAME: admin
BIND_BOGUS_CONFIG: '{\"uid\":\"1000\",\"gid\":\"1000\"}'
BIND_CONFIG: '["{\"uid\":\"1000\",\"gid\":\"1000\"}", "{\"uid\":\"1000\",\"gid\":\"1000\",\"mount\": \"/var/vcap/data/foo\"}", "{\"uid\":\"1000\",\"gid\":\"1000\", \"version\": \"3\"}", "{\"uid\":\"1000\",\"gid\":\"1000\", \"version\": \"4.0\"}", "{\"uid\":\"1000\",\"gid\":\"1000\", \"version\": \"4.1\"}", "{\"uid\":\"1000\",\"gid\":\"1000\", \"version\": \"4.2\"}"]' # yamllint disable-line rule:line-length
CREATE_BOGUS_CONFIG: '{\"share\":\"nfstestserver.service.cf.internal/export/nonexistensevol\"}'
CREATE_CONFIG: '{\"share\":\"nfstestserver.service.cf.internal/export/users\"}'
PLAN_NAME: Existing
SERVICE_NAME: nfs
input_mapping:
smith-env: shepherd-env
output_mapping:
pats-config: nfs-pats-config
- task: run-pats-nfs
image: image-cryogenics-essentials
file: persi-ci/scripts/ci/run-pats.build.yml
input_mapping:
pats-config: nfs-pats-config
attempts: *number_of_retries
params:
PARALLEL_NODES: 5
TEST_MOUNT_FAIL_LOGGING: true
TEST_MOUNT_OPTIONS: true
TEST_MULTI_CELL: true
TEST_READ_ONLY: true
- name: deploy-cf-with-ldap
public: true
build_logs_to_retain: 100
plan:
- in_parallel:
fail_fast: true
steps:
- get: shepherd-env
passed:
- claim-ldap-env
trigger: true
- get: cf-deployment-concourse-tasks
- get: cf-deployment
- get: persi-ci
- get: image-cryogenics-essentials
- get: nfs-volume-release
passed:
- claim-ldap-env
- get: mapfs-release
passed:
- claim-ldap-env
- task: pin-cf-deployment-version
image: image-cryogenics-essentials
file: persi-ci/scripts/ci/pin_cf_deployment_version.build.yml
input_mapping:
toolsmiths-env: shepherd-env
- task: collect-persi-ci-ops-files
image: image-cryogenics-essentials
file: cf-deployment-concourse-tasks/collect-ops-files/task.yml
input_mapping:
base-ops-files: cf-deployment
new-ops-files: persi-ci
params:
BASE_OPS_FILE_DIR: "operations"
- task: generate-variables
image: image-cryogenics-essentials
file: persi-ci/scripts/ci/generate_variables.build.yml
input_mapping:
smith-env: shepherd-env
params:
GENERATE_NFS_VARS: true
GENERATE_SMB_VARS: false
LDAP_HOST: "nfstestldapserver.service.cf.internal"
LDAP_SVC_USER: "cn=admin,dc=domain,dc=com"
LDAP_SVC_PASS: "secret"
LDAP_PORT: 636
LDAP_PROTO: tcp
LDAP_USER_FQDN: "ou=Users,dc=domain,dc=com"
- task: bosh-deploy-cf
image: image-cryogenics-essentials
file: persi-ci/scripts/ci/deploy-cf-with-multiple-releases.build.yml
input_mapping:
toolsmiths-env: shepherd-env
cf-deployment: cf-deployment
ops-files: collected-ops-files
vars-files: generated-vars
params:
VARS_FILES: "nfs-vars.yml"
OPS_FILES: "operations/use-compiled-releases.yml
operations/scale-to-one-az.yml
operations/enable-nfs-volume-service.yml
updated-nfs-releases.yml
operations/enable-nfs-ldap.yml
operations/test/enable-nfs-test-server.yml
operations/test/enable-nfs-test-ldapserver.yml
operations/experimental/fast-deploy-with-downtime-and-danger.yml"
- task: run-smoke-tests
image: image-cryogenics-essentials
file: cf-deployment-concourse-tasks/run-errand/task.yml
input_mapping: