Zuul Job with Bash oriented gate tests

* Added bash scripts in place of ansible playbooks/roles
* zuul will run bash scripts, and this means that they are actually tested
  which will make development experience easier

Change-Id: I60d1dac589ae8ad835d3f1dda5e2a45523367496
Relates-To: #222
This commit is contained in:
Sirajudeen 2020-06-12 07:49:34 -05:00
parent c3002cabda
commit c37b27b8d0
3 changed files with 57 additions and 3 deletions

View File

@ -14,7 +14,7 @@
# The makefile entrypoint driver for document validation
# Expected to be run from the project root
set -e
set -xe
# get kind
echo "Fetching kind from ${KIND_URL}..."

View File

@ -49,8 +49,13 @@
name: airship-airshipctl-validate-site-docs
pre-run:
- playbooks/airship-airshipctl-deploy-docker.yaml
run: playbooks/airship-airshipctl-validate-documents.yaml
run: playbooks/airshipctl-gate-runner.yaml
nodeset: airship-airshipctl-single-node
vars:
gate_scripts:
- ./tools/deployment/01_install_kubectl.sh
- ./tools/deployment/21_systemwide_executable.sh
- ./tools/validate_docs
# TODO (dukov) remove this once phases framework is fully implemented
voting: false
@ -72,7 +77,6 @@
pass-to-parent: true
- job:
voting: true
name: airship-airshipctl-gate-test
attempts: 1
timeout: 3600
@ -99,6 +103,7 @@
- airshipctl-phase-controlplane
serve_dir: /srv/iso
serve_port: 8099
voting: true
- job:
name: airship-airshipctl-32GB-gate-test
@ -127,6 +132,53 @@
serve_port: 8099
voting: false
- job:
name: airship-airshipctl-gate-script-runner-test
attempts: 1
timeout: 3600
pre-run:
- playbooks/airship-airshipctl-deploy-docker.yaml
- playbooks/airship-airshipctl-build-gate.yaml
post-run: playbooks/airship-collect-logs.yaml
run: playbooks/airshipctl-gate-runner.yaml
nodeset: airship-airshipctl-single-16GB-bionic-node
vars:
site_name: test-site
gate_scripts:
- ./tools/deployment/01_install_kubectl.sh
- ./tools/deployment/21_systemwide_executable.sh
- ./tools/deployment/22_test_configs.sh
- ./tools/deployment/24_build_ephemeral_iso.sh
- ./tools/deployment/25_deploy_ephemeral_node.sh
- ./tools/deployment/26_deploy_metal3_capi_ephemeral_node.sh
- ./tools/deployment/30_deploy_controlplane.sh
serve_dir: /srv/iso
serve_port: 8099
voting: false
- job:
name: airship-airshipctl-32GB-gate-script-runner-test
nodeset: airship-airshipctl-single-32GB-bionic-node
pre-run:
- playbooks/airship-airshipctl-deploy-docker.yaml
- playbooks/airship-airshipctl-build-gate.yaml
post-run: playbooks/airship-collect-logs.yaml
run: playbooks/airshipctl-gate-runner.yaml
timeout: 3600
vars:
site_name: test-site
gate_scripts:
- ./tools/deployment/01_install_kubectl.sh
- ./tools/deployment/21_systemwide_executable.sh
- ./tools/deployment/22_test_configs.sh
- ./tools/deployment/24_build_ephemeral_iso.sh
- ./tools/deployment/25_deploy_ephemeral_node.sh
- ./tools/deployment/26_deploy_metal3_capi_ephemeral_node.sh
- ./tools/deployment/30_deploy_controlplane.sh
serve_dir: /srv/iso
serve_port: 8099
voting: false
- job:
name: airship-airshipctl-publish-image
parent: airship-airshipctl-build-image

View File

@ -26,6 +26,8 @@
# - airship-airshipctl-functional-existing-k8s TODO: Enable this when functional tests exist, and a cluster is up
- airship-airshipctl-gate-test
- airship-airshipctl-32GB-gate-test
- airship-airshipctl-gate-script-runner-test
- airship-airshipctl-32GB-gate-script-runner-test
gate:
jobs:
- openstack-tox-docs