File tree Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change 52
52
# pyre currently does not check these assertions
53
53
pyright python/tests/test_python_actors.py
54
54
55
- # Run GPU Python tests
56
- LC_ALL=C pytest python/tests/ -s -v -m "not oss_skip"
55
+ # Run GPU Python tests split into 10 groups sequentially
56
+ # Each group runs separately with process cleanup in between
57
+ pip install pytest-split
58
+ for GROUP in {1..10}; do
59
+ echo "Running test group $GROUP of 10..."
60
+
61
+ # Kill any existing Python processes to ensure clean state
62
+ echo "Cleaning up Python processes before group $GROUP..."
63
+ pkill -9 python || true
64
+ pkill -9 pytest || true
65
+
66
+ # Wait a moment for processes to terminate
67
+ sleep 2
68
+
69
+ # Run tests for this group
70
+ LC_ALL=C pytest python/tests/ -s -v -m "not oss_skip" \
71
+ --dist=no \
72
+ --group=$GROUP \
73
+ --splits=10 || {
74
+ echo "Test group $GROUP failed with exit code $?"
75
+ exit 1
76
+ }
77
+
78
+ echo "Completed test group $GROUP of 10"
79
+ done
80
+
81
+ echo "All test groups completed successfully!"
57
82
# TODO(meriksen): temporarily disabled to unblock lands while debugging
58
83
# mock CUDA issues on the OSS setup
59
84
# python python/tests/test_mock_cuda.py
You can’t perform that action at this time.
0 commit comments