Commit Graph

29 Commits

Author SHA1 Message Date
Leonardo Fagundes Luz Serrano 5e19b07ebb tox: fixed warnings
meta_data files:
- "too few spaces before comment" warning
- missing document start "---" warning

tox.ini:
- allowlist bash for testenv
- moved 'basepython' var to testenv as it was repeated
  in all derived envs
- removed "tox < 4" requirement. changed minversion to 4

pylint:
- renamed pylintrc to the standard convention ".pylintrc"
- Removed "enable" section, as all warnings are enabled by default
- Updated "disable" section as some warnings changed names
- files-output deprecated [1]
- bad-functions requires a plugin [2, 3]
- max-branchs ==> max-branches [4]
- overgeneral-exceptions updated

[1] https://pylint.pycqa.org/en/latest/whatsnew/1/1.7/summary.html#removed-changes
[2] https://pylint.pycqa.org/en/latest/user_guide/configuration/all-options.html#bad-functions
[3] https://pylint.pycqa.org/en/latest/user_guide/messages/warning/bad-builtin.html
[4] https://pylint.readthedocs.io/en/latest/user_guide/messages/refactor/too-many-branches.html

Test Plan:
pass: run tox

Partial-Bug: 1976377

Change-Id: I715ed859e046a90cc7ec5d047d42902a51009eb8
Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
2023-09-06 17:54:55 -03:00
Davlet Panech f82da80d50 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
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
Change-Id: I48f8cea15ef655aa718a642e1929e34789590734
2023-04-28 12:38:51 -04:00
Manoel Benedito Neto c15e3e1a3a Fix lint errors identified by Zuul pylint job
This commit fixes lint errors identified by Zuul after stx-integ-pylint
job is executed.

Test Plan:
PASS: stx-integ-pylint job is executed successfully.
PASS: Run "yamllint ." command on integ repo base directory. Observe
      that no lint errors of line-length, truthy, indentation,
      new-line-at-end-of-file and document-start are listed.
PASS: build-pkgs -a -c

Closes-Bug: 2011632
Change-Id: I4d8229b5de8c9d88ff2aab6169521ab377b5866c
Signed-off-by: Manoel Benedito Neto <manoel.beneditoneto@windriver.com>
2023-03-15 12:07:17 +00:00
Joshua Kraitberg bcf17e661e Remove Legacy-resolver and changed constraints
Legacy-resolver will have its support dropped in the future.

Also, legacy-resolver was masking a dependency conflict that
required the constraints files be updated.  To use the
updated constraints file, the stx-integ-pylint job had to be
updated.  This update matches what is done in other repos,
eg. https://github.com/starlingx/update/blob/master/.zuul.yaml#L108.

Test Plan:
Execute: tox

Closes-Bug: 1964372

Signed-off-by: Joshua Kraitberg <joshua.kraitberg@windriver.com>
Change-Id: I6b71f0cd3d9315f957d6a6a15bf0a22e2a692185
2022-08-22 15:04:43 +00:00
albailey 6420975496 Updating the pylint tox target to reflect its targets
pylint is currently only running on storage_topology
however it was using generic dependencies and installing
and suppressing far more than it needed to.

This will get pylint to pass zuul as well, since some
of the un-needed dependencies are failing to install.

Story: 2008943
Task: 43850
Signed-off-by: albailey <Al.Bailey@windriver.com>
Change-Id: I250754ca8f4f904a902f6cfd6597fde54d1597a9
2021-11-04 10:22:24 -05:00
Bin Qian 4f388e940d Adding job to upload commits to GitHub
Add job to publish integ repo to GitHub

Change-Id: I052a271a91d836ec4f644750517d0e12d352ac1b
Story: 2007252
Task: 38681
Signed-off-by: Bin Qian <bin.qian@windriver.com>
2020-02-06 10:50:16 -05:00
Scott Little 062ec89dbb Relocated some packages to repo 'utilities'
List of relocated subdirectories:

