Commit Graph

48 Commits

Author SHA1 Message Date
Ghanshyam Mann 120ef346df 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: I73e76d203878ef213816bf886b8172a0cff3bf28
2024-02-24 11:42:34 -08:00
Takashi Kajinami 35f2d79eea Remove tox skipdist=True
This does not work with latest tox 4.x.

Closes-Bug: #2000357
Co-Authored-By: Rabi Mishra <ramishra@redhat.com>
Change-Id: Iccf25bd75c2d11aee54f8846c69f7797a170edaf
2022-12-23 16:18:18 +09:00
Daniel Bengtsson 6bdf6f3fe9 Stop configuring install_command in tox.
Currently, we are overriding 'install_command' to use 'pip'. This is
considered poor behavior and 'python -m pip' should be used instead:

https://snarky.ca/why-you-should-use-python-m-pip/

It turns out that this is the the default value provided by tox:

https://tox.readthedocs.io/en/latest/config.html#conf-install_command

So we can remove the line and simply use the default value. This change
showed we needed a newer version of requests in lower constraints,
aliging with the version required by tripleo-common. This change showed
we needed a newer version of openstacksdk in lower constraints, aliging
with the version required by metalsmith. This change showed we needed a
newer version of keystoneauth1 in lower constraints, aliging with the
version required by openstacksdk. This change showed we needed a newer
version of decorator in lower constraints, aliging with the version
required by openstacksdk. This change showed we needed a newer version
of dogpile.cache in lower constraints, aliging with version required by
openstacksdk.

Change-Id: I4668fe763239a8c6380e82e64d5c9aa0657bb628
2022-03-17 14:56:10 +01:00
Alex Schultz 4dbb45315b Drop minion
This is no longer valid with the switch to ephemeral heat for
deployments.

Depends-On: https://review.rdoproject.org/r/c/openstack/tripleoclient-distgit/+/35907
Change-Id: Id3e21879c0fb831583ec41804e99da8cffcb9d86
2021-10-01 14:03:39 +00:00
Sorin Sbarnea 377c081f40 Workaround py36 encoding pip bug
* ensures we add LC_ALL with UTF8 if not already set
* consolidate tox.ini indentation
* expose only generic py env on envlist
* sort envvars in tox

Change-Id: I3d01c5a19500db9a830c78193f82175b4c1d4361
Related: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/804890/
2021-08-18 12:15:36 +01:00
ramishra 8df2e97d22 Use upper constraints with install command
This uses relevant upper constraints with install_command.

Change-Id: I6e63c9b9ff0c83dfdb5fa1e374a881c54f93bf3e
Closes-Bug: #1931986
2021-06-17 15:52:08 +05:30
wu.shiming 3c66b09cd3 Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: Icba1345ce6ab9819ad5683c3227573fb961c7f0d
2021-06-03 06:59:52 +00:00
Jiri Podivin cbf1231a08 Increased strictness of the doc build
Warnings are now turned into errors, failing
the doc build. This should prevent any more
syntax issues resulting in malformed, but still syntactically
valid, html output.

To aid with diagnosis of the failures:

The -E flag is now set to rebuild environment
from scratch for each run.

The `-a` flag is set to rebuild all html files,
regardless of their date.

The `--keep-going` flag is set so that the build
doesn't end after encountering first error, but
continues until the bitter end.

Depends-On: https://review.opendev.org/c/openstack/python-tripleoclient/+/789369

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I591ca3686f72ed6c0426cf272adb8c95330509b5
2021-05-04 09:26:43 +02:00
Sorin Sbarnea 276bacfb92 Run flake8 using pre-commit
- fixes two issues identified by newer flake8
- upgrades flake8 and keeps it pinned
- removes hacking as this is no longer needed, as pre-commit does
  its own pinning.
- enables us to easily add other linters, pylint would come in
  follow-up

Change-Id: If26234fad0cd982bd7d3dc23c42021b357c6bde9
Related-Bug: #1910543
2021-01-08 13:28:45 +00:00
Kevin Carter 136e7440a9 The lower constraint file has been removed
This file, and its tests, are not useful for tripleo so we're
removing because they're now becoming problematic.

