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'
243 executor-arch: 'x86_64'
245 # [end] VPP-CSIT-VERIFY-PERF PROJECT
247 # VPP-CSIT-API-CRC PROJECT
249 # Only master and LTS branches are supported.
252 name: vpp-csit-api-crc
254 - 'vpp-csit-verify-api-crc-{stream}-{os}-{executor-arch}'
256 executor-arch: 'x86_64'
263 branch: 'stable/2202'
266 branch: 'stable/2206'
269 # [end] VPP-CSIT-API-CRC PROJECT
271 # LF RELENG VPP PROJECTS
276 - gerrit-info-yaml-verify
277 build-node: centos7-builder-2c-2g
286 # [end] LF RELENG VPP PROJECTS
287 # [end] PROJECT DEFINITIONS
289 # JOB TEMPLATE DEFINITIONS
291 # Please keep job templates in the same order as they are referenced
292 # in the project definitions above.
294 # VPP-CHECKSTYLE-VERIFY JOB TEMPLATE
296 name: 'vpp-checkstyle-verify-{stream}-{os}-{executor-arch}'
298 project-type: freestyle
299 node: 'builder-{os}-prod-{executor-arch}'
303 - lf-infra-properties:
304 build-days-to-keep: "{build-days-to-keep}"
306 # Please keep parameters in alphabetical order
310 - gerrit-refspec-parameter:
311 refspec: '{branch-refspec}'
318 - gerrit-trigger-scm:
319 credentials-id: 'jenkins-gerrit-credentials'
320 refspec: '$GERRIT_REFSPEC'
321 choosing-strategy: 'gerrit'
324 - fdio-infra-wrappers:
325 build-timeout: '{build-timeout}'
326 - credentials-binding:
328 credential-id: VppApiCompatNotify
329 variable: SECRET_WEBEX_TEAMS_ACCESS_TOKEN
333 server-name: 'Primary'
335 - patchset-created-event:
336 exclude-drafts: 'true'
337 exclude-trivial-rebase: 'false'
338 exclude-no-code-change: 'false'
339 - draft-published-event
340 - comment-added-contains-event:
341 comment-contains-value: 'checkstylecheck'
342 - comment-added-contains-event:
343 comment-contains-value: 'docsonly'
344 - comment-added-contains-event:
345 comment-contains-value: 'recheck'
346 - comment-added-contains-event:
347 comment-contains-value: 'reverify'
348 # Following two are to cover missing functions of drafts
349 # going to review status
350 - comment-added-contains-event:
351 comment-contains-value: 'runtest'
352 - comment-added-contains-event:
353 comment-contains-value: 'This change is ready for review'
355 - project-compare-type: 'ANT'
356 project-pattern: '{project}'
358 - branch-compare-type: 'ANT'
359 branch-pattern: '**/{branch}'
361 - compare-type: REG_EXP
362 pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
363 forbidden-file-paths:
364 - compare-type: REG_EXP
365 pattern: .*extras\/emacs\/.*
366 disable-strict-forbidden-file-verification: 'true'
368 gerrit-build-notbuilt-verified-value: 0
369 gerrit-build-successful-verified-value: 1
370 # yamllint disable-line rule:line-length
371 notbuilt-message: 'Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes.'
372 # yamllint disable-line rule:line-length
373 failed-message: 'Checkstyle failed. No further verify jobs will be started.'
374 successful-message: 'checkstyle_success'
384 - ../scripts/setup_executor_env.sh
387 - ../scripts/vpp/checkstyle.sh
390 - ../scripts/vpp/test-checkstyle.sh
393 - ../scripts/vpp/api-checkstyle.sh
396 - ../scripts/vpp/commitmsg.sh
399 - ../scripts/vpp/docs_spell.sh
404 # [end] VPP-CHECKSTYLE-VERIFY JOB TEMPLATE
406 # VPP-VERIFY JOB TEMPLATE
408 name: 'vpp-verify-{stream}-{os}-{executor-arch}'
410 project-type: freestyle
411 node: 'builder-{os}-prod-{executor-arch}'
415 - lf-infra-properties:
416 build-days-to-keep: "{build-days-to-keep}"
418 # Please keep parameters in alphabetical order
422 - gerrit-refspec-parameter:
423 refspec: '{branch-refspec}'
424 - make-parallel-jobs-parameter:
425 make-parallel-jobs: '{make-parallel-jobs}'
426 - make-test-os-parameter:
427 make-test-os: '{make-test-os}'
436 - gerrit-trigger-scm:
437 credentials-id: 'jenkins-gerrit-credentials'
438 refspec: '$GERRIT_REFSPEC'
439 choosing-strategy: 'gerrit'
442 - fdio-infra-wrappers:
446 - gerrit-trigger-checkstyle:
453 - ../scripts/setup_executor_env.sh
456 - ../scripts/setup_vpp_ubuntu_docker_test.sh
459 - ../scripts/setup_vpp_ext_deps.sh
462 - ../scripts/vpp/build.sh
466 # [end] VPP-VERIFY JOB TEMPLATE
468 # VPP-DEBUG-VERIFY JOB TEMPLATE
470 name: 'vpp-debug-verify-{stream}-{os}-{executor-arch}'
472 project-type: freestyle
473 node: 'builder-{os}-prod-{executor-arch}'
477 - lf-infra-properties:
478 build-days-to-keep: "{build-days-to-keep}"
480 # Please keep parameters in alphabetical order
484 - gerrit-refspec-parameter:
485 refspec: '{branch-refspec}'
486 - make-parallel-jobs-parameter:
487 make-parallel-jobs: '{make-parallel-jobs}'
488 - make-test-os-parameter:
489 make-test-os: '{make-test-os}'
498 - gerrit-trigger-scm:
499 credentials-id: 'jenkins-gerrit-credentials'
500 refspec: '$GERRIT_REFSPEC'
501 choosing-strategy: 'gerrit'
504 - fdio-infra-wrappers:
505 build-timeout: '{build-timeout}'
508 - timed: '{periodicity}'
509 - gerrit-trigger-manually-triggered:
510 comment-trigger-value: '{comment-trigger-value}'
517 - ../scripts/setup_executor_env.sh
520 - ../scripts/setup_vpp_ubuntu_docker_test.sh
523 - ../scripts/setup_vpp_ext_deps.sh
526 - ../scripts/vpp/debug-build.sh
530 # [end] VPP-DEBUG-VERIFY-PERIODIC JOB TEMPLATE
532 # VPP-MERGE JOB TEMPLATE
534 name: 'vpp-merge-{stream}-{os}-{executor-arch}'
536 project-type: freestyle
537 node: 'builder-{os}-prod-{executor-arch}'
540 - lf-infra-properties:
541 build-days-to-keep: "{build-days-to-keep}"
543 # Please keep parameters in alphabetical order
547 - make-parallel-jobs-parameter:
548 make-parallel-jobs: '{make-parallel-jobs}'
549 - make-test-os-parameter:
550 make-test-os: '{make-test-os}'
559 - gerrit-trigger-scm:
560 credentials-id: 'jenkins-gerrit-credentials'
562 choosing-strategy: 'default'
565 - fdio-infra-wrappers:
569 - gerrit-trigger-patch-merged:
574 - config-file-provider:
576 - file-id: '.packagecloud'
577 target: '/root/.packagecloud'
578 - config-file-provider:
580 - file-id: 'packagecloud_api'
581 target: '/root/packagecloud_api'
584 - ../scripts/setup_executor_env.sh
587 - ../scripts/setup_vpp_ubuntu_docker_test.sh
590 - ../scripts/setup_vpp_ext_deps.sh
593 - ../scripts/vpp/build.sh
596 - ../scripts/packagecloud_push.sh
600 # [end] VPP-MERGE JOB TEMPLATE
602 # VPP-GCC-VERIFY JOB TEMPLATE
604 name: 'vpp-gcc-verify-{stream}-{os}-{executor-arch}'
606 project-type: freestyle
607 node: 'builder-{os}-prod-{executor-arch}'
611 - lf-infra-properties:
612 build-days-to-keep: "{build-days-to-keep}"
614 # Please keep parameters in alphabetical order
618 - gerrit-refspec-parameter:
619 refspec: '{branch-refspec}'
620 - make-parallel-jobs-parameter:
621 make-parallel-jobs: '{make-parallel-jobs}'
630 - gerrit-trigger-scm:
631 credentials-id: 'jenkins-gerrit-credentials'
632 refspec: '$GERRIT_REFSPEC'
633 choosing-strategy: 'gerrit'
636 - fdio-infra-wrappers:
640 - gerrit-trigger-checkstyle:
647 - ../scripts/setup_executor_env.sh
650 - ../scripts/setup_vpp_ubuntu_docker_test.sh
653 - ../scripts/setup_vpp_ext_deps.sh
656 - ../scripts/vpp/gcc-build.sh
660 # [end] VPP-GCC-VERIFY JOB TEMPLATE
662 # VPP-CSIT-VERIFY-DEVICE-PERPATCH JOB TEMPLATE
664 name: 'vpp-csit-verify-device-{stream}-{os}-{executor-arch}-{testbed-arch}'
669 <li>csit-builder-{os}-prod-{executor-arch}
671 <li>testbed architecture
677 project-type: freestyle
678 node: 'csit-builder-{os}-prod-{executor-arch}'
683 - lf-infra-properties:
684 build-days-to-keep: "{build-days-to-keep}"
686 # Please keep parameters in alphabetical order
688 - gerrit-csit-refspec-parameter
689 - gerrit-event-comment-text-parameter
690 - gerrit-event-type-parameter
693 - gerrit-refspec-parameter:
694 refspec: '{branch-refspec}'
695 - make-parallel-jobs-parameter:
696 make-parallel-jobs: '{make-parallel-jobs}'
705 - gerrit-trigger-scm:
706 credentials-id: 'jenkins-gerrit-credentials'
707 refspec: '$GERRIT_REFSPEC'
708 choosing-strategy: 'gerrit'
711 - fdio-infra-wrappers:
715 - 'gerrit-trigger-vpp-csit-devicetest-full':
718 skip-vote: '{skip-vote}'
723 - ../scripts/setup_executor_env.sh
726 - ../scripts/setup_vpp_ubuntu_docker_test.sh
729 - ../scripts/setup_vpp_ext_deps.sh
732 - ../scripts/vpp/csit-device.sh
736 # [end] VPP-CSIT-VERIFY-DEVICE-PERPATCH JOB TEMPLATE
738 # VPP-CSIT-VERIFY-PERF JOB TEMPLATE
740 name: 'vpp-csit-verify-perf-{stream}-{os}-{executor-arch}-{testbed-arch}'
745 <li>builder-{os}-prod-{executor-arch}
747 <li>testbed architecture
752 Contrary to csit-vpp job, this also measures the parent performance,
753 and fails if performance regression is detected.
754 See https://github.com/FDio/csit/blob/master/docs/cpta/methodology/perpatch_performance_tests.rst
757 project-type: freestyle
758 node: 'builder-{os}-prod-{executor-arch}'
763 - lf-infra-properties:
764 build-days-to-keep: "{build-days-to-keep}"
766 # Please keep parameters in alphabetical order
768 - csit-perf-trial-duration-parameter:
769 csit-perf-trial-duration: "10.0"
770 - csit-perf-trial-multiplicity-parameter:
771 csit-perf-trial-multiplicity: "5"
772 - gerrit-csit-refspec-parameter
773 - gerrit-event-comment-text-parameter
774 - gerrit-event-type-parameter
775 - gerrit-refspec-parameter:
776 refspec: '{branch-refspec}'
779 - make-parallel-jobs-parameter:
780 make-parallel-jobs: '{make-parallel-jobs}'
789 - gerrit-trigger-scm:
790 credentials-id: 'jenkins-gerrit-credentials'
791 refspec: '$GERRIT_REFSPEC'
792 choosing-strategy: 'gerrit'
795 - fdio-infra-wrappers-non-activity-timeout:
799 - gerrit-trigger-csit-perftest:
802 trigger-word: 'perftest-{testbed-arch}'
808 - ../scripts/setup_executor_env.sh
811 - ../scripts/setup_vpp_ubuntu_docker_test.sh
814 - ../scripts/setup_vpp_ext_deps.sh
817 - ../scripts/vpp/csit-perf.sh
821 # Can be removed when all CSIT branches use correct archive directory.
832 - ../scripts/vpp/copy_archives.sh
834 output-path: 'archives/csit_current/0/'
837 # [end] VPP-CSIT-VERIFY-PERF JOB TEMPLATE
839 # VPP-CSIT-VERIFY-API-CRC JOB TEMPLATE
841 name: 'vpp-csit-verify-api-crc-{stream}-{os}-{executor-arch}'
843 project-type: freestyle
844 node: 'builder-{os}-prod-{executor-arch}'
849 - lf-infra-properties:
850 build-days-to-keep: "{build-days-to-keep}"
852 # Please keep parameters in alphabetical order
854 # Not sure whether not failing has any useful usage,
855 # but it does not hurt to have some flexibility for future.
856 - csit-fail-on-crc-mismatch-parameter:
857 fail-on-crc-mismatch: 'True'
858 - gerrit-csit-refspec-parameter
861 - gerrit-refspec-parameter:
862 refspec: '{branch-refspec}'
869 - gerrit-trigger-scm:
870 credentials-id: 'jenkins-gerrit-credentials'
871 refspec: '$GERRIT_REFSPEC'
872 choosing-strategy: 'gerrit'
875 - fdio-infra-wrappers-non-activity-timeout:
879 - gerrit-trigger-checkstyle:
886 - ../scripts/setup_executor_env.sh
889 - ../scripts/setup_vpp_ubuntu_docker_test.sh
892 - ../scripts/vpp/check_crc.sh
893 # TODO: Add sending e-mail notifications to vpp-api-dev@lists.fd.io
897 # [end] VPP-CSIT-VERIFY-API-CRC JOB TEMPLATE
898 # [end] JOB TEMPLATE DEFINITIONS