Skip to content

Commit b8e4bfe

Browse files
authored
fix: cluster sanity does not need to execute when operator or cluster health is run (#1184)
1 parent d476993 commit b8e4bfe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,12 @@ def cluster_sanity_scope_session(
676676
dsc_resource: DataScienceCluster,
677677
junitxml_plugin: Callable[[str, object], None],
678678
) -> None:
679+
# Skip cluster sanity check when running tests that have cluster_health or operator_health markers
680+
selected_markers = {mark.name for item in request.session.items for mark in item.iter_markers()}
681+
if {"cluster_health", "operator_health"} & selected_markers:
682+
LOGGER.info("Skipping cluster sanity check because selected tests include cluster/operator health")
683+
return
684+
679685
verify_cluster_sanity(
680686
request=request,
681687
nodes=nodes,

0 commit comments

Comments
 (0)