update/.zuul.yaml
Leonardo Fagundes Luz Serrano 2bf7bed9e6 Zuul/Tox: Update software tests
Updated tox configs on software and software-client
and update zuul jobs to call python tests on them using
their individual configs.

Fixed a few flake8 issues on both directories.

software-client pylint test set to non-voting for now.

Test Plan: In a venv:
pass: tox -c software/tox.ini -eflake8
pass: tox -c software/tox.ini -epylint
pass: tox -c software-client/tox.ini -eflake8

Story: 2010676
Task: 51082

Depends-On: https://review.opendev.org/c/starlingx/update/+/930489

Change-Id: I3b8e2612c4bc579e2284383f14b2879a07d0d7bd
Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
2024-10-07 10:45:15 -03:00

272 lines
10 KiB
YAML

---
- project:
templates:
- publish-stx-docs
- stx-api-ref-jobs
- stx-release-notes-jobs
check:
jobs:
- openstack-tox-linters
- py3-bandit
- py3-flake8
- patch-alarm-tox-pylint
- patch-alarm-tox-py39
- software-tox-flake8
- software-tox-pylint
- software-client-tox-flake8
- software-client-tox-pylint
- sw-patch-tox-pylint
- sw-patch-tox-py39
gate:
jobs:
- openstack-tox-linters
- py3-bandit
- py3-flake8
- patch-alarm-tox-pylint
- patch-alarm-tox-py39
- software-tox-flake8
- software-tox-pylint
- software-client-tox-flake8
- software-client-tox-pylint
- sw-patch-tox-pylint
- sw-patch-tox-py39
post:
jobs:
- stx-update-upload-git-mirror
- job:
name: py3-bandit
parent: tox
nodeset: debian-bullseye
vars:
tox_envlist: bandit
- job:
name: py3-flake8
parent: tox
nodeset: debian-bullseye
required-projects:
- starlingx/config
- starlingx/fault
vars:
tox_envlist: flake8
- job:
name: software-tox-flake8
parent: tox
nodeset: debian-bullseye
required-projects:
- starlingx/config
- starlingx/fault
files:
- software/*
vars:
tox_envlist: flake8
tox_extra_args: -c software/tox.ini
- job:
name: software-tox-pylint
parent: tox
nodeset: debian-bullseye
required-projects:
- starlingx/config
- starlingx/fault
files:
- software/*
vars:
tox_envlist: pylint
tox_extra_args: -c software/tox.ini
- job:
name: software-client-tox-flake8
parent: tox
nodeset: debian-bullseye
required-projects:
- starlingx/config
files:
- software-client/*
vars:
tox_envlist: flake8
tox_extra_args: -c software-client/tox.ini
- job:
name: software-client-tox-pylint
parent: tox
nodeset: debian-bullseye
required-projects:
- starlingx/config
files:
- software-client/*
vars:
tox_envlist: pylint
tox_extra_args: -c software-client/tox.ini
voting: false
- job:
name: sw-patch-tox-py39
parent: tox-py39
nodeset: debian-bullseye
required-projects:
- starlingx/config
- starlingx/fault
files:
- sw-patch/cgcs-patch/*
vars:
tox_envlist: py39
python_version: 3.9
tox_extra_args: -c sw-patch/cgcs-patch/tox.ini
- job:
name: sw-patch-tox-pylint
parent: tox
nodeset: debian-bullseye
required-projects:
- starlingx/config
- starlingx/fault
files:
- sw-patch/cgcs-patch/*
vars:
tox_envlist: pylint
python_version: 3.9
tox_extra_args: -c sw-patch/cgcs-patch/tox.ini
- job:
name: patch-alarm-tox-pylint
parent: tox
nodeset: debian-bullseye
required-projects:
- starlingx/config
- starlingx/fault
files:
- patch-alarm/patch-alarm/*
vars:
bindep_profile: pylint
tox_envlist: pylint
tox_extra_args: -c patch-alarm/patch-alarm/tox.ini
- job:
name: patch-alarm-tox-py39
parent: tox-py39
nodeset: debian-bullseye
required-projects:
- starlingx/config
- starlingx/fault
files:
- patch-alarm/patch-alarm/*
vars:
bindep_profile: python3
python_version: 3.9
tox_envlist: py39
tox_extra_args: -c patch-alarm/patch-alarm/tox.ini
- job:
name: flock-devstack-update
parent: flock-devstack-base-min
required-projects:
- starlingx/integ
vars:
tox_envlist: functional
devstack_services:
# StarlingX services
sw-patch: true
devstack_plugins:
# integ: https://opendev.org/starlingx/integ
update: https://opendev.org/starlingx/update
- job:
name: stx-update-upload-git-mirror
parent: upload-git-mirror
description: >
Mirrors opendev.org/starlingx/update to
github.com/starlingx/update
vars:
git_mirror_repository: starlingx/update
secrets:
- name: git_mirror_credentials
secret: stx-update-github-secret2
pass-to-parent: true
- secret:
name: stx-update-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
- p1KJoyiK9fPudGzHlHpvBRDrm0wMUs769InF7okw8qFM+R6hSjS+GRqa3XjYqcfRmaRMJ
Dy5oyLe+ONAV5VTLv81lDn6/zmFZsex186P7ZsUG5wMrL7mqGf+jOto4fJt/NodLwZqNX
KaFQBaM5VmvdtQnDqfVy3Ur0FqcsTHmrQ3COKQdEHcx/ioudIG8Eqxd9r8MHPOcSh468D
/UKPS2f+rSFA6JE74IiyIhrNPow4upLHnns0S4iOvQtT2eI/ephj9XQpM2jCumvmLXSoN
4N8gNlX6M46zdtAkUEfdQJuRn10uFQyo6KPxcB8ryHR+a1uM06lfotr/ora5vQpz4XNZF
DKJVOijXhtIoJp34HXSWve1ATWGXdTb8TN/jlMspQiQG+DXrfIxy1ZY3aFlryFRSupyJ5
aR3RmLOM07F1mOJvcrgDJVZq9JZLtrQW39w9FuppXZa97R4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