Commit Graph

21 Commits

Author SHA1 Message Date
Gustavo Pereira fe00700f58 Clean up outdated configs in tox.ini and .zuul.yaml
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>
2023-07-20 17:38:24 -03:00
Davlet Panech b4d9d3e889 Fix github mirroring for this repo
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>
2023-04-28 12:38:50 -04:00
Al Bailey 08392534e6 Remove python2 jobs from zuul for this repo
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
2023-02-07 18:04:47 +00:00
Al Bailey fc1ae49d4c Fix zuul failures during pylint setup
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
2022-10-26 18:35:42 +00:00
BoYuan Chang b190ab3221 Make Tox compatible to Debian Python3.9 Environment - dc-client
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
2022-08-11 14:16:40 -04:00
Charles Short 2c528b9767 Adding py39 gate and removing py36 gates from zuul
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>
2021-10-28 19:41:32 +00:00
Bernardo Decco de Siqueira 88630621bd Add pylint py3 portability checks for the distcloud-client repo
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
2021-09-13 09:58:23 +00:00
albailey 8d2b5478c6 Specify the nodeset for zuul jobs
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
2021-05-19 15:47:55 -05:00
albailey f10e0455f0 Enabled python3 unit tests in tox and zuul
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>
2020-08-18 07:48:46 -05:00
Sharath Kumar K 7394a5fcad Tox and Zuul job for the bandit code scan in stx/distrib-client
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>
2020-06-08 03:59:38 +00:00
albailey 190c0c4558 Enable pylint for distributed cloud client
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>
2020-04-12 14:36:26 -05:00
Bin Qian a85baad3e6 Adding job to upload commits to GitHub
Add job to publish distcloud-client repo to GitHub

Change-Id: Ifcd171f4c86999a7073416047c659618c27befe8
Story: 2007252
Task: 38668
Signed-off-by: Bin Qian <bin.qian@windriver.com>
2020-02-05 14:54:17 -05:00
Don Penney e882c0cfab Update files for relocated repo
Change-Id: Ic651939664991a8f303893df937122d30c962129
Story: 2006166
Task: 37338
Signed-off-by: Don Penney <don.penney@windriver.com>
2019-11-04 16:12:27 -05:00
Don Penney 4e006a92a5 Move content to subdir to support relocated packaging
Change-Id: I985f3bef71616c6674e31b68c5d8037cdb670884
Story: 2006166
Task: 37338
Depends-On: https://review.opendev.org/692861
Signed-off-by: Don Penney <don.penney@windriver.com>
2019-11-04 14:14:38 -05:00
Andreas Jaeger be95978596 Use Zuul templates
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
2019-08-21 12:55:32 +00:00
Lachlan Plant b11e7ac509 Fix pep8 and py27 tests in stx-distcloud-client
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>
2018-11-02 14:51:18 +00:00
Abraham Arce 46d80c8059 [Doc] openstackdocstheme starlingxdocs theme
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>
2018-10-22 14:32:45 +00:00
Dean Troyer ee9618869d Add publish job for docs
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>
2018-10-11 09:00:49 -05:00
Abraham Arce 64fda558f9 [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: 26732

Change-Id: Ie5eb335cf8da50c26bb29cacc10c817aaf754307
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
2018-09-25 14:27:36 -05:00
Abraham Arce 44623d07d9 [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: 26730

Story: 2002813
Task: 26731

Change-Id: I010466d6edfea614d31dad0ae16903d324d4cc64
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
2018-09-25 14:18:47 -05:00
Dean Troyer 151ae48ca4 Set up initial Gerrit requirements
* 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>
2018-09-06 15:39:33 -05:00