Skip to content

Commit

Permalink
Rename stackhpc-openstack-tests
Browse files Browse the repository at this point in the history
stackhpc-openstack-tests has been renamed to stackhpc-cloud-tests to
better reflect its function. References to the old name have been
updated.
  • Loading branch information
Alex-Welsh committed Jan 14, 2025
1 parent 4a55d94 commit aab5fca
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/stackhpc-all-in-one.yml
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,8 @@ jobs:
env:
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}

- name: StackHPC OpenStack tests
id: stackhpc-openstack-tests
- name: StackHPC Cloud tests
id: stackhpc-cloud-tests
continue-on-error: true
run: |
mkdir -p sot-results
Expand All @@ -448,7 +448,7 @@ jobs:
-v $(pwd)/sot-results:/stack/sot-results \
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
$KAYOBE_IMAGE \
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh '$KAYOBE_CONFIG_PATH/ansible/stackhpc-openstack-tests.yml'
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh '$KAYOBE_CONFIG_PATH/ansible/stackhpc-cloud-tests.yml'
env:
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}

Expand All @@ -474,18 +474,18 @@ jobs:
diagnostics/
tempest-artifacts/
sot-results/
if: ${{ !cancelled() && (steps.tempest.outcome == 'success' || steps.stackhpc-openstack-tests.outcome == 'success' || steps.diagnostics.outcome == 'success') }}
if: ${{ !cancelled() && (steps.tempest.outcome == 'success' || steps.stackhpc-cloud-tests.outcome == 'success' || steps.diagnostics.outcome == 'success') }}

- name: Fail if any Tempest tests failed
run: |
test $(wc -l < tempest-artifacts/failed-tests) -lt 1
- name: Fail if any StackHPC OpenStack tests failed
- name: Fail if any StackHPC Cloud tests failed
run: |
echo "Some StackHPC OpenStack tests failed."
echo "Some StackHPC Cloud tests failed."
echo "See HTML results artifact (sot-results) for details."
exit 1
if: steps.stackhpc-openstack-tests.outcome == 'failure'
if: steps.stackhpc-cloud-tests.outcome == 'failure'

- name: Destroy
run: terraform destroy -auto-approve
Expand Down
12 changes: 6 additions & 6 deletions doc/source/contributor/testing-ci-automation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ The workflow performs the following high-level steps:
subnets, routers, etc.).
#. If this is an upgrade job, upgrade the cloud under test to the target
release.
#. Run Tempest and `StackHPC OpenStack Tests
<https://github.com/stackhpc/stackhpc-openstack-tests>`_ to test the cloud.
#. Run Tempest and `StackHPC Cloud Tests
<https://github.com/stackhpc/stackhpc-cloud-tests>`_ to test the cloud.
#. Collect diagnostic information.
#. Upload results as an artifact.
#. Destroy the VM using Terraform.
Expand Down Expand Up @@ -345,12 +345,12 @@ The workflow performs the following high-level steps:
previous OpenStack release is deployed.
#. Register test resources in the cloud under test (images, flavors, networks,
subnets, routers, etc.).
#. Run Tempest and `StackHPC OpenStack Tests
<https://github.com/stackhpc/stackhpc-openstack-tests>`__ to test the cloud.
#. Run Tempest and `StackHPC Cloud Tests
<https://github.com/stackhpc/stackhpc-cloud-tests>`__ to test the cloud.
#. If this is an upgrade job, upgrade the cloud under test to the target
release.
#. Run Tempest and `StackHPC OpenStack Tests
<https://github.com/stackhpc/stackhpc-openstack-tests>`__ to test the cloud.
#. Run Tempest and `StackHPC Cloud Tests
<https://github.com/stackhpc/stackhpc-cloud-tests>`__ to test the cloud.
#. Collect diagnostic information.
#. Upload results as an artifact.
#. Destroy the VMs using Terraform.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
- name: Run StackHPC OpenStack tests
- name: Run StackHPC Cloud tests
hosts: tempest_runner
tags:
- stackhpc-openstack-tests
- stackhpc-cloud-tests
vars:
sot_venv: "{{ virtualenv_path }}/sot-venv"
sot_repo: https://github.com/stackhpc/stackhpc-openstack-tests
sot_repo: https://github.com/stackhpc/stackhpc-cloud-tests
sot_version: v0.0.1
sot_timeout: 30
results_path_local: "{{ lookup('env', 'HOME') }}/sot-results"
tasks:
- name: Stackhpc OpenStack tests
- name: Stackhpc Cloud tests
block:
- name: Create a temporary directory for tests repo
ansible.builtin.tempfile:
Expand All @@ -24,7 +24,7 @@
suffix: sot-results
register: results_tmpdir

- name: Clone the StackHPC OpenStack tests repository
- name: Clone the StackHPC Cloud tests repository
ansible.builtin.git:
repo: "{{ sot_repo }}"
version: "{{ sot_version }}"
Expand Down Expand Up @@ -60,13 +60,13 @@
file: "{{ kayobe_env_config_path }}/kolla/passwords.yml"
name: kolla_passwords

- name: Run StackHPC OpenStack tests
- name: Run StackHPC Cloud tests
ansible.builtin.command:
cmd: >
{{ sot_venv }}/bin/py.test
--html={{ results_tmpdir.path }}/stackhpc-openstack-tests.html
--html={{ results_tmpdir.path }}/stackhpc-cloud-tests.html
--self-contained-html
--pyargs stackhpc_openstack_tests
--pyargs stackhpc_cloud_tests
--timeout {{ sot_timeout }}
-vv
environment:
Expand All @@ -88,7 +88,7 @@
always:
- name: Fetch results
ansible.builtin.fetch:
src: "{{ results_tmpdir.path }}/stackhpc-openstack-tests.html"
src: "{{ results_tmpdir.path }}/stackhpc-cloud-tests.html"
dest: "{{ results_path_local }}/"
flat: true

Expand Down

0 comments on commit aab5fca

Please sign in to comment.