Skip to content

Commit 3024571

Browse files
authored
Merge branch 'main' into testCustomCliDownload
2 parents 4a0c8b1 + 13b18a0 commit 3024571

15 files changed

Lines changed: 197 additions & 190 deletions

File tree

.github/workflows/request-coderabbit-test-instructions.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
uses: peter-evans/create-or-update-comment@v4
3232
with:
3333
issue-number: ${{ github.event.pull_request.number }}
34+
token: ${{ secrets.BOT3_TOKEN }}
3435
body: |
3536
@coderabbitai
3637
<details>

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
stages: [pre-commit]
1414

1515
- repo: https://github.com/astral-sh/ruff-pre-commit
16-
rev: v0.13.2
16+
rev: v0.13.3
1717
hooks:
1818
- id: ruff
1919
stages: [pre-commit]

tests/chaos/migration/test_migration.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
]
3232

3333

34+
@pytest.mark.s390x
3435
@pytest.mark.gpfs
3536
@pytest.mark.parametrize(
3637
"pod_deleting_process",
@@ -84,6 +85,7 @@ def test_pod_delete_migration(
8485
)
8586

8687

88+
@pytest.mark.s390x
8789
@pytest.mark.gpfs
8890
@pytest.mark.parametrize(
8991
"chaos_worker_background_process",
@@ -135,6 +137,7 @@ def test_stress_migration_target_node(
135137
)
136138

137139

140+
@pytest.mark.s390x
138141
@pytest.mark.parametrize(
139142
"chaos_dv_rhel9, pod_deleting_process",
140143
[
@@ -196,6 +199,7 @@ def test_pod_delete_storage_migration(
196199
), "The VMI has not been migrated to a different node."
197200

198201

202+
@pytest.mark.s390x
199203
@pytest.mark.gpfs
200204
@pytest.mark.parametrize(
201205
"chaos_worker_background_process",
@@ -249,6 +253,7 @@ def test_stress_migration_source_node(
249253
reason=(f"{QUARANTINED}: Failed on teardown with kubernetes.client.exceptions.ApiException. Tracked in CNV-62939"),
250254
run=False,
251255
)
256+
@pytest.mark.s390x
252257
@pytest.mark.gpfs
253258
@pytest.mark.polarion("CNV-6120")
254259
def test_migration_reboot_source_node(

tests/chaos/snapshot/test_snapshot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
]
1818

1919

20+
@pytest.mark.s390x
2021
@pytest.mark.parametrize(
2122
"pod_deleting_process, chaos_online_snapshots",
2223
[

tests/chaos/standard/test_standard.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
]
2020

2121

22+
@pytest.mark.s390x
2223
@pytest.mark.gpfs
2324
@pytest.mark.parametrize(
2425
"chaos_vms_list_rhel9, pod_deleting_process",
@@ -53,6 +54,7 @@ def test_pod_delete_openshift_apiserver(
5354
running_vm(vm=vm, wait_for_interfaces=False, check_ssh_connectivity=False)
5455

5556

57+
@pytest.mark.s390x
5658
@pytest.mark.gpfs
5759
@pytest.mark.parametrize(
5860
"rebooted_control_plane_node",
@@ -85,6 +87,7 @@ def test_control_plane_node_restart(
8587
running_vm(vm=vm, wait_for_interfaces=False, check_ssh_connectivity=False)
8688

8789

90+
@pytest.mark.s390x
8891
@pytest.mark.parametrize(
8992
"chaos_dv_rhel9, downscaled_storage_provisioner_deployment",
9093
[
@@ -116,6 +119,7 @@ def test_odf_storage_outage(
116119
chaos_vm_rhel9_with_dv.wait_for_specific_status(status=VirtualMachine.Status.RUNNING, timeout=TIMEOUT_2MIN)
117120

118121

122+
@pytest.mark.s390x
119123
@pytest.mark.gpfs
120124
@pytest.mark.parametrize(
121125
"chaos_worker_background_process",
@@ -152,6 +156,7 @@ def test_host_io_stress(
152156
assert chaos_worker_background_process.exitcode == 0, "Background process execution failed"
153157

154158

159+
@pytest.mark.s390x
155160
@pytest.mark.gpfs
156161
@pytest.mark.usefixtures("deleted_pod_by_name_prefix")
157162
@pytest.mark.parametrize("chaos_vms_instancetype_list", [pytest.param({"number_of_vms": 3})], indirect=True)

tests/install_upgrade_operators/relationship_labels/test_relationship_labels.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
from tests.install_upgrade_operators.relationship_labels.utils import (
1313
verify_component_labels_by_resource,
1414
)
15-
from utilities.constants import KUBEVIRT_APISERVER_PROXY_NP, VERSION_LABEL_KEY
16-
from utilities.infra import is_jira_open
15+
from utilities.constants import VERSION_LABEL_KEY
1716

1817
pytestmark = [pytest.mark.post_upgrade, pytest.mark.sno, pytest.mark.gating, pytest.mark.arm64, pytest.mark.s390x]
1918
LOGGER = logging.getLogger(__name__)
@@ -100,9 +99,6 @@ def test_verify_relationship_labels_hco_components(
10099
expected_label_dictionary,
101100
ocp_resource_by_name,
102101
):
103-
if ocp_resource_by_name.name == KUBEVIRT_APISERVER_PROXY_NP and is_jira_open(jira_id="CNV-68999"):
104-
pytest.skip(f"Currently {KUBEVIRT_APISERVER_PROXY_NP} resource have the wrong relationship labels")
105-
106102
verify_component_labels_by_resource(
107103
component=ocp_resource_by_name,
108104
expected_component_labels=expected_label_dictionary,

tests/install_upgrade_operators/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def wait_for_spec_change(expected, get_spec_func, base_path):
147147
samplers = TimeoutSampler(
148148
wait_timeout=TIMEOUT_1MIN,
149149
sleep=TIMEOUT_5SEC,
150-
func=lambda: benedict(get_spec_func()),
150+
func=lambda: benedict(get_spec_func(), keypath_separator=KEY_PATH_SEPARATOR),
151151
)
152152
current_value = None
153153
try:

tests/storage/cdi_upload/test_upload.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from tests.os_params import RHEL_LATEST
2525
from utilities.constants import (
2626
CDI_UPLOADPROXY,
27-
QUARANTINED,
2827
TIMEOUT_1MIN,
2928
TIMEOUT_3MIN,
3029
TIMEOUT_5MIN,
@@ -182,10 +181,6 @@ def test_successful_upload_with_supported_formats(
182181
check_disk_count_in_vm(vm=vm_dv)
183182

184183

185-
@pytest.mark.xfail(
186-
reason=f"{QUARANTINED}: Flaky test, timeout failure; CNV-67422",
187-
run=False,
188-
)
189184
@pytest.mark.parametrize(
190185
"data_volume_multi_storage_scope_function",
191186
[
@@ -202,7 +197,6 @@ def test_successful_upload_with_supported_formats(
202197
indirect=True,
203198
)
204199
@pytest.mark.sno
205-
@pytest.mark.gating
206200
@pytest.mark.polarion("CNV-2018")
207201
@pytest.mark.s390x
208202
def test_successful_upload_token_validity(
@@ -226,16 +220,7 @@ def test_successful_upload_token_validity(
226220
) as utr:
227221
token = utr.create().status.token
228222
wait_for_upload_response_code(token=token, data=upload_file_path, response_code=HTTP_OK)
229-
dv.wait_for_condition(
230-
condition=DataVolume.Condition.Type.RUNNING,
231-
status=DataVolume.Condition.Status.TRUE,
232-
timeout=TIMEOUT_5MIN,
233-
)
234-
dv.wait_for_condition(
235-
condition=DataVolume.Condition.Type.READY,
236-
status=DataVolume.Condition.Status.TRUE,
237-
timeout=TIMEOUT_5MIN,
238-
)
223+
dv.wait_for_dv_success()
239224

240225

241226
@pytest.mark.parametrize(

tests/storage/test_hotplug.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
migrate_vm_and_verify,
2626
running_vm,
2727
vm_instance_from_template,
28+
wait_for_ssh_connectivity,
2829
wait_for_windows_vm,
2930
)
3031

@@ -174,6 +175,7 @@ def test_hotplug_volume_with_serial(
174175
hotplug_volume_scope_class,
175176
):
176177
wait_for_vm_volume_ready(vm=fedora_vm_for_hotplug_scope_class)
178+
wait_for_ssh_connectivity(vm=fedora_vm_for_hotplug_scope_class)
177179
assert_disk_serial(vm=fedora_vm_for_hotplug_scope_class)
178180

179181
@pytest.mark.polarion("CNV-11389")

tests/virt/OWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ reviewers:
99
- SiboWang1997
1010
- akri3i
1111
- jerry7z
12+
- SamAlber

0 commit comments

Comments
 (0)