Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-45981 Improve Python language test coverage
  3. SPARK-45986

Fix `pyspark.ml.torch.tests.test_distributor` in Python 3.11

    XMLWordPrintableJSON

Details

    Description

      https://github.com/apache/spark/actions/runs/6914662405/job/18812759511

      ======================================================================
      FAIL [0.000s]: test_local_training_succeeds (pyspark.ml.torch.tests.test_distributor.TorchDistributorLocalUnitTests.test_local_training_succeeds) [subtest: 1]
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/__w/spark/spark/python/pyspark/ml/torch/tests/test_distributor.py", line 384, in test_local_training_succeeds
          self.assertEqual(
      AssertionError: '1' != '0'
      - 1
      + 0
      
      
      ======================================================================
      FAIL [0.142s]: test_local_training_succeeds (pyspark.ml.torch.tests.test_distributor.TorchDistributorLocalUnitTests.test_local_training_succeeds) [subtest: 2]
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/__w/spark/spark/python/pyspark/ml/torch/tests/test_distributor.py", line 384, in test_local_training_succeeds
          self.assertEqual(
      AssertionError: '1,2,0' != '0,1,2'
      - 1,2,0
      + 0,1,2
      
      
      ======================================================================
      FAIL [0.000s]: test_local_training_succeeds (pyspark.ml.torch.tests.test_distributor.TorchDistributorLocalUnitTestsII.test_local_training_succeeds) [subtest: 1]
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/__w/spark/spark/python/pyspark/ml/torch/tests/test_distributor.py", line 384, in test_local_training_succeeds
          self.assertEqual(
      AssertionError: '1' != '0'
      - 1
      + 0
      
      
      ======================================================================
      FAIL [0.139s]: test_local_training_succeeds (pyspark.ml.torch.tests.test_distributor.TorchDistributorLocalUnitTestsII.test_local_training_succeeds) [subtest: 2]
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/__w/spark/spark/python/pyspark/ml/torch/tests/test_distributor.py", line 384, in test_local_training_succeeds
          self.assertEqual(
      AssertionError: '1,2,0' != '0,1,2'
      - 1,2,0
      + 0,1,2
      
      
      ----------------------------------------------------------------------
      Ran 23 tests in 166.741s
      
      FAILED (failures=4)
      

      Attachments

        Issue Links

          Activity

            People

              gurwls223 Hyukjin Kwon
              dongjoon Dongjoon Hyun
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: