Commit Graph

26 Commits

Author SHA1 Message Date
Ghanshyam Mann a43311b7ef Retire Tripleo: remove repo content
TripleO project is retiring
- https://review.opendev.org/c/openstack/governance/+/905145

this commit remove the content of this project repo

Change-Id: Ic209179b0be9c3746a702ccea2dd35e883e78bee
2024-02-24 11:43:49 -08:00
Cédric Jeanneret 7adf4508cf Fix issues with tox 4.2.4
tox now hard fails if there is mismatch in spec
attributes[1]. This works around the issue
temporarily. We probably have to drop py38 jobs
and specify basepython for py39 target in the
future.

Removes ansible-galaxy --timeout for py* jobs to
workaround. We may hit the timeout with py* jobs.

[1] https://github.com/tox-dev/tox/pull/2824/

Change-Id: Ie9bacf18cf167139601eff80bba91f2b3454b5dd
2023-02-02 13:27:43 +01:00
HeroicHitesh 7b7458b317 Migrate from testr to stestr
* Replace .testr.conf by .stestr.conf for migration and update
  .gitignore, tox.ini and test-requirements.txt files accordingly

Signed-off-by: HeroicHitesh <email.hiteshkumar@gmail.com>
Change-Id: Ia577800e7a342beaad58009239a98b9e7044d01a
2021-07-12 20:34:26 +05:30
Sorin Sbarnea c69ead8b45 Drop pbr version ceiling and add py39 testing
- Ceiling of pbr version can create installation conflicts with pip.
- Fixes tox default env list to be python version agnostic
- Updated template to use newer jobs (include testing with newer python)

Bug: #1921679
Change-Id: Ifd0d2f810799992faa1db41b80bf93bc97d5d19d
2021-03-30 10:57:41 +00:00
Hervé Beraud 3ce55b5039 Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver [1] for the release team [2][3].
Removed specific doc requirements from test-requirements.txt.

The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to
pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.

This project meet the conditions leading to the bug and it already faced
it previously [1].

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36

NOTE: Also fix CI clear pbr constraints, relax hacking contraints,
fix H214 Use assertIn/NotIn(A, B) rather than assertTrue/False

Change-Id: Id7ed00333ba9571ef9e0d8f300714835ba63551b
2021-01-06 16:22:12 +02:00
Hervé Beraud c1a598f643 Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is deprecated and TOX_CONSTRAINTS_FILE is
the new environment variable name that replaces it [1].

This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
[2] https://review.opendev.org/#/c/722814/

Change-Id: I36368c5725c9e664e3c57b6d5339bdbf93fa9479
2020-11-09 18:00:26 +00:00
Wes Hayutin 51373e6046 remove py27 in tox.ini from tripleo-image-elements
Remove python 2 from envlist parameter. Check the link:

https://etherpad.openstack.org/p/drop-python2-support
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

The plan is drop the python 2 support from OpenStack in Ussuri release.
Move the basepython parameter.

Change-Id: I2661314199ea252d080dfff2b5daa5d3b87ccabb
2020-04-01 21:28:33 -06:00
pengyuesheng c94f6b7a30 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Iadc1926ca916a4c0cefa46a80a7505876f7f666a
2019-09-26 10:18:30 +08:00
Corey Bryant 4b51f22b97 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:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: I99b437baa4f2a419c471064045aa358e3f05ceb5
Story: #2005924
Task: #34253
2019-07-12 16:21:47 -04:00
jacky06 c5984fc6d7 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: If299ebc5849502954e812947c5b80006573710ed
2019-05-28 14:40:51 +08:00
Zuul 29cdddc7fa Merge "[Configuration] Add missing py37 and corrected default envlist." 2019-01-17 23:57:15 +00:00
Natal Ngétal 08596fd4c7 [Configuration] Add missing py37 and corrected default envlist.
Change order of default tox envlist in order of likeliness to fail on a
new change and add py37 and py36.

