Commit Graph

15 Commits

Author SHA1 Message Date
Ghanshyam Mann 8325044e7a 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: Ib988f3b567e31c2b9402f41e5dd222b7fc006756
2024-02-24 11:41:49 -08:00
Harald Jensås d01331db06
Fix PEP8 and docs
PEP8 allowlist_externals + yaml dependency

* whitelist_externals is deprecated.
* PyYAML required for successfull environment generator run.

Add entries requirements for doc.

Change-Id: I920d245a76aeb762fb1ad9317d42156de028104f
2023-09-11 12:39:02 +02:00
Hervé Beraud fa7e59644d 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].
Removing 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 however it doesn't
produce any doc or releasenotes, but uniformization can't hurt and help
us in the future.

[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

Change-Id: I746d4b743924eefeb606e8516e2f60244b977c92
2021-01-07 16:07:40 +01:00
Hervé Beraud 5f3febe70f 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: Ic1b791ae72a77ee716983b2cc4dd1903b5ce4613
2020-11-04 11:14:48 +01:00
Alex Schultz 15e6c371e6 Drop py27 support
Change-Id: I4f1a8941a8a3cdf6331aec7a6b8058fbeeb076b6
2020-04-22 14:39:21 -06:00
Harald Jensås 1665c3de2c Use upper constraints for tests
-epy27 tests are failing with:
  run.py discover: error: no such option: --list

Adding upper constraints fixes the issue.

Change-Id: Ie19ce4962d1e14eacba6d3328d24ceae838807a5
2020-03-28 01:33:02 +01:00
Corey Bryant f7a20ef2d3 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: I8adc2f00dc28e870273d07c8f8b3f3d37117035d
Story: #2005924
Task: #34253
2019-07-12 16:23:19 -04:00
Ben Nemec c6b434df05 Use python3 by default for testenvs
We need to be testing on python3 by default now. This switches the
docs, pep8, and genconfig testenvs to use python3.

Change-Id: I6d21e240e8b1c21698004fbe9e957476b7982c75
2019-06-06 10:30:59 -05:00
Ben Nemec 76e951436c Add pep8 check that generated environments are current
Like the tripleo-heat-templates commit
1c9553c37ab9f121cb4a74274496067312e9b65e

Change-Id: I684c941f8a4e1322d8ed361c9d8bab18724dfe51
2019-01-16 13:34:14 -06:00
Ben Nemec cd32029388 Stop using setup.py [test|testr|build_sphinx]
These are all deprecated. For unit testing stestr should be used
directly, and for doc builds sphinx-build should be used directly.

A couple of minor doc changes were needed to eliminate warnings.

Change-Id: Ic2e1b9d692c9b5866f888fb4c8c08bf95742764e
2019-01-16 13:21:28 -06:00
Ben Nemec 9e7ee5dd5c Add python36 job to repo
Also fixes a python 3 issue that was causing these tests to fail.

Note that I don't think we need to worry about supporting py35 in
this repo. I believe the only python 3 platforms we'll ever use it
on are py36 or higher.

Change-Id: I4ade3e0ae1ffa2253d998275f73044cacf656c0e
2019-01-16 12:39:10 -06:00
Ben Nemec bf47fa78ae Ignore W504 from flake8
I don't particularly agree with this rule (as evidenced by the fact
that I break it repeatedly in this codebase), so I'm not going to
enforce it.
2018-10-25 07:55:28 -05:00
Ben Nemec a0733893f6 Add index of all available sample environments
This should make it easier for users to see what options are
available for use.
2017-08-09 10:03:42 -05:00
Ben Nemec 93d2f4f56c Support deploying with multiple Heat environments
Big changes here.  This will make it easier to deploy some of the
more advanced OVB options like network-isolation.  Instead of users
having to figure out which lines in the sample env.yaml to uncomment
when deploying advanced options, they will simply be able to include
one environment file that contains all the appropriate parameters
to turn on the option.

This _should_ be backwards compatible with existing monolithic
env.yaml configurations.  If it is not, that is a bug.

To create the option environments, a slightly modified copy of the
sample environment generator from tripleo-heat-templates has been
copied into the project.  The sample environments should _not_ be
edited directly.  Instead, the definition in the sample-env-generator
directory should be altered and the tool re-run to update the
environment.
2017-08-09 10:03:38 -05:00
Ben Nemec 9fe31995c5 Reorganize into package and add tox for testing
Moves the functional code into an openstack_virtual_baremetal env
and adds a tox configuration for testing.  Existing unit tests for
deploy.py are moved into the tests subpackage.  Further unit tests
for the other modules will be added in followup commits.

Symlinks from the bin directory are left so the previous workflow
should continue to work as before.
2016-07-14 12:23:41 -05:00