Tests still have python2.7 configs remaining and some tests
are named -debian, implying the old ones are for centos and
can be removed.
This commit removes the python2.7 and centos configs from tox
and zuul.
Test Plan:
1. PASS - Ran all tests in tox and verified if every test
finished with the desired output.
2. PASS - Ran tests in zuul environment and checked if
it was successfull.
Story: 2010531
Task: 48385
Change-Id: I2de9ef82a86e2ce35a3f2a5824f5dac634d2bd1e
Signed-off-by: Gustavo Pereira <gustavo.lyrapereira@windriver.com>
Updating the rsa ssh host key based on:
https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/
Note: In the future, StarlingX should have a zuul job and
secret setup for all repos so we do not need to do this
for every repo.
Needed to rename the secret, because zuul fails if like-named
secrets have diffent values in different branches of the same
repo.
Partial-Bug: #2015246
Change-Id: Ibfa90df4b6a22e7bc649b2d068ba4db28b239b36
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
The python2.7 jobs will no longer be executed as part
of the zuul check and gate.
The nodeset with the python2.7 interpreter has been
updated around Feb 5th 2023.
Story: 2010531
Task: 47311
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I4b903c934f74c148da66fbe11d949b508a88cfbc
The ubuntu-jammy nodeset gets selected by default
starting around yesterday, and something about the
headers is mismatched.
Collecting cffi>=1.1
Failed to build cffi
ubuntu-focal seem to work fine.
Will specify the nodeset to be focal to resolve this.
Partial-Bug: 1994843
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I6ebd106485f7b9b07bbd3e563fb09248bbc12ca3
The pylint setup related to pip and upper constraints
is different for python3.9. Updated the requirement packages'
software version (to versions that support python3.9) Updated
'cover' tox.ini target to be python3.9
These alarms are suppressed because python2 does not support the
suggested syntax, will be unsuppressed after termination of python2
W0707: raise-missing-from
W1514: unspecified-encoding
Test Plan :
1. Ensure Tox can pass on both Debain and CentOS build server
2. Ensure pylint3 and pylint3.9 can pass without warning
Signed-off-by: BoYuan Chang <boyuan.chang@windriver.com>
Story: 2008943
Task: 45941
Change-Id: I4981b98002f5842df9fec31a3991916b84592c07
Adding py39 gate.
Removing redundant py36 Zuul jobs since we now have py39 Zuul jobs in
place with the debian nodeset
Story: 2006796
Task: 42983
Change-Id: Ica95c7d5f91e7606c369fec2d06ec6f34cfd2796
Signed-off-by: Bernardo Decco <bernardo.deccodesiqueira@windriver.com>
A lot of work has gone into making sure that StarlingX is python3
compatible. To ensure future compatibility, enable the python3
portability checks. Disable the checks that are raising errors.
Another set of commits will address the offending code.
Story: 2006796
Task: 43107
Signed-off-by: Bernardo Decco de Siqueira <bernardo.deccodesiqueira@windriver.com>
Change-Id: I5d1cb629cf3350dd51f650b8f87f27041d33e64e
The py2.7 jobs need to specify xenial
The py3.6 jobs need to specify bionic
The focal zuul nodes only have python 3.8 installed in them
The copyright date was updated in order to trigger
the zuul jobs, as a no-delta type of change
Note: pep8 and pylint jobs are not being specified for this repo
because they specify a generic python3 interpreter, and are
currently passing in python 3.6 and python 3.8.
Partial-Bug: 1928978
Signed-off-by: albailey <Al.Bailey@windriver.com>
Change-Id: I4de3a640419ed431619cc4154ab928eebef71280
Replaces the unittest2 base module with testtools.
Adds py36 unit test target in tox.ini, called from zuul.
Updates unit tests to pass when run in both py27 and py36.
Add sample CLI unit tests for fw update strategy based on
a mixin for update strategy.
Story: 2007875
Task: 40674
Change-Id: Ia1b94110a53d48249aed76c94b07f8ffc2946bb3
Signed-off-by: albailey <Al.Bailey@windriver.com>
Setting up the bandit tool for the scanning of HIGH severity issues
in the python codes under Starlingx/distributedcloud-client 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 Batch7 change.
Story: 2007541
Task: 39649
Depends-On: https://review.opendev.org/#/c/721294/
Change-Id: I8d1f0307c5b7ccf9ce6956b9808c5151987954a2
Signed-off-by: Sharath Kumar K <sharath.kumar@intel.com>
The error codes detected by pylint are suppressed
and can be fixed by later submissions.
The get_parser methods were updated to fix the
arguments-differ error code, because the base method
defined in 'cliff' expects prog_name as its argument.
This also adds the pylint target to zuul.
Story: 2007082
Task: 39360
Change-Id: Idf7264fa7594e4c9a18603960a566601883865a8
Signed-off-by: albailey <Al.Bailey@windriver.com>
Use templates instead of individual jobs so that these
can be changed in one place.
Depends-On: https://review.opendev.org/677606
Change-Id: I0966b8a888f15b93e3857a28b66b7b2ab7d6e92c
Pep8 and py27 tests are now passing
Both are voting in zuul on check and gate
Story: 2003862
Task: 26692
Change-Id: Idf8bb3cbe139ac8fbf3755a25f9efd7c76e45d72
Signed-off-by: Lachlan Plant <lachlan.plant@windriver.com>
Enable starlingxdocs theme support for:
- Documentation
- Release Notes
Modify content to:
- Add pointers in the main doc to release notes pages.
- Add search at bottom of relese notes.
Add zuul post jobs:
- publish-stx-releasenotes
Change-Id: Ic795e9afd22838bb5452224267e600afba9de2cf
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
Also set the theme to alabaster until starlingxdocs is ready
and fix pep8 issues in the configs
Change-Id: I7574bab4de7db6434ac2ec7fa8477be2fa7970b7
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
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: 26732
Change-Id: Ie5eb335cf8da50c26bb29cacc10c817aaf754307
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
* 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: I02a81c5179141efb056cd030819af6387ba7a13c
Signed-off-by: Dean Troyer <dtroyer@gmail.com>