Change-Id: I656105826e5fa85ffaf077bdc831fa5800ad493c
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2020-12-08 10:54:59 -06:00
Hervé Beraud da2da07efc 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: I814b6c6507116d91f4df6fa5911aab8a1b2f3911
2020-11-04 11:09:53 +01:00
wu.shiming 99f5d9ecc0 Remove install unnecessary packages
The docs  requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.

Change-Id: I4c252be001ed7e84221b4603b0a1ef8f4c7f0c25
2020-09-15 09:47:50 +08:00
Wes Hayutin d828ef2c56 ignore basepython conflict in tox
openstack-discuss/2020-May/014812.html

Change-Id: I1dbde1c257a0d8b2c641295098980f5bb7a1c058
2020-05-13 14:35:24 -06:00
Daniel Bengtsson 5600af1012 Stop testing python 2 in tox.
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: I52b974f7c701c8a46001a29bdf5f7b077f898cba
2020-04-02 03:16:24 +00:00
Bogdan Dobrelya dd02f75d56 PDF documentation build
The is one of community goals that each project could produce a
single PDF file. The pdf should be in the output of openstack-tox-docs
job.

The list of changes:
- add a new pdf-docs environment to enable PDF build,
- sphinxcontrib-svg2pdfconverter is used to handle SVG properly,
- poke versions for sphinx and openstackdocstheme,
- disable usage of xindy for tex,
- do not generate empty pages,
- only build html for toctree and other content-less for pdf sections,
- adjust README to firstly contain "About tripleo" then team & repo tags
  for the better view in PDF-generated contents.
- move the Contributing chapter closer to the beginning for the better
  view in the long list of generated contents.

More about the goal:
https://governance.openstack.org/tc/goals/train/pdf-doc-generation.html
https://etherpad.openstack.org/p/train-pdf-support-goal
https://etherpad.openstack.org/p/pdf-goal-train-common-problems

TeX and  few more packages may be needed to build PDF locally
(listed for bindep):

inkscape [doc platform:dpkg]
fonts-liberation [doc platform:dpkg]
texlive-latex-base [doc platform:dpkg]
texlive-latex-extra [doc platform:dpkg]
texlive-xetex [doc platform:dpkg]
texlive-fonts-recommended [doc platform:dpkg]
xindy [doc platform:dpkg]
latexmk [doc platform:dpkg]
texlive [doc platform:rpm]
texlive-fncychap [doc platform:rpm]
texlive-titlesec [doc platform:rpm]
texlive-tabulary [doc platform:rpm]
texlive-framed [doc platform:rpm]
texlive-wrapfig [doc platform:rpm]
texlive-upquote [doc platform:rpm]
texlive-capt-of [doc platform:rpm]
texlive-needspace [doc platform:rpm]
texlive-polyglossia [doc platform:rpm]
latexmk [doc platform:rpm]
python3-sphinxcontrib-svg2pdfconverter-common [doc platform:rpm]
librsvg2-tools [doc platform:rpm]
librsvg2-bin [doc platform:dpkg]

Change-Id: Ib3bb34191582f581c28f2f8a0281cf3ae44003e8
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2019-09-11 16:33:21 +02:00
Corey Bryant e099e19af3 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: Ie27e6107a7334a3a2f9aeb054b0c559c0440db51
Story: #2005924
Task: #34253
2019-07-24 10:25:57 +02:00
Alex Schultz 8de77cbe70 Add minion installation
Add the ability to install an undercloud minion which is connected to an
original undercloud. This minion can have either heat-engine or
ironic-conductor deployed on it.

Adds two new openstack commands for the minion install and a new
minion.conf can be used to configure them.

openstack undercloud minion install
openstack undercloud minion upgrade

Depends-On: https://review.opendev.org/#/c/656984
Change-Id: I61832f5088be172eaf31b36a9cca8dc289580bb2
Related-Blueprint: undercloud-minion
2019-06-21 07:44:21 -06:00
Natal Ngétal de4bf54aa9 Modify the constraints url in tox.
Use the new hotness for constraints.

