Skip to content

[WIP][SPARK-52764][PYTHON][ML][CONNECT][TESTS] Retry flaky tests in test_parity_classification #51535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
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
38 changes: 35 additions & 3 deletions python/pyspark/ml/tests/connect/test_parity_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,46 @@

import unittest

from pyspark.testing.utils import eventually, timeout
from pyspark.ml.tests.test_classification import ClassificationTestsMixin
from pyspark.testing.connectutils import ReusedConnectTestCase


# TODO(SPARK-52764): Re-enable this test after fixing the flakiness.
@unittest.skip("Disabled due to flakiness, should be enabled after fixing the issue")
class ClassificationParityTests(ClassificationTestsMixin, ReusedConnectTestCase):
pass
@eventually(timeout=60, catch_timeout=True)
@timeout(timeout=10)
def test_binary_logistic_regression_summary(self):
super().test_binary_logistic_regression_summary()

@eventually(timeout=60, catch_timeout=True)
@timeout(timeout=10)
def test_multiclass_logistic_regression_summary(self):
super().test_multiclass_logistic_regression_summary()

@eventually(timeout=60, catch_timeout=True)
@timeout(timeout=10)
def test_linear_svc(self):
super().test_linear_svc()

@eventually(timeout=60, catch_timeout=True)
@timeout(timeout=10)
def test_factorization_machine(self):
super().test_factorization_machine()

@eventually(timeout=60, catch_timeout=True)
@timeout(timeout=10)
def test_binary_random_forest_classifier(self):
super().test_binary_random_forest_classifier()

@eventually(timeout=60, catch_timeout=True)
@timeout(timeout=10)
def test_multiclass_random_forest_classifier(self):
super().test_multiclass_random_forest_classifier()

@eventually(timeout=60, catch_timeout=True)
@timeout(timeout=10)
def test_mlp(self):
super().test_mlp()


if __name__ == "__main__":
Expand Down