py27 zuul test fails due to new release of stestr
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| StarlingX |
High
|
Gerry Kopec |
Bug Description
Encountered zuul py27 failure when pushing change to starlingx/fault repo:
https:/
tox -epy27 -c fm-rest-
non-zero return code
py27 create: /home/zuul/
py27 installdeps: -r/home/
py27 installed: DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https:/
py27 run-test-pre: PYTHONHASHSEED=
py27 run-test: commands[0] | stestr run
Usage: run.py discover [options]
run.py discover: error: no such option: --list
=======
Failures during discovery
=======
=======
The above traceback was encountered during test discovery which imports all the found test modules in the specified test_path.
ERROR: InvocationError for command /home/zuul/
_______
ERROR: py27: commands failed
Appears that a new version of stestr (3.0.0) was release Mar. 26 and does not support py27.
https:/
https:/
stestr v2.x.x release series will be the last series that supports Python 2. Support for Python 2.7 was dropped in stestr release 3.0.0.
We'll need to use an earlier version for py27 tests.
I hit this in starlingx/fault but this may impact other starlingx repos that use py27 and stestr.
Al Bailey (albailey1974) wrote : | #1 |
Changed in starlingx: | |
assignee: | nobody → Gerry Kopec (gerry-kopec) |
Gerry Kopec (gerry-kopec) wrote : | #2 |
Proposed fix for starlingx/fault:
https:/
Reviewed: https:/
Committed: https:/
Submitter: Zuul
Branch: master
commit b70b9b522094032
Author: Gerry Kopec <email address hidden>
Date: Mon Mar 30 14:43:36 2020 -0400
Fix stestr version so py27 tox can pass
stestr was upgraded to 3.0.0 on Mar. 26 and it does not support py27.
Update test requirements accordingly so py27 tests will use earlier version.
Change-Id: Ia481a4609d81ad
Closes-Bug: 1869777
Signed-off-by: Gerry Kopec <email address hidden>
Changed in starlingx: | |
status: | In Progress → Fix Released |
Fix proposed to branch: f/centos8
Review: https:/
Ghada Khalil (gkhalil) wrote : | #5 |
stx.4.0 / high priority - this failure would prevent code merges in the fault repo
tags: | added: stx.4.0 stx.fault stx.zuul |
Changed in starlingx: | |
importance: | Undecided → High |
Reviewed: https:/
Committed: https:/
Submitter: Zuul
Branch: f/centos8
commit b70b9b522094032
Author: Gerry Kopec <email address hidden>
Date: Mon Mar 30 14:43:36 2020 -0400
Fix stestr version so py27 tox can pass
stestr was upgraded to 3.0.0 on Mar. 26 and it does not support py27.
Update test requirements accordingly so py27 tests will use earlier version.
Change-Id: Ia481a4609d81ad
Closes-Bug: 1869777
Signed-off-by: Gerry Kopec <email address hidden>
commit ce56ce7ea57c06f
Author: albailey <email address hidden>
Date: Tue Mar 10 16:22:44 2020 -0500
Adding pylint zuul and tox target
Adding a pylint tox target which only suppresses
the error codes that are currently failing.
This will prevent any of the passing checks from being
broken by future submissions.
The currently suppressed codes can be fixed by subsequent
commits.
Adds a zuul pylint target to invoke the new tox target.
Unified the install_command in tox.ini to ensure
the upper constraints are used.
Change-Id: Id2fb8cbb7ce63f
Story: 2007082
Task: 39020
Signed-off-by: albailey <email address hidden>
commit 8fcd1cbe0346d9f
Author: SidneyAn <email address hidden>
Date: Wed Jan 15 09:45:53 2020 +0800
add test case for migration sync and version
add test class DbSyncTestCase
add test case for migration database sync
Story: 2007082
Task: 38152
Depends-on: https:/
Signed-off-by: SidneyAn <email address hidden>
Signed-off-by: chenyan <email address hidden>
Change-Id: I8121dedae7e431
commit 170d4fefb72d3b4
Author: SidneyAn <email address hidden>
Date: Thu Jan 16 16:46:44 2020 +0800
Add test case to create alarm into database
Add test class DbAlarmTestCase, DbTestCase
Add fake database in tests/base.py.
Add test case test_create_alarm
Story: 2007082
Task: 38085
Depends-on: https:/
Depends-on: https:/
Change-Id: I906edc894c97fd
Signed-off-by: SidneyAn <email address hidden>
commit d73ba874571bdae
Author: SidneyAn <email address hidden>
Date: Fri Jan 17 13:56:12 2020 +0800
add test framework for rest api tests
this patch include:
fake pecan app for api tests
4 test cases:
bad url
setup
get_root
get_v1_root
Story: 2007082
Task: 38158
Change-Id: I3f933b43aede43
Signed-off-by: SidneyAn <email address hidden>
commit b1dfa14f0bcd6cc
Author: albailey <email address hidden>
Date: Mon Mar 2 10:57:58 2020 -0600
Fix py27 and py35 zuul jobs failing to setup
As of March 1, when jobs run on ubuntu-xenial, they fail
...
tags: | added: in-f-centos8 |
Note: many of the starlingX repos use upper constraints from stein, which caps at 2.2.0
https:/ /github. com/openstack/ requirements/ blob/stable/ stein/upper- constraints. txt#L297