
Currently there is two jobs in rally group: dsvm and dsvm-neutron. Scenario name should be different for this jobs: {name} for dsvm and {name}-neutron for dsvm-neutron. E.g if we want to test glance with and without neutron, we should create two scenario files in rally-scenarios directory: glance.yaml and glance-neutron.yaml Change-Id: Ic7451e8e6b0b06c136db0f15ab71ca51e26dd67a
126 lines
2.8 KiB
YAML
126 lines
2.8 KiB
YAML
- job-template:
|
|
name: 'gate-rally-install-{node}'
|
|
node: '{node}'
|
|
|
|
builders:
|
|
- link-logs
|
|
- gerrit-git-prep
|
|
- shell: "tests_ci/test_install.sh"
|
|
|
|
publishers:
|
|
- console-log
|
|
|
|
|
|
- publisher:
|
|
name: rally-plot
|
|
publishers:
|
|
- scp:
|
|
site: 'static.openstack.org'
|
|
files:
|
|
- target: 'logs/$LOG_PATH'
|
|
source: 'rally-plot/**'
|
|
keep-hierarchy: true
|
|
copy-after-failure: true
|
|
|
|
|
|
- builder:
|
|
name: devstack-rally-gate
|
|
builders:
|
|
- link-logs
|
|
- devstack-checkout
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PROJECTS="stackforge/rally $PROJECTS"
|
|
export ENABLED_SERVICES=rally
|
|
export DEVSTACK_GATE_NEUTRON={neutron}
|
|
export DEVSTACK_GATE_EXERCISES=0
|
|
export DEVSTACK_GATE_TIMEOUT=120
|
|
export RALLY_SCENARIO={scenario}
|
|
|
|
function pre_test_hook {{
|
|
# Install rally-devstack integration
|
|
cp -r $BASE/new/rally/contrib/devstack/* $BASE/new/devstack
|
|
}}
|
|
export -f pre_test_hook
|
|
|
|
function post_test_hook {{
|
|
$BASE/new/rally/tests_ci/rally-gate.sh
|
|
}}
|
|
export -f post_test_hook
|
|
|
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
|
./safe-devstack-vm-gate-wrap.sh
|
|
|
|
|
|
- job-template:
|
|
name: 'check-rally-dsvm-{name}'
|
|
node: 'devstack-precise || devstack-precise-check'
|
|
|
|
wrappers:
|
|
- timeout:
|
|
timeout: 125
|
|
fail: true
|
|
- timestamps
|
|
|
|
builders:
|
|
- devstack-rally-gate:
|
|
scenario: '{name}'
|
|
neutron: '0'
|
|
|
|
publishers:
|
|
- devstack-logs
|
|
- console-log
|
|
- rally-plot
|
|
|
|
|
|
- job-template:
|
|
name: 'check-rally-dsvm-neutron-{name}'
|
|
node: 'devstack-precise || devstack-precise-check'
|
|
|
|
wrappers:
|
|
- timeout:
|
|
timeout: 125
|
|
fail: true
|
|
- timestamps
|
|
|
|
builders:
|
|
- devstack-rally-gate:
|
|
scenario: '{name}-neutron'
|
|
neutron: '1'
|
|
|
|
publishers:
|
|
- devstack-logs
|
|
- console-log
|
|
- rally-plot
|
|
|
|
|
|
- job:
|
|
name: 'check-rally-cli'
|
|
node: 'devstack-precise || devstack-precise-check'
|
|
|
|
builders:
|
|
- link-logs
|
|
- devstack-checkout
|
|
- shell: |
|
|
#/bin/bash -xe
|
|
export PROJECTS="stackforge/rally $PROJECTS"
|
|
export ENABLED_SERVICES=rally
|
|
function post_test_hook {
|
|
cd $BASE/new/rally
|
|
sudo -H -u stack tox -ecli -v
|
|
}
|
|
export -f post_test_hook
|
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
|
./safe-devstack-vm-gate-wrap.sh
|
|
|
|
publishers:
|
|
- devstack-logs
|
|
- console-log
|
|
|
|
|
|
- job-group:
|
|
name: rally-jobs
|
|
jobs:
|
|
- 'check-rally-dsvm-{name}'
|
|
- 'check-rally-dsvm-neutron-{name}'
|