The stestr[1] is parallel Python test runner designed to execute unittest test suites using multiple processes.
Test cases can be executed faster.
[1]https://github.com/mtreinish/stestr
Change-Id: Ic0b210685535f94a70a175385afdd9f399f4d690
Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.
[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045
Change-Id: I582af8ad8f9a6b05f5a245a155b87be6e2d63874
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Remove hacking and friends from lower-constraints, they are not needed
for installation.
Change-Id: Ibc3b00aca7332f12b58893213acfc88749b74aa1
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build. Remove extra build step
from docs build - api-ref is build separate.
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Remove install_command from tox.ini, the default is fine
Change-Id: I7bb95a8ebd7023046baae30595159254bac25690
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I02c96a9327e2ccd6c4d5f3f175bb9f507bb026d7
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')
Change-Id: If6fec185f98f3b07b4b10c2fa2c701cf352f10ed
The commands used by constraints need at least tox 2.0.
Update to reflect reality, which should help with local running of
constraints targets.
Change-Id: If3eac65cb0c9d509372992ca642b8054cf84fe33
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: Ic7138594becaf7061d8b4d0d3fe9bf243fef35af
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
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.
Change-Id: I4a1b65911b7ee094dc3b654e0655a7e633c6819c
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit will prepare for implementing policies in code[1].
Once we completed moving all of policies into code base,
we can also change default policy rules via policy.yaml
instead of policy.json and generate policy.yaml by command:
$ tox -e genpolicy
[1]https://governance.openstack.org/tc/goals/queens/policy-in-code.html
Change-Id: I587ee663eff9632ec355cef8152c13e1ebfffeb5
Co-authored-By: Hieu LE <hieulq@vn.fujitsu.com>
Treat warnings as errors when building documents to early spot problems.
Fix api-ref set up:
* Add openstackdocstheme for api-ref building instead of oslosphinx and
configure it properly.
* Setup api-ref log-a-bug correctly for this project.
* Remove unneeded extra install command
Fix install-guide set up:
* Add tox environment
Fix releasenotes set up:
* Fix conf.py settings to build without errors, remove index, we don't
need it.
fix docs set up:
* Use Sphinx 1.5 warning-is-error option for normal build_sphinx.
* use oslo sphinx
* Remove wrong static path setting
Change-Id: I07ce9db9fdb526ab4b083c65afa99c38bb508146
Remove docs from the checks as it has a special gate in Openstack
Remove py34 from the checks
Added py35 to the checks
Change-Id: I1d87289d014e0328c25811373b014d51cb0095b1
This patch adds full pep8 check support. All code style problems
is fixed.
Closes-Bug: #1646103
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Change-Id: I1fce70a1b4e4c70379fc3876f85170b06a044059
Openstack infra now supports upper constraints for all jobs.
Update tox.ini to use upper constraints for all jobs.
Change-Id: I07ebb152e82b8b1be4892d6da309c73fa3bd33b6
Closes-bug: #1614361
integrated freezer-api with openstackdoctheme lib and
os-api-ref lib to build the installation documentation
and api reference for freezer.
Change-Id: Ib5fc5f8227484525a13c3cfff9acb13d2b384e1a
Implements: blueprint implement-install-doc
Implements: blueprint implement-api-ref-doc
Align to the other Openstack project and
use testr instead of pytest
Includes:
- pylint and pep8 fixes.
- py34 compliance
- requirements updated
- updated path to dsvm gate job
Change-Id: I10a5ea8d581029eba8f3ab5e016a1dd1919fa117
Depends-On: I4f9050cd551e87d2e398b6f94dc904154d0b1b13
Now requirements.txt and test-requirements.txt are
aligned to global-requirements.txt of stable/Liberty.
Testing requirements are now move to test-requirements.txt
from tox.ini
Also the author, author-email and home-page are now update to
reflect Freezer Team and openstack-dev ml.
Change-Id: I27f2ea875778f19d2ffb542b9b8fbf29d1a740fe
Now the pylint env is enabled in tox.ini. Also .gitignore
and .pylintrc are available part of the repo.
Change-Id: I81078bd95c6aaf8dee2a8d36f0d782a457bd4b94
Adds a script to initialize the mappings of the elasticsearch db
used by the api.
The location of the elasticsearch db server can be provided using
command-line arguments or guessed by the script looking at the
freezer-api configuration file.
The script asks confirmation prior to deleting each of the
elasticsearch types whose mapping needs to be updated,
but it can be instructed to always assume a confirmation to ease
the invocation by scripts or deployment tools.
Change-Id: I0938c7cfde9bae440bf85f536a56079429d772a9
Implements: blueprint freezer-api-db-init
The freezer scheduler is to be executed
as daemon process on the client machines
It has the following responsibilities:
* when using the api:
- register -if necessary- as a client in the api
- download the list of jobs from the api
- schedule the jobs for execution
- launch the freezer client at the scheduled time
- collect metadata and exit codes and upload them to the api
- periodically poll the api for new/updated jobs
- if a job is part of a session (a coordinated group of jobs)
it updates the session status when job starts/stops
* when not using the api
- load jobs configurations from files
- schedule the jobs for execution
- launch the freezer client at the scheduled time
The freezer scheduler can also be used to manage jobs
and sessions using the following positional parameters:
job-list
job-get
job-create
job-delete
job-start
job-stop
session-list
session-get
session-create
session-delete
session-list-job
session-add-job
session-remove-job
or to register the client in the api using the positional parameter:
register
Implements blueprint: freezer-scheduler-start
Change-Id: I06ae202a0f464f7240c137744a5b54d1177cabd9
First implementation of the freezer API.
Slightly more than a skeleton with basic functionality
Change-Id: Iae04affea3aa0f4a943599b528df49d9d4a5b845
Implements: blueprint freezer-api-first-rel