]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
add shrink_mds scenario to CI 1320/head
authorRishabh Dave <ridave@redhat.com>
Mon, 17 Jun 2019 15:14:28 +0000 (20:44 +0530)
committerRishabh Dave <ridave@redhat.com>
Tue, 18 Jun 2019 09:41:33 +0000 (15:11 +0530)
Add shrink_mds scenario to CI so that it can be tested against master.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml
ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml

index b06a42ed207825b321859e09cbea50623d74f25c..aff69e4ffafe8add8c758c7de295c0bc37de1211 100644 (file)
                     current-parameters: true
                   - name: 'ceph-ansible-prs-luminous-centos-container-shrink_osd'
                     current-parameters: true
+      - conditional-step:
+          condition-kind: shell
+          condition-command: |
+            #!/bin/bash
+            set -x
+            # if the target branch is not master then we DON'T RUN these tests.
+            if [[ "$ghprbTargetBranch" != "master" ]]; then
+              exit 1
+            fi
+            git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep 'infrastructure-playbooks/shrink-mds'
+          on-evaluation-failure: dont-run
+          steps:
+            - multijob:
+                name: 'ceph-ansible shrink_mds playbook testing'
+                condition: SUCCESSFUL
+                execution-type: PARALLEL
+                projects:
+                  - name: 'ceph-ansible-prs-dev-centos-non_container-shrink_mds'
+                    current-parameters: true
+                  - name: 'ceph-ansible-prs-dev-centos-container-shrink_mds'
+                    current-parameters: true
+      - conditional-step:
+          condition-kind: shell
+          condition-command: |
+            #!/bin/bash
+            set -x
+            # if the target branch is not stable-4.0 then we DON'T RUN these tests.
+            if [[ "$ghprbTargetBranch" != "stable-4.0" ]]; then
+              exit 1
+            fi
+            git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep 'infrastructure-playbooks/shrink-mds'
+          on-evaluation-failure: dont-run
+          steps:
+            - multijob:
+                name: 'ceph-ansible shrink_mds playbook testing'
+                condition: SUCCESSFUL
+                execution-type: PARALLEL
+                projects:
+                  - name: 'ceph-ansible-prs-nautilus-centos-non_container-shrink_mds'
+                    current-parameters: true
+                  - name: 'ceph-ansible-prs-nautilus-centos-container-shrink_mds'
+                    current-parameters: true
       - conditional-step:
           condition-kind: shell
           condition-command: |
index 447f9ed19a017edae49f9788895cb01dcb47a645..8f13864d806e0063d497ca337ae8f6cfae6825d9 100644 (file)
@@ -17,6 +17,7 @@
       - lvm_osds
       - shrink_mon
       - shrink_osd
+      - shrink_mds
       - lvm_batch
       - add_osds
       - add_mons
@@ -95,6 +96,7 @@
       - lvm_osds
       - shrink_mon
       - shrink_osd
+      - shrink_mds
       - lvm_batch
       - add_osds
       - add_mons
       - lvm_osds
       - shrink_mon
       - shrink_osd
+      - shrink_mds
       - lvm_batch
       - add_osds
       - rgw_multisite
       - filestore_osds_container
       - shrink_mon
       - shrink_mon_container
+      - shrink_mds
+      - shrink_mds_container
       - shrink_osd
       - shrink_osd_container
       - lvm_osds