summaryrefslogtreecommitdiff
path: root/tox.ini
AgeCommit message (Collapse)AuthorFilesLines
2017-06-21Enable some off-by-default checksblue551-0/+1
Some of the available checks are disabled by default, like: [H106] Don’t put vim configuration in source files [H203] Use assertIs(Not)None to check for None Change-Id: I61ce619eeb37dc05f81015d37afc78a32838448a
2017-03-31Fix oslo_debug_helper not workingSurya Prakash Singh1-1/+1
Change-Id: Ifd4ea791b22b1bddc1116b89e6589a372cd17bd9 Closes-Bug: #1666560
2017-03-18Remove global privilege escalation for deploy_aio.shMohammed Naser1-11/+6
At the moment, deploy_aio.sh is called with sudo which results in the environment being wiped. This means that all Zuul environment variables are removed and therefore when zuul-cloner runs to checkout the branch of kolla-ansible, it will always fallback to master as ZUUL_BRANCH is unset. This patch removes the global usage of sudo in the tox.ini file as there is existing usage of sudo in the bash script itself. This will mean that we will only escalate privileges when needed rather for the whole script and the environment variables should be passed on properly resulting in the matching release of kolla-ansible being checked out. Closes-Bug: #1673756 Change-Id: I477a843e696be7136c020be6408afea01967879d
2017-03-15Merge "Remove support for py34"Jenkins1-1/+1
2017-03-15Remove support for py34lingyongxu1-1/+1
Change-Id: I522dc769803f2951341db39c868a153d6a69944a
2017-03-07Add debian related test envJeffrey Zhang1-0/+22
Change-Id: Ic186d8f563e58680e10d73a188ef63fa53e44c10
2017-02-10Delete python bytecode filezhuzeyu1-13/+13
Delete python bytecode including pyo Change-Id: Ia967e03e5b46ecdf25625a8554d26c3182ed7b6d
2017-01-17Code coverage improvement for kollaSurya Prakash Singh1-0/+1
This patch add the coverage tool package to test-requirements.txt which was missing, while kolla support coverage. In addtion to this tox.ini coverage command is modified to reflect the coverage report in standard output whenever "tox -e cover" command run for better representation of coverage report. Change-Id: I7f77c8d5320a7d180586ce1e8773a4f294846331 Partially-Implements: blueprint coverage-increment-for-kolla
2017-01-11Cover environment for kollaSurya Prakash Singh1-0/+8
Enabled the cover environment for kolla in tox Closes-bug: #1650269 Change-Id: I732058b07d951227e7011f6f1a3d84fed594cfa7
2016-11-20Merge "Remove Ansible references from tox.ini"Jenkins1-2/+2
2016-11-20Merge "Use upper constraints for all jobs in tox.ini"Jenkins1-1/+1
2016-11-18Remove Ansible references from tox.iniSteven Dake1-2/+2
Change-Id: Id27756e2333e216c9b0947c0af1e77c60ad5d9f0
2016-11-12Add bindep environment to toxJeremy Liu1-0/+8
This is helpful for listing any missing system requirements [1]. [1] http://docs.openstack.org/infra/manual/drivers.html#package-requirements Change-Id: I7bfa910a09f99354f4a2fb0ff67854a9c89c44fd
2016-11-05Add file validator for *.json.j2 fileJeffrey Zhang1-3/+1
All json file in Kolla are json.j2 file, it shold be render as jinja template, then validate by using json. Change-Id: Ibabbe435116fd255d68347e00407156db76fedfe Closes-Bug: #1634447
2016-10-19Move bandit to pep8 as generic linting targetAndreas Jaeger1-0/+1
bandit is a security linter and can be made voting now. Instead of starting another virtual machine, run it as part of the generic linting target which is pep8. Change-Id: I6a8f7aa2b60bd96d55b37b6cc2a371069d6d5e6a
2016-10-19Add validate no new line at end of fileJeffrey Zhang1-0/+1
TrivialFix Change-Id: I817aa52caf56b7d54b266e553db6db1ceb38b773 Signed-off-by: Jeffrey Zhang <zhang.lei.fly@gmail.com>
2016-10-13Use upper constraints for all jobs in tox.inipawnesh.kumar1-1/+1
Openstack infra now supports upper constraints for all jobs. Updated tox.ini to use upper constraints for all jobs. Change-Id: I603949f16dc415b0900fafcfbd4cf76ff9e8d746 Closes-Bug: #1628597
2016-09-22Merge "Add support to use pdb with tox"Jenkins1-0/+3
2016-09-21Add support to use pdb with toxMD NADEEM1-0/+3
TrivialFix Change-Id: I6f32ce7033fe5a8b8f628a8f52dde67b9540083d
2016-09-20Remove all bytcode & objectcode before running toxMD NADEEM1-1/+2
Currently __pycache__ directory, which also holds python bytecode is not deleted when running tox. TrivialFix Change-Id: I0fdcf9a3f9b01cee813eefdbfe29d208dd67f826
2016-08-28Fix bandit gate jobsPaul Bourke1-1/+1
* Inspected each error and fixed / added nosec where appropriate. * build-swift-ring.py which was throwing sec errors is no longer used so removed it. * Removed the dev/ directory from being checked. Closes-Bug: #1617713 Change-Id: I25664cabca4137e5c9f499c1af3f5ce78b86fb56
2016-08-04Add doc8 test and improve rst syntaxChristian Berendt1-1/+3
This will test all rst files inside the doc directory for style issues with doc8 (an opinionated style checker for rst styles of documentation). This will fix all syntax issues identified by doc8 and will improve the syntax. Change-Id: Id1b9563e07e77e306aef5a0767c98c27f87c5c0e
2016-07-14Add Python 3.5 classifier and venvYatin Kumbhare1-1/+1
Now that there is a passing gate job, we can claim support for Python 3.5 in the classifier. This patch also adds the convenience py35 venv. Change-Id: Ia7b1fb88ac108e1e8fd6ed963967e731ae3ca5a4 Closes-Bug: #1603006
2016-05-26Add support to lint the install commands in DockerfilesSwapnil Kulkarni (coolsvap)1-1/+1
Change-Id: Icb47ba8b13b13889e28bb285321f11344400edc2 Closes-Bug:#1582618
2016-04-02Add Ubuntu binary build and deploy gateJeffrey Zhang1-0/+23
The Ubuntu Mitaka repo is release, and we have add it. So it is time to add the Ubuntu binary gate. Closes-Bug: #1560386 Change-Id: I29d01147595c4ebebfa00798d01d5fd7398123a6
2016-03-26Fix gate to use world writeable docker socketSteven Dake1-17/+11
A recent change related to sudo securepath broke how sudo -E works. Now the PATH is reset by sudo as set by tox. As a result we can no longer rely on sudo -E anywhere in our gating system relating to path inheritence from the parent shell. This patch uses a shell operation in the setup_nodes.yml code to chmod the docker socket to 666 so docker containers can build properly. Now docker operations don't return a permission denied and we no longer require the sudo -E operation in any of our tox scripts. This isn't a security vulnerability because our gate scripts are only meant to be run in OpenStack infrastructure. To make this more clear I recommend moving these shell scripts to tests/gate. Change-Id: I5b3d6e280e3c12a25defedb14b5589ba642043fa Closes-Bug: #1562383
2016-03-23Add reno supportSteven Dake1-0/+6
For proper release note generation on the releases.openstack.org website, this change will need to be backported into mitaka and liberty as well. Then a special one-file reno file will have to be added for mitaka describing the features and the same story for liberty. See log of the discussion here: http://eavesdrop.openstack.org/irclogs/%23openstack-release/%23openstack-release.2016-03-23.log.html#t2016-03-23T18:00:05 Change-Id: I3c298ae08ec4645f384ea5829cb0851fe82f4557 Partially-Implements: blueprint add-reno
2016-03-08Add tox job for the bandit python security linterDave McCowan1-0/+3
Bandit is a job that parses and analyzes python code to detect common insecure programming practices. TrivialFix Change-Id: Iea23a9bd23b25827043f02aa1a62fb0724f1d0ee
2016-03-03Merge "Introduce the hacking module to kolla"Jenkins1-0/+3
2016-03-03Introduce the hacking module to kollaJeffrey Zhang1-0/+3
Implements: blueprint add-hacking Change-Id: Ia24a263555b9c1eb11e61b9d3fe89612a89daed6
2016-03-01Add new gates for oraclelinuxPaul Bourke1-0/+50
Change-Id: Ic5c0e266639c8ed76d0af473d076d9ae6749102a Implements: bp oraclelinux-gate
2016-02-26Remove the tox linters envJeffrey Zhang1-10/+0
TrivialFix Change-Id: Icd69a4d6de8ef222b219e758fa38d58f2c98f505
2016-02-11Make pep8 *the* linting interfaceAndreas Jaeger1-1/+11
According to the PTI (=Python Test Interface, http://governance.openstack.org/reference/cti/python_cti.html), pep8 is the interface for codestyle checks. Move all tests from linters to pep8. This change will be followed by a change to project-config to use pep8 for testing in the gate. Change-Id: I1a48f4b1e0b0950640192bcfc55121619a844b50
2016-01-26Merge "Convert gate to file backend rather than partition"Jenkins1-5/+13
2016-01-25Remove our unused jobs that now run in lintersSamYaple1-15/+1
Change-Id: I5c83b28ce3ef6c4080c68fa2fa353ad118ef7b71 Depends-On: I48faeb61fd3d630e7d7b6c949afcf10f724b0b72
2016-01-21Convert gate to file backend rather than partitionSamYaple1-5/+13
The existing gate partitioned a disk for use with docker, depending on the gate it would use the swap disk (RAX) or a spare disk (HP). However, with the new gates (Bluebox + OVH) there is neither a spare disk nor a swap disk. This leaves us with one choice: File based loop device. This patch creates a file at /swapfile to ensure we have swap. It creates a file at /docker to ensure we have a loop device for Docker. Right now the /docker file is 10GB and the /swapfile is 4GB due to size limitations in the gate across all servers and types. This has proven to be enough space for all our current tests. Additionally, reduce the number of threads the gate uses to 4 to prevent the lockup and hour timeout we have been seeing as more recently in the gate. The scripts that setup the gate are moved to the tools directory rather than the tests directory to match the structure of the other projects. Partially-Implements: blueprint functional-testing-gate Change-Id: I3e370f2382b6df36103d8b2ceda9b21d9b4229d5
2016-01-21Merge "Add validate scrits to linters"Jenkins1-0/+3
2016-01-15Add validate scrits to lintersSamYaple1-0/+3
In an effort to reduce the number of gates, we can combine non-conflicting jobs as we have already done with pep8 and bashate TrivialFix Change-Id: I81c2e523c563f8c761b57c8f20ca807d59da5d68
2016-01-15make the testr.conf required environment pass throught in toxJeffrey Zhang1-0/+2
TrivialFix Change-Id: I427bd3207de4ae87ab98dc024c4e2d98f0b572dd
2016-01-14Put py34 first in the env order of toxMD NADEEM1-1/+1
To solve the problem of "db type could not be determined" on py34 we have to run first the py34 env to, then, run py27. This patch puts py34 first on the tox.ini list of envs to avoid this problem to happen. Closes-Bug: #1489059 Change-Id: I4f791dfa620eacdd76cd46f193e190071ab64b6c
2016-01-13Standardize bashate and add lintersSamYaple1-4/+6
The linters gate combindes pep8 and bashate (and then any other linters we want). This changes bashate to be a sript rather than doing a script inline. This matches the way other projects (and project-config themselves) uses bashate [1]. Once a change upstream merges we can remove the redundant pep8 and bashate gates. [1] https://github.com/openstack-infra/project-config/blob/master/tox.ini#L11 https://github.com/openstack-infra/project-config/blob/master/tools/run-bashate.sh Related-Id: I2afa7931bf3e18798b95a8af33ccf5ef761c4ad5 TrivialFix Change-Id: I2ea2c1156e1b4de008f19e333e2740795dc406de
2016-01-13Add py27 py34 pypy unittestJeffrey Zhang1-8/+26
Change-Id: Iaf58463bd156924839062b8284a2d7151a153db5
2016-01-06Generate the kolla-build.conf file using oslo_configJeffrey Zhang1-0/+6
Closes-Bug: #1530122 Change-Id: I96039eade2aacf1bcd9d14d958cdddd915fc9a5c
2015-12-31make the tox.ini indent uniformJeffrey Zhang1-29/+29
TrivalFix Change-Id: I75972366588c691d26512102ba567d6d1b258efe
2015-12-22pep8 the ansible modulesSamYaple1-1/+1
By ignoring the appropriate tests that pep8 does we can properly run *most* of the pep8 tests on all of our modules allowing for a more consistent coding style. Closes-Bug: #1528431 Change-Id: I33f27a250d06d4f044267aa3ad189e092789b8df
2015-12-22Simplify config creationSamYaple1-1/+1
Convert config creation from a playbook to an action_plugin. This reduces the complexity and confusion while retaining the same augment structure and flexibility. This allows us to remove the 0-byte files as requirements. They will still be used if they are present (this means we require additional documentation around them). DocImpact Closes-Bug: #1528430 Change-Id: I2c789f6be9f195c7771ca093a6d59499564b4740
2015-12-11Pass environment variables of proxy to toxhparekh1-0/+1
When a development environment is under a proxy, tox is failed even if environment variables of the proxy are set. This patch fixes this problem. Change-Id: I685ddbc6bb6e0fe25c308c35a7581785eebe3629
2015-12-07Exclude .eggs from pep8 checksMichal Rostecki1-1/+1
Change-Id: I11f5af83fc602332f6c9ac39f4c22731f8e84161 Closes-Bug: #1523365
2015-11-22Convert gate to Ansible setupSam Yaple1-3/+0
To support multinode we must now distribute our setup to multiple hosts. Instead of making special rules for this, we are going to convert our existing setup to Ansible. This way both setup proceedures take place in the exact same fashion. Partially-Implements: blueprint multinode-gate Change-Id: I43ece298bba994e9b5083403ef3cf6d4245cda6d
2015-11-13Remove unused tox jobsSam Yaple1-77/+0
The gates have been renamed. We can remove these jobs now. Change-Id: I4f140301d0b0a04ca4196a755625f32569fe4b32 Partially-Implements: blueprint multinode-gate