Skip to content

[SPARK-58068][PYTHON][TESTS] Move test_import_spark to pyspark_install module#57164

Closed
gaogaotiantian wants to merge 1 commit into
apache:masterfrom
gaogaotiantian:move-import-check
Closed

[SPARK-58068][PYTHON][TESTS] Move test_import_spark to pyspark_install module#57164
gaogaotiantian wants to merge 1 commit into
apache:masterfrom
gaogaotiantian:move-import-check

Conversation

@gaogaotiantian

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Move test_import_spark to pyspark_install module from pyspark_core.

Why are the changes needed?

  1. test_import_spark should be triggered for any changes in pyspark, including streaming/ml etc. test_install currently does that.
  2. test_install is cheap because it is not executed in post-merge. It would be executed in scheduled CI only.

We failed to catch the import issue from #56786 because the test did not run.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

CI.

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

No.

@dongjoon-hyun dongjoon-hyun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1, LGTM. Thank you, @gaogaotiantian .

So, this will remove the on-going test_import_spark failures?

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-58068][PYTHON][TESTS] Move test_import_spark to pyspark_install module [SPARK-58068][PYTHON][TESTS] Move test_import_spark to pyspark_install module Jul 9, 2026
@gaogaotiantian

Copy link
Copy Markdown
Contributor Author

So, this will remove the on-going test_import_spark failures?

No, the fix is proposed in #57163 . We will try to merge that soon after sorting out the issues with the PR. This PR fixes the issue why we did not catch it in pre-merge check.

@dongjoon-hyun

Copy link
Copy Markdown
Member

Oh, got it!

@HyukjinKwon

Copy link
Copy Markdown
Member

Merged to master and branch-4.x.

HyukjinKwon pushed a commit that referenced this pull request Jul 9, 2026
…all` module

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

Move `test_import_spark` to `pyspark_install` module from `pyspark_core`.

### Why are the changes needed?

1. `test_import_spark` should be triggered for any changes in pyspark, including streaming/ml etc. `test_install` currently does that.
2. `test_install` is cheap because it is not executed in post-merge. It would be executed in scheduled CI only.

We failed to catch the import issue from #56786 because the test did not run.

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

No.

### How was this patch tested?

CI.

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

No.

Closes #57164 from gaogaotiantian/move-import-check.

Authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Signed-off-by: Hyukjin Kwon <hyukjin.kwon@databricks.com>
(cherry picked from commit 1935ee0)
Signed-off-by: Hyukjin Kwon <hyukjin.kwon@databricks.com>
@HyukjinKwon

Copy link
Copy Markdown
Member

Just for a bit of context, I am trying to let Spark 4.3 ready to release on time so being obsessed in CI :-)

@HyukjinKwon

Copy link
Copy Markdown
Member

Merge Summary:

Posted by merge_spark_pr.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants