Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
"""
Pytest configuration for fault tolerance tests.

This file imports all fixtures from fault_test_fixtures.py and makes them
available to all tests in this directory.
"""

import sys
from pathlib import Path

# Add helpers to path
sys.path.insert(0, str(Path(__file__).parent.parent / "helpers"))

# Import all fixtures that exist
from fault_test_fixtures import ( # noqa: E402
default_deployment,
default_namespace,
ensure_clean_test_environment,
expect_cordon_and_drain,
expect_cordon_only,
expect_full_automation,
fault_test,
network_partition_test,
skip_if_insufficient_gpus,
skip_if_no_nvsentinel,
test_config,
xid74_test,
xid79_test,
xid79_with_custom_validation,
)

# Make fixtures available to pytest
__all__ = [
"test_config",
"default_deployment",
"default_namespace",
"fault_test",
"xid79_test",
"xid74_test",
"xid79_with_custom_validation",
"network_partition_test",
"expect_full_automation",
"expect_cordon_and_drain",
"expect_cordon_only",
"ensure_clean_test_environment",
"skip_if_no_nvsentinel",
"skip_if_insufficient_gpus",
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[pytest]
# Isolated pytest config for fault tolerance tests
# Don't search for parent conftest.py files
norecursedirs = ../../../.. ../../.. ../.. ..
testpaths = .
python_files = test_*.py
python_classes = Test*
python_functions = test_*

# Markers
markers =
xid79: XID 79 (GPU fell off bus) tests
xid74: XID 74 (NVLink error) tests
xid48: XID 48 (ECC double-bit error) tests
xid94: XID 94 (Contained ECC error) tests
xid95: XID 95 (Uncontained error) tests
xid43: XID 43 (GPU timeout) tests
nvsentinel: Tests that require NVSentinel components
slow: Slow running tests

# Logging
log_cli = true
log_cli_level = INFO
log_cli_format = %(message)s

# Warnings - minimal set without external dependencies
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning

Loading
Loading