Commit Graph

10 Commits

Author SHA1 Message Date
Al Bailey 5fff425f25 Update tox path for python3
- The reference to cgcs_patch was the older centos python2
location, and has now bee updated to the python3 debian
package.

- Removed 'legacy-resolver' from the pip install command.

- The basepython is now python3 and the upper-constraints
for debian and python3 are now specified.

- The older python2 to 3 conversion directives in pylint
have been removed, and only the errors that are currently
valid are being suppressed.

- The python2 vs python3 requirements are now updated to
only reflect python3.

- The zuul job for pylint specifies the debian nodeset.

- override tox constraints file to use the STX constraints
  This means starlingx/root needs to be a required project

None of these changes have any runtime effect.
These changes only affect tox and zuul.

Test Plan:
  PASS: tox

Story: 2010642
Task: 47916
Change-Id: I1cd8a78e5e26efc4b3d4b346749735e4de9f6016
Signed-off-by: Al Bailey <al.bailey@windriver.com>
2023-05-01 14:01:17 +00:00
albailey 927bee2d66 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 updates the version constraint to use newer flake8.

pylint has been switched to running in python3 which has challenges
related to the new pip resolver. The correct version of Django cannot
be specified with the new resolver so the pylint errors caused
by the newer version are suppressed for now.

The docs targets for tox use their own install_command which
does not include an upper constraint.

A non ascii character was removed from the tox.ini file which
prevented running tox on some ubuntu envs.

Partial-Bug: 1895054
Signed-off-by: albailey <Al.Bailey@windriver.com>
Change-Id: Ic6a50c2ecf2a654fd883ed92fc305336741d4303
2020-12-21 12:34:37 -06:00
Zuul abda3f1509 Merge "Switch to newer openstackdocstheme and reno versions" 2020-06-08 17:55:08 +00:00
Sharath Kumar K 170ac040d2 Tox and Zuul job for the bandit code scan in stx/gui
Setting up the bandit tool for the scanning of HIGH severity issues
in the python codes under Starlingx/gui 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.

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

Change-Id: I155c9f894f8b1d701f2c75e3e892e6b83a35b11e
Signed-off-by: Sharath Kumar K <sharath.kumar@intel.com>
2020-06-04 14:13:28 +00:00
Andreas Jaeger b4f16ab7e8 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Remove docs requirements from test-requirements.txt, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: Id86f483b405c8fbc74b89ac085076b55e461d417
2020-06-04 14:24:43 +02:00
Scott Little 9d10723c66 Build layering, add layer build config file
Story: 2006166
Task: 37119

Change-Id: I1ff889001bb5d8d55a5452fd92fe5fa74d15bc14
Signed-off-by: Scott Little <scott.little@windriver.com>
2019-10-15 22:38:09 +08:00
chenyan 17336123bd api, ceph: modify ceph api code to fit for the new cephclient.
Closes-Bug: 1827658

Change-Id: Icb7e1e87b45c7f6c278a35ea962e9b214e7e87dd
Signed-off-by: chenyan <yan.chen@intel.com>
2019-05-16 15:04:53 +08:00
Al Bailey 43e07f799c Remove calls to non existant novaclient imports
The wrs_pci and wrs_providernet python files do
not exist in novaclient.

This change removes those imports.

The GUI code that is processing the results from
those imports is not currently been removed, as it may be
used by upcoming enhancements to sysinv.

Story: 2004751
Task: 29357
Change-Id: I39dfbdf60d9de008072253f1074fb2ee5c61df72
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2019-02-05 13:23:11 -06:00
Kristine Bujold f1013be39f Enable zuul unit tests for stx-gui
Enable linters

Story: 2003863
Task: 26695

Change-Id: I4a6e2029bdf9c83422dd968c39341f2429b6e312
Signed-off-by: Kristine Bujold <kristine.bujold@windriver.com>
2018-11-13 13:48:17 -05:00
Dean Troyer 5a4b802dfc StarlingX open source release updates
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-05-20 20:53:11 -07:00