Commit Graph

16 Commits

Author SHA1 Message Date
Guilherme Steinmüller b9a2cc75ab Retire openstack-ansible-os_almanach
Change-Id: I5fb5593772c41f5c18154c7ac77a12bfa79de625
2019-04-24 16:40:02 -04:00
Vieri f475bb53bb 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: Ib41b2ea8657a996459e43caaac81f5020c0bb31a
Closes-Bug:  #1801657
2018-12-01 10:56:05 +00:00
Doug Hellmann 478249c85b 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: Ie6a36ec96e12baac3c642bef25c22e72cf08f6e5
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:42:43 -04:00
Jesse Pretorius aff6de769c 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: I4863378335fea1541a6323cfad909b957c394bd7
Needed-By: https://review.openstack.org/579371
2018-08-16 15:31:11 +01:00
Heba Naser f77205b26e 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: I48215dec6a37b0f99e65aa29219d8a80e8e44fec
2018-07-02 12:29:51 -04:00
Jesse Pretorius c9e7d54212 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: I7c2b38c7cb07da34bb435e99a0eae1ec0eba5899
2018-03-28 10:12:49 +01:00
Jesse Pretorius 4f61d47338 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: Ia17c9a50ff673557bf33992bd911abdcac61069b
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-15 17:57:39 +00:00
ZhongShengping 95d6063c02 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: I66c2cd22230d849cf8669bb768264c49d0e453b6
2018-03-09 12:01:26 +08:00
Jesse Pretorius 705339b5e8 Initial OSA zuul v3 role jobs
This patch implements an initial set of jobs intended to match
the current job execution method. It does not intend to improve
how the jobs are executed - only to replicate what is currently
in openstack-infra/openstack-zuul-jobs and provide the platform
to iterate on.

The meta-deps never appeared to be used, meaning that the
openstack_openrc role was never used either, and given that
vars are missing to make that work, the role dep has been
removed.

The requirement for httplib2 to use the get_uri module was
removed in Ansible 2.1 [1], so the installation of that for
functional testing has also been removed.

The requirements.txt was not used anywhere, so it's been
removed. The test-requirements.txt has been updated.

[1] http://docs.ansible.com/ansible/latest/uri_module.html#notes
Depends-On: I0391ec310c4eede436011a48490e3c524c8ddf4d
Change-Id: I186b3d7a17f964192b593d2f8734b3458a3cb671
2017-11-03 13:41:58 +00:00
Jesse Pretorius 94119ac772 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: If6ae220ba5f1a2579f72647d9f0ca91cadaf2682
2017-06-04 11:19:30 +01:00
Jesse Pretorius 8c1815194f 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: Ie027302841a31913ca98dfcb2a6d227986f434ae
2017-05-16 11:27:05 +00:00
Cao Xuan Hoang c9d4ca628e Use https instead of http for git.openstack.org
Trivialfix

Change-Id: Ifc2b779bb33b6df7d1e98116f29fc187cde0a725
2017-02-06 16:39:48 +07:00
Frédéric Guillot 837e546212 Make project compatible with CI infra
Change-Id: I5a6e77b98566ee7086f2d9b68d3ac55747ad2778
2016-10-31 14:27:36 -04:00
Frédéric Guillot f9760d8c98 Make the role compatible with Ubuntu Xenial 2016-10-05 13:02:06 -04:00
Frédéric Guillot 7610442766 Use OpenStack project layout 2016-10-04 11:43:09 -04:00
Frédéric Guillot 6d5caad09a First commit 2016-09-15 16:32:49 -04:00