f7ccd93a79
The flake8 version was very old and has been updated The py27 and py36 targets are removed The pylint file has been cleaned up for python3 Zuul nodesets for this component are now debian Minor fixes to cleanup simple flake8 and pylint warnings. The use of 'file' and 'stat' as variables, which mask the builtin or top-level imports have been cleaned up. Main change was to replace yaml.load with yaml.safe_load This is because yaml.safe_load exists in older and newer versions of pyyaml, whereas yaml.load signature changes between versions, and not all Loader types exist in both. Test Plan: PASS: tox Story: 2010642 Task: 48156 Signed-off-by: Al Bailey <al.bailey@windriver.com> Change-Id: Ibdac877f40dc32140121724f19751aff6052e9db
300 lines
11 KiB
YAML
300 lines
11 KiB
YAML
---
|
|
- project:
|
|
vars:
|
|
ensure_tox_version: '<4'
|
|
templates:
|
|
- publish-stx-docs
|
|
- stx-api-ref-jobs
|
|
- stx-release-notes-jobs
|
|
check:
|
|
jobs:
|
|
- openstack-tox-linters
|
|
- sysinv-tox-py39
|
|
- sysinv-tox-flake8
|
|
- sysinv-tox-pylint
|
|
- sysinv-tox-bandit
|
|
- controllerconfig-tox-py39
|
|
- controllerconfig-tox-flake8
|
|
- controllerconfig-tox-pylint
|
|
- tsconfig__tox-pylint
|
|
- tsconfig__tox-py39
|
|
- tsconfig__tox-flake8
|
|
- cgtsclient-tox-py39
|
|
- cgtsclient-tox-pep8
|
|
- cgtsclient-tox-pylint
|
|
gate:
|
|
jobs:
|
|
- openstack-tox-linters
|
|
- sysinv-tox-py39
|
|
- sysinv-tox-flake8
|
|
- sysinv-tox-pylint
|
|
- sysinv-tox-bandit
|
|
- controllerconfig-tox-py39
|
|
- controllerconfig-tox-flake8
|
|
- controllerconfig-tox-pylint
|
|
- tsconfig__tox-pylint
|
|
- tsconfig__tox-py39
|
|
- tsconfig__tox-flake8
|
|
- cgtsclient-tox-py39
|
|
- cgtsclient-tox-pep8
|
|
- cgtsclient-tox-pylint
|
|
post:
|
|
jobs:
|
|
- stx-config-upload-git-mirror
|
|
|
|
- job:
|
|
name: sysinv-tox-py39
|
|
parent: tox-py39
|
|
description: |
|
|
Run py39 test for sysinv
|
|
nodeset: debian-bullseye
|
|
required-projects:
|
|
- starlingx/fault
|
|
- starlingx/utilities
|
|
- starlingx/update
|
|
files:
|
|
- sysinv/sysinv/*
|
|
vars:
|
|
tox_envlist: py39
|
|
python_version: 3.9
|
|
tox_extra_args: -c sysinv/sysinv/sysinv/tox.ini
|
|
|
|
- job:
|
|
name: sysinv-tox-flake8
|
|
parent: tox
|
|
description: |
|
|
Run flake8 test for sysinv
|
|
nodeset: debian-bullseye
|
|
files:
|
|
- sysinv/sysinv/*
|
|
vars:
|
|
tox_envlist: flake8
|
|
tox_extra_args: -c sysinv/sysinv/sysinv/tox.ini
|
|
|
|
- job:
|
|
name: sysinv-tox-pylint
|
|
parent: tox
|
|
description: |
|
|
Run pylint test for sysinv
|
|
nodeset: debian-bullseye
|
|
required-projects:
|
|
- starlingx/fault
|
|
- starlingx/utilities
|
|
- starlingx/update
|
|
files:
|
|
- sysinv/sysinv/*
|
|
vars:
|
|
tox_envlist: pylint
|
|
tox_extra_args: -c sysinv/sysinv/sysinv/tox.ini
|
|
|
|
- job:
|
|
name: sysinv-tox-bandit
|
|
parent: tox
|
|
description: |
|
|
Run bandit test for sysinv
|
|
nodeset: debian-bullseye
|
|
files:
|
|
- sysinv/sysinv/*
|
|
vars:
|
|
tox_envlist: bandit
|
|
tox_extra_args: -c sysinv/sysinv/sysinv/tox.ini
|
|
|
|
- job:
|
|
name: controllerconfig-tox-py39
|
|
parent: tox-py39
|
|
description: Run py39 tests for controllerconfig
|
|
nodeset: debian-bullseye
|
|
required-projects:
|
|
- starlingx/fault
|
|
files:
|
|
- controllerconfig/*
|
|
vars:
|
|
tox_envlist: py39
|
|
tox_extra_args: -c controllerconfig/controllerconfig/tox.ini
|
|
|
|
- job:
|
|
name: controllerconfig-tox-flake8
|
|
parent: tox
|
|
description: Run flake8 tests for controllerconfig
|
|
nodeset: debian-bullseye
|
|
files:
|
|
- controllerconfig/*
|
|
vars:
|
|
tox_envlist: flake8
|
|
tox_extra_args: -c controllerconfig/controllerconfig/tox.ini
|
|
|
|
- job:
|
|
name: controllerconfig-tox-pylint
|
|
parent: tox
|
|
description: Run pylint tests for controllerconfig
|
|
nodeset: debian-bullseye
|
|
required-projects:
|
|
- starlingx/fault
|
|
files:
|
|
- controllerconfig/*
|
|
vars:
|
|
tox_envlist: pylint
|
|
tox_extra_args: -c controllerconfig/controllerconfig/tox.ini
|
|
|
|
- job:
|
|
name: tsconfig__tox-pylint
|
|
parent: tox
|
|
nodeset: ubuntu-xenial
|
|
description: Run pylint tests for tsconfig
|
|
files:
|
|
- tsconfig/*
|
|
vars:
|
|
tox_envlist: pylint
|
|
tox_extra_args: -c tsconfig/tsconfig/tox.ini
|
|
|
|
- job:
|
|
name: tsconfig__tox-py39
|
|
parent: tox-py39
|
|
description: Run py39 tests for tsconfig
|
|
nodeset: debian-bullseye
|
|
files:
|
|
- tsconfig/*
|
|
vars:
|
|
tox_envlist: py39
|
|
tox_extra_args: -c tsconfig/tsconfig/tox.ini
|
|
|
|
- job:
|
|
name: tsconfig__tox-flake8
|
|
parent: tox
|
|
description: Run flake8 tests for tsconfig
|
|
nodeset: debian-bullseye
|
|
files:
|
|
- tsconfig/*
|
|
vars:
|
|
tox_envlist: flake8
|
|
tox_extra_args: -c tsconfig/tsconfig/tox.ini
|
|
|
|
- job:
|
|
name: cgtsclient-tox-py39
|
|
parent: tox-py39
|
|
description: |
|
|
Run py39 test for cgts-client
|
|
nodeset: debian-bullseye
|
|
files:
|
|
- sysinv/cgts-client/*
|
|
vars:
|
|
python_version: 3.9
|
|
tox_envlist: py39
|
|
tox_extra_args: -c sysinv/cgts-client/cgts-client/tox.ini
|
|
|
|
- job:
|
|
name: cgtsclient-tox-pep8
|
|
parent: tox
|
|
description: |
|
|
Run pep8 test for cgts-client
|
|
nodeset: debian-bullseye
|
|
files:
|
|
- sysinv/cgts-client/*
|
|
vars:
|
|
tox_envlist: pep8
|
|
tox_extra_args: -c sysinv/cgts-client/cgts-client/tox.ini
|
|
|
|
- job:
|
|
name: cgtsclient-tox-pylint
|
|
parent: tox
|
|
description: |
|
|
Run pylint test for cgts-client
|
|
nodeset: debian-bullseye
|
|
files:
|
|
- sysinv/cgts-client/*
|
|
vars:
|
|
tox_envlist: pylint
|
|
tox_extra_args: -c sysinv/cgts-client/cgts-client/tox.ini
|
|
|
|
- job:
|
|
name: stx-config-upload-git-mirror
|
|
parent: upload-git-mirror
|
|
description: >
|
|
Mirrors opendev.org/starlingx/config to
|
|
github.com/starlingx/config
|
|
vars:
|
|
git_mirror_repository: starlingx/config
|
|
secrets:
|
|
- name: git_mirror_credentials
|
|
secret: stx-config-github-secret2
|
|
pass-to-parent: true
|
|
|
|
- secret:
|
|
name: stx-config-github-secret2
|
|
data:
|
|
user: git
|
|
host: github.com
|
|
# yamllint disable-line rule:line-length
|
|
host_key: github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=
|
|
ssh_key: !encrypted/pkcs1-oaep
|
|
- ezp3pjapGFU4p0lqwUsI9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