Change-Id: Id3cc84cf06689723a514008daaf670d186fb4bd3
2019-05-27 08:18:25 +02:00
jacky06 d0130ff9a1 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I39b6cc330ef3eddf50a031d1d44a21553f4305db
2019-04-26 10:08:48 +08:00
Steve Baker 5ac404e53e Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I11f742b525d8d7328a9d46f0bd46da112e27ad82
2019-01-04 17:31:21 +00:00
Zuul 51a3e57ed7 Merge "Add missing py37 toxenv and corrected default envlist" 2018-12-12 12:02:40 +00:00
Sorin Sbarnea d5b16b5ca5 Add missing py37 toxenv and corrected default envlist
* Change order of default tox envlist in order of likeliness to fail
on a new change (fail-fast strategy).
* Remove pypy from envlist as it was not tested on CI, tox default
set of environment should match CI
* Adds py37 to spot possible breakers like dropping relative imports

Change-Id: I4f4abce84f968ff0715abcb5d04fc0014f131fee
2018-11-27 11:40:37 +00:00
Doug Hellmann 9a606f5a81 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.

Depends-On: https://review.openstack.org/#/c/610102/
Change-Id: I0bbc17c6d15629972f3527d1fd235ed0f65e5fca
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-10-12 21:59:31 +00:00
Doug Hellmann 3b01c48e9a 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: I81fb2e1318c7e4894b759f5bf462c71f0a6d8e69
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-08-20 15:42:07 +00:00
Alex Schultz c0f566cc2e Start standalone.conf
This is the start of a standalone.conf for use with the all in one
installer.

Change-Id: I656f4c1f7094b9a5981c1f15ff1c119693cd17c8
Related-Blueprint: all-in-one
2018-05-23 16:37:26 +00:00
Doug Hellmann 465ce03d8c add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Update the requirement for tripleo-common to reflect reality, and update
the constraint for tenaciy.

Change-Id: Ifdf8dd1c782d6d6ac575d6fd5364dcb083e805a9
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-22 23:03:29 +00:00
Harald Jensås b17e8ca43f Fix Genconfig - no HOME in environment
Change Ib0c2e3ffd81742441400d27857afae457d71a424 introduce
some dynamic constants for output dir and environment
directory.

This change adds HOME to environment for genconfig.

Change-Id: I85cb9e79c9d479187861122134f6c31eb07a730c
2018-03-21 14:37:09 +01:00
Guoqiang Ding 088b6de3a1 Update new documentation PTI jobs
For compliance with the Project Testing Interface as described in [1].
For more detailed information, please refer to [2].

[1] https://governance.openstack.org/tc/reference/project-testing-interface.html
[2] http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I4999e2eceb46deec1385cb6376762de9e2fbf6e3
2018-03-08 19:20:05 +08:00
Andreas Jaeger c88f0f4b39 Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: If0b9a678354b634a2f060df4a6ff1b479967d566
2017-12-02 16:51:15 +00:00
Pradeep Kilambi 65dd3cb043 Add support to generate a sample undercloud.conf
This is needed to kick off undercloud install with
--use-heat option. This includes new config options
to configure containerized undercloud along with
existing instack options.

Change-Id: Ibebaf068018a790afdb599e4e6fbc79d3b2a57dc
Partially-implements: blueprint heat-undercloud
2017-11-16 13:31:38 -05:00
Vu Cong Tuan 47fb0b2ad8 Remove support for py34
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.

Change-Id: Icad236d4055dde8389fe19f2b3ca921e76e9faf7
2017-06-07 10:41:31 +07:00
Jenkins bfe804082a Merge "Delete deprecated Hacking in tox.ini" 2017-01-10 15:21:55 +00:00
Tony Breeds 8056175842 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 python-tripleoclient.

Change-Id: I68732c10e3f0dc4770b8639989cb24e264110d37
2016-12-21 14:15:17 +11:00
gengchc2 efc693947f Delete deprecated Hacking in tox.ini
Some hacking have been removed,so we can delete them.
More details:
    https://github.com/openstack-dev/hacking/blob/master/setup.cfg

Change-Id: Iac8b11156b9c3528e0d27a1dea9fca5d2c9ab22a
2016-12-04 11:28:33 +08:00
Emilien Macchi e64ca0be24 Add ReNo support
Add ReNo support to manage release notes.

