Skip to content
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

[SPARK-50064][PYTHON][TESTS] Make pysaprk-ml-connect tests passing without optional dependencies #48587

Closed
wants to merge 1 commit into from

Conversation

HyukjinKwon
Copy link
Member

What changes were proposed in this pull request?

This PR proposes to make pysaprk-ml-connect tests passing without optional dependencies

Why are the changes needed?

To make the tests passing without optional dependencies. See https://github.com/apache/spark/actions/runs/11447673972/job/31849621508

Does this PR introduce any user-facing change?

No, test-only.

How was this patch tested?

Manually ran it locally

Was this patch authored or co-authored using generative AI tooling?

No.

@HyukjinKwon
Copy link
Member Author

@HyukjinKwon
Copy link
Member Author

Merged to master.

ericm-db pushed a commit to ericm-db/spark that referenced this pull request Oct 22, 2024
…thout optional dependencies

### What changes were proposed in this pull request?

This PR proposes to make pysaprk-ml-connect tests passing without optional dependencies

### Why are the changes needed?

To make the tests passing without optional dependencies. See https://github.com/apache/spark/actions/runs/11447673972/job/31849621508

### Does this PR introduce _any_ user-facing change?

No, test-only.

### How was this patch tested?

Manually ran it locally

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#48587 from HyukjinKwon/SPARK-50064.

Authored-by: Hyukjin Kwon <gurwls223@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Thank you, @HyukjinKwon and @zhengruifeng .

Could you handle python/pyspark/ml/tests/connect/test_legacy_mode_tuning.py too?

Starting test(python3.13): pyspark.ml.tests.connect.test_legacy_mode_tuning (temp output: /__w/spark/spark/python/target/0860e4ec-da41-44ae-94d0-7e9686e40223/python3.13__pyspark.ml.tests.connect.test_legacy_mode_tuning__p5btkvov.log)
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/__w/spark/spark/python/pyspark/ml/tests/connect/test_legacy_mode_tuning.py", line 62, in <module>
    class InducedErrorModel(Model, HasInducedError):
                            ^^^^^
NameError: name 'Model' is not defined

@HyukjinKwon
Copy link
Member Author

fixing it now ...

HyukjinKwon added a commit that referenced this pull request Oct 23, 2024
… without optional dependencies

### What changes were proposed in this pull request?

This PR is a followup of #48587 that proposes to make pysaprk-ml tests passing without optional dependencies

### Why are the changes needed?

To make the tests passing without optional dependencies. See https://github.com/apache/spark/actions/runs/11447673972/job/31849621508

### Does this PR introduce _any_ user-facing change?

No, test-only.

### How was this patch tested?

Manually ran it locally

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #48606 from HyukjinKwon/SPARK-50064-followup.

Authored-by: Hyukjin Kwon <gurwls223@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants