]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible pipeline branch improvement 1150/head
authorSébastien Han <seb@redhat.com>
Wed, 10 Oct 2018 16:36:12 +0000 (12:36 -0400)
committerSébastien Han <seb@redhat.com>
Wed, 10 Oct 2018 18:31:05 +0000 (14:31 -0400)
The code is not ideal and might be hard to read but the rationales are
the following:

* master ceph-ansible has fully adopted ceph-volume and we are about to
remove ceph-disk too
* this means we can not and should not run ceph-disk tests on master BUT
only on stable 3.0 and 3.1 branches.

Only lvm scenarios should play on ceph-ansible master.

Signed-off-by: Sébastien Han <seb@redhat.com>
ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml

index e6e6d162676b18d6090acf8f610610662936dd07..528302011d5c1bf6e686348627590dade43f2538 100644 (file)
           condition-command: |
             #!/bin/bash
             set -x
+            # if the current branch is 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/purge'
           on-evaluation-failure: dont-run
           steps:
                     current-parameters: true
                   - name: 'ceph-ansible-prs-luminous-purge_lvm_osds'
                     current-parameters: true
+      - conditional-step:
+          condition-kind: shell
+          condition-command: |
+            #!/bin/bash
+            set -x
+            # if the current branch is stable-3.0 or stable-3.1 then we don't run these tests
+            if [[ "$ghprbTargetBranch" == "stable-3.1" ]] || [[ "$ghprbTargetBranch" == "stable-3.0" ]]; then
+              exit 1
+            fi
+            git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep 'infrastructure-playbooks/purge'
+          on-evaluation-failure: dont-run
+          steps:
+            - multijob:
+                name: 'ceph-ansible purge playbook testing'
+                condition: SUCCESSFUL
+                execution-type: PARALLEL
+                projects:
+                  - name: 'ceph-ansible-prs-luminous-purge_lvm_osds'
+                    current-parameters: true
       - conditional-step:
           condition-kind: shell
           condition-command: |
           condition-command: |
             #!/bin/bash
             set -x
+            # if the current branch is 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 -E 'roles/ceph-defaults/tasks/facts.yml|roles/ceph-osd|ceph-validate'
           on-evaluation-failure: dont-run
           steps:
                   - name: 'ceph-ansible-prs-luminous-lvm_osds'
                     current-parameters: true
 
+      - conditional-step:
+          condition-kind: shell
+          condition-command: |
+            #!/bin/bash
+            set -x
+            # if the current branch is stable-3.0 or stable-3.1 then we don't run these tests
+            if [[ "$ghprbTargetBranch" == "stable-3.1" ]] || [[ "$ghprbTargetBranch" == "stable-3.0" ]]; then
+              exit 1
+            fi
+            git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep -E 'roles/ceph-defaults/tasks/facts.yml|roles/ceph-osd|ceph-validate'
+          on-evaluation-failure: dont-run
+          steps:
+            - multijob:
+                name: 'ceph-ansible osd scenarios playbook testing'
+                condition: SUCCESSFUL
+                execution-type: PARALLEL
+                projects:
+                  - name: 'ceph-ansible-prs-luminous-lvm_osds'
+                    current-parameters: true
+                  - name: 'ceph-ansible-prs-luminous-lvm_osds_containers'
+                    current-parameters: true
+                  - name: 'ceph-ansible-prs-luminous-bluestore_lvm_osds'
+                    current-parameters: true
+                  - name: 'ceph-ansible-prs-luminous-bluestore_lvm_osds_container'
+                    current-parameters: true
+                  #- name: 'ceph-ansible-prs-luminous-lvm_batch'
+                  #  current-parameters: true
+                  # lvm batch container is not supported at the moment, see https://tracker.ceph.com/issues/36363
+                  #- name: 'ceph-ansible-prs-luminous-lvm_batch_container'
+                  #  current-parameters: true
+
       - conditional-step:
           condition-kind: shell
           condition-command: |