Cleanup the tox configuration and requirements.
Black formatter was applied in the modified files.
Test Plan:
Verify that all Tox tests pass without errors.
1. Successfully executed on the distributedcloud dir
- tox -e docs,releasenotes,api-ref,bandit,linters
- tox -e newnote -- new-note
2. Successfully executed on the distributedcloud/distributedcloud dir
- tox -e py39,pylint,pep8,cover
Partial-Bug: 2053023
Change-Id: Ib25f31f8607e46e51dfbda0a6b3a36e9e11151df
Signed-off-by: Hugo Brito <hugo.brito@windriver.com>
This change will allow this repo to pass zuul now
that this has merged:
https://review.opendev.org/c/zuul/zuul-jobs/+/866943
Tox 4 deprecated whitelist_externals.
Replace whitelist_externals with allowlist_externals
Partial-Bug: #2000399
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: If8c7c26522b4f29357fac2142e54a7a06e3e9847
As part of how we nest the tox.ini files in STX,
the environments in the sub directories need to also
be defined in the tox.ini in the base file.
The issue in our tox files was exposed by this commit
https://review.opendev.org/c/zuul/zuul-jobs/+/866935
Partial-Bug: #1997255
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I526066015b90dc0637968defbc3648b310a27d44
Setting up the bandit tool for the scanning of HIGH severity issues
in the python codes under Starlingx/distributedcloud-client folder.
Expecting this merge will enable zuul job for CI/CD of bandit scan.
Configuration files:
1. tox.ini for adding bandit environment and command.
2. test-requirements.txt for adding bandit version.
3. .zuul.yaml file for adding bandit job and configuring under
check job to run code scan every time before code commit.
Test:
Run tox -e bandit command inside the fault folder to validate the
bandit scan and result.
Please note:
Changes will be implemented in batches and this is Batch7 change.
Story: 2007541
Task: 39649
Depends-On: https://review.opendev.org/#/c/721294/
Change-Id: I8d1f0307c5b7ccf9ce6956b9808c5151987954a2
Signed-off-by: Sharath Kumar K <sharath.kumar@intel.com>
This updates the upper-constraints.txt used by tox for
installing python modules to reference the stable/stein
constraints.
Change-Id: I83a849d7c8ff60b55db4443525120c6613371ed9
Partial-Bug: 1834216
Signed-off-by: Don Penney <don.penney@windriver.com>
tox -e cover was not working, and now it is
Coverage runs successfully in python3.
Current coverage is 64%
Story: 2003862
Task: 28017
Change-Id: Iedd821d889550f63014187c7d6ec51580533a2e2
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
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: I53abcd174e403ac3d6843f7f6c6320e9e9677a9d
Closes-Bug: #1802032
Signed-off-by: 98k <18552437190@163.com>
Pep8 and py27 tests are now passing
Both are voting in zuul on check and gate
Story: 2003862
Task: 26692
Change-Id: Idf8bb3cbe139ac8fbf3755a25f9efd7c76e45d72
Signed-off-by: Lachlan Plant <lachlan.plant@windriver.com>
Baseline changes to comply with Release Notes Management
based in Reno [0]:
* Use build-openstack-releasenotes job for release notes
(We can't use the OpenStack releasenotes template as it includes
publish jobs, stx needs its own)
* Add newnote tox environment as convenience for creating new release
notes, re-using the releasenotes venv.
* Changed to SPDX-License-Identifier: Apache-2.0
[0] https://docs.openstack.org/reno/latest/
Story: 2003101
Task: 26732
Change-Id: Ie5eb335cf8da50c26bb29cacc10c817aaf754307
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
* Add .gitreview
* Add .zuul.yaml with basic linters and pep8 jobs
* Fix up tox.ini to run linters and pep8 environments. This
changed some leagacy config in the default testenv that will
affect the more specific environments.
Change-Id: I02a81c5179141efb056cd030819af6387ba7a13c
Signed-off-by: Dean Troyer <dtroyer@gmail.com>