Commit Graph

5 Commits

Author SHA1 Message Date
Charles Short 19f5d7ad46 Fix zuul errors due to changes in dependencies
Pin hacking to < 4.0.1 to fix zuul gate issues.

Test:
Ran tox -e pep8 command to validate the pep8 job and result.

Related-Bug: 1926172

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I2a3709342a2150e57461561ca1299adabc993667
2021-04-26 11:41:59 -04:00
albailey 6ab82889af Fix zuul jobs broken due to pip upversion
The install_command for docs, newnote and api-ref
needed to be overridden to not use upper constraints.

The bandit requirement needed to be made python3 only.

The bandit scan was failing, so it is now updated to
allow individual bandit failures to be suppressed in tox.ini

Need to include a py file change in order for bandit to be
triggered by zuul.

Partial-Bug: #1907678
Signed-off-by: albailey <Al.Bailey@windriver.com>
Change-Id: Ic73d0ea590ab1b7857f7275fa9c71828b0d343ee
2020-12-17 13:40:42 -06:00
albailey 57225bb34a Use newer flake8 to run on ubuntu-focal Zuul machines
flake8 2.5.5  fails on ubuntu-focal zuul machines running python3.8
with the following error:
AttributeError: 'FlakesChecker' object has no attribute 'CONSTANT'

The update removes the version constraint to use newer flake8.

The linters can be run in python3.
Pylint cannot be run in python3 because mysql-python is not
compatable, so a new zuul job for pylint is now added.

The flake8 errors that the newer version raises are all suppressed,
and some of them should be addressed by someone with familiarity in
this repo.

Change-Id: Ida6447728d4175173c02130cb04a6013e4f966f9
Partial-Bug: 1895054
Signed-off-by: albailey <Al.Bailey@windriver.com>
2020-09-16 13:01:03 -05:00
Sharath Kumar K 3b68098be4 Tox and Zuul job for the python code scan in starlingx/ha
Setting up the bandit tool for the scanning of HIGH severity issues
in the python codes under Starlingx/ha 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 Batch3 change.

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

Change-Id: I01f81d7c52c12432965106f9603e4db600381971
Signed-off-by: Sharath Kumar K <sharath.kumar@intel.com>
2020-06-05 06:21:44 +00:00
Dean Troyer 18aadcc9bf Add default test framework
Change-Id: Ie97032884de0d70dfc57d97ebd2055148fff1e38
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-06-09 08:56:58 -05:00