Commit Graph

11 Commits

Author SHA1 Message Date
Hugo Brito a59071b1a7 Fix constraints file in tox.ini
The constraints file used for tox.ini root was removed.
We need to update the file to use the StarlingX Debian constraints file.

Test Plan:
PASS - Run tox command

Closes-bug: 2055734

Change-Id: I0f973f3aeafd42b62707bbb1dc43428d2bab6252
Signed-off-by: Hugo Brito <hugo.brito@windriver.com>
2024-03-01 19:00:58 -03:00
Al Bailey d32a86a246 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: I31e9f1b78c5a091317b8f595253f7bf6b2eccf14
2022-12-26 22:03:09 +00:00
albailey a6a1cd5aef Fix zuul errors due to changes in dependencies
Specifying certain upper limits for components
pulled in by test-requirements.txt

Partial-Bug: 1922590
Signed-off-by: albailey <Al.Bailey@windriver.com>
Change-Id: I1e881ccf0d1ac7f96312b1e573b4b3aa950dbc6f
2021-04-15 16:06:36 -05:00
Sharath Kumar K 697b43e00f Tox and Zuul job for the python code scan in starlingx/clients
Setting up the bandit tool for the scanning of HIGH severity issues
in the python codes under Starlingx/clients 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 Batch5 change.

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

Change-Id: I602b43f0f0bc70a1eb48b11aa07fdf2e286db408
Signed-off-by: Sharath Kumar K <sharath.kumar@intel.com>
2020-06-29 08:24:30 +00:00
Kristine Bujold e733fb1cfb Remove SDK Modules from StarlingX
Remove the install-log-server and remote-clients SDK modules from
StarlingX.

Story: 2005275
Task: 30126

Change-Id: I9b9f7e6b38e2109f83d3174c41c752c3e1293dae
Signed-off-by: Kristine Bujold <kristine.bujold@windriver.com>
2019-03-21 13:13:48 -04:00
Al Bailey c4c4191a91 Minor tox cleanup for linters and pep8
linters yamllint target was excluding a folder that did not exist
pep8 was not invoking flake8, and was not including hacking which
pulls in additional checks.

Story: 2004515
Task: 28966
Change-Id: I0268f685e4292d93c5ff6014b150b25bfe9cd583
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2019-01-17 10:11:24 -06:00
98k cc79b56590 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: I9383c8f33cf476b7c8dff184089e40aa591c6d6c
Closes-Bug:  #1802032
2018-11-08 13:13:11 +00:00
Abraham Arce f795260e03 [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: 26713

Change-Id: Iaadde3d214d16a601d779612ede01d09babd8b43
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
2018-09-25 11:08:20 -05:00
Abraham Arce 1185b5fdda [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: 26712

Story: 2002813
Task: 26711

Change-Id: I7aad7497b8e0314ef10f59ecf4b863220b543bf8
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
2018-09-25 11:07:16 -05:00
Lachlan Plant e2137f94df Fix tox linters for zuul
Fix bashate and yamllint to only run if files are provided
Fix whitespace errors and line errors in shell scripts
Relax line length requirement in yamllint
Enable voting on zuul jobs
Story: 2003359
Task: 24409

Change-Id: I6bfa31c9a0c1527c6517cfd95758feadd73c0ae6
Signed-off-by: Lachlan Plant <lachlan.plant@windriver.com>
2018-08-29 11:30:50 -05:00
Dean Troyer 7da9262b09 Add default test framework
Change-Id: Ic8479f8e278dcedc278091dce21020824b2d0655
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-06-11 13:24:30 -05:00