More Python 3 jobs: scenario (by default) and devstack

- sahara-scenario is executed using Python 3 by default.
  Now that the all the older stable branches use venv-py2 explicitly,
  the scenario test runner can use python3 as default Python version.
- move the Python 3 job from the experimental to the check queue.
- add a Python 3 version of the multinode Spark job.
  In order to do that, the parent of the multinode-spark
  job is not the radosgw-based scenario job, so that
  it can use the Python 3-ready RadosGW instead of Swift,
  which is still not fully ported.
- add an EDP test too to the multinode scenario jobs.

All the Python 3-based jobs also run sahara-scenario using Python 3.
The other way is not always true: sahara-scenario runs with
Python 3 also when DevStack uses Python 2.

Change-Id: Ic89f02258a4340346810a452f68b7bed171c9ba7
This commit is contained in:
Luigi Toscano 2019-03-20 19:18:17 +01:00
parent 7e39b7b05d
commit a5fee8c71f
3 changed files with 17 additions and 20 deletions

View File

@ -12,8 +12,9 @@
voting: false
- openstack-tox-pylint:
voting: false
- sahara-tests-scenario-runner-py3
- sahara-tests-scenario
- sahara-tests-scenario-v2
- sahara-tests-scenario-py3
- sahara-tests-tempest
- sahara-tests-tempest-v2
- sahara-tests-scenario-rocky
@ -22,14 +23,14 @@
gate:
queue: sahara
jobs:
- sahara-tests-scenario-runner-py3
- sahara-tests-scenario
- sahara-tests-scenario-v2
- sahara-tests-tempest
- sahara-tests-tempest-v2
experimental:
jobs:
- sahara-tests-scenario-multinode-spark
- sahara-tests-scenario-py3
- sahara-tests-scenario-multinode-spark-py3
- job:
name: sahara-tests-tempest
@ -155,7 +156,7 @@
sahara_plugin: fake
sahara_plugin_version: '0.1'
sahara_scenario_test_template: fake.yaml.mako
sahara_scenario_tox_env: venv-py2
sahara_scenario_tox_env: venv
irrelevant-files:
- ^.*\.rst$
- ^api-ref/.*$
@ -163,20 +164,10 @@
- ^releasenotes/.*$
- ^sahara_tempest_plugin/.*$
- job:
name: sahara-tests-scenario-runner-py3
parent: sahara-tests-scenario
description: |
Run scenario tests for Sahara which use Python 3
to run sahara-scenario (but not the OpenStack deployment)
vars:
sahara_scenario_tox_env: venv-py3
- job:
name: sahara-tests-scenario-v2
parent: sahara-tests-scenario
vars:
sahara_scenario_tox_env: venv-py3
sahara_scenario_use_api_v2: True
- job:
@ -243,7 +234,7 @@
name: sahara-tests-scenario-multinode-spark
description: |
Run scenario tests based on Spark on a multinode Sahara deployment.
parent: sahara-tests-scenario
parent: sahara-tests-scenario-radosgw
nodeset: openstack-two-node
vars:
sahara_image_name: xenial-spark
@ -267,3 +258,12 @@
vars:
devstack_localrc:
USE_PYTHON3: 'True'
- job:
name: sahara-tests-scenario-multinode-spark-py3
description: |
Run scenario tests on Spark on a multinode Python 3 Sahara deployment.
parent: sahara-tests-scenario-multinode-spark
vars:
devstack_localrc:
USE_PYTHON3: 'True'

View File

@ -35,5 +35,6 @@ clusters:
- scale
edp_jobs_flow:
- spark_pi
- spark_wordcount
cluster:
name: ${cluster_name}

View File

@ -16,6 +16,7 @@ commands = stestr run {posargs}
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY OS_*
[testenv:venv]
basepython = python3
commands = {posargs}
passenv = OS_*
@ -24,11 +25,6 @@ basepython = python2
commands = {posargs}
passenv = OS_*
[testenv:venv-py3]
basepython = python3
commands = {posargs}
passenv = OS_*
[testenv:cover]
basepython = python3
setenv =