Clean up bitrot

Depends-On: https://review.opendev.org/c/windmill/windmill-config/+/797553
Change-Id: I12e7b603c9d4ae7364982044069e9ac7ac4d6034
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2021-06-22 10:35:53 -04:00
parent a2a78e7ef5
commit 12dd334b2e
5 changed files with 21 additions and 22 deletions

View File

@ -12,15 +12,12 @@
name: ansible-role-zuul name: ansible-role-zuul
parent: ansible-role-zuul-base parent: ansible-role-zuul-base
- job:
name: ansible-role-zuul-fedora-latest
parent: ansible-role-zuul
nodeset: fedora-latest
- job: - job:
name: ansible-role-zuul-ubuntu-bionic name: ansible-role-zuul-ubuntu-bionic
parent: ansible-role-zuul parent: ansible-role-zuul
nodeset: ubuntu-bionic nodeset: ubuntu-bionic
vars:
zuul_pip_version: 3.19.1
# Testing for zuul_install_method: git # Testing for zuul_install_method: git
- job: - job:
@ -32,11 +29,6 @@
zuul_git_update: false zuul_git_update: false
zuul_install_method: git zuul_install_method: git
- job:
name: ansible-role-zuul-src-fedora-latest
parent: ansible-role-zuul-src
nodeset: fedora-latest
- job: - job:
name: ansible-role-zuul-src-ubuntu-bionic name: ansible-role-zuul-src-ubuntu-bionic
parent: ansible-role-zuul-src parent: ansible-role-zuul-src
@ -44,19 +36,14 @@
- project: - project:
templates: templates:
- windmill-jobs-fedora-latest
- windmill-jobs-bionic - windmill-jobs-bionic
check: check:
jobs: jobs:
- ansible-role-zuul-fedora-latest
- ansible-role-zuul-ubuntu-bionic - ansible-role-zuul-ubuntu-bionic
- ansible-role-zuul-src-fedora-latest - ansible-role-zuul-src-ubuntu-bionic:
- ansible-role-zuul-src-ubuntu-bionic voting: false
- tox-linters - tox-linters
gate: gate:
jobs: jobs:
- ansible-role-zuul-fedora-latest
- ansible-role-zuul-ubuntu-bionic - ansible-role-zuul-ubuntu-bionic
- ansible-role-zuul-src-fedora-latest
- ansible-role-zuul-src-ubuntu-bionic
- tox-linters - tox-linters

View File

@ -14,4 +14,4 @@ python3-setuptools [test]
# NOTE(pabelanger): This is because of a bug in zuul, when zuul-scheduler starts # NOTE(pabelanger): This is because of a bug in zuul, when zuul-scheduler starts
# it will fail unless it cannot connect to zookeeper. However, zuul should be # it will fail unless it cannot connect to zookeeper. However, zuul should be
# smart enough to try forever to connect. # smart enough to try forever to connect.
zookeeperd [platform:dpkg] zookeeperd [ansible platform:dpkg]

View File

@ -1,2 +1 @@
ansible-lint
hacking<0.11,>=0.10 hacking<0.11,>=0.10

View File

@ -26,3 +26,19 @@
dest: /etc/pip.conf dest: /etc/pip.conf
regexp: ^extra-index-url regexp: ^extra-index-url
state: absent state: absent
- name: Execute bindep role
include_role:
name: bindep
vars:
bindep_profile: ansible test
- name: Setup ensure-tox role
include_role:
name: ensure-tox
vars:
ensure_global_symlinks: true
- name: Use the latest version of pip
become: true
shell: python3 -m pip install -U pip

View File

@ -35,9 +35,6 @@ whitelist_externals = bash
commands = commands =
# PEP8 Lint Check # PEP8 Lint Check
flake8 flake8
# Ansible Lint Check
bash -c "find . -not -path '*/\.*' -type f -regex '.*.y[a]?ml' -print0 | \
xargs -t -n1 -0 ansible-lint -x 106,306"
# Ansible Syntax Check # Ansible Syntax Check
bash -c "find tests -type f -regex '.*.y[a]?ml' -print | xargs -t -n1 \ bash -c "find tests -type f -regex '.*.y[a]?ml' -print | xargs -t -n1 \
ansible-playbook --syntax-check -i tests/inventory \ ansible-playbook --syntax-check -i tests/inventory \