Commit Graph

14 Commits

Author SHA1 Message Date
Hugo Brito b87508a410 Update tox config for Distributed Cloud Client
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>
2024-02-27 16:58:59 -03:00
Al Bailey cd67cbaf9c Update tox.ini to work with tox 4
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
2022-12-26 18:28:59 +00:00
Al Bailey 40459e1dc9 Fix failing zuul jobs due to tox showconfig
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
2022-12-14 14:40:01 +00:00
Sharath Kumar K 7394a5fcad Tox and Zuul job for the bandit code scan in stx/distrib-client
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>
2020-06-08 03:59:38 +00:00
Don Penney 4e006a92a5 Move content to subdir to support relocated packaging
Change-Id: I985f3bef71616c6674e31b68c5d8037cdb670884
Story: 2006166
Task: 37338
Depends-On: https://review.opendev.org/692861
Signed-off-by: Don Penney <don.penney@windriver.com>
2019-11-04 14:14:38 -05:00
Don Penney 45db426cb0 Update tox.ini files to use stein constraints
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>
2019-06-25 13:03:40 -04:00
Dean Troyer 34ffe71c9b Followup opendev cleanup and test jobs
Change-Id: I9d026ff0e623063c1412363a269f9d103a004cf4
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-04-22 16:14:55 +00:00
Al Bailey 91ab8de870 Fix coverage reporting for stx-distcloud-client
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>
2018-11-21 12:12:43 -06:00
98k 8b348b91d5 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: I53abcd174e403ac3d6843f7f6c6320e9e9677a9d
Closes-Bug:  #1802032
Signed-off-by:  98k <18552437190@163.com>
2018-11-21 02:23:20 +00:00
Lachlan Plant b11e7ac509 Fix pep8 and py27 tests in stx-distcloud-client
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>
2018-11-02 14:51:18 +00:00
Abraham Arce 64fda558f9 [Doc] Release Notes Management
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>
2018-09-25 14:27:36 -05:00
Abraham Arce 44623d07d9 [Doc] Building docs following Docs Contrib Guide
Baseline changes to comply with OpenStack Documentation
Contributor Guide [0] starting with the following sections:

- Project guide setup
  - [1] sphinx-quickstart
  - [2] doc/source/ layout
- Building documentation
  - [3] tox -e docs
- Using documentation tools
  - [4] openstackdocstheme
- Use build-openstack-docs-pti job template for docs
- Adding SPDX-License-Identifier: Apache-2.0

[0] https://docs.openstack.org/doc-contrib-guide
[1] http://www.sphinx-doc.org/en/master/usage/quickstart.html
[2] https://docs.openstack.org/doc-contrib-guide/project-guides.html
[3] https://docs.openstack.org/doc-contrib-guide/docs-builds.html
[4] https://docs.openstack.org/openstackdocstheme/

Story: 2002708
Task: 26730

Story: 2002813
Task: 26731

Change-Id: I010466d6edfea614d31dad0ae16903d324d4cc64
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
2018-09-25 14:18:47 -05:00
Dean Troyer 151ae48ca4 Set up initial Gerrit requirements
* 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>
2018-09-06 15:39:33 -05:00
Scott Little 640ee2a980 StarlingX open source release updates
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-07 11:51:16 -04:00