diff options
author | Tim Burke <tim.burke@gmail.com> | 2019-11-05 01:45:26 +0000 |
---|---|---|
committer | Tim Burke <tim.burke@gmail.com> | 2019-11-05 13:56:29 +0000 |
commit | 56ae0c7debd174bd5676ce937482bf9414efa3de (patch) | |
tree | 4172359deb50a65c4252d824dd8afe1fb29e68ce | |
parent | 12fd2392740aa343c356895c0aa10d75e25cdd6c (diff) | |
download | swift-56ae0c7debd174bd5676ce937482bf9414efa3de.tar.gz |
Fix stable gate
This is a combination of 2 commits.
==========
Make our py2 func tests more explicitly py2
...because otherwise, I think they might be running under py3 right now.
(cherry picked from commit c512574e110c214396658743e75ae497ba76e2ff)
----------
pin lower-constraints to run against python 2.7
(cherry picked from commit 281ffab2a52f348aa3f8ad39e800a43c6047e1cf)
==========
Change-Id: I4e7e71cbaeda9e6bfcf4e415dd5f859df4835376
-rw-r--r-- | .zuul.yaml | 52 | ||||
-rw-r--r-- | tox.ini | 5 |
2 files changed, 33 insertions, 24 deletions
diff --git a/.zuul.yaml b/.zuul.yaml index 7c2170a0b..0dc195d7f 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -88,7 +88,7 @@ post-run: tools/playbooks/common/cover-post.yaml - job: - name: swift-tox-func + name: swift-tox-func-py27 parent: swift-tox-base description: | Run functional tests for swift under cPython version 2.7. @@ -100,12 +100,12 @@ tox_envlist: func - job: - name: swift-tox-func-centos-7 - parent: swift-tox-func + name: swift-tox-func-py27-centos-7 + parent: swift-tox-func-py27 nodeset: centos-7 - job: - name: swift-tox-func-encryption + name: swift-tox-func-encryption-py27 parent: swift-tox-base description: | Run functional tests for swift under cPython version 2.7. @@ -117,12 +117,12 @@ tox_envlist: func-encryption - job: - name: swift-tox-func-encryption-centos-7 - parent: swift-tox-func-encryption + name: swift-tox-func-encryption-py27-centos-7 + parent: swift-tox-func-encryption-py27 nodeset: centos-7 - job: - name: swift-tox-func-ec + name: swift-tox-func-ec-py27 parent: swift-tox-base description: | Run functional tests for swift under cPython version 2.7. @@ -135,12 +135,12 @@ tox_envlist: func-ec - job: - name: swift-tox-func-ec-centos-7 - parent: swift-tox-func-ec + name: swift-tox-func-ec-py27-centos-7 + parent: swift-tox-func-ec-py27 nodeset: centos-7 - job: - name: swift-tox-func-domain-remap-staticweb + name: swift-tox-func-domain-remap-staticweb-py27 parent: swift-tox-base description: | Run functional tests for swift under cPython version 2.7. @@ -152,7 +152,7 @@ tox_envlist: func-domain-remap-staticweb - job: - name: swift-tox-func-s3api + name: swift-tox-func-s3api-py27 parent: swift-tox-base description: | Run functional tests for swift under cPython version 2.7. @@ -309,6 +309,8 @@ name: swift-tox-lower-constraints parent: openstack-tox-lower-constraints vars: + bindep_profile: test py27 + python_version: 2.7 tox_environment: TMPDIR: '{{ ansible_env.HOME }}/xfstmp' @@ -338,27 +340,29 @@ - ^(api-ref|doc|releasenotes)/.*$ - ^test/(functional|probe)/.*$ voting: false - - swift-tox-func: + + # Functional tests + - swift-tox-func-py27: irrelevant-files: - ^(api-ref|doc|releasenotes)/.*$ - ^test/probe/.*$ - ^(.gitreview|.mailmap|AUTHORS|CHANGELOG)$ - - swift-tox-func-encryption: + - swift-tox-func-encryption-py27: irrelevant-files: - ^(api-ref|doc|releasenotes)/.*$ - ^test/probe/.*$ - ^(.gitreview|.mailmap|AUTHORS|CHANGELOG)$ - - swift-tox-func-domain-remap-staticweb: + - swift-tox-func-domain-remap-staticweb-py27: irrelevant-files: - ^(api-ref|doc|releasenotes)/.*$ - ^test/probe/.*$ - ^(.gitreview|.mailmap|AUTHORS|CHANGELOG)$ - - swift-tox-func-ec: + - swift-tox-func-ec-py27: irrelevant-files: - ^(api-ref|doc|releasenotes)/.*$ - ^test/probe/.*$ - ^(.gitreview|.mailmap|AUTHORS|CHANGELOG)$ - - swift-tox-func-s3api: + - swift-tox-func-s3api-py27: irrelevant-files: - ^(api-ref|doc|releasenotes)/.*$ - ^test/probe/.*$ @@ -410,11 +414,11 @@ # in-tree definitions) dsvm jobs. - swift-tox-py27 - swift-tox-py35 - - swift-tox-func - - swift-tox-func-encryption - - swift-tox-func-domain-remap-staticweb - - swift-tox-func-ec - - swift-tox-func-s3api + - swift-tox-func-py27 + - swift-tox-func-encryption-py27 + - swift-tox-func-domain-remap-staticweb-py27 + - swift-tox-func-ec-py27 + - swift-tox-func-s3api-py27 - swift-probetests-centos-7: irrelevant-files: - ^(api-ref|releasenotes)/.*$ @@ -444,9 +448,9 @@ experimental: jobs: - swift-tox-py27-centos-7 - - swift-tox-func-centos-7 - - swift-tox-func-encryption-centos-7 - - swift-tox-func-ec-centos-7 + - swift-tox-func-py27-centos-7 + - swift-tox-func-encryption-py27-centos-7 + - swift-tox-func-ec-py27-centos-7 - swift-multinode-rolling-upgrade-queens - swift-multinode-rolling-upgrade-rocky @@ -126,21 +126,25 @@ basepython = python2.7 commands = ./.functests {posargs} [testenv:func-encryption] +basepython = python2.7 commands = ./.functests {posargs} setenv = SWIFT_TEST_IN_PROCESS=1 SWIFT_TEST_IN_PROCESS_CONF_LOADER=encryption [testenv:func-domain-remap-staticweb] +basepython = python2.7 commands = ./.functests {posargs} setenv = SWIFT_TEST_IN_PROCESS=1 SWIFT_TEST_IN_PROCESS_CONF_LOADER=domain_remap_staticweb [testenv:func-ec] +basepython = python2.7 commands = ./.functests {posargs} setenv = SWIFT_TEST_IN_PROCESS=1 SWIFT_TEST_IN_PROCESS_CONF_LOADER=ec [testenv:func-s3api] +basepython = python2.7 commands = ./.functests {posargs} setenv = SWIFT_TEST_IN_PROCESS=1 SWIFT_TEST_IN_PROCESS_CONF_LOADER=s3api @@ -197,6 +201,7 @@ commands = sphinx-build -a -W -E -d releasenotes/build/doctrees -b html releasen # FIXME(dhellmann): We'll want to uncomment this # when the full test suite works with python 3. # basepython = python3 +basepython = python2.7 deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt |