1 # Copyright (c) 2021 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}'
50 executor-arch: 'x86_64'
51 # [end] VPP-CHECKSTYLE-X86_64 PROJECT
55 # NOTE: The list of supported branches for each OS are maintained
56 # in .../ci-management/docker/scripts/lib_vpp.sh
57 # The job configuration must be derived from that list, thus
58 # modifications to both should be made at the same time.
59 # Since x86_64 is the primary development architecture, this
60 # project definition should be identical to the docker image
61 # build scripts. Other architectures may be a subset.
65 - 'vpp-verify-{stream}-{os}-{executor-arch}'
66 - 'vpp-merge-{stream}-{os}-{executor-arch}'
68 make-parallel-jobs: '4'
69 make-test-os: 'ubuntu-20.04'
88 executor-arch: 'x86_64'
90 # OS deprecated in master
95 # OS deprecated on 2110
98 # OS deprecated on 2202
103 # [end] VPP-X86_64 PROJECT
105 # VPP-DEBUG-X86_64 PROJECT
107 # Currently a periodic job due to intermittent failures.
108 # Limiting branches to master, since other branches
109 # may not get fixes for the intermittent failures.
112 name: vpp-debug-x86_64
114 - 'vpp-debug-verify-{stream}-{os}-{executor-arch}'
116 make-parallel-jobs: '4'
117 make-test-os: 'ubuntu-20.04'
118 comment-trigger-value: 'debug-verify'
124 periodicity: 'H * * * *'
126 executor-arch: 'x86_64'
127 # [end] VPP-DEBUG-X86_64 PROJECT
129 # VPP-GCC-X86_64 PROJECT
133 - 'vpp-gcc-verify-{stream}-{os}-{executor-arch}'
135 executor-arch: 'x86_64'
142 branch: 'stable/2106'
145 branch: 'stable/2110'
148 branch: 'stable/2202'
150 # [end] VPP-GCC-X86_64 PROJECT
152 # VPP-AARCH64 PROJECT
154 # NOTE: The list of supported branches for each OS are maintained
155 # in .../ci-management/docker/scripts/lib_vpp.sh
156 # The job configuration must be derived from that list, thus
157 # modifications to both should be made at the same time.
158 # The AARCH64 architecture is in the process of catching up
159 # with X86_64 in terms of OS coverage. Thus the jobs are
160 # a subset of those defined in the docker image build script.
164 - 'vpp-verify-{stream}-{os}-{executor-arch}'
165 - 'vpp-merge-{stream}-{os}-{executor-arch}'
167 make-parallel-jobs: '16'
168 make-test-os: 'ubuntu-20.04'
174 branch: 'stable/2106'
177 branch: 'stable/2110'
180 branch: 'stable/2202'
186 executor-arch: 'aarch64'
188 # OS deprecated in master
193 # OS deprecated in 2110
196 # OS deprecated in 2202
201 # [end] VPP-AARCH64 PROJECT
203 # VPP-CSIT-VERIFY-DEVICE PROJECT
205 name: vpp-csit-verify-device
207 - 'vpp-csit-verify-device-{stream}-{os}-{executor-arch}-{testbed-arch}':
208 make-parallel-jobs: '32'
216 branch: 'stable/2110'
219 branch: 'stable/2202'
224 executor-arch: 'x86_64'
227 executor-arch: 'aarch64'
230 # [end] VPP-CSIT-VERIFY-DEVICE PROJECT
232 # VPP-CSIT-VERIFY-PERF PROJECT
234 name: vpp-csit-verify-perf
236 - 'vpp-csit-verify-perf-{stream}-{os}-{executor-arch}-{testbed-arch}'
244 branch: 'stable/2110'
247 branch: 'stable/2202'
252 executor-arch: 'x86_64'
255 executor-arch: 'x86_64'
258 executor-arch: 'x86_64'
261 executor-arch: 'x86_64'
264 executor-arch: 'x86_64'
267 executor-arch: 'x86_64'
270 executor-arch: 'x86_64'
273 executor-arch: 'x86_64'
276 executor-arch: 'aarch64'
277 make-parallel-jobs: '16'
280 executor-arch: 'aarch64'
281 make-parallel-jobs: '16'
283 # [end] VPP-CSIT-VERIFY-PERF PROJECT
285 # VPP-CSIT-API-CRC PROJECT
287 # Only master and LTS branches are supported.
290 name: vpp-csit-api-crc
292 - 'vpp-csit-verify-api-crc-{stream}-{os}-{executor-arch}'
294 executor-arch: 'x86_64'
301 branch: 'stable/2110'
304 branch: 'stable/2202'
307 # [end] VPP-CSIT-API-CRC PROJECT
309 # LF RELENG VPP PROJECTS
314 - gerrit-info-yaml-verify
315 build-node: centos7-builder-2c-2g
324 # [end] LF RELENG VPP PROJECTS
325 # [end] PROJECT DEFINITIONS
327 # JOB TEMPLATE DEFINITIONS
329 # Please keep job templates in the same order as they are referenced
330 # in the project definitions above.
332 # VPP-CHECKSTYLE-VERIFY JOB TEMPLATE
334 name: 'vpp-checkstyle-verify-{stream}-{os}-{executor-arch}'
336 project-type: freestyle
337 node: 'builder-{os}-prod-{executor-arch}'
341 - lf-infra-properties:
342 build-days-to-keep: "{build-days-to-keep}"
344 # Please keep parameters in alphabetical order
348 - gerrit-refspec-parameter:
349 refspec: '{branch-refspec}'
356 - gerrit-trigger-scm:
357 credentials-id: 'jenkins-gerrit-credentials'
358 refspec: '$GERRIT_REFSPEC'
359 choosing-strategy: 'gerrit'
362 - fdio-infra-wrappers:
363 build-timeout: '{build-timeout}'
364 - credentials-binding:
366 credential-id: VppApiCompatNotify
367 variable: SECRET_WEBEX_TEAMS_ACCESS_TOKEN
371 server-name: 'Primary'
373 - patchset-created-event:
374 exclude-drafts: 'true'
375 exclude-trivial-rebase: 'false'
376 exclude-no-code-change: 'false'
377 - draft-published-event
378 - comment-added-contains-event:
379 comment-contains-value: 'checkstylecheck'
380 - comment-added-contains-event:
381 comment-contains-value: 'docsonly'
382 - comment-added-contains-event:
383 comment-contains-value: 'recheck'
384 - comment-added-contains-event:
385 comment-contains-value: 'reverify'
386 # Following two are to cover missing functions of drafts
387 # going to review status
388 - comment-added-contains-event:
389 comment-contains-value: 'runtest'
390 - comment-added-contains-event:
391 comment-contains-value: 'This change is ready for review'
393 - project-compare-type: 'ANT'
394 project-pattern: '{project}'
396 - branch-compare-type: 'ANT'
397 branch-pattern: '**/{branch}'
399 - compare-type: REG_EXP
400 pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
401 forbidden-file-paths:
402 - compare-type: REG_EXP
404 - compare-type: REG_EXP
405 pattern: .*extras\/emacs\/.*
406 disable-strict-forbidden-file-verification: 'true'
408 gerrit-build-notbuilt-verified-value: 0
409 gerrit-build-successful-verified-value: 1
410 # yamllint disable-line rule:line-length
411 notbuilt-message: 'Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes.'
412 # yamllint disable-line rule:line-length
413 failed-message: 'Checkstyle failed. No further verify jobs will be started.'
414 successful-message: 'checkstyle_success'
424 - ../scripts/setup_executor_env.sh
427 - ../scripts/vpp/checkstyle.sh
430 - ../scripts/vpp/test-checkstyle.sh
433 - ../scripts/vpp/api-checkstyle.sh
436 - ../scripts/vpp/commitmsg.sh
441 # [end] VPP-CHECKSTYLE-VERIFY JOB TEMPLATE
443 # VPP-VERIFY JOB TEMPLATE
445 name: 'vpp-verify-{stream}-{os}-{executor-arch}'
447 project-type: freestyle
448 node: 'builder-{os}-prod-{executor-arch}'
452 - lf-infra-properties:
453 build-days-to-keep: "{build-days-to-keep}"
455 # Please keep parameters in alphabetical order
459 - gerrit-refspec-parameter:
460 refspec: '{branch-refspec}'
461 - make-parallel-jobs-parameter:
462 make-parallel-jobs: '{make-parallel-jobs}'
463 - make-test-os-parameter:
464 make-test-os: '{make-test-os}'
473 - gerrit-trigger-scm:
474 credentials-id: 'jenkins-gerrit-credentials'
475 refspec: '$GERRIT_REFSPEC'
476 choosing-strategy: 'gerrit'
479 - fdio-infra-wrappers:
483 - gerrit-trigger-checkstyle:
490 - ../scripts/setup_executor_env.sh
493 - ../scripts/setup_vpp_ubuntu_docker_test.sh
496 - ../scripts/setup_vpp_ext_deps.sh
499 - ../scripts/vpp/build.sh
503 # [end] VPP-VERIFY JOB TEMPLATE
505 # VPP-DEBUG-VERIFY JOB TEMPLATE
507 name: 'vpp-debug-verify-{stream}-{os}-{executor-arch}'
509 project-type: freestyle
510 node: 'builder-{os}-prod-{executor-arch}'
514 - lf-infra-properties:
515 build-days-to-keep: "{build-days-to-keep}"
517 # Please keep parameters in alphabetical order
521 - gerrit-refspec-parameter:
522 refspec: '{branch-refspec}'
523 - make-parallel-jobs-parameter:
524 make-parallel-jobs: '{make-parallel-jobs}'
525 - make-test-os-parameter:
526 make-test-os: '{make-test-os}'
535 - gerrit-trigger-scm:
536 credentials-id: 'jenkins-gerrit-credentials'
537 refspec: '$GERRIT_REFSPEC'
538 choosing-strategy: 'gerrit'
541 - fdio-infra-wrappers:
542 build-timeout: '{build-timeout}'
545 - timed: '{periodicity}'
546 - gerrit-trigger-manually-triggered:
547 comment-trigger-value: '{comment-trigger-value}'
554 - ../scripts/setup_executor_env.sh
557 - ../scripts/setup_vpp_ubuntu_docker_test.sh
560 - ../scripts/setup_vpp_ext_deps.sh
563 - ../scripts/vpp/debug-build.sh
567 # [end] VPP-DEBUG-VERIFY-PERIODIC JOB TEMPLATE
569 # VPP-MERGE JOB TEMPLATE
571 name: 'vpp-merge-{stream}-{os}-{executor-arch}'
573 project-type: freestyle
574 node: 'builder-{os}-prod-{executor-arch}'
577 - lf-infra-properties:
578 build-days-to-keep: "{build-days-to-keep}"
580 # Please keep parameters in alphabetical order
584 - make-parallel-jobs-parameter:
585 make-parallel-jobs: '{make-parallel-jobs}'
586 - make-test-os-parameter:
587 make-test-os: '{make-test-os}'
596 - gerrit-trigger-scm:
597 credentials-id: 'jenkins-gerrit-credentials'
599 choosing-strategy: 'default'
602 - fdio-infra-wrappers:
606 - gerrit-trigger-patch-merged:
611 - config-file-provider:
613 - file-id: '.packagecloud'
614 target: '/root/.packagecloud'
615 - config-file-provider:
617 - file-id: 'packagecloud_api'
618 target: '/root/packagecloud_api'
621 - ../scripts/setup_executor_env.sh
624 - ../scripts/setup_vpp_ubuntu_docker_test.sh
627 - ../scripts/setup_vpp_ext_deps.sh
630 - ../scripts/vpp/build.sh
633 - ../scripts/packagecloud_push.sh
637 # [end] VPP-MERGE JOB TEMPLATE
639 # VPP-GCC-VERIFY JOB TEMPLATE
641 name: 'vpp-gcc-verify-{stream}-{os}-{executor-arch}'
643 project-type: freestyle
644 node: 'builder-{os}-prod-{executor-arch}'
648 - lf-infra-properties:
649 build-days-to-keep: "{build-days-to-keep}"
651 # Please keep parameters in alphabetical order
655 - gerrit-refspec-parameter:
656 refspec: '{branch-refspec}'
657 - make-parallel-jobs-parameter:
658 make-parallel-jobs: '{make-parallel-jobs}'
667 - gerrit-trigger-scm:
668 credentials-id: 'jenkins-gerrit-credentials'
669 refspec: '$GERRIT_REFSPEC'
670 choosing-strategy: 'gerrit'
673 - fdio-infra-wrappers:
677 - gerrit-trigger-checkstyle:
684 - ../scripts/setup_executor_env.sh
687 - ../scripts/setup_vpp_ubuntu_docker_test.sh
690 - ../scripts/setup_vpp_ext_deps.sh
693 - ../scripts/vpp/gcc-build.sh
697 # [end] VPP-GCC-VERIFY JOB TEMPLATE
699 # VPP-CSIT-VERIFY-DEVICE-PERPATCH JOB TEMPLATE
701 name: 'vpp-csit-verify-device-{stream}-{os}-{executor-arch}-{testbed-arch}'
706 <li>csit-builder-{os}-prod-{executor-arch}
708 <li>testbed architecture
714 project-type: freestyle
715 node: 'csit-builder-{os}-prod-{executor-arch}'
720 - lf-infra-properties:
721 build-days-to-keep: "{build-days-to-keep}"
723 # Please keep parameters in alphabetical order
725 - gerrit-csit-refspec-parameter
726 - gerrit-event-comment-text-parameter
727 - gerrit-event-type-parameter
730 - gerrit-refspec-parameter:
731 refspec: '{branch-refspec}'
732 - make-parallel-jobs-parameter:
733 make-parallel-jobs: '{make-parallel-jobs}'
742 - gerrit-trigger-scm:
743 credentials-id: 'jenkins-gerrit-credentials'
744 refspec: '$GERRIT_REFSPEC'
745 choosing-strategy: 'gerrit'
748 - fdio-infra-wrappers:
752 - 'gerrit-trigger-vpp-csit-devicetest-full':
755 skip-vote: '{skip-vote}'
760 - ../scripts/setup_executor_env.sh
763 - ../scripts/setup_vpp_ubuntu_docker_test.sh
766 - ../scripts/setup_vpp_ext_deps.sh
769 - ../scripts/vpp/csit-device.sh
773 # [end] VPP-CSIT-VERIFY-DEVICE-PERPATCH JOB TEMPLATE
775 # VPP-CSIT-VERIFY-PERF JOB TEMPLATE
777 name: 'vpp-csit-verify-perf-{stream}-{os}-{executor-arch}-{testbed-arch}'
782 <li>builder-{os}-prod-{executor-arch}
784 <li>testbed architecture
789 Contrary to csit-vpp job, this also measures the parent performance,
790 and fails if performance regression is detected.
791 See https://github.com/FDio/csit/blob/master/docs/cpta/methodology/perpatch_performance_tests.rst
794 project-type: freestyle
795 node: 'builder-{os}-prod-{executor-arch}'
800 - lf-infra-properties:
801 build-days-to-keep: "{build-days-to-keep}"
803 # Please keep parameters in alphabetical order
805 - csit-perf-trial-duration-parameter:
806 csit-perf-trial-duration: "10.0"
807 - csit-perf-trial-multiplicity-parameter:
808 csit-perf-trial-multiplicity: "5"
809 - gerrit-csit-refspec-parameter
810 - gerrit-event-comment-text-parameter
811 - gerrit-event-type-parameter
812 - gerrit-refspec-parameter:
813 refspec: '{branch-refspec}'
816 - make-parallel-jobs-parameter:
817 make-parallel-jobs: '{make-parallel-jobs}'
826 - gerrit-trigger-scm:
827 credentials-id: 'jenkins-gerrit-credentials'
828 refspec: '$GERRIT_REFSPEC'
829 choosing-strategy: 'gerrit'
832 - fdio-infra-wrappers-non-activity-timeout:
836 - gerrit-trigger-csit-perftest:
839 trigger-word: 'perftest-{testbed-arch}'
845 - ../scripts/setup_executor_env.sh
848 - ../scripts/setup_vpp_ubuntu_docker_test.sh
851 - ../scripts/setup_vpp_ext_deps.sh
854 - ../scripts/vpp/csit-perf.sh
858 # Can be removed when all CSIT branches use correct archive directory.
869 - ../scripts/vpp/copy_archives.sh
871 output-path: 'archives/csit_current/0/'
874 # [end] VPP-CSIT-VERIFY-PERF JOB TEMPLATE
876 # VPP-CSIT-VERIFY-API-CRC JOB TEMPLATE
878 name: 'vpp-csit-verify-api-crc-{stream}-{os}-{executor-arch}'
880 project-type: freestyle
881 node: 'builder-{os}-prod-{executor-arch}'
886 - lf-infra-properties:
887 build-days-to-keep: "{build-days-to-keep}"
889 # Please keep parameters in alphabetical order
891 # Not sure whether not failing has any useful usage,
892 # but it does not hurt to have some flexibility for future.
893 - csit-fail-on-crc-mismatch-parameter:
894 fail-on-crc-mismatch: 'True'
895 - gerrit-csit-refspec-parameter
898 - gerrit-refspec-parameter:
899 refspec: '{branch-refspec}'
906 - gerrit-trigger-scm:
907 credentials-id: 'jenkins-gerrit-credentials'
908 refspec: '$GERRIT_REFSPEC'
909 choosing-strategy: 'gerrit'
912 - fdio-infra-wrappers-non-activity-timeout:
916 - gerrit-trigger-checkstyle:
923 - ../scripts/setup_executor_env.sh
926 - ../scripts/setup_vpp_ubuntu_docker_test.sh
929 - ../scripts/vpp/check_crc.sh
930 # TODO: Add sending e-mail notifications to vpp-api-dev@lists.fd.io
934 # [end] VPP-CSIT-VERIFY-API-CRC JOB TEMPLATE
935 # [end] JOB TEMPLATE DEFINITIONS