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: 'x86_64'
234 executor-arch: 'x86_64'
237 executor-arch: 'aarch64'
238 make-parallel-jobs: '16'
241 executor-arch: 'aarch64'
242 make-parallel-jobs: '16'
245 executor-arch: 'aarch64'
246 make-parallel-jobs: '16'
248 # [end] VPP-CSIT-VERIFY-PERF PROJECT
250 # VPP-CSIT-API-CRC PROJECT
252 # Only master and LTS branches are supported.
255 name: vpp-csit-api-crc
257 - 'vpp-csit-verify-api-crc-{stream}-{os}-{executor-arch}'
259 executor-arch: 'x86_64'
266 branch: 'stable/2202'
269 branch: 'stable/2206'
272 # [end] VPP-CSIT-API-CRC PROJECT
274 # LF RELENG VPP PROJECTS
279 - gerrit-info-yaml-verify
280 build-node: centos7-builder-2c-2g
289 # [end] LF RELENG VPP PROJECTS
290 # [end] PROJECT DEFINITIONS
292 # JOB TEMPLATE DEFINITIONS
294 # Please keep job templates in the same order as they are referenced
295 # in the project definitions above.
297 # VPP-CHECKSTYLE-VERIFY JOB TEMPLATE
299 name: 'vpp-checkstyle-verify-{stream}-{os}-{executor-arch}'
301 project-type: freestyle
302 node: 'builder-{os}-prod-{executor-arch}'
306 - lf-infra-properties:
307 build-days-to-keep: "{build-days-to-keep}"
309 # Please keep parameters in alphabetical order
313 - gerrit-refspec-parameter:
314 refspec: '{branch-refspec}'
321 - gerrit-trigger-scm:
322 credentials-id: 'jenkins-gerrit-credentials'
323 refspec: '$GERRIT_REFSPEC'
324 choosing-strategy: 'gerrit'
327 - fdio-infra-wrappers:
328 build-timeout: '{build-timeout}'
329 - credentials-binding:
331 credential-id: VppApiCompatNotify
332 variable: SECRET_WEBEX_TEAMS_ACCESS_TOKEN
336 server-name: 'Primary'
338 - patchset-created-event:
339 exclude-drafts: 'true'
340 exclude-trivial-rebase: 'false'
341 exclude-no-code-change: 'false'
342 - draft-published-event
343 - comment-added-contains-event:
344 comment-contains-value: 'checkstylecheck'
345 - comment-added-contains-event:
346 comment-contains-value: 'docsonly'
347 - comment-added-contains-event:
348 comment-contains-value: 'recheck'
349 - comment-added-contains-event:
350 comment-contains-value: 'reverify'
351 # Following two are to cover missing functions of drafts
352 # going to review status
353 - comment-added-contains-event:
354 comment-contains-value: 'runtest'
355 - comment-added-contains-event:
356 comment-contains-value: 'This change is ready for review'
358 - project-compare-type: 'ANT'
359 project-pattern: '{project}'
361 - branch-compare-type: 'ANT'
362 branch-pattern: '**/{branch}'
364 - compare-type: REG_EXP
365 pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
366 forbidden-file-paths:
367 - compare-type: REG_EXP
368 pattern: .*extras\/emacs\/.*
369 disable-strict-forbidden-file-verification: 'true'
371 gerrit-build-notbuilt-verified-value: 0
372 gerrit-build-successful-verified-value: 1
373 # yamllint disable-line rule:line-length
374 notbuilt-message: 'Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes.'
375 # yamllint disable-line rule:line-length
376 failed-message: 'Checkstyle failed. No further verify jobs will be started.'
377 successful-message: 'checkstyle_success'
387 - ../scripts/setup_executor_env.sh
390 - ../scripts/vpp/checkstyle.sh
393 - ../scripts/vpp/test-checkstyle.sh
396 - ../scripts/vpp/api-checkstyle.sh
399 - ../scripts/vpp/commitmsg.sh
402 - ../scripts/vpp/docs_spell.sh
407 # [end] VPP-CHECKSTYLE-VERIFY JOB TEMPLATE
409 # VPP-VERIFY JOB TEMPLATE
411 name: 'vpp-verify-{stream}-{os}-{executor-arch}'
413 project-type: freestyle
414 node: 'builder-{os}-prod-{executor-arch}'
418 - lf-infra-properties:
419 build-days-to-keep: "{build-days-to-keep}"
421 # Please keep parameters in alphabetical order
425 - gerrit-refspec-parameter:
426 refspec: '{branch-refspec}'
427 - make-parallel-jobs-parameter:
428 make-parallel-jobs: '{make-parallel-jobs}'
429 - make-test-os-parameter:
430 make-test-os: '{make-test-os}'
439 - gerrit-trigger-scm:
440 credentials-id: 'jenkins-gerrit-credentials'
441 refspec: '$GERRIT_REFSPEC'
442 choosing-strategy: 'gerrit'
445 - fdio-infra-wrappers:
449 - gerrit-trigger-checkstyle:
456 - ../scripts/setup_executor_env.sh
459 - ../scripts/setup_vpp_ubuntu_docker_test.sh
462 - ../scripts/setup_vpp_ext_deps.sh
465 - ../scripts/vpp/build.sh
469 # [end] VPP-VERIFY JOB TEMPLATE
471 # VPP-DEBUG-VERIFY JOB TEMPLATE
473 name: 'vpp-debug-verify-{stream}-{os}-{executor-arch}'
475 project-type: freestyle
476 node: 'builder-{os}-prod-{executor-arch}'
480 - lf-infra-properties:
481 build-days-to-keep: "{build-days-to-keep}"
483 # Please keep parameters in alphabetical order
487 - gerrit-refspec-parameter:
488 refspec: '{branch-refspec}'
489 - make-parallel-jobs-parameter:
490 make-parallel-jobs: '{make-parallel-jobs}'
491 - make-test-os-parameter:
492 make-test-os: '{make-test-os}'
501 - gerrit-trigger-scm:
502 credentials-id: 'jenkins-gerrit-credentials'
503 refspec: '$GERRIT_REFSPEC'
504 choosing-strategy: 'gerrit'
507 - fdio-infra-wrappers:
508 build-timeout: '{build-timeout}'
511 - timed: '{periodicity}'
512 - gerrit-trigger-manually-triggered:
513 comment-trigger-value: '{comment-trigger-value}'
520 - ../scripts/setup_executor_env.sh
523 - ../scripts/setup_vpp_ubuntu_docker_test.sh
526 - ../scripts/setup_vpp_ext_deps.sh
529 - ../scripts/vpp/debug-build.sh
533 # [end] VPP-DEBUG-VERIFY-PERIODIC JOB TEMPLATE
535 # VPP-MERGE JOB TEMPLATE
537 name: 'vpp-merge-{stream}-{os}-{executor-arch}'
539 project-type: freestyle
540 node: 'builder-{os}-prod-{executor-arch}'
543 - lf-infra-properties:
544 build-days-to-keep: "{build-days-to-keep}"
546 # Please keep parameters in alphabetical order
550 - make-parallel-jobs-parameter:
551 make-parallel-jobs: '{make-parallel-jobs}'
552 - make-test-os-parameter:
553 make-test-os: '{make-test-os}'
562 - gerrit-trigger-scm:
563 credentials-id: 'jenkins-gerrit-credentials'
565 choosing-strategy: 'default'
568 - fdio-infra-wrappers:
572 - gerrit-trigger-patch-merged:
577 - config-file-provider:
579 - file-id: '.packagecloud'
580 target: '/root/.packagecloud'
581 - config-file-provider:
583 - file-id: 'packagecloud_api'
584 target: '/root/packagecloud_api'
587 - ../scripts/setup_executor_env.sh
590 - ../scripts/setup_vpp_ubuntu_docker_test.sh
593 - ../scripts/setup_vpp_ext_deps.sh
596 - ../scripts/vpp/build.sh
599 - ../scripts/packagecloud_push.sh
603 # [end] VPP-MERGE JOB TEMPLATE
605 # VPP-GCC-VERIFY JOB TEMPLATE
607 name: 'vpp-gcc-verify-{stream}-{os}-{executor-arch}'
609 project-type: freestyle
610 node: 'builder-{os}-prod-{executor-arch}'
614 - lf-infra-properties:
615 build-days-to-keep: "{build-days-to-keep}"
617 # Please keep parameters in alphabetical order
621 - gerrit-refspec-parameter:
622 refspec: '{branch-refspec}'
623 - make-parallel-jobs-parameter:
624 make-parallel-jobs: '{make-parallel-jobs}'
633 - gerrit-trigger-scm:
634 credentials-id: 'jenkins-gerrit-credentials'
635 refspec: '$GERRIT_REFSPEC'
636 choosing-strategy: 'gerrit'
639 - fdio-infra-wrappers:
643 - gerrit-trigger-checkstyle:
650 - ../scripts/setup_executor_env.sh
653 - ../scripts/setup_vpp_ubuntu_docker_test.sh
656 - ../scripts/setup_vpp_ext_deps.sh
659 - ../scripts/vpp/gcc-build.sh
663 # [end] VPP-GCC-VERIFY JOB TEMPLATE
665 # VPP-CSIT-VERIFY-DEVICE-PERPATCH JOB TEMPLATE
667 name: 'vpp-csit-verify-device-{stream}-{os}-{executor-arch}-{testbed-arch}'
672 <li>csit-builder-{os}-prod-{executor-arch}
674 <li>testbed architecture
680 project-type: freestyle
681 node: 'csit-builder-{os}-prod-{executor-arch}'
686 - lf-infra-properties:
687 build-days-to-keep: "{build-days-to-keep}"
689 # Please keep parameters in alphabetical order
691 - gerrit-csit-refspec-parameter
692 - gerrit-event-comment-text-parameter
693 - gerrit-event-type-parameter
696 - gerrit-refspec-parameter:
697 refspec: '{branch-refspec}'
698 - make-parallel-jobs-parameter:
699 make-parallel-jobs: '{make-parallel-jobs}'
708 - gerrit-trigger-scm:
709 credentials-id: 'jenkins-gerrit-credentials'
710 refspec: '$GERRIT_REFSPEC'
711 choosing-strategy: 'gerrit'
714 - fdio-infra-wrappers:
718 - 'gerrit-trigger-vpp-csit-devicetest-full':
721 skip-vote: '{skip-vote}'
726 - ../scripts/setup_executor_env.sh
729 - ../scripts/setup_vpp_ubuntu_docker_test.sh
732 - ../scripts/setup_vpp_ext_deps.sh
735 - ../scripts/vpp/csit-device.sh
739 # [end] VPP-CSIT-VERIFY-DEVICE-PERPATCH JOB TEMPLATE
741 # VPP-CSIT-VERIFY-PERF JOB TEMPLATE
743 name: 'vpp-csit-verify-perf-{stream}-{os}-{executor-arch}-{testbed-arch}'
748 <li>builder-{os}-prod-{executor-arch}
750 <li>testbed architecture
755 Contrary to csit-vpp job, this also measures the parent performance,
756 and fails if performance regression is detected.
757 See https://github.com/FDio/csit/blob/master/docs/cpta/methodology/perpatch_performance_tests.rst
760 project-type: freestyle
761 node: 'builder-{os}-prod-{executor-arch}'
766 - lf-infra-properties:
767 build-days-to-keep: "{build-days-to-keep}"
769 # Please keep parameters in alphabetical order
771 - csit-perf-trial-duration-parameter:
772 csit-perf-trial-duration: "10.0"
773 - csit-perf-trial-multiplicity-parameter:
774 csit-perf-trial-multiplicity: "5"
775 - gerrit-csit-refspec-parameter
776 - gerrit-event-comment-text-parameter
777 - gerrit-event-type-parameter
778 - gerrit-refspec-parameter:
779 refspec: '{branch-refspec}'
782 - make-parallel-jobs-parameter:
783 make-parallel-jobs: '{make-parallel-jobs}'
792 - gerrit-trigger-scm:
793 credentials-id: 'jenkins-gerrit-credentials'
794 refspec: '$GERRIT_REFSPEC'
795 choosing-strategy: 'gerrit'
798 - fdio-infra-wrappers-non-activity-timeout:
802 - gerrit-trigger-csit-perftest:
805 trigger-word: 'perftest-{testbed-arch}'
811 - ../scripts/setup_executor_env.sh
814 - ../scripts/setup_vpp_ubuntu_docker_test.sh
817 - ../scripts/setup_vpp_ext_deps.sh
820 - ../scripts/vpp/csit-perf.sh
824 # Can be removed when all CSIT branches use correct archive directory.
835 - ../scripts/vpp/copy_archives.sh
837 output-path: 'archives/csit_current/0/'
840 # [end] VPP-CSIT-VERIFY-PERF JOB TEMPLATE
842 # VPP-CSIT-VERIFY-API-CRC JOB TEMPLATE
844 name: 'vpp-csit-verify-api-crc-{stream}-{os}-{executor-arch}'
846 project-type: freestyle
847 node: 'builder-{os}-prod-{executor-arch}'
852 - lf-infra-properties:
853 build-days-to-keep: "{build-days-to-keep}"
855 # Please keep parameters in alphabetical order
857 # Not sure whether not failing has any useful usage,
858 # but it does not hurt to have some flexibility for future.
859 - csit-fail-on-crc-mismatch-parameter:
860 fail-on-crc-mismatch: 'True'
861 - gerrit-csit-refspec-parameter
864 - gerrit-refspec-parameter:
865 refspec: '{branch-refspec}'
872 - gerrit-trigger-scm:
873 credentials-id: 'jenkins-gerrit-credentials'
874 refspec: '$GERRIT_REFSPEC'
875 choosing-strategy: 'gerrit'
878 - fdio-infra-wrappers-non-activity-timeout:
882 - gerrit-trigger-checkstyle:
889 - ../scripts/setup_executor_env.sh
892 - ../scripts/setup_vpp_ubuntu_docker_test.sh
895 - ../scripts/vpp/check_crc.sh
896 # TODO: Add sending e-mail notifications to vpp-api-dev@lists.fd.io
900 # [end] VPP-CSIT-VERIFY-API-CRC JOB TEMPLATE
901 # [end] JOB TEMPLATE DEFINITIONS