Change-Id: If665ba6101ab2419a4418d7bb473ae5bb5b890c4
2018-12-19 11:10:12 +01:00
Natal Ngétal 5e75375e9f [Configuration] Update min tox version.
The commands used by constraits need at least tox 2.0, update to reflect
reality, which should help with local running constraints targets.

Change-Id: I422714a265305143137c345cb86b6e0318d68df2
2018-12-19 11:00:25 +01:00
Doug Hellmann 464d44975e 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: I7ac34fa0215114f3d7345abd183c84159a30440e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 19:04:28 -04:00
Alex Schultz a7837c9430 Add python jobs to tripleo-image-elements
This change also fixes the python tests to properly mock the path so our
stubs work if the command already exists on the system path.

Change-Id: I7c54b1d99e7cf6c4e3f4ded8c518bf447b2ba1de
2018-05-31 10:50:16 -06:00
Emilien Macchi fbfe282203 Add reno support
Change-Id: I1d482797282d9f5c08f14c83b24ef55d2e0bf41e
2017-01-29 14:40:35 +00:00
Jenkins a13bbf48cd Merge "py26 is no longer supported by Infra's CI" 2016-03-15 21:31:56 +00:00
Ondřej Nový 91d75d6653 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: Ie6370bf4beb9a5a1e67a7e2d430daf43f9b45301
2016-02-19 20:15:08 +00:00
janonymous 1f42564d15 py26 is no longer supported by Infra's CI
Python 2.6 support would be dropped by
Infra team from mitaka,CI would no longer be testing it,
so projects should drop it too.

Change-Id: Ie229982e38b53eb52a7e1e20a1e1be9465181137
2015-12-26 14:40:37 +05:30
Gonéri Le Bouder 0172b5aacc PEP8 on the doc and elements files
ensure the Python scripts in the doc and elements directories are PEP8
compliant.

test_os_svc_daemon.py test is fixed in another patch:
  I9b1859f9fc5846c7c42606644231105618e1a1a0.

Change-Id: If5068ef77d6643c19de36bfcf4b4bf790f86b538
2014-08-19 10:02:00 +02:00
Clint Byrum f594ce9d9d Make python2.6 tests a noop
We do not ever intend for TripleO to be run on python 2.6 systems.

Change-Id: I7b5b2c8eb09d21b93b48b5aaa0528d281b0018eb
2014-04-18 11:14:45 -07:00
Clint Byrum 4b8b11e8b9 Create stub for build_sphinx
This will allow the docs jobs to pass which allows us to conform to the
OpenStack infra without specialness.

Change-Id: I4c80d71f211ed396cabda82dde088291a4bfe08d
2014-04-18 10:17:36 -07:00
Ben Nemec 05ac18a82b Enable unit testing
Adds the necessary scaffolding to run unit tests in this project.

Actual tests will be added in later commits.

Change-Id: Ia348dda6b482ca269dceace09f6ac3b24bbd6b32
2014-03-28 19:55:12 -05:00
Monty Taylor ae5d0c61a3 Align build files and requirements
This is not an actual python project, so there is an amount of cruft
in the repo that is not needed. However, it does generate tarballs in
OpenStack Infra, so it needs the tox venv environment and the pbr
setup.py stuff. It also is totally possible to check python files in
the repo for flake8 violations, so set that up.

Change-Id: Ifb94f65912716efe1c4596d552beee92d2dc3d6a
2013-09-28 23:18:29 -04:00
Robert Collins 7cbde9074e Remove diskimage-builder core contents.
Change-Id: I5c7826432bc9d8c1743ab4e575bd3edd5ba4af78
2013-04-06 21:35:05 +13:00
Clint Byrum c3ee071d73 Make it possible for openstack-CI to run tests
Per http://wiki.openstack.org/ProjectTestingInterface we enable all
of the commands except build_sphinx because we do not have any sphinx
documentation as of yet. Includes babel support though there are no
properly internationalized strings just yet.

Change-Id: Iae6e6b3f9e605106f4575196fa5527d2187255df
2013-02-04 22:26:17 -08:00