Skip to content

Commit 676dfb6

Browse files
committed
moved files to _ dir from old -
Signed-off-by: Oviya Seeniraj <[email protected]>
1 parent 991d8c7 commit 676dfb6

File tree

3 files changed

+1404
-0
lines changed

3 files changed

+1404
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
"""
6+
Pytest configuration for fault tolerance tests.
7+
8+
This file imports all fixtures from fault_test_fixtures.py and makes them
9+
available to all tests in this directory.
10+
"""
11+
12+
import sys
13+
from pathlib import Path
14+
15+
# Add helpers to path
16+
sys.path.insert(0, str(Path(__file__).parent.parent / "helpers"))
17+
18+
# Import all fixtures that exist
19+
from fault_test_fixtures import ( # noqa: E402
20+
default_deployment,
21+
default_namespace,
22+
ensure_clean_test_environment,
23+
expect_cordon_and_drain,
24+
expect_cordon_only,
25+
expect_full_automation,
26+
fault_test,
27+
network_partition_test,
28+
skip_if_insufficient_gpus,
29+
skip_if_no_nvsentinel,
30+
test_config,
31+
xid74_test,
32+
xid79_test,
33+
xid79_with_custom_validation,
34+
)
35+
36+
# Make fixtures available to pytest
37+
__all__ = [
38+
"test_config",
39+
"default_deployment",
40+
"default_namespace",
41+
"fault_test",
42+
"xid79_test",
43+
"xid74_test",
44+
"xid79_with_custom_validation",
45+
"network_partition_test",
46+
"expect_full_automation",
47+
"expect_cordon_and_drain",
48+
"expect_cordon_only",
49+
"ensure_clean_test_environment",
50+
"skip_if_no_nvsentinel",
51+
"skip_if_insufficient_gpus",
52+
]
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[pytest]
2+
# Isolated pytest config for fault tolerance tests
3+
# Don't search for parent conftest.py files
4+
norecursedirs = ../../../.. ../../.. ../.. ..
5+
testpaths = .
6+
python_files = test_*.py
7+
python_classes = Test*
8+
python_functions = test_*
9+
10+
# Markers
11+
markers =
12+
xid79: XID 79 (GPU fell off bus) tests
13+
xid74: XID 74 (NVLink error) tests
14+
xid48: XID 48 (ECC double-bit error) tests
15+
xid94: XID 94 (Contained ECC error) tests
16+
xid95: XID 95 (Uncontained error) tests
17+
xid43: XID 43 (GPU timeout) tests
18+
nvsentinel: Tests that require NVSentinel components
19+
slow: Slow running tests
20+
21+
# Logging
22+
log_cli = true
23+
log_cli_level = INFO
24+
log_cli_format = %(message)s
25+
26+
# Warnings - minimal set without external dependencies
27+
filterwarnings =
28+
ignore::DeprecationWarning
29+
ignore::PendingDeprecationWarning
30+

0 commit comments

Comments
 (0)