Commit Graph

16 Commits

Author SHA1 Message Date
Tony Breeds
06d4b4ccac Sort the freeze_venv output
When looking at the console log it's more human friendly to sort this output
then for example all the oslo libraries are togther.

Change-Id: Iefe9184c9746e0c6ad487418ceda578bf7b363ff
2016-05-04 03:27:18 +00:00
Monty Taylor
8c019d2783 Stop emitting warning on missing nose files
OpenStack, with one exception, uses testr to run its tests. That means
that the expected outcome of run_tox.sh is that there is no
nose_results.html - however we emit a warning about it being missing on
every run. For folks less familiar with our systems trying to debug test
failures, it's a line that could confuse them.

Change-Id: I60f6b1f1e49bb8b001d5e9743273830188b150f1
2016-03-26 08:59:13 -05:00
Jeremy Stanley
03695eb421 Add missing semicolon in run-tox.sh
The find invocation in run-tox.sh needs a terminating ";" (oops!),
not just a "\" at the end.

Change-Id: Ib39ed79d9c0e81bb2800b1965fcc2b06e5aa5dfe
2016-02-08 16:52:58 +00:00
Jeremy Stanley
f0ed34f206 Rename .log to .log.txt in run-tox
Apache knows .txt files are text/plain by default, but doesn't know
what to make of .log files. Rather than hack encoding overrides into
our logserver vhost, just rename the log files by tox only
in run-tox.sh before uploading so that they can be served properly.

Change-Id: I03cba279037259fcaa5073d67caf23662b3a59d2
2016-02-03 22:16:38 +01:00
Sachi King
b2e4397ca4 Add constraints jobs to Jenkins
This adds the required jobs to jenkins to allow jenkins to call tox with
the 'constraints' factor added.  This will allow a reasonable way to
test running unit-tests against a virtual environment installed with
constraints on upper-constraints.txt

Change-Id: I17ac389f78af241917b6da7f049085f2b13d30f2
Implements Blueprint: Requirements-Management
2015-09-02 12:12:52 +00:00
Matthew Treinish
c2b589e35c Remove the local copy of subunit2html
This commit removes the local jenkins slave script copy of
subunit2html and switches to using version packaged in os-testr.

Depends-On: I0e27d9401883edd3e254ef4b598c6a58530f52bb
Change-Id: Ib65c41fc5f137eedb21fccfcee1e96b6990ae30d
2015-08-25 20:52:49 +00:00
Jenkins
f6f0d175bc Merge "Switch to using $() for subshells, part 2" 2015-06-10 13:00:16 +00:00
Steve Kowalik
e3060b094c Switch to using $() for subshells, part 2
Cleanup every use of `` for subshells in the jenkins/scripts
directory, replacing them with $(), and finally making the
scripts consistent.

Change-Id: Id3e45fb873c1ebeae6ab63a0caa4c427a7ccbb62
2015-06-04 15:33:48 +10:00
Matthew Treinish
82e5bbb235
Cleanup subunit capture in run-tox.sh
This commit cleans up the subunit capture section of run-tox to
accomplish 2 things. First make the output naming consistent with
dsvm jobs and call the subunit output testrepository.subunit. The
second is to avoid using subunit-1to2 directly. A subunit v2 stream
can be achieved directly from testr last by using the --subunit
flag.

Change-Id: Ica644535f54e28306f4db97217b77f95d2f5943b
2015-05-29 12:14:45 -04:00
Paul Belanger
59d2261efb Remove local scope in favor of global variables
Local scoping should be used within functions, as such lets make these
variables global.

Change-Id: I5499e7ab8baf17bac7c5e11b34cc920e25721040
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-05-28 12:07:09 -04:00
Maru Newby
2a47ba1fce Clean up run-tox.sh to make it easier to reuse
This change is the first pass of making run-tox.sh usable by
functional jobs.  It moves potentially optional checks into functions
to make it easier for subsequent changes to be able to conditionally
execute them.

Change-Id: I2b47ad8cfcd7d1a6dd9a86fe8dc8c682c433ab63
2015-05-12 23:17:23 +00:00
Clark Boylan
25541f1ec5 We want to run freese in venv not with tox target
Running the freeze command as posargs to tox targets is unreliable as
those commands may be interpreted as arguments to other commands rather
than as commands themselves. For example `tox -epy26 -- pbr freeze` is
likely pass 'pbr freeze' as test name filters to the py26 test runner.

Instead what we want is to run pbr/pip freeze directly out of the venv
in question.

Change-Id: Iefb8ae4e82dcd31306d03befdc9766f2c1291571
2014-12-23 10:44:10 -08:00
Monty Taylor
ad5bbb498b Move to pbr freeze from pip freeze
For the things that use pbr, we no longer have git shas in the version
numbers. So, in order to verify what exact version of things we're
installing, use pbr freeze to collect the information.

Change-Id: I41ff993aa86e6a7ac1beed3cc5a3b94dcadbdd7c
2014-12-16 22:53:48 -05:00
Clark Boylan
5c76196309 Make run-tox a super set of run-unittests
It turns out that we want unittest like things even when not running
unittests. Specifically we need things like subunit logs when running
functional tests. We should remove run-unittests and move to a single
tox runner script wherever possible. This means jobs simpler and results
in fewer surprises.

This change is the first in a few to make this happen. Step one
(implemented here) is to make run-tox.sh cover the use of
run-unittest.sh so that we can replace run-unittests.sh with run-tox.sh.
Once this is done and on all of our slave images we will convert all
jobs that use run-unittests.sh to run-tox.sh. Finally we can delete
run-tox.sh.

At some point we should consider doing similar for pep8 jobs and doc
jobs.

Change-Id: I457182df6a17cd599e528217cd7583212164f346
2014-12-01 08:33:48 -08:00
K Jonathan Harker
2f03cf35e5 Clean up bashate failures
Also create tools/run-bashate.sh to wrap a find command to search for
files to run bashate on, and use it in tox.

Change-Id: I5ab07425f566a556f158a4b76b00aa35f9fb4385
2014-09-30 12:39:48 -07:00
Anita Kuno
1d21cd635f Reorganizes project-config
This repo was created from filter branching the openstack-infra/
config repo. This process brought a lot of cruft with it in the
form of directories that we no longer need. This patch removes
that cruft so we begin with a tidier repo.

Change-Id: Ibffad1b11c0c5f84eedfb0365369f60c4961a0f3
2014-09-25 11:41:04 -04:00