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/2106'
219 branch: 'stable/2110'
222 branch: 'stable/2202'
227 executor-arch: 'x86_64'
230 executor-arch: 'aarch64'
233 # [end] VPP-CSIT-VERIFY-DEVICE PROJECT
235 # VPP-CSIT-VERIFY-PERF PROJECT
237 name: vpp-csit-verify-perf
239 - 'vpp-csit-verify-perf-{stream}-{os}-{executor-arch}-{testbed-arch}'
247 branch: 'stable/2106'
250 branch: 'stable/2110'
253 branch: 'stable/2202'
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/2106'
304 branch: 'stable/2110'
307 branch: 'stable/2202'
310 # [end] VPP-CSIT-API-CRC PROJECT
312 # LF RELENG VPP PROJECTS
317 - gerrit-info-yaml-verify
318 build-node: centos7-builder-2c-2g
327 # [end] LF RELENG VPP PROJECTS
328 # [end] PROJECT DEFINITIONS
330 # JOB TEMPLATE DEFINITIONS
332 # Please keep job templates in the same order as they are referenced
333 # in the project definitions above.
335 # VPP-CHECKSTYLE-VERIFY JOB TEMPLATE
337 name: 'vpp-checkstyle-verify-{stream}-{os}-{executor-arch}'
339 project-type: freestyle
340 node: 'builder-{os}-prod-{executor-arch}'
344 - lf-infra-properties:
345 build-days-to-keep: "{build-days-to-keep}"
347 # Please keep parameters in alphabetical order
351 - gerrit-refspec-parameter:
352 refspec: '{branch-refspec}'
359 - gerrit-trigger-scm:
360 credentials-id: 'jenkins-gerrit-credentials'
361 refspec: '$GERRIT_REFSPEC'
362 choosing-strategy: 'gerrit'
365 - fdio-infra-wrappers:
366 build-timeout: '{build-timeout}'
367 - credentials-binding:
369 credential-id: VppApiCompatNotify
370 variable: SECRET_WEBEX_TEAMS_ACCESS_TOKEN
374 server-name: 'Primary'
376 - patchset-created-event:
377 exclude-drafts: 'true'
378 exclude-trivial-rebase: 'false'
379 exclude-no-code-change: 'false'
380 - draft-published-event
381 - comment-added-contains-event:
382 comment-contains-value: 'checkstylecheck'
383 - comment-added-contains-event:
384 comment-contains-value: 'docsonly'
385 - comment-added-contains-event:
386 comment-contains-value: 'recheck'
387 - comment-added-contains-event:
388 comment-contains-value: 'reverify'
389 # Following two are to cover missing functions of drafts
390 # going to review status
391 - comment-added-contains-event:
392 comment-contains-value: 'runtest'
393 - comment-added-contains-event:
394 comment-contains-value: 'This change is ready for review'
396 - project-compare-type: 'ANT'
397 project-pattern: '{project}'
399 - branch-compare-type: 'ANT'
400 branch-pattern: '**/{branch}'
402 - compare-type: REG_EXP
403 pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
404 forbidden-file-paths:
405 - compare-type: REG_EXP
407 - compare-type: REG_EXP
408 pattern: .*extras\/emacs\/.*
409 disable-strict-forbidden-file-verification: 'true'
411 gerrit-build-notbuilt-verified-value: 0
412 gerrit-build-successful-verified-value: 1
413 # yamllint disable-line rule:line-length
414 notbuilt-message: 'Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes.'
415 # yamllint disable-line rule:line-length
416 failed-message: 'Checkstyle failed. No further verify jobs will be started.'
417 successful-message: 'checkstyle_success'
427 - ../scripts/setup_executor_env.sh
430 - ../scripts/vpp/checkstyle.sh
433 - ../scripts/vpp/test-checkstyle.sh
436 - ../scripts/vpp/api-checkstyle.sh
439 - ../scripts/vpp/commitmsg.sh
444 # [end] VPP-CHECKSTYLE-VERIFY JOB TEMPLATE
446 # VPP-VERIFY JOB TEMPLATE
448 name: 'vpp-verify-{stream}-{os}-{executor-arch}'
450 project-type: freestyle
451 node: 'builder-{os}-prod-{executor-arch}'
455 - lf-infra-properties:
456 build-days-to-keep: "{build-days-to-keep}"
458 # Please keep parameters in alphabetical order
462 - gerrit-refspec-parameter:
463 refspec: '{branch-refspec}'
464 - make-parallel-jobs-parameter:
465 make-parallel-jobs: '{make-parallel-jobs}'
466 - make-test-os-parameter:
467 make-test-os: '{make-test-os}'
476 - gerrit-trigger-scm:
477 credentials-id: 'jenkins-gerrit-credentials'
478 refspec: '$GERRIT_REFSPEC'
479 choosing-strategy: 'gerrit'
482 - fdio-infra-wrappers:
486 - gerrit-trigger-checkstyle:
493 - ../scripts/setup_executor_env.sh
496 - ../scripts/setup_vpp_ubuntu_docker_test.sh
499 - ../scripts/setup_vpp_ext_deps.sh
502 - ../scripts/vpp/build.sh
506 # [end] VPP-VERIFY JOB TEMPLATE
508 # VPP-DEBUG-VERIFY JOB TEMPLATE
510 name: 'vpp-debug-verify-{stream}-{os}-{executor-arch}'
512 project-type: freestyle
513 node: 'builder-{os}-prod-{executor-arch}'
517 - lf-infra-properties:
518 build-days-to-keep: "{build-days-to-keep}"
520 # Please keep parameters in alphabetical order
524 - gerrit-refspec-parameter:
525 refspec: '{branch-refspec}'
526 - make-parallel-jobs-parameter:
527 make-parallel-jobs: '{make-parallel-jobs}'
528 - make-test-os-parameter:
529 make-test-os: '{make-test-os}'
538 - gerrit-trigger-scm:
539 credentials-id: 'jenkins-gerrit-credentials'
540 refspec: '$GERRIT_REFSPEC'
541 choosing-strategy: 'gerrit'
544 - fdio-infra-wrappers:
545 build-timeout: '{build-timeout}'
548 - timed: '{periodicity}'
549 - gerrit-trigger-manually-triggered:
550 comment-trigger-value: '{comment-trigger-value}'
557 - ../scripts/setup_executor_env.sh
560 - ../scripts/setup_vpp_ubuntu_docker_test.sh
563 - ../scripts/setup_vpp_ext_deps.sh
566 - ../scripts/vpp/debug-build.sh
570 # [end] VPP-DEBUG-VERIFY-PERIODIC JOB TEMPLATE
572 # VPP-MERGE JOB TEMPLATE
574 name: 'vpp-merge-{stream}-{os}-{executor-arch}'
576 project-type: freestyle
577 node: 'builder-{os}-prod-{executor-arch}'
580 - lf-infra-properties:
581 build-days-to-keep: "{build-days-to-keep}"
583 # Please keep parameters in alphabetical order
587 - make-parallel-jobs-parameter:
588 make-parallel-jobs: '{make-parallel-jobs}'
589 - make-test-os-parameter:
590 make-test-os: '{make-test-os}'
599 - gerrit-trigger-scm:
600 credentials-id: 'jenkins-gerrit-credentials'
602 choosing-strategy: 'default'
605 - fdio-infra-wrappers:
609 - gerrit-trigger-patch-merged:
614 - config-file-provider:
616 - file-id: '.packagecloud'
617 target: '/root/.packagecloud'
618 - config-file-provider:
620 - file-id: 'packagecloud_api'
621 target: '/root/packagecloud_api'
624 - ../scripts/setup_executor_env.sh
627 - ../scripts/setup_vpp_ubuntu_docker_test.sh
630 - ../scripts/setup_vpp_ext_deps.sh
633 - ../scripts/vpp/build.sh
636 - ../scripts/packagecloud_push.sh
640 # [end] VPP-MERGE JOB TEMPLATE
642 # VPP-GCC-VERIFY JOB TEMPLATE
644 name: 'vpp-gcc-verify-{stream}-{os}-{executor-arch}'
646 project-type: freestyle
647 node: 'builder-{os}-prod-{executor-arch}'
651 - lf-infra-properties:
652 build-days-to-keep: "{build-days-to-keep}"
654 # Please keep parameters in alphabetical order
658 - gerrit-refspec-parameter:
659 refspec: '{branch-refspec}'
660 - make-parallel-jobs-parameter:
661 make-parallel-jobs: '{make-parallel-jobs}'
670 - gerrit-trigger-scm:
671 credentials-id: 'jenkins-gerrit-credentials'
672 refspec: '$GERRIT_REFSPEC'
673 choosing-strategy: 'gerrit'
676 - fdio-infra-wrappers:
680 - gerrit-trigger-checkstyle:
687 - ../scripts/setup_executor_env.sh
690 - ../scripts/setup_vpp_ubuntu_docker_test.sh
693 - ../scripts/setup_vpp_ext_deps.sh
696 - ../scripts/vpp/gcc-build.sh
700 # [end] VPP-GCC-VERIFY JOB TEMPLATE
702 # VPP-CSIT-VERIFY-DEVICE-PERPATCH JOB TEMPLATE
704 name: 'vpp-csit-verify-device-{stream}-{os}-{executor-arch}-{testbed-arch}'
709 <li>csit-builder-{os}-prod-{executor-arch}
711 <li>testbed architecture
717 project-type: freestyle
718 node: 'csit-builder-{os}-prod-{executor-arch}'
723 - lf-infra-properties:
724 build-days-to-keep: "{build-days-to-keep}"
726 # Please keep parameters in alphabetical order
728 - gerrit-csit-refspec-parameter
729 - gerrit-event-comment-text-parameter
730 - gerrit-event-type-parameter
733 - gerrit-refspec-parameter:
734 refspec: '{branch-refspec}'
735 - make-parallel-jobs-parameter:
736 make-parallel-jobs: '{make-parallel-jobs}'
745 - gerrit-trigger-scm:
746 credentials-id: 'jenkins-gerrit-credentials'
747 refspec: '$GERRIT_REFSPEC'
748 choosing-strategy: 'gerrit'
751 - fdio-infra-wrappers:
755 - 'gerrit-trigger-vpp-csit-devicetest-full':
758 skip-vote: '{skip-vote}'
763 - ../scripts/setup_executor_env.sh
766 - ../scripts/setup_vpp_ubuntu_docker_test.sh
769 - ../scripts/setup_vpp_ext_deps.sh
772 - ../scripts/vpp/csit-device.sh
776 # [end] VPP-CSIT-VERIFY-DEVICE-PERPATCH JOB TEMPLATE
778 # VPP-CSIT-VERIFY-PERF JOB TEMPLATE
780 name: 'vpp-csit-verify-perf-{stream}-{os}-{executor-arch}-{testbed-arch}'
785 <li>builder-{os}-prod-{executor-arch}
787 <li>testbed architecture
792 Contrary to csit-vpp job, this also measures the parent performance,
793 and fails if performance regression is detected.
794 See https://github.com/FDio/csit/blob/master/docs/cpta/methodology/perpatch_performance_tests.rst
797 project-type: freestyle
798 node: 'builder-{os}-prod-{executor-arch}'
803 - lf-infra-properties:
804 build-days-to-keep: "{build-days-to-keep}"
806 # Please keep parameters in alphabetical order
808 - csit-perf-trial-duration-parameter:
809 csit-perf-trial-duration: "10.0"
810 - csit-perf-trial-multiplicity-parameter:
811 csit-perf-trial-multiplicity: "5"
812 - gerrit-csit-refspec-parameter
813 - gerrit-event-comment-text-parameter
814 - gerrit-event-type-parameter
815 - gerrit-refspec-parameter:
816 refspec: '{branch-refspec}'
819 - make-parallel-jobs-parameter:
820 make-parallel-jobs: '{make-parallel-jobs}'
829 - gerrit-trigger-scm:
830 credentials-id: 'jenkins-gerrit-credentials'
831 refspec: '$GERRIT_REFSPEC'
832 choosing-strategy: 'gerrit'
835 - fdio-infra-wrappers-non-activity-timeout:
839 - gerrit-trigger-csit-perftest:
842 trigger-word: 'perftest-{testbed-arch}'
848 - ../scripts/setup_executor_env.sh
851 - ../scripts/setup_vpp_ubuntu_docker_test.sh
854 - ../scripts/setup_vpp_ext_deps.sh
857 - ../scripts/vpp/csit-perf.sh
861 # Can be removed when all CSIT branches use correct archive directory.
872 - ../scripts/vpp/copy_archives.sh
874 output-path: 'archives/csit_current/0/'
877 # [end] VPP-CSIT-VERIFY-PERF JOB TEMPLATE
879 # VPP-CSIT-VERIFY-API-CRC JOB TEMPLATE
881 name: 'vpp-csit-verify-api-crc-{stream}-{os}-{executor-arch}'
883 project-type: freestyle
884 node: 'builder-{os}-prod-{executor-arch}'
889 - lf-infra-properties:
890 build-days-to-keep: "{build-days-to-keep}"
892 # Please keep parameters in alphabetical order
894 # Not sure whether not failing has any useful usage,
895 # but it does not hurt to have some flexibility for future.
896 - csit-fail-on-crc-mismatch-parameter:
897 fail-on-crc-mismatch: 'True'
898 - gerrit-csit-refspec-parameter
901 - gerrit-refspec-parameter:
902 refspec: '{branch-refspec}'
909 - gerrit-trigger-scm:
910 credentials-id: 'jenkins-gerrit-credentials'
911 refspec: '$GERRIT_REFSPEC'
912 choosing-strategy: 'gerrit'
915 - fdio-infra-wrappers-non-activity-timeout:
919 - gerrit-trigger-checkstyle:
926 - ../scripts/setup_executor_env.sh
929 - ../scripts/setup_vpp_ubuntu_docker_test.sh
932 - ../scripts/vpp/check_crc.sh
933 # TODO: Add sending e-mail notifications to vpp-api-dev@lists.fd.io
937 # [end] VPP-CSIT-VERIFY-API-CRC JOB TEMPLATE
938 # [end] JOB TEMPLATE DEFINITIONS