Skip to content

Conversation

@zhengruifeng
Copy link
Contributor

@zhengruifeng zhengruifeng commented Jul 26, 2023

What changes were proposed in this pull request?

run run_python_packaging_tests when there are any changes in PySpark

Why are the changes needed?

#42146 make CI run run_python_packaging_tests only within pyspark-errors (see https://github.com/apache/spark/actions/runs/5666118302/job/15359190468 and https://github.com/apache/spark/actions/runs/5668071930/job/15358091003)

image

but I ignored that pyspark-errors maybe skipped (because no related source changes), so the run_python_packaging_tests maybe also skipped unexpectedly (see https://github.com/apache/spark/actions/runs/5666523657/job/15353485731)

image

this PR is to run run_python_packaging_tests even if pyspark-errors is skipped

Does this PR introduce any user-facing change?

no

How was this patch tested?

updated CI

@github-actions github-actions bot added the BUILD label Jul 26, 2023
@zhengruifeng
Copy link
Contributor Author

pyspark-errors maybe filtered out in determine_modules_to_test

@zhengruifeng zhengruifeng marked this pull request as draft July 26, 2023 13:20
@zhengruifeng zhengruifeng marked this pull request as ready for review July 26, 2023 13:26
@zhengruifeng
Copy link
Contributor Author

dev/run-tests.py Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Hm, to run pip packaging test, Spark has to be built first but here is before we build. I think it won't work correctly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops, let me double check, thanks!

# in PySpark, since the Python Packaging Tests is only enabled within this module.
# This module is the smallest Python test modules, it only contains 1 test file
# and normally take < 2 seconds, so the additional cost is small.
"python/",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

cc @HyukjinKwon I find it is pretty hard to me to decouple the packaging tests from other pyspark tests. what about this workaround?

Copy link
Member

Choose a reason for hiding this comment

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

SGTM

zhengruifeng and others added 2 commits July 26, 2023 19:02
Co-authored-by: Hyukjin Kwon <gurwls223@gmail.com>
@zhengruifeng zhengruifeng changed the title [SPARK-44544][INFRA][FOLLOWUP] run run_python_packaging_tests even if pyspark-errors is skipped [SPARK-44544][INFRA][FOLLOWUP] Force run run_python_packaging_tests Jul 27, 2023
zhengruifeng added a commit that referenced this pull request Jul 27, 2023
### What changes were proposed in this pull request?
run `run_python_packaging_tests` when there are any changes in PySpark

### Why are the changes needed?
#42146 make CI run `run_python_packaging_tests` only within `pyspark-errors` (see https://github.com/apache/spark/actions/runs/5666118302/job/15359190468 and https://github.com/apache/spark/actions/runs/5668071930/job/15358091003)

![image](https://github.com/apache/spark/assets/7322292/aef5cd4c-87ee-4b52-add3-e19ca131cdf1)

but I ignored that `pyspark-errors` maybe skipped (because no related source changes), so the `run_python_packaging_tests` maybe also skipped  unexpectedly (see https://github.com/apache/spark/actions/runs/5666523657/job/15353485731)

![image](https://github.com/apache/spark/assets/7322292/c2517d39-efcf-4a95-8562-1507dad35794)

this PR is to run `run_python_packaging_tests` even if `pyspark-errors` is skipped

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

### How was this patch tested?
updated CI

Closes #42173 from zhengruifeng/infra_followup.

Lead-authored-by: Ruifeng Zheng <ruifengz@apache.org>
Co-authored-by: Ruifeng Zheng <ruifengz@foxmail.com>
Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
(cherry picked from commit f794734)
Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
zhengruifeng added a commit that referenced this pull request Jul 27, 2023
### What changes were proposed in this pull request?
run `run_python_packaging_tests` when there are any changes in PySpark

### Why are the changes needed?
#42146 make CI run `run_python_packaging_tests` only within `pyspark-errors` (see https://github.com/apache/spark/actions/runs/5666118302/job/15359190468 and https://github.com/apache/spark/actions/runs/5668071930/job/15358091003)

![image](https://github.com/apache/spark/assets/7322292/aef5cd4c-87ee-4b52-add3-e19ca131cdf1)

but I ignored that `pyspark-errors` maybe skipped (because no related source changes), so the `run_python_packaging_tests` maybe also skipped  unexpectedly (see https://github.com/apache/spark/actions/runs/5666523657/job/15353485731)

![image](https://github.com/apache/spark/assets/7322292/c2517d39-efcf-4a95-8562-1507dad35794)

this PR is to run `run_python_packaging_tests` even if `pyspark-errors` is skipped

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

### How was this patch tested?
updated CI

Closes #42173 from zhengruifeng/infra_followup.

Lead-authored-by: Ruifeng Zheng <ruifengz@apache.org>
Co-authored-by: Ruifeng Zheng <ruifengz@foxmail.com>
Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
(cherry picked from commit f794734)
Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
@zhengruifeng
Copy link
Contributor Author

thank you guys!

merged to master/branch-3.5/branch-3.4

@zhengruifeng zhengruifeng deleted the infra_followup branch July 27, 2023 08:17
viirya pushed a commit to viirya/spark-1 that referenced this pull request Oct 19, 2023
### What changes were proposed in this pull request?
run `run_python_packaging_tests` when there are any changes in PySpark

### Why are the changes needed?
apache#42146 make CI run `run_python_packaging_tests` only within `pyspark-errors` (see https://github.com/apache/spark/actions/runs/5666118302/job/15359190468 and https://github.com/apache/spark/actions/runs/5668071930/job/15358091003)

![image](https://github.com/apache/spark/assets/7322292/aef5cd4c-87ee-4b52-add3-e19ca131cdf1)

but I ignored that `pyspark-errors` maybe skipped (because no related source changes), so the `run_python_packaging_tests` maybe also skipped  unexpectedly (see https://github.com/apache/spark/actions/runs/5666523657/job/15353485731)

![image](https://github.com/apache/spark/assets/7322292/c2517d39-efcf-4a95-8562-1507dad35794)

this PR is to run `run_python_packaging_tests` even if `pyspark-errors` is skipped

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

### How was this patch tested?
updated CI

Closes apache#42173 from zhengruifeng/infra_followup.

Lead-authored-by: Ruifeng Zheng <ruifengz@apache.org>
Co-authored-by: Ruifeng Zheng <ruifengz@foxmail.com>
Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
(cherry picked from commit f794734)
Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants