From 8baaacbf44adb085773261aa2b1c5a4ce31aae0b Mon Sep 17 00:00:00 2001 From: Eduardo Olivares Date: Thu, 20 Mar 2025 13:11:41 +0100 Subject: [PATCH] Skip BackgroundProcessTest tests when ha_faults are executed When ha_faults tests are executed, overcloud nodes are rebooted, affecting those tests that run background processes on VM instances or against VM instances. The goal of those tests is to run on other scopes, such as upgrades, ovs to ovn migration, etc. Change-Id: Ie31f9409a4fb5e8bc86991cf4511e155f5b80d71 --- roles/tobiko-run/vars/test-workflow-check-resources-faults.yaml | 1 + roles/tobiko-run/vars/test-workflow-faults-neutron.yaml | 2 ++ roles/tobiko-run/vars/test-workflow-faults.yaml | 2 ++ roles/tobiko-run/vars/test-workflow-gate.yaml | 2 ++ 4 files changed, 7 insertions(+) diff --git a/roles/tobiko-run/vars/test-workflow-check-resources-faults.yaml b/roles/tobiko-run/vars/test-workflow-check-resources-faults.yaml index cb2bbc2d9..b6488c4eb 100644 --- a/roles/tobiko-run/vars/test-workflow-check-resources-faults.yaml +++ b/roles/tobiko-run/vars/test-workflow-check-resources-faults.yaml @@ -22,3 +22,4 @@ test_workflow_steps: tox_step_name: verify_resources tox_environment: TOBIKO_PREVENT_CREATE: yes + pytest_addopts: "--skipregex='BackgroundProcessTest'" diff --git a/roles/tobiko-run/vars/test-workflow-faults-neutron.yaml b/roles/tobiko-run/vars/test-workflow-faults-neutron.yaml index b5e4e67d6..734928062 100644 --- a/roles/tobiko-run/vars/test-workflow-faults-neutron.yaml +++ b/roles/tobiko-run/vars/test-workflow-faults-neutron.yaml @@ -12,6 +12,7 @@ test_workflow_steps: tox_step_name: create_neutron_resources tox_environment: TOBIKO_PREVENT_CREATE: no + pytest_addopts: "--skipregex='BackgroundProcessTest'" - tox_description: 'run disruptive test cases (neutron)' tox_envlist: neutron_faults @@ -34,3 +35,4 @@ test_workflow_steps: tox_step_name: verify_neutron_resources tox_environment: TOBIKO_PREVENT_CREATE: yes + pytest_addopts: "--skipregex='BackgroundProcessTest'" diff --git a/roles/tobiko-run/vars/test-workflow-faults.yaml b/roles/tobiko-run/vars/test-workflow-faults.yaml index a9fa32156..5c2d2e345 100644 --- a/roles/tobiko-run/vars/test-workflow-faults.yaml +++ b/roles/tobiko-run/vars/test-workflow-faults.yaml @@ -12,6 +12,7 @@ test_workflow_steps: tox_step_name: create_resources tox_environment: TOBIKO_PREVENT_CREATE: no + pytest_addopts: "--skipregex='BackgroundProcessTest'" - tox_description: 'run disruptive test cases' tox_envlist: faults @@ -31,3 +32,4 @@ test_workflow_steps: tox_step_name: verify_resources tox_environment: TOBIKO_PREVENT_CREATE: yes + pytest_addopts: "--skipregex='BackgroundProcessTest'" diff --git a/roles/tobiko-run/vars/test-workflow-gate.yaml b/roles/tobiko-run/vars/test-workflow-gate.yaml index 9342f5e1c..816c4663a 100644 --- a/roles/tobiko-run/vars/test-workflow-gate.yaml +++ b/roles/tobiko-run/vars/test-workflow-gate.yaml @@ -7,6 +7,7 @@ test_workflow_steps: tox_environment: TOBIKO_PREVENT_CREATE: no test_flaky: true + pytest_addopts: "--skipregex='BackgroundProcessTest'" - tox_description: 'run sanity test cases before disruptive test cases' tox_envlist: sanity @@ -35,3 +36,4 @@ test_workflow_steps: tox_environment: TOBIKO_PREVENT_CREATE: yes test_flaky: true + pytest_addopts: "--skipregex='BackgroundProcessTest'"