Commit Graph

152 Commits

Author SHA1 Message Date
Tony Breeds f3df9c92d3 Retire Packaging Deb project repos
This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).

Change-Id: Ia5a15a7e460cb5c23a7f74818b0f916da6ecaa85
2017-09-12 16:08:56 -06:00
Jenkins 459665e8bf Merge "update doc URL to the new location in the readme" 2017-07-11 21:41:25 +00:00
Jenkins d67e6a1ff5 Merge "rearrange content to fit the new standard layout" 2017-07-11 21:41:20 +00:00
Dong Ma 4c04fbb5df Switch from oslosphinx to openstackdocstheme
As part of the docs migration work[0] for Pike we need to switch to use the
openstackdocstheme.

[0] https://review.openstack.org/#/c/472275/

Change-Id: Ibb797e7a004f9a4c29ea38bb8e1f66000c105b0f
2017-06-29 17:24:44 +08:00
Dong Ma 5355774b5e update doc URL to the new location in the readme
Change-Id: I1cdcd0af5b92503096f1b00dcb7a42f94dced70e
2017-06-29 00:09:05 +08:00
Dong Ma b8377259c5 rearrange content to fit the new standard layout
Change-Id: Ia24cdc07e81814329108ea841231d8a721726b7e
Depends-On: Ia750cb049c0f53a234ea70ce1f2bbbb7a2aa9454
2017-06-29 00:07:49 +08:00
Dong Ma 6849cc4ef9 Turn on warning-is-error in sphinx build
Turn on the flag to ensure that future warnings in the doc build
trigger a build failure.

Change-Id: Ib2958d90503c8f4206a45abf225a3dd87af2796e
2017-06-28 08:58:48 +08:00
OpenStack Proposal Bot e605216736 Updated from global requirements
Change-Id: Ia814cd086d59bb6dc386690882798dde7d31ed83
2017-05-17 03:56:09 +00:00
OpenStack Proposal Bot e84d06292b Updated from global requirements
Change-Id: Idd74ac40dcc4b6e32d246975a5fcad87711c753a
2017-05-16 14:36:42 +01:00
Andreas Jaeger 2fac2de2c6 Remove unused Babel setup
This repo is not translated at all - and not setup for translation.
Remove Babel and Babel set up.

Change-Id: Ie3c3d705f50f5de41776a6e5e01db214f9e0e3a4
2017-05-16 12:35:38 +02:00
Jenkins 07e0b06f88 Merge "Fix error when without --regex option" 2017-03-03 00:04:01 +00:00
OpenStack Proposal Bot a030c7a928 Updated from global requirements
Change-Id: I02a4190771c569c0b80888cda867b9364b2b13b2
2017-03-02 17:50:34 +00:00
ricolin ba2b96a5c5 [Fix gate]Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: I2c64bcc0b9f95506dad99c93223e6b85f3101708
2017-03-02 22:04:00 +08:00
Masayuki Igawa 289b7e3d38
Fix error when without --regex option
This commit fixes the error when executing without --regex option.

Closes-bug: #1666569
Change-Id: Iee7037328e41c1087b87219dac4256d50784ae64
2017-02-21 16:41:00 -05:00
Jenkins f0e3a1a014 Merge "Track failures during sorting of test results" 2017-01-30 14:35:24 +00:00
Jenkins 90cc78ab0a Merge "Fix typo and change regexp to regex" 2017-01-30 14:28:38 +00:00
OpenStack Proposal Bot dbe3aea521 Updated from global requirements
Change-Id: I05ae50eb523059947800b2897998e48948141605
2017-01-27 02:13:19 +00:00
Jenkins 5fd84420f8 Merge "Save subunit results file when using --no-discover" 2017-01-27 00:40:10 +00:00
Tony Breeds 44dc02b52a Add Constraints support
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.

This change adds constraints support by also adding a helper script to
edit the constraints to remove os-testr.

Change-Id: I258a88eda480c264386947cecbf99631dc777757
2016-12-21 12:08:17 +11:00
Masayuki Igawa ac8fb7ca90 Fix typo and change regexp to regex
This commit fixes some typos and changes 'regexp' to 'regex'. I think
'regexp' is also correct. However, in ostestr, they are mixed. So users
may be confused with it. So let's fix it.

