[CI] Add timeout for distributed GPU tests. (#9917)
This commit is contained in:
@@ -2,7 +2,10 @@ import pytest
|
||||
|
||||
from xgboost import testing as tm
|
||||
|
||||
pytestmark = pytest.mark.skipif(**tm.no_spark())
|
||||
pytestmark = [
|
||||
pytest.mark.skipif(**tm.no_spark()),
|
||||
tm.timeout(120),
|
||||
]
|
||||
|
||||
from ..test_with_spark.test_data import run_dmatrix_ctor
|
||||
|
||||
|
||||
@@ -8,7 +8,10 @@ import sklearn
|
||||
|
||||
from xgboost import testing as tm
|
||||
|
||||
pytestmark = pytest.mark.skipif(**tm.no_spark())
|
||||
pytestmark = [
|
||||
pytest.mark.skipif(**tm.no_spark()),
|
||||
tm.timeout(240),
|
||||
]
|
||||
|
||||
from pyspark.ml.linalg import Vectors
|
||||
from pyspark.ml.tuning import CrossValidator, ParamGridBuilder
|
||||
|
||||
Reference in New Issue
Block a user