http://docs.openstack.org/developer/reno/

We'll start using it during Ocata.

Change-Id: Ie8945b6da8c37d5d4e7bc5a09f0d6f75ede9f58f
2016-10-08 00:28:43 +00:00
Paul Belanger bc6e3434e6
Initial support for bindep
Bindep is an automation tool for opentack-infra that will preinstall
OS packages for test job. Adding this file give us better control of
which packages get installed by default.

Change-Id: Ib3791226965b2847cb99709802bd7ece0ffd36e5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-11 20:04:55 -04:00
Jenkins 74cdd0c0e2 Merge "Revert "Pass environment variables of proxy to tox"" 2016-02-10 21:50:02 +00:00
Doug Hellmann 92bfc356cc Revert "Pass environment variables of proxy to tox"
It looks like you can work around this problem by setting an environment variable on your dev system. See https://tox.readthedocs.org/en/latest/config.html#confval-passenv=SPACE-SEPARATED-GLOBNAMES

 This reverts commit 45180520c9.

Change-Id: Iba1c5097ff8cfc5c26b4495a9b2eabd804495775
2016-01-14 18:00:56 +00:00
reedip b31fdbfcb9 Fix db error when running python34 unit tests
If tests for py27 is executed before py34 tests, then there is a chance
that py34 related tests may fail.The following patch fixes it.
Ref: https://review.openstack.org/#/q/status:merged++topic:bug/1489059,n,z

TrivialFix

Change-Id: I1038eedd84287f5ebc462ca6553da091661dc026
Closes-bug: #1489059
2016-01-06 15:00:07 +09:00
Jenkins 99b640fbe9 Merge "Pass environment variables of proxy to tox" 2015-12-23 16:10:06 +00:00
shu-mutou cf691fee69 Drop py33 support
"Python 3.3 support is being dropped since OpenStack Liberty."
written in following URL.
https://wiki.openstack.org/wiki/Python3

And already the infra team and the oslo team are dropping py33
support from their projects.

Since we rely on oslo for a lot of our work, and depend on infra
for our CI, we should drop py33 support too.

Change-Id: I5db42f479849ed7be05ae0a2aa70af04844ef159
Closes-Bug: #1526170
2015-12-15 17:51:54 +09:00
sonu.kumar 45180520c9 Pass environment variables of proxy to tox
Change-Id: If4963ed74017218eaff6edac18c01eafa1aa5f41
Related-Bug: #1465086
2015-12-14 12:36:18 +05:30
Juan Antonio Osorio Robles 2d8caf8b32 Add debug environment to tox
the debug environment is based on oslo_debug_helper and enables devs to
use pdb for debugging the client. [1]

[1] http://docs.openstack.org/developer/oslotest/features.html

Change-Id: I4b15a4abd8b3391f1ec87f55194757e798b18ba8
2015-10-01 11:11:46 +03:00
Juan Antonio Osorio Robles fbb20d10f1 Make cover environment in tox display test coverage
Even though the test coverage environment already generates a coverage
report in the cover/ directory. It's useful if the output of that
environment is a quick ascii-based coverage report.

Change-Id: I4770ab368e5df949797af80c4ad7a17fd6b0e6aa
2015-09-28 12:01:04 +03:00
Dougal Matthews b27dcc652d Add passenv to the venv to allow passing of environment variables from stackrc
Change-Id: Ib3a089b3e2abd82afa1cb97cf46ba8f5122b1b62
2015-08-28 13:43:10 +01:00
Dougal Matthews e1cd455c25 Remove Python 2.6 from the tox config
This isn't in the setup.py classifiers and we have never supported it.

Change-Id: I92eb1e9fdfa1d7f622392f916420891c2d20d2d7
2015-08-18 11:43:32 +01:00
Brad P. Crochet c57ef6fdc5 Add man-type documentation pages for rdo-manager commands
Change-Id: I8bf5e62cbe1b563c985712f54abff9b03dd47e48
2015-04-28 22:10:23 -04:00
Brad P. Crochet 68cf7181b5 Initial commit 2015-03-17 09:33:52 -04:00