ceph/ceph-manager
ceph/python-cephclient
filesystem/nfscheck
logging/logmgmt
security/tpm2-openssl-engine
security/wrs-ssl
tools/collector
tools/engtools/hostdata-collectors
utilities/build-info
utilities/namespace-utils
utilities/pci-irq-affinity-agent
utilities/platform-util
utilities/tis-extensions
utilities/update-motd

Story: 2006166
Task: 35687
Depends-On: I665dc7fabbfffc798ad57843eb74dca16e7647a3
Change-Id: I2bf543a235507a4eff644a7feabd646a99d1474f
Signed-off-by: Scott Little <scott.little@windriver.com>
Depends-On: I85dda6d09028f57c1fb0f96e4bcd73ab9b9550be
Signed-off-by: Scott Little <scott.little@windriver.com>
2019-09-05 20:31:36 -04:00
Scott Little 39d02246ae Config file changes to remove packages being relocated to repo
'containers'

List of relocated subdirectories:

kubernetes/registry-token-server

Story: 2006166
Task: 35687
Depends-On: I665dc7fabbfffc798ad57843eb74dca16e7647a3
Depends-On: Ibdae0a338a1af493ac522757b61bbd6df1da941e
Change-Id: I7f1c1184e8dfeff1740b695adb71b8becaa4e7b1
Signed-off-by: Scott Little <scott.little@windriver.com>
2019-09-05 23:17:17 +00:00
Andreas Jaeger d33aee6b10 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: I65ad96cb7883b90f8111ff609c6a1b6e0e32a101
2019-08-21 12:55:49 +00:00
Dean Troyer f8f2899038 Define base tox-functional jobs
Add flock-devstack-tox-base and flock-devstack-tox-base-min jobs
that will execute tox functional tests using the running DevStack.

This includes a test of running with a minimal tox functional
environment for cases where those tests have not been writen yet.

Change-Id: I436ba5a1c8f72b86bcdff4128b9960f4571be048
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-05-16 17:22:59 -05:00
Dean Troyer 4a0dc9e70e Followup opendev cleanup and test jobs
Depends-On: https://review.opendev.org/#/c/653964/
Change-Id: Icdd50ca6f1d4b982ca260ea43aafe95ea1e7d117
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-04-21 09:23:19 -05:00
OpenDev Sysadmins 3cbee7c788 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:52:31 +00:00
Dean Troyer 4edfc94285 Add new base DevStack job
* move the base stx-devstack job to stx-integ, renamed as
  flock-devstack-base
* add a new flock-devstack-base-min job that also disables
  most of OpenStack services to seed things up when they
  are not required

Story: 2005285
Change-Id: Idf30735b7b091eca03a5e9cd321b99115c9fca65
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-03-22 12:04:44 -05:00
James E. Blair 73d6ec324f Also run stx-integ job in gate
Run this job in the gate pipeline as well; this will prevent
incompatible changes landing and causing the job to fail.

Change-Id: I46e21e61d86d7a8dbf77b8f4cdf5ada9de12baa8
Signed-off-by: James E. Blair <jeblair@redhat.com>
2019-03-11 09:59:11 -07:00
Dean Troyer 8231278f82 Set DevStack install dir to /usr/local by default
Put everything in /usr/local and allow that to be overridden to
a user-writable dir and not require sudo.