Change-Id: I6c9042527707315f5dbb56f4a406327668c57d04
2016-12-02 17:18:08 +09:00
melanie witt b296846535 Track failures during sorting of test results
The current logic only considers the first occurrence of a test class
and doesn't update a class's pass/fail status after that. So a test
class, for example:

 TestClass
   test_1 pass
   test_2 fail
   test_3 pass

is counted as a passing test class even though it has a failure.

This adds failure tracking to the test result sorting so that any
failure in a test class will make it considered a failing test class
and be sorted at the top of the HTML result page.

Closes-Bug: #1640889

Change-Id: I06919336a09c4afda8ec3a9e7d64d305fbd169c3
2016-11-10 18:24:09 +00:00
Jenkins 0de62e38e6 Merge "Updated from global requirements" 2016-09-28 18:42:04 +00:00
OpenStack Proposal Bot 31d8af447d Updated from global requirements
Change-Id: I4cb237988b985757f1445b1952870c0a1228f370
2016-09-28 16:59:18 +00:00
Matthew Treinish 3acc96e47a
Handle overlapping black regexes
It's very common for blacklist files and/or a black regex to have
overlapping matches. In this case ostestr was incorrectly trying to
remove tests from the set of test cases more than once. This commit
fixes this case by simply adding a check if the test is in the set
before trying to delete it. If it's not there, then something else
already removed it from the set of tests we'll be running so we can
just move on.

Change-Id: I1dabf9fb9c182af3dd6e124e79e54e1eb99bed82
2016-09-27 15:28:21 -04:00
Jenkins 158b2506b7 Merge "Make subprocess outputs to text for Python 3" 2016-09-27 18:53:27 +00:00
Jenkins f56858b041 Merge "Update home-page url" 2016-09-27 18:53:22 +00:00
OpenStack Proposal Bot 0457b5f688 Updated from global requirements
Change-Id: Idbe09e4fe3eea577cbb8b383b1d820320cb1c23e
2016-09-27 10:06:05 +00:00
guo yunxian 3eb8ebc560 Update home-page url
You will see os-testr home-page url as follow:
http://docs.openstack.org/developer/os-testr/

So this patch update the home-page url.

Change-Id: Id3f8e4e937f63876a7729425f5d0473ff8d9ea64
2016-09-26 10:14:43 +00:00
Jenkins 91e4c776fe Merge "Add ostestr as a function" 2016-09-21 12:59:50 +00:00
Jenkins a0be39dede Merge "Error on invalid list parameter combination" 2016-09-21 12:59:13 +00:00
Attila Fazekas f2187de8e0 Add ostestr as a function
The new entry point is created to allow external python programs,
to call ostestr without using an execve(2), and get the same
functionalty as using it form command line.

ostestr expected to work if it called multiple times in a
sequence. Parallel usage is not considered, but is similary safe as
the underlaying test(r) commands.

The explicit exit calls get replaced by returns.

Change-Id: I8efa495347a6956ef0a188063e6f474a4bbe8101
2016-09-21 14:05:45 +02:00
Attila Fazekas 16416b2eef Error on invalid list parameter combination
pdb and no_discover cannot be combined with black or white lists,
it was documented, but not checked.

Change-Id: I7168aef00505cb94051e2e587381efba9fd3e445
2016-09-21 13:59:34 +02:00
Attila Fazekas 359224b4b0 Use dash instead of underscore in args
--whitelist_file, --blacklist_file is an unusual argument,
because of the underscore usage instead of
--blacklist-file/--blacklist-file .

Adding support for the '-' variant, and documenting only the
the '-' variant in the rst.

Change-Id: I8cc8197719f45bcfc05dc9412a03b9b1fe69e722
2016-09-21 11:57:12 +00:00
Attila Fazekas 113e038869 Add --black-regex/-B option
Adding option for reject regexp,
it works like any entry in the black list file,
so after the basic test selection regexp (including the white list),
the test cases satisfying the black-regexp search condition
 will be removed from the final test list.

Change-Id: Id9fecf4aaa799828ae38b31ff3a4798763edfdd1
2016-09-21 11:57:52 +02:00
Attila Fazekas b39332d760 Allow to specifiy black/white list at the same time
Allow to specify both black list and white list file at
the same time.

Change-Id: Id112c01f6fad0bd568bd9178ee30338b885f1223
2016-09-19 14:31:42 +02:00
Attila Fazekas ea7fb00122 Make the listbuilder the default strategy
The listbuilder is able to support very long white list.

construct_regex is considered as deprecated function,
but external project like tempest still using it at the moment.
os-testr internally does not uses it anymore.

