Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zuul: add integration test jobs back in #208

Merged
merged 5 commits into from Feb 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
82 changes: 82 additions & 0 deletions .zuul.d/jobs.yaml
@@ -0,0 +1,82 @@
---
- job:
name: ara-tox-py3
parent: tox
nodeset: fedora-latest-1vcpu
vars:
tox_envlist: py3

- job:
name: ara-tox-linters
parent: tox
nodeset: fedora-latest-1vcpu
vars:
tox_envlist: linters

- job:
name: ara-tox-docs
parent: ansible-tox-docs

- job:
name: ara-integration-base
parent: base
files:
- ara/*
- manage.py
- requirements.txt
- roles/*
- setup.cfg
- setup.py
- test-requirements.txt
- tests/*
- tox.ini
- .zuul.d/*
vars:
ara_api_source: "{{ ansible_user_dir }}/src/github.com/ansible-community/ara"
ara_tests_ansible_name: "{{ ansible_user_dir }}/src/github.com/ansible/ansible"
ara_tests_ansible_version: null
ara_api_secure_logging: false
post-run: tests/zuul_post_logs.yaml

- job:
name: ara-container-images
parent: ara-integration-base
nodeset: fedora-latest-1vcpu
description: |
Builds ARA API container images with buildah and briefly tests them with podman.
run: tests/with_container_images.yaml

- job:
name: ara-ansible-integration-base
parent: ara-integration-base
nodeset: fedora-latest-1vcpu
vars:
ara_api_source: "{{ ansible_user_dir }}/src/github.com/ansible-community/ara"
run: tests/basic.yaml

- job:
name: ara-basic-ansible-devel
parent: ara-ansible-integration-base
description: |
Runs basic integration tests through the equivalent of "tox -e ansible-integration" with Ansible devel.
required-projects:
- name: github.com/ansible/ansible
override-checkout: devel

- job:
name: ara-basic-ansible-2.9
parent: ara-ansible-integration-base
description: |
Runs basic integration tests through the equivalent of "tox -e ansible-integration" with Ansible 2.9.
required-projects:
- name: github.com/ansible/ansible
override-checkout: stable-2.9

- job:
name: ara-basic-ansible-2.8
parent: ara-ansible-integration-base
description: |
Runs basic integration tests through the equivalent of "tox -e ansible-integration" with Ansible 2.8.
required-projects:
- name: github.com/ansible/ansible
override-checkout: stable-2.8
17 changes: 15 additions & 2 deletions .zuul.d/project.yaml
@@ -1,7 +1,20 @@
---
- project:
check:
jobs:
- noop
- ara-tox-py3
- ara-tox-linters
- ara-tox-docs
- ara-basic-ansible-devel:
voting: false
- ara-basic-ansible-2.9
- ara-basic-ansible-2.8
- ara-container-images
gate:
jobs:
- noop
- ara-tox-py3
- ara-tox-linters
- ara-tox-docs
- ara-basic-ansible-2.9
- ara-basic-ansible-2.8
- ara-container-images
2 changes: 1 addition & 1 deletion tests/with_container_images.yaml
Expand Up @@ -20,7 +20,7 @@
gather_facts: yes
vars:
ara_api_root_dir: "{{ ansible_user_dir }}/.ara-tests"
ara_api_source: "{{ ansible_user_dir }}/src/opendev.org/recordsansible/ara"
ara_api_source: "{{ ansible_user_dir }}/src/github.com/ansible-community/ara"
images:
# These are in chronological order of release so that we don't end up
# running SQL migrations backwards during the tests.
Expand Down