b850a06c85
Change-Id: I066f04b6877809229fbbca6a24a13a1665c61439
190 lines
6.6 KiB
YAML
190 lines
6.6 KiB
YAML
- job-template:
|
|
name: '{pipeline}-osc-dsvm-functional-{node}{suffix}'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 130
|
|
- timestamps
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- devstack-checkout
|
|
- local_conf:
|
|
conf: |
|
|
[[local|localrc]]
|
|
enable_plugin neutron https://git.openstack.org/openstack/neutron
|
|
# NOTE(dtroyer): OSC needs to support Image v1 for a while yet so re-enable
|
|
GLANCE_V1_ENABLED=True
|
|
enable_service q-qos
|
|
# NOTE(dtroyer): Functional tests need a bit more volume headroom
|
|
VOLUME_BACKING_FILE_SIZE=20G
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PYTHONUNBUFFERED=true
|
|
export DEVSTACK_GATE_UNSTACK=0
|
|
export DEVSTACK_GATE_TEMPEST=0
|
|
export DEVSTACK_GATE_EXERCISES=0
|
|
export DEVSTACK_GATE_INSTALL_TESTONLY=1
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
export BRANCH_OVERRIDE={branch-override}
|
|
export DEVSTACK_PROJECT_FROM_GIT=python-openstackclient
|
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
|
fi
|
|
|
|
function post_test_hook {{
|
|
# NOTE(stevemar): After the newton release was tagged the file was moved.
|
|
# But, we run functional tests for various stable releases
|
|
# (mitaka, and newton).
|
|
# TODO(stevemar): Remove this check when Newton is EOL'ed.
|
|
hook_location=$BASE/new/python-openstackclient/openstackclient/tests/functional/post_test_hook.sh
|
|
if [ ! -f "$hook_location" ]; then
|
|
hook_location=$BASE/new/python-openstackclient/post_test_hook.sh
|
|
fi
|
|
bash -xe $hook_location
|
|
}}
|
|
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:
|
|
- test-results
|
|
- devstack-logs
|
|
- console-log
|
|
|
|
- job-template:
|
|
name: '{pipeline}-osc-dsvm-functional-tips-{node}{suffix}'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 130
|
|
- timestamps
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- devstack-checkout
|
|
- local_conf:
|
|
conf: |
|
|
[[local|localrc]]
|
|
enable_plugin neutron https://git.openstack.org/openstack/neutron
|
|
# NOTE(dtroyer): OSC needs to support Image v1 for a while yet so re-enable
|
|
GLANCE_V1_ENABLED=True
|
|
enable_service q-qos
|
|
# NOTE(dtroyer): Functional tests need a bit more volume headroom
|
|
VOLUME_BACKING_FILE_SIZE=20G
|
|
# swift is not ready for python3 yet
|
|
disable_python3_package swift
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PYTHONUNBUFFERED=true
|
|
export DEVSTACK_GATE_USE_PYTHON3=True
|
|
export DEVSTACK_GATE_UNSTACK=0
|
|
export DEVSTACK_GATE_TEMPEST=0
|
|
export DEVSTACK_GATE_EXERCISES=0
|
|
export DEVSTACK_GATE_INSTALL_TESTONLY=1
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
export BRANCH_OVERRIDE={branch-override}
|
|
export DEVSTACK_PROJECT_FROM_GIT="python-openstackclient,python-openstacksdk,osc-lib,os-client-config"
|
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
|
fi
|
|
|
|
function post_test_hook {{
|
|
# This test hook will install the master version of the following:
|
|
# - osc-lib
|
|
# - openstacksdk
|
|
# - os-client-config
|
|
hook_location=$BASE/new/python-openstackclient/openstackclient/tests/functional/post_test_hook_tips.sh
|
|
bash -xe $hook_location
|
|
}}
|
|
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:
|
|
- test-results
|
|
- devstack-logs
|
|
- console-log
|
|
|
|
- job-template:
|
|
name: '{pipeline}-osc-dsvm-functional-n-net-{node}{suffix}'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 130
|
|
- timestamps
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- devstack-checkout
|
|
- local_conf:
|
|
conf: |
|
|
[[local|localrc]]
|
|
# NOTE(RuiChen): nova-network only can be enable in nova cell v1
|
|
enable_service n-net n-cell
|
|
disable_service neutron q-svc q-agt q-dhcp q-l3 q-meta q-metering
|
|
# NOTE(dtroyer): OSC needs to support Image v1 for a while yet so re-enable
|
|
GLANCE_V1_ENABLED=True
|
|
# NOTE(dtroyer): Functional tests need a bit more volume headroom
|
|
VOLUME_BACKING_FILE_SIZE=20G
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PYTHONUNBUFFERED=true
|
|
export DEVSTACK_GATE_UNSTACK=0
|
|
export DEVSTACK_GATE_TEMPEST=0
|
|
export DEVSTACK_GATE_EXERCISES=0
|
|
export DEVSTACK_GATE_INSTALL_TESTONLY=1
|
|
# NOTE(RuiChen): Explicitly tell devstack-gate that we need to run
|
|
# the nova-network job with cell v1.
|
|
export DEVSTACK_GATE_NEUTRON=0
|
|
export DEVSTACK_GATE_CELLS=1
|
|
export BRANCH_OVERRIDE={branch-override}
|
|
export DEVSTACK_PROJECT_FROM_GIT=python-openstackclient
|
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
|
fi
|
|
|
|
function post_test_hook {{
|
|
# NOTE(stevemar): After the newton release was tagged the file was moved.
|
|
# But, we run functional tests for various stable releases
|
|
# (mitaka, and newton).
|
|
# TODO(stevemar): Remove this check when Newton is EOL'ed.
|
|
hook_location=$BASE/new/python-openstackclient/openstackclient/tests/functional/post_test_hook.sh
|
|
if [ ! -f "$hook_location" ]; then
|
|
hook_location=$BASE/new/python-openstackclient/post_test_hook.sh
|
|
fi
|
|
bash -xe $hook_location
|
|
}}
|
|
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:
|
|
- test-results
|
|
- devstack-logs
|
|
- console-log
|
|
|
|
- job:
|
|
name: check-osc-plugins
|
|
node: ubuntu-trusty
|
|
|
|
builders:
|
|
- zuul-git-prep
|
|
- install-distro-packages
|
|
- revoke-sudo
|
|
- link-logs
|
|
- net-info
|
|
- shell: /usr/local/jenkins/slave_scripts/check-osc-plugins.sh
|
|
|
|
publishers:
|
|
- console-log
|