Complete move of non-voting VPP jobs to periodic 24/31224/2
authorDave Wallace <[email protected]>
Wed, 10 Feb 2021 21:20:44 +0000 (16:20 -0500)
committerDave Wallace <[email protected]>
Thu, 11 Feb 2021 15:57:48 +0000 (10:57 -0500)
 - Original attempt to convert non-voting jobs [0] failed when
   applied while non-voting jobs were executing and was reverted.
   This patch completes the 2 part merging of [0] which disables
   non-voting job triggers.

  [0] https://gerrit.fd.io/r/c/ci-management/+/31105

 - clean up branch-refspec usage across all projects/templates

Change-Id: I17851b141f1b70893685318a503f45d45e70df88
Signed-off-by: Dave Wallace <[email protected]>
jjb/vpp/vpp.yaml

index f5e6eee..c321f04 100644 (file)
     stream:
       - master:
           branch: 'master'
+          branch-refspec: ''
           os: 'ubuntu2004'
           repo-stream-part: 'master'
-          branch-refspec: ''
       - '2009':
           branch: 'stable/2009'
+          branch-refspec: ''
           os: 'ubuntu1804'
           repo-stream-part: 'stable.2009'
-          branch-refspec: ''
           os: 'ubuntu1804'
       - '2101':
           branch: 'stable/2101'
+          branch-refspec: ''
           os: 'ubuntu1804'
           repo-stream-part: 'stable.2101'
-          branch-refspec: ''
     executor-arch: 'x86_64'
 # [end] VPP-CHECKSTYLE-X86_64 PROJECT
 
     stream:
       - master:
           branch: 'master'
-          repo-stream-part: 'master'
           branch-refspec: ''
+          repo-stream-part: 'master'
       - '2009':
           branch: 'stable/2009'
-          repo-stream-part: 'stable.2009'
           branch-refspec: ''
+          repo-stream-part: 'stable.2009'
       - '2101':
           branch: 'stable/2101'
-          repo-stream-part: 'stable.2101'
           branch-refspec: ''
+          repo-stream-part: 'stable.2101'
     os:
       - ubuntu1804:
           repo-os-part: 'ubuntu.bionic.main'
@@ -93,8 +93,8 @@
     stream:
       - '2009':
           branch: 'stable/2009'
-          repo-stream-part: 'stable.2009'
           branch-refspec: ''
+          repo-stream-part: 'stable.2009'
     os:
       - centos7:
           repo-os-part: 'centos7'
     stream:
       - master:
           branch: 'master'
-          repo-stream-part: 'master'
           branch-refspec: ''
+          repo-stream-part: 'master'
       - '2009':
           branch: 'stable/2009'
-          repo-stream-part: 'stable.2009'
           branch-refspec: ''
+          repo-stream-part: 'stable.2009'
       - '2101':
           branch: 'stable/2101'
-          repo-stream-part: 'stable.2101'
           branch-refspec: ''
+          repo-stream-part: 'stable.2101'
     os:
       - centos8:
           repo-os-part: 'centos8'
     stream:
       - master:
           branch: 'master'
+          branch-refspec: ''
           # Once per hour
           periodicity: 'H * * * *'
           repo-stream-part: 'master'
-          branch-refspec: 'refs/changes/01/31201/2'
       - '2009':
           branch: 'stable/2009'
+          branch-refspec: ''
           # Once per day
           periodicity: 'H H * * *'
           repo-stream-part: 'stable.2009'
-          branch-refspec: ''
     os:
       - ubuntu2004:
           repo-os-part: 'ubuntu.focal.main'
 #    stream:
 #      - master:
 #          branch: 'master'
-#          repo-stream-part: 'master'
 #          branch-refspec: ''
+#          repo-stream-part: 'master'
 #    os:
 #      - debian10:
 #          repo-os-part: 'buster'
     stream:
       - master:
           branch: 'master'
-          repo-stream-part: 'master'
           branch-refspec: ''
+          repo-stream-part: 'master'
       - '2009':
           branch: 'stable/2009'
-          repo-stream-part: 'stable.2009'
           branch-refspec: ''
+          repo-stream-part: 'stable.2009'
       - '2101':
           branch: 'stable/2101'
-          repo-stream-part: 'stable.2101'
           branch-refspec: ''
+          repo-stream-part: 'stable.2101'
 # [end] VPP-GCC-X86_64 PROJECT
 
 # VPP-AARCH64 PROJECT
     stream:
       - master:
           branch: 'master'
-          repo-stream-part: 'master'
           branch-refspec: ''
+          repo-stream-part: 'master'
       - '2009':
           branch: 'stable/2009'
-          repo-stream-part: 'stable.2009'
           branch-refspec: ''
+          repo-stream-part: 'stable.2009'
       - '2101':
           branch: 'stable/2101'
