Skip to content

Commit a6697f4

Browse files
committed
fix: cluster sanity does not need to execute when operator or cluster health is run
1 parent d476993 commit a6697f4

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 with cluster_health or operator_health markers
680+
markexpr = request.config.getoption(name="markexpr")
681+
if markexpr and any(marker in markexpr for marker in ["cluster_health", "operator_health"]):
682+
LOGGER.info(f"Skipping cluster sanity check due to marker expression: {markexpr}")
683+
return
684+
679685
verify_cluster_sanity(
680686
request=request,
681687
nodes=nodes,

0 commit comments

Comments
 (0)