Commit Graph

200 Commits (ce1af65b21bd854420e4444bc354c6cd245e3f1d)

Author SHA1 Message Date
Ghanshyam Mann ce1af65b21 [ussuri][goal] Update contributor documentation
This patch updates/adds the contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].

Story: #2007236
Task: #38554

Change-Id: Iaec58e0b4d4356144efd626a55c2cb7913e08f3a
3 years ago
Andreas Jaeger d5c66507d3 Update to hacking 3.0
Hacking 3.0 was just released with minor changes, update to the new

Change-Id: Ia8b6a035fa9a17eccf210bae787676b6b0843ae9
3 years ago
Zuul 248dc815d0 Merge "[ussuri][goal] Drop python 2.7 support and testing" 3 years ago
Ghanshyam Mann fcf791b38a [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

os-testr is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in

Ussuri Communtiy-wide goal:

Switch to using sphinx-build, remove cruft from setup.cfg,,
Update hacking version to support python3 properly.
Fix problems found by pep8.

Change-Id: I6ab22dda05132a735bd9e5caf16cc2bd172b06cc
3 years ago
lkuchlan 2c07d4e638 subunit2html dealing with incorrect data format
The patch encodes a data string which contains
non-ASCII characters to unicode type.

In python2 there are two text types str and unicode.
When we add two different text types, for example:
>>> "Hello " + u"World"
u'Hello World'

The string on the left is decoded by using the default
system encoding into a Unicode string.
If it would contain non-ASCII characters(as in our case)
this normally blow up with an UnicodeDecodeError because
the default encoding is set to ASCII.

Change-Id: I17e5aa6f45133d9d12aa38cec9cc42694913d4bd
Closes-Bug: #1857901
3 years ago
Corey Bryant 8859449359 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:

Change-Id: I6c6f4fccec101fdbdc8cd952b889f7e43e41374a
Story: #2005924
Task: #34240
4 years ago
jacky06 414bbf6d85 Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I67c57d65accb3822f7f6a03fea96356fae9025b9
4 years ago
caoyuan ad00e6d41b Replace URLs with URLs
1. Replace URLs with URLs
2. Update some URLs to latest

Change-Id: Ifcb01ece24fb28d4dc28daa0a638787280fe8eb5
Closes-Bug: #1826529
4 years ago
Zuul bced00648a Merge "Deprecate ostestr command" 4 years ago
Masayuki Igawa a5bc990fdc
Deprecate ostestr command
This commit adds deprecation comments to README, the user doc and
warning message to in the command. We already switched to use
`stestr` command instead of `ostestr`. And we haven't maintained
this command recently. So, it would be good to make it clearer for

Change-Id: I3a6084db9f86627e3e94abaa4fb4aec52a01126a
4 years ago
Zuul f16df2636c Merge "Fix warning message with double "to"" 4 years ago
Zuul 6065273938 Merge "Dropping the py35 testing" 4 years ago
Zuul 0d8c307859 Merge "Default concurrency to 0 to avoid TypeError in stestr" 4 years ago
Andreas Jaeger 70f183c052 Fix warning message with double "to"
Fix warning message:
One "to" is enough, also improve sentence with adding "file".

Change-Id: I69b1f9f30ac51a5d34eec78ceda8fdd9405a6ff1
4 years ago
Ghanshyam Mann 77002ea67d Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:


Change-Id: I05cd5327a5ab883701fa183a1b4264f91219147c
4 years ago
OpenDev Sysadmins 5674bb0f7c OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at with any
questions you may have.
4 years ago
Tim Burke 595c06c5bc Default concurrency to 0 to avoid TypeError in stestr
The traceback would look like

Traceback (most recent call last):
  File ".../bin/ostestr", line 10, in <module>
  File ".../os_testr/", line 263, in main
  File ".../os_testr/", line 259, in ostestr
    return _select_and_call_runner(opts, regex, others)
  File ".../os_testr/", line 212, in _select_and_call_runner
  File ".../os_testr/", line 167, in call_testr
  File ".../stestr/commands/", line 334, in run_command
    concurrency = _to_int(concurrency)
  File ".../stestr/commands/", line 39, in _to_int
    i = int(possible)
TypeError: int() argument must be a string or a number, not 'NoneType'

New enough stestr will tolerate it, but still write a warning to stderr.

Change-Id: I70a3ed6c3edaafc8bb6269b1ae07bd46b06f4db4
4 years ago
ZhongShengping a36d10a3e3 add python 3.7 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.7.

See ML discussion here [1] for context.


Change-Id: Ie0f72a6fc73bd9d756580bab4b175f04f64c36d3
Story: #2004073
Task: #27445
4 years ago
Zuul 381f52460d Merge "Updated from global requirements" 5 years ago
Zuul a2d968d949 Merge "Removed older version of python3.4 from setup.cfg" 5 years ago
Zuul 2f381283b2 Merge "Change openstack-dev to openstack-discuss" 5 years ago
Zuul 7a8fa94fcd Merge "Trivial: Update pypi url to new url" 5 years ago
qingszhao bb4bfbf857 Removed older version of python3.4 from setup.cfg
Change-Id: I96340f63f7d9cb14b5552de0b1aa28c39720f902
5 years ago
Manik Bindlish 59db2ded82 Change openstack-dev to openstack-discuss
Mailinglists have been updated.
Openstack-discuss replaces openstack-dev.

Change-Id: I18dac707d84cf34ae4af2b506ff9e95ce8833383
5 years ago
Zuul 501f45e8c7 Merge "fix tox python3 overrides" 5 years ago
melissaml 6a73644bb1 Update the home-page URL
Change-Id: I6aee0373b0302fe8cf900c1979f2fd88e10fd847
5 years ago
ZhijunWei ed3bc63778 Use updated hacking url link
Change-Id: I6895bb9cd61a5d0d7432be8057cf07b6fecd1765
Closes-Bug: #1798135
5 years ago
Zuul fba4bbe16b Merge "Remove useless links and indentations" 5 years ago
Doug Hellmann dd00f4b0dd add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:

Change-Id: I642cc6ec6fabd507e3953ce9c4d5acaabb72524b
Story: #2002586
Task: #24327
5 years ago
Doug Hellmann 1807cefc45 switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:

Change-Id: I659dfddd562e051633902f7b57e27f6e02880576
Story: #2002586
Task: #24327
5 years ago
Doug Hellmann de316a64dd import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are

See the python3-first goal document for details:

Change-Id: I7fe9740c9fe5e6f386d88f7930a79a8c25316ebf
Story: #2002586
Task: #24327
5 years ago
Zuul cd208b1009 Merge "Fix load command in pdb/no-discover path" 5 years ago
huang.zhiping 9b412d7c14 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I721815ac34e3cd0bc84a5e69104aecfe7fd62e79
5 years ago
melissaml ca7669b283 Trivial: Update pypi url to new url
Pypi url changed from [1] to [2]


Change-Id: I493d691b5439b99eb77ae7ac7f36e0cdada92d2c
5 years ago
OpenStack Proposal Bot cc19ccf1cf Updated from global requirements
Change-Id: Ib7fd77cb0060f9b9eaecef34caeac0a752985f98
5 years ago
Matthew Treinish 2b3e2e88f7
Fix load command in pdb/no-discover path
This commit fixes a small oversight in the ostestr --pdb/--no-discover
path. When we go to load the results from the run the command used to
load the results was still using testrepository, which is not used
anywhere else in ostestr at this point.(and is not in requirements.txt
anymore) This commit fixes this and switches it to use stestr instead.
That also exposed another bug in that code path where it was assuming
a repository was created before ostestr was run which is fixed as part
of this commit.

Change-Id: Icb3492ab0f08248a33f711807b150b4a9748fda6
5 years ago
Zuul c224acc664 Merge "Avoid for constraints support" 5 years ago
Zuul 206e3275c1 Merge "Fix regex builder" 6 years ago
Andreas Jaeger 3eba9cd1bc Avoid for constraints support
We do not need, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/ file.

This follows to remove

Change-Id: I37fdd240862d4369160c3e7a7e5a004a154a5944
6 years ago
Masayuki Igawa 88bdf7d690
Remove useless links and indentations
This commit removes useless indices links on the top page and

Change-Id: I32f89d298d579db5210217c9b8e3bc431c6567fd
6 years ago
Szymon Datko 96db91056a Fix regex builder
Currently when the blacklist_file and regex string is provided,
the constructed regex looks like '^((?!black1|black2|...).)*$regex'.
This is incorrect, as it will match nothing - some string
is expected after end of the line [denoted as $ in the regex].

The proper construction is like ^(?!black1|black2|...).*(regex).*$
This solves the issue with Tempest, where using blacklist for smoke
tests is not working now, as it leads into the issue described above.

Change-Id: Icdeb3c311f7eb414158aedb4c030494b419211c0
Closes-Bug: #1506215
Closes-Bug: #1595119
Closes-Bug: #1622722
Closes-Bug: #1669455
6 years ago
OpenStack Proposal Bot 22644f427a Updated from global requirements
Change-Id: I76b5efd2322c33d7590f1cca8dd903a00bf7d0a8
6 years ago
OpenStack Proposal Bot 3fd82f674c Updated from global requirements
Change-Id: Ida421aa8b1a31c2c8f21d30ca88157126e84e762
6 years ago
Luigi Toscano b6ac6ac48e Fix .testr.conf detection: test path follows discover
Apparently if -t is not specified, the path to the unit test directory
follows immediately the "discover" keyword.
This fixes the discovery for the .testr.conf in the sahara repository
(even if is being replaced by .stestr.conf, the fix may still be

Also, split the code which discover the legacy values in its own function
to simplify the testing.

Finally, disable hacking rule H405 which kept flagging incorrectly a long
multiline string as docstring.

Change-Id: Ide155a8e6b2b746c81388bacc0822c68d853b5a1
6 years ago
Matthew Treinish 7dd678e372 Switch to stestr under the covers
This commit switches the ostestr command to use stestr under the covers.
This simplifies the majority of the logic, eventually ostestr will
be deprecated as a result of this migration. (since almost all the logic
here is contained in stestr already)

Depends-On: I2c7618a742439fd2ed26879f3114f0f66fd6337f
Change-Id: Id7cb2a39a8308f1413608dcf19273a1d7f33592e
6 years ago
Divyansh Acharya 8ca44080d7 Just changed the opening of the file
Previous code worked fine in python 2.7 but generated
"ResourceWarning: Unclosed file" in python 3.4+
Does not change the funtionality of the code at all.
Also updated the unit tests to work with the new code.

Change-Id: If98df5c4905f4b5a22602ba19224f9368fc8129f
6 years ago
OpenStack Proposal Bot cdda299fa9 Updated from global requirements
Change-Id: I62dfb4d1deff0d062e335311732c32ea907b1872
6 years ago
Jenkins f59d90adfd Merge "Fail when no test case selected" 6 years ago
Jenkins 459665e8bf Merge "update doc URL to the new location in the readme" 6 years ago
Jenkins d67e6a1ff5 Merge "rearrange content to fit the new standard layout" 6 years ago