- 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>
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
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>
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
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>