1 # Copyright (c) 2022 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
6 # http://www.apache.org/licenses/LICENSE-2.0
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
17 # Please keep projects grouped in this order:
18 # vpp-x86_64, vpp-aarch64, vpp-csit
21 # - The 'branch-refspec' attribute is used for sandbox testing.
22 # Use the get_gerrit_refspec() bash function in
23 # .../ci-management/extras/bash/sandbox_test_functions.sh
24 # to query gerrit for the refspec of HEAD in a branch.
25 # TODO: see if there is a refspec that works without requiring
26 # use of get_gerrit_refspec and hand entering the result
27 # in the WebUI 'Build With Parameters' gerrit refspec field.
30 # VPP-CHECKSTYLE-X86_64 PROJECT
32 name: vpp-checkstyle-x86_64
34 - 'vpp-checkstyle-verify-{stream}-{os}-{executor-arch}'
47 executor-arch: 'x86_64'
48 # [end] VPP-CHECKSTYLE-X86_64 PROJECT
52 # NOTE: The list of supported branches for each OS are maintained
53 # in .../ci-management/docker/scripts/lib_vpp.sh
54 # The job configuration must be derived from that list, thus
55 # modifications to both should be made at the same time.
56 # Since x86_64 is the primary development architecture, this
57 # project definition should be identical to the docker image
58 # build scripts. Other architectures may be a subset.
62 - 'vpp-verify-{stream}-{os}-{executor-arch}'
63 - 'vpp-merge-{stream}-{os}-{executor-arch}'
65 make-parallel-jobs: '4'
66 make-test-os: 'ubuntu-20.04'
81 executor-arch: 'x86_64'
86 # [end] VPP-X86_64 PROJECT
88 # VPP-DEBUG-X86_64 PROJECT
90 # Currently a periodic job due to intermittent failures.
91 # Limiting branches to master, since other branches
92 # may not get fixes for the intermittent failures.
95 name: vpp-debug-x86_64
97 - 'vpp-debug-verify-{stream}-{os}-{executor-arch}'
99 make-parallel-jobs: '4'
100 make-test-os: 'ubuntu-20.04'
101 comment-trigger-value: 'debug-verify'
107 periodicity: 'H * * * *'
109 executor-arch: 'x86_64'
110 # [end] VPP-DEBUG-X86_64 PROJECT
112 # VPP-GCC-X86_64 PROJECT
116 - 'vpp-gcc-verify-{stream}-{os}-{executor-arch}'
118 executor-arch: 'x86_64'
125 branch: 'stable/2202'
128 branch: 'stable/2206'
130 # [end] VPP-GCC-X86_64 PROJECT
132 # VPP-AARCH64 PROJECT
134 # NOTE: The list of supported branches for each OS are maintained
135 # in .../ci-management/docker/scripts/lib_vpp.sh
136 # The job configuration must be derived from that list, thus
137 # modifications to both should be made at the same time.
138 # The AARCH64 architecture is in the process of catching up
139 # with X86_64 in terms of OS coverage. Thus the jobs are
140 # a subset of those defined in the docker image build script.
144 - 'vpp-verify-{stream}-{os}-{executor-arch}'
145 - 'vpp-merge-{stream}-{os}-{executor-arch}'
147 make-parallel-jobs: '16'
148 make-test-os: 'ubuntu-20.04'
154 branch: 'stable/2202'
157 branch: 'stable/2206'
161 executor-arch: 'aarch64'
162 # [end] VPP-AARCH64 PROJECT
164 # VPP-CSIT-VERIFY-DEVICE PROJECT
166 name: vpp-csit-verify-device
168 - 'vpp-csit-verify-device-{stream}-{os}-{executor-arch}-{testbed-arch}':
169 make-parallel-jobs: '32'
177 branch: 'stable/2202'
180 branch: 'stable/2206'
185 executor-arch: 'x86_64'
188 executor-arch: 'aarch64'
191 # [end] VPP-CSIT-VERIFY-DEVICE PROJECT
193 # VPP-CSIT-VERIFY-PERF PROJECT
195 name: vpp-csit-verify-perf
197 - 'vpp-csit-verify-perf-{stream}-{os}-{executor-arch}-{testbed-arch}'
205 branch: 'stable/2202'
208 branch: 'stable/2206'
213 executor-arch: 'x86_64'
216 executor-arch: 'x86_64'
219 executor-arch: 'x86_64'
222 executor-arch: 'x86_64'
225 executor-arch: 'x86_64'
228 executor-arch: 'x86_64'
231 executor-arch: 'aarch64'
232 make-parallel-jobs: '16'
235 executor-arch: 'aarch64'
236 make-parallel-jobs: '16'
239 executor-arch: 'aarch64'
240 make-parallel-jobs: '16'
242 # [end] VPP-CSIT-VERIFY-PERF PROJECT
244 # VPP-CSIT-API-CRC PROJECT
246 # Only master and LTS branches are supported.
249 name: vpp-csit-api-crc
251 - 'vpp-csit-verify-api-crc-{stream}-{os}-{executor-arch}'
253 executor-arch: 'x86_64'
260 branch: 'stable/2202'
263 branch: 'stable/2206'
266 # [end] VPP-CSIT-API-CRC PROJECT
268 # LF RELENG VPP PROJECTS
273 - gerrit-info-yaml-verify
274 build-node: centos7-builder-2c-2g
283 # [end] LF RELENG VPP PROJECTS
284 # [end] PROJECT DEFINITIONS
286 # JOB TEMPLATE DEFINITIONS
288 # Please keep job templates in the same order as they are referenced
289 # in the project definitions above.
291 # VPP-CHECKSTYLE-VERIFY JOB TEMPLATE
293 name: 'vpp-checkstyle-verify-{stream}-{os}-{executor-arch}'
295 project-type: freestyle
296 node: 'builder-{os}-prod-{executor-arch}'
300 - lf-infra-properties:
301 build-days-to-keep: "{build-days-to-keep}"
303 # Please keep parameters in alphabetical order
307 - gerrit-refspec-parameter:
308 refspec: '{branch-refspec}'
315 - gerrit-trigger-scm:
316 credentials-id: 'jenkins-gerrit-credentials'
317 refspec: '$GERRIT_REFSPEC'
318 choosing-strategy: 'gerrit'
321 - fdio-infra-wrappers:
322 build-timeout: '{build-timeout}'
323 - credentials-binding:
325 credential-id: VppApiCompatNotify
326 variable: SECRET_WEBEX_TEAMS_ACCESS_TOKEN
330 server-name: 'Primary'
332 - patchset-created-event:
333 exclude-drafts: 'true'
334 exclude-trivial-rebase: 'false'
335 exclude-no-code-change: 'false'
336 - draft-published-event
337 - comment-added-contains-event:
338 comment-contains-value: 'checkstylecheck'
339 - comment-added-contains-event:
340 comment-contains-value: 'docsonly'
341 - comment-added-contains-event:
342 comment-contains-value: 'recheck'
343 - comment-added-contains-event:
344 comment-contains-value: 'reverify'
345 # Following two are to cover missing functions of drafts
346 # going to review status
347 - comment-added-contains-event:
348 comment-contains-value: 'runtest'
349 - comment-added-contains-event:
350 comment-contains-value: 'This change is ready for review'
352 - project-compare-type: 'ANT'
353 project-pattern: '{project}'
355 - branch-compare-type: 'ANT'
356 branch-pattern: '**/{branch}'
358 - compare-type: REG_EXP
359 pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
360 forbidden-file-paths:
361 - compare-type: REG_EXP
362 pattern: .*extras\/emacs\/.*
363 disable-strict-forbidden-file-verification: 'true'
365 gerrit-build-notbuilt-verified-value: 0
366 gerrit-build-successful-verified-value: 1
367 # yamllint disable-line rule:line-length
368 notbuilt-message: 'Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes.'
369 # yamllint disable-line rule:line-length
370 failed-message: 'Checkstyle failed. No further verify jobs will be started.'
371 successful-message: 'checkstyle_success'
381 - ../scripts/setup_executor_env.sh
384 - ../scripts/vpp/checkstyle.sh
387 - ../scripts/vpp/test-checkstyle.sh
390 - ../scripts/vpp/api-checkstyle.sh
393 - ../scripts/vpp/commitmsg.sh
396 - ../scripts/vpp/docs_spell.sh
401 # [end] VPP-CHECKSTYLE-VERIFY JOB TEMPLATE
403 # VPP-VERIFY JOB TEMPLATE
405 name: 'vpp-verify-{stream}-{os}-{executor-arch}'
407 project-type: freestyle
408 node: 'builder-{os}-prod-{executor-arch}'
412 - lf-infra-properties:
413 build-days-to-keep: "{build-days-to-keep}"
415 # Please keep parameters in alphabetical order
419 - gerrit-refspec-parameter:
420 refspec: '{branch-refspec}'
421 - make-parallel-jobs-parameter:
422 make-parallel-jobs: '{make-parallel-jobs}'
423 - make-test-os-parameter:
424 make-test-os: '{make-test-os}'
433 - gerrit-trigger-scm:
434 credentials-id: 'jenkins-gerrit-credentials'
435 refspec: '$GERRIT_REFSPEC'
436 choosing-strategy: 'gerrit'
439 - fdio-infra-wrappers:
443 - gerrit-trigger-checkstyle:
450 - ../scripts/setup_executor_env.sh
453 - ../scripts/setup_vpp_ubuntu_docker_test.sh
456 - ../scripts/setup_vpp_ext_deps.sh
459 - ../scripts/vpp/build.sh
463 # [end] VPP-VERIFY JOB TEMPLATE
465 # VPP-DEBUG-VERIFY JOB TEMPLATE
467 name: 'vpp-debug-verify-{stream}-{os}-{executor-arch}'
469 project-type: freestyle
470 node: 'builder-{os}-prod-{executor-arch}'
474 - lf-infra-properties:
475 build-days-to-keep: "{build-days-to-keep}"
477 # Please keep parameters in alphabetical order
481 - gerrit-refspec-parameter:
482 refspec: '{branch-refspec}'
483 - make-parallel-jobs-parameter:
484 make-parallel-jobs: '{make-parallel-jobs}'
485 - make-test-os-parameter:
486 make-test-os: '{make-test-os}'
495 - gerrit-trigger-scm:
496 credentials-id: 'jenkins-gerrit-credentials'
497 refspec: '$GERRIT_REFSPEC'
498 choosing-strategy: 'gerrit'
501 - fdio-infra-wrappers:
502 build-timeout: '{build-timeout}'
505 - timed: '{periodicity}'
506 - gerrit-trigger-manually-triggered:
507 comment-trigger-value: '{comment-trigger-value}'
514 - ../scripts/setup_executor_env.sh
517 - ../scripts/setup_vpp_ubuntu_docker_test.sh
520 - ../scripts/setup_vpp_ext_deps.sh
523 - ../scripts/vpp/debug-build.sh
527 # [end] VPP-DEBUG-VERIFY-PERIODIC JOB TEMPLATE
529 # VPP-MERGE JOB TEMPLATE
531 name: 'vpp-merge-{stream}-{os}-{executor-arch}'
533 project-type: freestyle
534 node: 'builder-{os}-prod-{executor-arch}'
537 - lf-infra-properties:
538 build-days-to-keep: "{build-days-to-keep}"
540 # Please keep parameters in alphabetical order
544 - make-parallel-jobs-parameter:
545 make-parallel-jobs: '{make-parallel-jobs}'
546 - make-test-os-parameter:
547 make-test-os: '{make-test-os}'
556 - gerrit-trigger-scm:
557 credentials-id: 'jenkins-gerrit-credentials'
559 choosing-strategy: 'default'
562 - fdio-infra-wrappers:
566 - gerrit-trigger-patch-merged:
571 - config-file-provider:
573 - file-id: '.packagecloud'
574 target: '/root/.packagecloud'
575 - config-file-provider:
577 - file-id: 'packagecloud_api'
578 target: '/root/packagecloud_api'
581 - ../scripts/setup_executor_env.sh
584 - ../scripts/setup_vpp_ubuntu_docker_test.sh
587 - ../scripts/setup_vpp_ext_deps.sh
590 - ../scripts/vpp/build.sh
593 - ../scripts/packagecloud_push.sh
597 # [end] VPP-MERGE JOB TEMPLATE
599 # VPP-GCC-VERIFY JOB TEMPLATE
601 name: 'vpp-gcc-verify-{stream}-{os}-{executor-arch}'
603 project-type: freestyle
604 node: 'builder-{os}-prod-{executor-arch}'
608 - lf-infra-properties:
609 build-days-to-keep: "{build-days-to-keep}"
611 # Please keep parameters in alphabetical order
615 - gerrit-refspec-parameter:
616 refspec: '{branch-refspec}'
617 - make-parallel-jobs-parameter:
618 make-parallel-jobs: '{make-parallel-jobs}'
627 - gerrit-trigger-scm:
628 credentials-id: 'jenkins-gerrit-credentials'
629 refspec: '$GERRIT_REFSPEC'
630 choosing-strategy: 'gerrit'
633 - fdio-infra-wrappers:
637 - gerrit-trigger-checkstyle:
644 - ../scripts/setup_executor_env.sh
647 - ../scripts/setup_vpp_ubuntu_docker_test.sh
650 - ../scripts/setup_vpp_ext_deps.sh
653 - ../scripts/vpp/gcc-build.sh
657 # [end] VPP-GCC-VERIFY JOB TEMPLATE
659 # VPP-CSIT-VERIFY-DEVICE-PERPATCH JOB TEMPLATE
661 name: 'vpp-csit-verify-device-{stream}-{os}-{executor-arch}-{testbed-arch}'
666 <li>csit-builder-{os}-prod-{executor-arch}
668 <li>testbed architecture
674 project-type: freestyle
675 node: 'csit-builder-{os}-prod-{executor-arch}'
680 - lf-infra-properties:
681 build-days-to-keep: "{build-days-to-keep}"
683 # Please keep parameters in alphabetical order
685 - gerrit-csit-refspec-parameter
686 - gerrit-event-comment-text-parameter
687 - gerrit-event-type-parameter
690 - gerrit-refspec-parameter:
691 refspec: '{branch-refspec}'
692 - make-parallel-jobs-parameter:
693 make-parallel-jobs: '{make-parallel-jobs}'
702 - gerrit-trigger-scm:
703 credentials-id: 'jenkins-gerrit-credentials'
704 refspec: '$GERRIT_REFSPEC'
705 choosing-strategy: 'gerrit'
708 - fdio-infra-wrappers:
712 - 'gerrit-trigger-vpp-csit-devicetest-full':
715 skip-vote: '{skip-vote}'
720 - ../scripts/setup_executor_env.sh
723 - ../scripts/setup_vpp_ubuntu_docker_test.sh
726 - ../scripts/setup_vpp_ext_deps.sh
729 - ../scripts/vpp/csit-device.sh
733 # [end] VPP-CSIT-VERIFY-DEVICE-PERPATCH JOB TEMPLATE
735 # VPP-CSIT-VERIFY-PERF JOB TEMPLATE
737 name: 'vpp-csit-verify-perf-{stream}-{os}-{executor-arch}-{testbed-arch}'
742 <li>builder-{os}-prod-{executor-arch}
744 <li>testbed architecture
749 Contrary to csit-vpp job, this also measures the parent performance,
750 and fails if performance regression is detected.
751 See https://github.com/FDio/csit/blob/master/docs/cpta/methodology/perpatch_performance_tests.rst
754 project-type: freestyle
755 node: 'builder-{os}-prod-{executor-arch}'
760 - lf-infra-properties:
761 build-days-to-keep: "{build-days-to-keep}"
763 # Please keep parameters in alphabetical order
765 - csit-perf-trial-duration-parameter:
766 csit-perf-trial-duration: "10.0"
767 - csit-perf-trial-multiplicity-parameter:
768 csit-perf-trial-multiplicity: "5"
769 - gerrit-csit-refspec-parameter
770 - gerrit-event-comment-text-parameter
771 - gerrit-event-type-parameter
772 - gerrit-refspec-parameter:
773 refspec: '{branch-refspec}'
776 - make-parallel-jobs-parameter:
777 make-parallel-jobs: '{make-parallel-jobs}'
786 - gerrit-trigger-scm:
787 credentials-id: 'jenkins-gerrit-credentials'
788 refspec: '$GERRIT_REFSPEC'
789 choosing-strategy: 'gerrit'
792 - fdio-infra-wrappers-non-activity-timeout:
796 - gerrit-trigger-csit-perftest:
799 trigger-word: 'perftest-{testbed-arch}'
805 - ../scripts/setup_executor_env.sh
808 - ../scripts/setup_vpp_ubuntu_docker_test.sh
811 - ../scripts/setup_vpp_ext_deps.sh
814 - ../scripts/vpp/csit-perf.sh
818 # Can be removed when all CSIT branches use correct archive directory.
829 - ../scripts/vpp/copy_archives.sh
831 output-path: 'archives/csit_current/0/'
834 # [end] VPP-CSIT-VERIFY-PERF JOB TEMPLATE
836 # VPP-CSIT-VERIFY-API-CRC JOB TEMPLATE
838 name: 'vpp-csit-verify-api-crc-{stream}-{os}-{executor-arch}'
840 project-type: freestyle
841 node: 'builder-{os}-prod-{executor-arch}'
846 - lf-infra-properties:
847 build-days-to-keep: "{build-days-to-keep}"
849 # Please keep parameters in alphabetical order
851 # Not sure whether not failing has any useful usage,
852 # but it does not hurt to have some flexibility for future.
853 - csit-fail-on-crc-mismatch-parameter:
854 fail-on-crc-mismatch: 'True'
855 - gerrit-csit-refspec-parameter
858 - gerrit-refspec-parameter:
859 refspec: '{branch-refspec}'
866 - gerrit-trigger-scm:
867 credentials-id: 'jenkins-gerrit-credentials'
868 refspec: '$GERRIT_REFSPEC'
869 choosing-strategy: 'gerrit'
872 - fdio-infra-wrappers-non-activity-timeout:
876 - gerrit-trigger-checkstyle:
883 - ../scripts/setup_executor_env.sh
886 - ../scripts/setup_vpp_ubuntu_docker_test.sh
889 - ../scripts/vpp/check_crc.sh
890 # TODO: Add sending e-mail notifications to vpp-api-dev@lists.fd.io
894 # [end] VPP-CSIT-VERIFY-API-CRC JOB TEMPLATE
895 # [end] JOB TEMPLATE DEFINITIONS