Also set the stx-devstack-update job voting, at this time it only runs
on devstack/* changes.

Change-Id: Ibb27af08e4eaa0ba82d737e1af438a992ec35bfb
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-03-07 14:34:13 -06:00
Dean Troyer ed19c6c0bd DevStack plugin updates for bionic job
This makes some cleanup changes to the DevStack plugin for the
change to master and bionic.
* Define values for precedence handling by the upstream devstack playbook
* Add STX_INST_DIR for a deterministic install location
* Add stx-update to required plugins
* Sort functions in the main plugin
* Cleanup comments in a couple of places

Change-Id: I147882e8980f3e1b599008205db268eb9e7736b0
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-02-20 15:07:09 -06:00
Al Bailey 7fbddc4096 Adding a pylint tox and zuul job for stx-integ
The failing pylint warnings and errors are currently
suppressed.  They will be fixed by subsequent commits.

Story: 2004515
Task: 28791
Change-Id: I93a89554bf2dfbd9d1cbd96728a7663c408a79b1
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2019-01-08 11:14:46 -06:00
Dean Troyer ed5026d6c9 Add DevStack plugin
At this point this only installs platform_utils

Depends-On: https://review.openstack.org/613973
Change-Id: I5cfb89592b25d60adf717e97c1859af989c08d2f
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-11-01 23:59:31 -05:00
Dean Troyer c7dfc772fa Add relnotes publish job
* Add pointers in the main doc to releasenotes pages
* Add publish-stx-releasenotes job
* Add search at bottom of relnotes page to trigger the job

Change-Id: I3ba4672681bdcc1810e10c534cfa0e49b4d82a2c
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-10-12 15:07:01 -05:00
Dean Troyer 35813762a7 Add publish job for docs
Also set the theme to alabaster until starlingxdocs is ready

Change-Id: Idcfe4244f6d43380c8cee87d165ca2786f3e1767
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-10-06 14:19:53 -05:00
Al Bailey 0844ed02bb Turn on pep8 as a voting job for stx-integ
- Convert from pep8 to flake8.
- Add in hacking and bugbear plugins to flake8
- Suppress any flake8 errors that fail.

Future tasks will be created to cleanup and
fix the suppressed error codes.

Story: 2002803
Task: 26884
Change-Id: I8bf0978f27be1cc1108d21a002e650c5072b4c67
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2018-10-03 15:50:42 -05:00
Abraham Arce d59fe6623c [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.

[0] https://docs.openstack.org/reno/latest/

Story: 2003101
Task: 26719

Change-Id: If4f8833fb4d3539ba47ce3014d4d3bbae409c278
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
2018-09-25 05:43:29 -05:00
Abraham Arce f00b501641 [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

[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: 26718

Story: 2002813
Task: 24450

Change-Id: Id66fed45d16cdcad13988cd04f9c783398bfa781
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
2018-09-25 04:30:20 -05:00
Dean Troyer df15921232 Remove non-voting job from gate pipeline
Non-voting jobs in the gate pipeline serve no useful purpose,
voting is the point of the gate.

Change-Id: Ic67d3e39adf4a1069c6cd1d161d0dd17c77662a1
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-09-14 13:06:05 -05:00
Martin Chen dba551a518 Fix linters error and enable linters zuul gate
Fix below linters errors
E010 The "do" should be on same line as for
E010 The "do" should be on same line as while
E011 Then keyword is not on same line as if or elif keyword
E020 Function declaration not in format ^function name {$

Ignore:
E041 Arithmetic expansion using $[ is deprecated for $((
E042 local declaration hides errors
E043 Arithmetic compound has inconsistent return semantics
E044 Use [[ for non-POSIX comparisions

Story: 2003366
Task: 24423

Change-Id: I8b6b72e702d3e89d1813772d6bf16819e28e818c
Signed-off-by: Martin Chen <haochuan.z.chen@intel.com>
2018-09-07 01:50:28 +08:00
Andreas Jaeger 7b86cd14df Add explicit noop gate job
This repo defines jobs in check queue, so we can remove the noop-jobs
template usage from project-config. To allow that, add a noop job to
gate queue.

Change-Id: Ie204c40291c17365887793bb5f114652fa24b360
2018-09-05 20:33:52 +02:00
Sun Austin 847cf1e92f Fix linters issue E002 and E003 and linters check (none-voting)
E002 Tab indents
E003 Indent not multiple of 4

Story: 2003366
Task: 24424

Change-Id: Ie063ccfe346489f08c4752adaa344f5919db0378
Signed-off-by: Sun Austin <austin.sun@intel.com>
2018-08-31 04:08:52 +00:00
Dean Troyer bc6c3c6d11 Remove non-voting gate job
Change-Id: I0987583bf182de79420ba00b5a993cb2f50edc3c
2018-06-29 14:31:17 -05:00
Dean Troyer 16506a09de Add default test framework
Change-Id: I9f6d73ad4dbf6a2decc62284a52f4f669ba94036
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-06-11 13:45:22 -05:00