Commit Graph

7 Commits

Author SHA1 Message Date
Hugo Brito 80e07ef733 Update tox configuration for Distributed Cloud
Cleanup the tox configuration and requirements.

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

Partial-Bug: 2033294

Change-Id: Ie7b2acb03c379708e8ef57b52d3c83560414f007
Signed-off-by: Hugo Brito <hugo.brito@windriver.com>
2023-08-29 17:29:17 -03:00
albailey 4a49932841 Only install yamllint in py3 env
A new yamllint was released which dropped py2 support.
Zuul servers that have updated their caches will attempt
to install that version, as it is not clamped by upper constraints.

This also attempts to not use site packages.

Partial-Bug: 1922590

Change-Id: I8b2776f4c12447a66743a8b2626aa914969dcd2a
Signed-off-by: albailey <Al.Bailey@windriver.com>
2021-04-06 11:40:45 -05:00
albailey 9f0c5426cc Fix tox failures from new resolver in pip
New pip was released on Dec 3, 2020 which breaks downloads
from pypi for some URLs.

New virtualenv was released Dec 7 which includes the new pip.

The new pip uses a different resolver which fails with many
of the components installed by pip.  These components
may need to be fixed by later commits, since the legacy
resolver is being removed completely in early 2021.

Change-Id: Ifcbd8965e2ef0b53dae0c878c2a0f2bd91b572c2
Closes-Bug: 1907125
Signed-off-by: albailey <Al.Bailey@windriver.com>
2020-12-09 08:03:19 -06:00
Sharath Kumar K c1da0762d5 Tox and Zuul job for the bandit code scan in stx/distributedcloud
Setting up the bandit tool for the scanning of HIGH severity issues
in the python codes under Starlingx/distributedcloud 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 Batch6 change.

Story: 2007541
Task: 39648
Depends-On: https://review.opendev.org/#/c/721294/

Change-Id: I6fdfeacdb000faafc73c44eef352bf2abd38a9a2
Signed-off-by: Sharath Kumar K <sharath.kumar@intel.com>
2020-06-16 04:02:59 +00:00
Don Penney 9531b76af1 Move content to subdir to support relocated packaging
Change-Id: Id4f645de23b9f0aec1914edbaef11cdb6e6dc0af
Story: 2006166
Task: 37337
Depends-On: https://review.opendev.org/692861
Signed-off-by: Don Penney <don.penney@windriver.com>
2019-11-04 13:57:02 -05:00
Dean Troyer be7da964fd 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: Ieca279a240b8705dcb73d9d195e1658a40e199e1
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-09-06 15:38:41 -05:00
Scott Little e82c7b4336 StarlingX open source release updates
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-07 11:51:21 -04:00