diff options
author | Dave Wallace <dwallacelf@gmail.com> | 2024-09-30 10:59:13 -0400 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2024-09-30 10:59:13 -0400 |
commit | 4eeb7bb5cfd688806c96a1c0711977a20e18ebee (patch) | |
tree | 16292ac58574494b801449fccfda052197c1e313 | |
parent | 5e42d72878cf69cbfdd71633f22c7f97bd8ed546 (diff) |
chore: remove csit vpp-device jobs and scripts
Change-Id: Idcf94d0df6dc7b9d87f4cf8cb9848651c7b922fb
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
-rw-r--r-- | jjb/csit/csit-vpp-device.yaml | 259 | ||||
-rw-r--r-- | jjb/global-macros.yaml | 96 | ||||
-rwxr-xr-x | jjb/scripts/csit/device-semiweekly.sh | 51 | ||||
-rw-r--r-- | jjb/scripts/csit/device-verify.sh | 21 | ||||
-rwxr-xr-x | jjb/scripts/vpp/csit-device.sh | 41 |
5 files changed, 0 insertions, 468 deletions
diff --git a/jjb/csit/csit-vpp-device.yaml b/jjb/csit/csit-vpp-device.yaml deleted file mode 100644 index 1b2c6a19a..000000000 --- a/jjb/csit/csit-vpp-device.yaml +++ /dev/null @@ -1,259 +0,0 @@ -# Copyright (c) 2023 Cisco and/or its affiliates. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - ---- -- project: - name: csit-vpp-device - description: 'CSIT jenkins jobs.' - jobs: - - 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}' - - 'csit-vpp-device-semiweekly-{stream}-{os}-{executor-arch}-{node-arch}' - - 'csit-vpp-device-weekly-{stream}-{os}-{executor-arch}-{node-arch}' - - 'csit-vpp-device-report-coverage-{stream}-{node-arch}': - stream: - - '2410': - branch: 'rls2410' - branch-id: 'oper-rls2410' - node-arch: - - '1n-alt': - os: 'ubuntu2204' - executor-arch: 'aarch64' - make-parallel-jobs: '32' - skip-vote: 'false' - - '1n-spr': - os: 'ubuntu2204' - executor-arch: 'x86_64' - make-parallel-jobs: '32' - skip-vote: 'true' - project: 'csit' - branch: 'master' - branch-id: 'oper' - stream: - - master: - branch: 'master' - branch-id: 'oper' - - '2410': - branch: 'rls2410' - branch-id: 'oper-rls2410' - -- job-template: - name: 'csit-vpp-device-report-coverage-{stream}-{node-arch}' - - project-type: freestyle - node: 'csit-builder-{os}-prod-{executor-arch}' - concurrent: true - latest-only: false - - properties: - - lf-infra-properties: - build-days-to-keep: "{build-days-to-keep}" - - parameters: - - project-parameter: - project: '{project}' - - gerrit-parameter: - branch: '{branch}' - - make-parallel-jobs-parameter: - make-parallel-jobs: '{make-parallel-jobs}' - - os-parameter: - os: '{os}' - - gerrit-refspec-parameter: - refspec: '$GERRIT_REFSPEC' - - gerrit-event-type-parameter - - gerrit-event-comment-text-parameter - - csit-fail-on-crc-mismatch-parameter: - fail-on-crc-mismatch: 'True' - - scm: - - gerrit-trigger-scm: - credentials-id: 'jenkins-gerrit-credentials' - refspec: '$GERRIT_REFSPEC' - choosing-strategy: 'gerrit' - - wrappers: - - fdio-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - gerrit-trigger-csit-perftest: - project: '{project}' - branch: '{branch}' - trigger-word: 'csit-vpp-report-dev-{node-arch}' - skip-vote: false - - builders: - - shell: - !include-raw-escape: - - ../scripts/setup_executor_env.sh - - shell: - !include-raw-escape: - - ../scripts/csit/device-verify.sh - - publishers: - - fdio-infra-publish - -- job-template: - name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}' - - project-type: freestyle - node: 'csit-builder-{os}-prod-{executor-arch}' - concurrent: true - latest-only: false - - properties: - - lf-infra-properties: - build-days-to-keep: "{build-days-to-keep}" - - parameters: - - project-parameter: - project: '{project}' - - gerrit-parameter: - branch: '{branch}' - - make-parallel-jobs-parameter: - make-parallel-jobs: '{make-parallel-jobs}' - - os-parameter: - os: '{os}' - - gerrit-refspec-parameter: - refspec: '$GERRIT_REFSPEC' - - gerrit-event-type-parameter - - gerrit-event-comment-text-parameter - # This is an automatic verify job, part of API coverage. - # CRC checking is needed to ensure vpp crc job breaks only when intended. - # Unlikely to be removed, as this job is primary source of API coverage. - - csit-fail-on-crc-mismatch-parameter: - fail-on-crc-mismatch: 'True' - - scm: - - gerrit-trigger-scm: - credentials-id: 'jenkins-gerrit-credentials' - refspec: '$GERRIT_REFSPEC' - choosing-strategy: 'gerrit' - - wrappers: - - fdio-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - gerrit-trigger-csit-vpp-devicetest-full: - project: '{project}' - branch: '{branch}' - skip-vote: '{skip-vote}' - - builders: - - shell: - !include-raw-escape: - - ../scripts/setup_executor_env.sh - - shell: - !include-raw-escape: - - ../scripts/csit/device-verify.sh - - publishers: - - fdio-infra-publish - -- job-template: - name: 'csit-vpp-device-semiweekly-{stream}-{os}-{executor-arch}-{node-arch}' - - project-type: freestyle - node: 'csit-builder-{os}-prod-{executor-arch}' - concurrent: false - latest-only: false - - properties: - - lf-infra-properties: - build-days-to-keep: "{build-days-to-keep}" - - parameters: - - project-parameter: - project: '{project}' - - gerrit-parameter: - branch: '{branch}' - - make-parallel-jobs-parameter: - make-parallel-jobs: '{make-parallel-jobs}' - - os-parameter: - os: '{os}' - - wrappers: - - fdio-infra-wrappers-non-activity-timeout: - build-timeout: '{build-timeout}' - - triggers: - - timed: '0 4 * * 2,6' - - - gerrit-trigger-manually-triggered: - comment-trigger-value: 'csit-verify-vpp' - name: '{project}' - branch: '{branch}' - - builders: - - shell: 'echo "BRANCH_ID={branch-id}" > $WORKSPACE/variables.prop' - - inject: - properties-file: variables.prop - - shell: - !include-raw-escape: - - ../scripts/setup_executor_env.sh - - shell: - !include-raw-escape: - - ../scripts/csit/device-semiweekly.sh - - publishers: - - fdio-infra-publish - -- job-template: - name: 'csit-vpp-device-weekly-{stream}-{os}-{executor-arch}-{node-arch}' - - project-type: freestyle - node: 'csit-builder-{os}-prod-{executor-arch}' - concurrent: false - latest-only: false - - properties: - - lf-infra-properties: - build-days-to-keep: "{build-days-to-keep}" - - parameters: - - project-parameter: - project: '{project}' - - gerrit-parameter: - branch: '{branch}' - - make-parallel-jobs-parameter: - make-parallel-jobs: '{make-parallel-jobs}' - - os-parameter: - os: '{os}' - - scm: - - git-scm: - credentials-id: 'jenkins-gerrit-credentials' - branch: '{branch}' - - wrappers: - - fdio-infra-wrappers-non-activity-timeout: - build-timeout: '{build-timeout}' - - triggers: - - timed: '0 4 * * 0' - - - gerrit-trigger-manually-triggered: - comment-trigger-value: 'csit-vpp-ref-verify' - name: '{project}' - branch: '{branch}' - - builders: - - shell: - !include-raw-escape: - - ../scripts/setup_executor_env.sh - - shell: - !include-raw-escape: - - ../scripts/csit/device-verify.sh - - publishers: - - fdio-infra-publish diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml index 2de57c726..4a1fdf424 100644 --- a/jjb/global-macros.yaml +++ b/jjb/global-macros.yaml @@ -390,56 +390,6 @@ notbuilt: '{skip-vote}' - trigger: - name: gerrit-trigger-csit-vpp-devicetest-full - # Comes from CSIT, for automatic jobs running device tests with VPP builds. - # The job acts as an automatic verify job for CSIT contributions. - triggers: - - gerrit: - server-name: 'Primary' - trigger-on: - # The main way the job is triggered automatically on patch upload. - # Gated by tox job, so we do not spend resources on WiP changes. - - comment-added-contains-event: - comment-contains-value: 'tox_success' - # Manual trigger to allow testing WiP changes with selected tags. - - comment-added-contains-event: - comment-contains-value: 'csit-devicetest' - # A comment with "recheck" restarts tox job, so no condition here. - projects: - - project-compare-type: 'ANT' - project-pattern: '{project}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: '{skip-vote}' - failed: '{skip-vote}' - unstable: '{skip-vote}' - notbuilt: '{skip-vote}' - -- trigger: - name: gerrit-trigger-csit-vpp-devicetest-manual - # Comes from CSIT, for manual jobs running "device" tests with VPP builds. - # The job acts as a manual (optional) verify job for CSIT contributions. - triggers: - - gerrit: - server-name: 'Primary' - trigger-on: - - comment-added-contains-event: - comment-contains-value: 'csit-devicetest' - projects: - - project-compare-type: 'ANT' - project-pattern: '{project}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: '{skip-vote}' - failed: '{skip-vote}' - unstable: '{skip-vote}' - notbuilt: '{skip-vote}' - -- trigger: name: gerrit-trigger-manually-triggered triggers: - gerrit: @@ -598,52 +548,6 @@ failed: true unstable: true notbuilt: true - -- trigger: - name: gerrit-trigger-vpp-csit-devicetest-full - # Comes from VPP, for automated jobs running "device" tests with CSIT code. - # The job acts as an automatic verify job for VPP contributions. - triggers: - - gerrit: - server-name: 'Primary' - trigger-on: - - comment-added-contains-event: - comment-contains-value: 'checkstyle_success' - - comment-added-contains-event: - comment-contains-value: 'devicetest' - projects: - - project-compare-type: 'ANT' - project-pattern: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: '{skip-vote}' - failed: '{skip-vote}' - unstable: '{skip-vote}' - notbuilt: '{skip-vote}' - -- trigger: - name: gerrit-trigger-vpp-csit-devicetest-manual - # Comes from VPP, for manual jobs running "device" tests with CSIT code. - # The job acts as a manual (optional) verify job for VPP contributions. - triggers: - - gerrit: - server-name: 'Primary' - trigger-on: - - comment-added-contains-event: - comment-contains-value: 'devicetest' - projects: - - project-compare-type: 'ANT' - project-pattern: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: '{skip-vote}' - failed: '{skip-vote}' - unstable: '{skip-vote}' - notbuilt: '{skip-vote}' # [end] Keep 'trigger' entries ordered alphabetically, please. #### PUBLISHERS diff --git a/jjb/scripts/csit/device-semiweekly.sh b/jjb/scripts/csit/device-semiweekly.sh deleted file mode 100755 index 1086b5463..000000000 --- a/jjb/scripts/csit/device-semiweekly.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2020 Cisco and/or its affiliates. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -echo "---> jjb/scripts/csit/device-semiweekly.sh" - -set -exuo pipefail - -# Clone CSIT git repository and proceed with entry script located there. -# -# Variables read: -# - WORKSPACE - Jenkins workspace to create csit subdirectory in. -# - GIT_URL - Git clone URL -# - BRANCH_ID - CSIT operational branch to be used for test. -# Directories updated: -# - ${WORKSPACE}/csit - Created, holding a checked out CSIT repository. -# - Multiple other side effects by entry script(s), see CSIT repository. - -cd "${WORKSPACE}" -git clone "${GIT_URL}/csit" --depth=1 --no-single-branch --no-checkout -# Check BRANCH_ID value. -if [[ -z "${BRANCH_ID-}" ]]; then - echo "BRANCH_ID not provided => 'oper' belonging to master will be used." - BRANCH_ID="oper" -fi -pushd "${WORKSPACE}/csit" -# Get the latest verified version of the required branch. -BRANCH_NAME=$(echo $(git branch -r | grep -E "${BRANCH_ID}-[0-9]+" | tail -n 1)) -if [[ -z "${BRANCH_NAME-}" ]]; then - echo "No verified CSIT branch found - exiting!" - exit 1 -fi -# Remove 'origin/' from the branch name. -BRANCH_NAME=$(echo ${BRANCH_NAME#origin/}) -# Checkout the required csit branch. -git checkout "${BRANCH_NAME}" -popd -csit_entry_dir="${WORKSPACE}/csit/resources/libraries/bash/entry" -source "${csit_entry_dir}/bootstrap_vpp_device.sh" -cp -R "${WORKSPACE}/csit/archives" "${WORKSPACE}/archives" || true diff --git a/jjb/scripts/csit/device-verify.sh b/jjb/scripts/csit/device-verify.sh deleted file mode 100644 index 5ccd2a580..000000000 --- a/jjb/scripts/csit/device-verify.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2020 Cisco and/or its affiliates. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -echo "---> jjb/scripts/csit/device-verify.sh" - -set -exuo pipefail - -csit_entry_dir="${WORKSPACE}/resources/libraries/bash/entry" -source "${csit_entry_dir}/bootstrap_vpp_device.sh" diff --git a/jjb/scripts/vpp/csit-device.sh b/jjb/scripts/vpp/csit-device.sh deleted file mode 100755 index 989193001..000000000 --- a/jjb/scripts/vpp/csit-device.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2020 Cisco and/or its affiliates. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -echo "---> jjb/scripts/vpp/csit-device.sh" - -set -exuo pipefail - -# Clone CSIT git repository and proceed with entry script located there. -# -# Variables read: -# - WORKSPACE - Jenkins workspace to create csit subdirectory in. -# - GIT_URL - Git clone URL -# - CSIT_REF - Override ref of CSIT git repository to checkout. -# Directories updated: -# - ${WORKSPACE}/csit - Created, holding a checked out CSIT repository. -# - Multiple other side effects by entry script(s), see CSIT repository. - -cd "${WORKSPACE}" -git clone "${GIT_URL}/csit" --depth=1 --no-single-branch --no-checkout -pushd "${WORKSPACE}/csit" -if [[ -n "${CSIT_REF-}" ]]; then - git fetch --depth=1 "${GIT_URL}/csit" "${CSIT_REF}" - git checkout FETCH_HEAD -else - git checkout HEAD -fi -popd -csit_entry_dir="${WORKSPACE}/csit/resources/libraries/bash/entry" -source "${csit_entry_dir}/with_oper_for_vpp.sh" "per_patch_device.sh" |