Change-Id: I0748605207eaad3065e18b84eecc9ddc4e47404e
2016-09-19 14:30:22 +02:00
Attila Fazekas a3b403bd4e Construct a list of test cases instead of passing a regexp
The way how we handled the regular expressions had a lot of
limitation.

 - We are not able to pass huge arguments to testr, it makes
   difficult to have long list if accepted and/or rejected test cases,
   but we can pass a path to a file of test cases,
   which can be arbitrary big.
 - How we wanted to handle the backlists before was not worked together
   with the regular selecting regex because it consumed the pattern.
   Now the blacklisting happens in a separated phase after the selecting
   regex search.

This change just allows the new code path to run when both
 a blacklist_file and a selecting regexp specified.

The new way depends on the usual test discovery and just
filters the output of the discovery command,
this strategy can be the default in the future, now I just
wanted to preserve the old behavior as much as possible in
all the other cases.

Change-Id: Ie8e5928e286d0c9076c4eee23319149c9869a6fa
Closes-Bug: #1506215
2016-09-19 14:26:03 +02:00
guo yunxian 6afbb43fce Add support for Python versions
Community now has support for Python 3.5, this patch adds this.

Change-Id: Id71b826337b871bc10b28220529ba60c1ba0a9c1
2016-08-16 13:51:37 +08:00
Jenkins 48c4dd5b2a Merge "Delete openstack/common in flake8 exclude list" 2016-08-15 15:05:23 +00:00
Jenkins 8262a53a7f Merge "Remove discover from test-requirements" 2016-08-15 15:05:15 +00:00
guo yunxian 027bce4f52 Delete openstack/common in flake8 exclude list
The directory openstack/common was used to keep codes
from oslo-incubator, we have retired oslo-incubator,
so don't use this directory any more.

Change-Id: I8bec126e0e1b66cfde8f683901bd3c5b4d974962
2016-08-13 17:31:56 +08:00
Luz Cazares 054fb04f66 Save subunit results file when using --no-discover
When using ostestr --no-discover flag. The output subunit
results file is not saved under .testrepository as it is
when using testr run command.

Change-Id: Ied6c5a46661b3b36bf15fd538bc6cac764fddcc8
Closes-Bug: #1597111
2016-08-13 06:46:52 +00:00
Attila Fazekas 083faa0741 Simplify logic in _get_test_list
_get_test_list had the same action for the elif case,
it was replaced by 'or' .

Change-Id: I2be9974beea3ca398d61e58726a63518b15cf3c4
2016-07-27 15:40:15 +02:00
Jenkins e15700f1b9 Merge "Make unexpected success as fail" 2016-07-07 21:14:31 +00:00
Thomas Bechtold 13f99a99e6 Remove discover from test-requirements
discover is only needed for python < 2.7 which
is no longer supported.

Change-Id: I49978500bc098e60c09dc2936a21e4f62057077c
2016-07-04 09:14:05 +02:00
Masayuki Igawa 056794cdde Make subprocess outputs to text for Python 3
This commit makes subprocess outputs to str with universal_newlines
option. In Python 3, we need to do it explicitly. Otherwise an error
occurs. This commit also adds a unit test to prevent regression.

Change-Id: I2e428a3c57357e47c9057e8dbbbb51ae4b65e4e6
2016-06-30 16:49:10 +09:00
Masayuki Igawa 2b33cfa983 Fix doc warnings and disable smarty-pants
This commit fixes some doc warnings and disables the smarty-pants
function. The html_use_smartypants function renders '--' to '–'(&#8211;)
but it's not good for command options.

Change-Id: Iab0a93db86f46f26b074ca3e9904fd5ff1b0f533
2016-06-29 13:57:02 +09:00
OpenStack Proposal Bot 023351aef2 Updated from global requirements
Change-Id: I22e18be6ce0cedec98063a848d205b292d0b92e1
2016-06-22 05:46:39 +00:00
Matthew Treinish 89594a37e6 Remove the TODO file
The problem with TODO files is they require constant commits to keep
up to date, and this rarely happens. As is the case here where this
file is now quite stale and hasn't ever been updated. This commit
just drops the file in favor of just using launchpad as our task
tracking solution.

Change-Id: Id576d0f4dab2ecaf28db93909b7860306898a759
2016-06-21 19:23:47 +00:00
Jenkins b2d7365c89 Merge "Sort failed tests at the top on HTML result page" 2016-06-21 18:49:43 +00:00