-          repo-stream-part: 'stable.2101'
           branch-refspec: ''
+          repo-stream-part: 'stable.2101'
     os:
       - centos8:
           repo-os-part: 'centos8'
 #    stream:
 #      - master:
 #          branch: 'master'
-#          repo-stream-part: 'master'
 #          branch-refspec: ''
+#          repo-stream-part: 'master'
 #      - '2009':
 #          branch: 'stable/2009'
-#          repo-stream-part: 'stable.2009'
 #          branch-refspec: ''
+#          repo-stream-part: 'stable.2009'
 #    os:
 #      - ubuntu2004:
 #          repo-os-part: 'ubuntu.focal.main'
     stream:
       - master:
           branch: 'master'
-          repo-stream-part: 'master'
           branch-refspec: ''
+          repo-stream-part: 'master'
     os:
       - ubuntu2004:
           repo-os-part: 'ubuntu.focal.main'
     stream:
       - master:
           branch: 'master'
+          branch-refspec: ''
           repo-stream-part: 'master'
       - '2009':
           branch: 'stable/2009'
+          branch-refspec: ''
           repo-stream-part: 'stable.2009'
       - '2101':
           branch: 'stable/2101'
+          branch-refspec: ''
           repo-stream-part: 'stable.2101'
     device-node-arch:
       - 1n-skx
     executor: 'vpp-csit-device'
     skip-vote: 'false'
     stream:
+      - master:
+          branch: 'master'
+          branch-refspec: ''
       - '2009':
           branch: 'stable/2009'
+          branch-refspec: ''
           repo-stream-part: 'stable.2009'
       - '2101':
           branch: 'stable/2101'
+          branch-refspec: ''
           repo-stream-part: 'stable.2101'
-      - master:
-          branch: 'master'
     os: ubuntu1804
 # [end] VPP-CSIT-API-CRC PROJECT
 
       - fdio-infra-wrappers:
           build-timeout: '{build-timeout}'
 
-# TODO: Uncomment and merge as part 2 of process to convert non-voting
-# jobs to periodic.
-#    triggers:
-#      - timed: '{periodicity}'
-#          skip-vote:
-#            successful: true
-#            failed: true
-#            unstable: true
-#            notbuilt: true
-#      - gerrit-trigger-manually-triggered:
-#          comment-trigger-value: '{comment-trigger-value}'
-#          name: '{project}'
-#          branch: '{branch}'
+    triggers:
+      - timed: '{periodicity}'
+      - gerrit-trigger-manually-triggered:
+          comment-trigger-value: '{comment-trigger-value}'
+          name: '{project}'
+          branch: '{branch}'
 
     builders:
       - shell:
       - gerrit-event-type-parameter
       - gerrit-parameter:
           branch: '{branch}'
-      - gerrit-refspec-parameter
+      - gerrit-refspec-parameter:
+          refspec: '{branch-refspec}'
       - make-parallel-jobs-parameter:
           make-parallel-jobs: '{make-parallel-jobs}'
       - os-parameter:
       - fdio-infra-wrappers:
           build-timeout: '90'
 
-# TODO: Uncomment and merge as part 2 of process to convert non-voting
-# jobs to periodic.
-#    triggers:
-#      - timed: '{periodicity}'
-#          skip-vote:
-#            successful: true
-#            failed: true
-#            unstable: true
-#            notbuilt: true
-#      - gerrit-trigger-manually-triggered:
-#          comment-trigger-value: '{comment-trigger-value}'
-#          name: '{project}'
-#          branch: '{branch}'
+    triggers:
+      - timed: '{periodicity}'
+      - gerrit-trigger-manually-triggered:
+          comment-trigger-value: '{comment-trigger-value}'
+          name: '{project}'
+          branch: '{branch}'
 
     builders:
       - shell:
       - gerrit-event-type-parameter
       - gerrit-parameter:
           branch: '{branch}'
-      - gerrit-refspec-parameter
+      - gerrit-refspec-parameter:
+          refspec: '{branch-refspec}'
       - make-parallel-jobs-parameter:
           make-parallel-jobs: '{make-parallel-jobs}'
       - os-parameter:
       - gerrit-csit-refspec-parameter
       - gerrit-event-comment-text-parameter
       - gerrit-event-type-parameter
-      - gerrit-refspec-parameter
+      - gerrit-refspec-parameter:
+          refspec: '{branch-refspec}'
       - gerrit-parameter:
           branch: '{branch}'
       - make-parallel-jobs-parameter:
       - gerrit-csit-refspec-parameter
       - gerrit-parameter:
           branch: '{branch}'
-      - gerrit-refspec-parameter
+      - gerrit-refspec-parameter:
+          refspec: '{branch-refspec}'
       - project-parameter:
           project: '{project}'
       - stream-parameter: