Commit Graph

20 Commits

Author SHA1 Message Date
Ghanshyam Mann 53e0cdf310 Cleanup the retired repo
This repo is not properly retired. Retired repos can only have two files:
- README.rst
- gitreview

To cleanup the retirement of this repo, keeping these two files only and
removing the other remaining files if there is any.
Detail: https://etherpad.opendev.org/p/tc-retirement-cleanup

Change-Id: I42dab317ef0ffdafe406e14c6caf117487986e4e
2020-08-05 19:59:37 -05:00
tonybrad e4cee5cf66 Change the tests source to opendev
Change-Id: Id2995214941e4647980a288607b14f2142c3af6f
2019-05-21 08:48:40 +00:00
huang.zhiping 1b94921f1b 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: Ib8da36984dfe9d437f591c7f01e007496836cab2
Closes-Bug:  #1801657
2019-04-13 23:13:20 +00:00
Doug Hellmann afd08d0ac0 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: Id62804080329ceca910f30dfed95ac825547d408
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:43:53 -04:00
Jesse Pretorius a5580d59b9 Use the TESTING_BRANCH env var for constraints
The TESTING_BRANCH environment variable is provided by the
run_tests.sh script and is derived from the .gitreview file.

This ensures that once the master branch becomes a stable
branch, the constraints from the stable branch in the
integrated repository will automatically get used once the
.gitreview file is updated.

To ensure that the required environment variables are present
we export them appropriately in run_tests.sh and modify the
tox configuration to pass them into the tox test.

Change-Id: Ia785787095195017a22d9ffe5639edcf66434a55
Needed-By: https://review.openstack.org/579371
2018-08-19 19:26:09 +00:00
Heba Naser 327e7bab3f Use tests repo for common role test requirements
Using tox for requirements management requires in-repo
requirements files for all our repositories. Rather than
do that, we make use of the tests repo to capture our
common requirements and use this to install them.

This reduces our review requirement rate and simplifies
maintenance for us for the tox config. It also makes it
usable with 'Depends-On', which is marvellous!

The tox requirements definitions for docs/releasenotes
builds are left in-place as those are standard entries
across the community. If that changes at some point, we
can re-assess those entries too.

Depends-On: https://review.openstack.org/579208
Change-Id: I665bdd260a88cdf2aeb40659222b50427a278510
2018-07-02 12:51:21 -04:00
Jesse Pretorius 917fe543f6 Remove tests-repo-clone.sh
Now that run_tests.sh handles the tests repo clone, we can
remove the use of the older tests-repo-clone.sh script.

Change-Id: I0a216b43c95efd2912c8702a214f73899a5833eb
2018-03-28 10:15:02 +01:00
ZhongShengping 0818bc0a94 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

For more detials information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: Ife371c90161fdfd897ab6cab6bb90a0347b73690
2018-03-25 19:01:54 +00:00
Jesse Pretorius a05b419da0 tox.ini: Expose USER environment variable to execution environment
In order to allow the use of the environment variable which informs
Ansible which user executed the playbook, we pass the USER env var
into the environment that tox builds.

Change-Id: I4e4b08fbfd192d084a4804beb3382464a5b9a16c
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-15 18:00:21 +00:00
Jesse Pretorius 0c9a8d08e3 Ensure that role tests pin pip/setuptools/wheel
Currently the role tests use whatever versions of pip,
setuptools and wheel are already installed on the host.

When a version of these tools changes it often causes
problems for our testing.

This will ensure that we use a known good set of pins
which is maintained in the general SHA bumping process.

Change-Id: I26067405d4acc93da9a74cabfd05b11d5ee6aa5b
2017-06-04 11:21:48 +01:00
Jesse Pretorius 8bd891f359 Use zuul-cloner for tests repo in OpenStack-CI
When executing the tests repo clone in OpenStack-CI,
use zuul-cloner instead of git to enable cross-repo
testing. This ensures that if a dependent patch from
the tests repo is noted using 'Depends-On: <change-id>'
in the commit message, that patch will be included.

Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
Depends-On: I5da7802d61d2ab6b03908138e3a3ed2db22e3d29
Change-Id: I2fff63afb27266c2ade1ab70d86a423cc5235f21
2017-05-17 18:12:00 +00:00
Cao Xuan Hoang 1797aea3bf Use https instead of http for git.openstack.org
Trivialfix

Change-Id: I3cb4e567eec7798872799144427c980168b9fda2
2017-02-06 17:04:04 +07:00
Jesse Pretorius 295c256692 Use upper constraints for all tox targets
With the implementation of https://review.openstack.org/388087 all
tox targets may now use upper constraints.

Change-Id: I9fe8c2530b5b0a15e0a1f3cca787f5aad8e30a34
2016-10-19 07:43:34 +01:00
Jesse Pretorius e7d44d07cc Use centralised Ansible test scripts
This patch consumes the centralised Ansible test scripts
implemented in https://review.openstack.org/381853

Change-Id: I60f38b97141fc6517179ea69f24924950872e7d6
2016-10-05 12:15:40 +01:00
Jesse Pretorius 0f026bcac1 Remove install_test_packages variable
With https://review.openstack.org/381479 merged, setting this
variable in tox.ini via an extra var is unnecessary.

Change-Id: I30e08482306be24381e7b0572289b85f4d459e87
2016-10-04 11:42:07 +01:00
Jesse Pretorius 518bbe3003 Use centralised test scripts
This patch consumes the test scripts implemented by
https://review.openstack.org/375061 to ensure that
the tests and test preparation is consistent and
more maintainable.

Change-Id: I8b4bbd286f227f5b81e4bb25263b655614148b40
2016-09-28 09:20:30 +01:00
Kevin Carter 396d4f1335 Ansible 2.1.1 role testing
Change-Id: Ia82a196be0b469900dfdcfb9cd3a4e1887ba082f
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-19 15:40:30 -04:00
Jesse Pretorius d670672d99 Compress test execution logs
The volume of logs we collect in CI jobs are extensive. This
patch ensures that the logs collected are compressed to reduce
the space taken in CI systems.

PYTHONUNBUFFERED is also set to ensure that the console log
from the CI jobs is recorded in the exact order of execution.

Change-Id: Ic1f304611a16fafc4d3867108f76e938fa832110
Related-Bug: #1620849
2016-09-09 10:40:50 +01:00
Kevin Carter f95671bb3e Enable log collection after functional testing
This change enables log collection within the gate so that further analysis
on gate tasks can be performed post build. This is very useful when
debugging problems.

Change-Id: I40f95825a064f933ebc2a4f2467fc8ccc4b9e75d
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-08-29 21:37:01 -05:00
Travis Truman 641fab33a4 Role skeleton for os_monasca
So we can generate release notes, run tests, etc.

Change-Id: I3fcdd1ab92ac43393ab70117b228b7847f20da4a
2016-08-25 09:15:23 -04:00