You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "gaogaotiantian (via GitHub)" <gi...@apache.org> on 2025/11/13 19:24:48 UTC
[PR] [SPARK-54338][INFRA] Add pyspark-pandas to coverage run [spark]
gaogaotiantian opened a new pull request, #53042:
URL: https://github.com/apache/spark/pull/53042
<!--
Thanks for sending a pull request! Here are some tips for you:
1. If this is your first time, please read our contributor guidelines: https://spark.apache.org/contributing.html
2. Ensure you have added or run the appropriate tests for your PR: https://spark.apache.org/developer-tools.html
3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][SPARK-XXXX] Your PR title ...'.
4. Be sure to keep the PR description updated to reflect all changes.
5. Please write your PR title to summarize what this PR proposes.
6. If possible, provide a concise example to reproduce the issue for a faster review.
7. If you want to add a new configuration, please read the guideline first for naming configurations in
'core/src/main/scala/org/apache/spark/internal/config/ConfigEntry.scala'.
8. If you want to add or modify an error type or message, please read the guideline first in
'common/utils/src/main/resources/error/README.md'.
-->
### What changes were proposed in this pull request?
<!--
Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue.
If possible, please consider writing useful notes for better and faster reviews in your PR. See the examples below.
1. If you refactor some codes with changing classes, showing the class hierarchy will help reviewers.
2. If you fix some SQL features, you can provide some references of other DBMSes.
3. If there is design documentation, please add the link.
4. If there is a discussion in the mailing list, please add the link.
-->
Add `pyspark-pandas*` tests in coverage run.
### Why are the changes needed?
<!--
Please clarify why the changes are needed. For instance,
1. If you propose a new API, clarify the use case for a new API.
2. If you fix a bug, you can clarify why it is a bug.
-->
To add coverage data of pandas tests. The `pyspark-pandas*` tests were turned off in https://github.com/apache/spark/commit/1904dee475d735533ff5d0d2d3580e4e83b7520b for CI resource saving. However, I think it was meant to be turned off for individual commit triggered CIs. Coverage is a daily CI and I think it's helpful for us to get that data.
### Does this PR introduce _any_ user-facing change?
<!--
Note that it means *any* user-facing change including all aspects such as new features, bug fixes, or other behavior changes. Documentation-only updates are not considered user-facing changes.
If yes, please clarify the previous behavior and the change this PR proposes - provide the console output, description and/or an example to show the behavior difference if possible.
If possible, please also clarify if this is a user-facing change compared to the released Spark versions or within the unreleased branches such as master.
If no, write 'No'.
-->
No
### How was this patch tested?
<!--
If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.
If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.
If tests were not added, please describe why they were not added and/or why it was difficult to add.
If benchmark tests were added, please run the benchmarks in GitHub Actions for the consistent environment, and the instructions could accord to: https://spark.apache.org/developer-tools.html#github-workflow-benchmarks.
-->
It's a change to the daily CI.
### Was this patch authored or co-authored using generative AI tooling?
<!--
If generative AI tooling has been used in the process of authoring this patch, please include the
phrase: 'Generated-by: ' followed by the name of the tool and its version.
If no, write 'No'.
Please refer to the [ASF Generative Tooling Guidance](https://www.apache.org/legal/generative-tooling.html) for details.
-->
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54338][INFRA] Add pyspark-pandas to coverage run [spark]
Posted by "gaogaotiantian (via GitHub)" <gi...@apache.org>.
gaogaotiantian commented on PR #53042:
URL: https://github.com/apache/spark/pull/53042#issuecomment-3529538649
Those are all commit triggered CIs which could happen multiple times every day. Of course it makes sense to try to do less workflows on those. Coverage run only runs once per day and that provides our coverage number. If we don't care about a correct coverage number, why do coverage run at all? We can just disable that workflow for more resources. A wrong coverage number is just not useful.
I think that might be the only normal python3.11 run? If that's the case, we are missing some tests on python3.11 + Linux + pandas for our daily CI.
I just want to be crystal clear that I'm talking about this number:
<img width="126" height="25" alt="image" src="https://github.com/user-attachments/assets/293c67c2-a23e-46a1-b52c-615a7662a682" />
and the specific daily run workflow https://github.com/apache/spark/blob/master/.github/workflows/build_coverage.yml . Almost all the other daily workflows run pandas tests (https://github.com/apache/spark/blob/master/.github/workflows/build_python_3.12.yml for example), I don't know why this specific coverage run would be an exception. It's just so arbitrary.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54338][INFRA] Add pyspark-pandas to coverage run [spark]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #53042:
URL: https://github.com/apache/spark/pull/53042#issuecomment-3529582792
> Those are all commit triggered CIs which could happen multiple times every day. Of course it makes sense to try to do less workflows on those. Coverage run only runs once per day and that provides our coverage number. If we don't care about a correct coverage number, why do coverage run at all? We can just disable that workflow for more resources. A wrong coverage number is just not useful.
>
> I think that might be the only normal python3.11 run? If that's the case, we are missing some tests on python3.11 + Linux + pandas for our daily CI.
>
> I just want to be crystal clear that I'm talking about this number: <img alt="image" width="126" height="25" src="https://private-user-images.githubusercontent.com/13121107/514076155-293c67c2-a23e-46a1-b52c-615a7662a682.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjMwNjUzMDgsIm5iZiI6MTc2MzA2NTAwOCwicGF0aCI6Ii8xMzEyMTEwNy81MTQwNzYxNTUtMjkzYzY3YzItYTIzZS00NmExLWI1MmMtNjE1YTc2NjJhNjgyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTExMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMTEzVDIwMTY0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMxZTgxN2M3NDBlMTNlN2M4MmMzNDdiMjU1MmQ4MWZiNDYzMjc0MDA1ZTM4ZmFlOTBkNmQzM2JhOWMxYmUxZTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.KCmoIRoAHw-GD6EcxOrksHfUbqeMJ6PQSl9gEJDZw9M">
>
> and the specific daily run workflow https://github.com/apache/spark/blob/master/.github/workflows/build_coverage.yml . Almost all the other daily workflows run pandas tests (https://github.com/apache/spark/blob/master/.github/workflows/build_python_3.12.yml for example), I don't know why this specific coverage run would be an exception. It's just so arbitrary.
cc @HyukjinKwon for the above claim.
BTW, for `pandas` CI, we care it much like you and that's the reason why all PR builders enforce it as I mentioned already.
<img width="823" height="157" alt="Screenshot 2025-11-13 at 12 18 30" src="https://github.com/user-attachments/assets/dd0d12d7-b03b-4484-a3e7-4d1d14e4b837" />
- https://github.com/apache/spark/pull/53033
- https://github.com/zhengruifeng/spark/runs/55260113415
Here is the PR builder example. We are using the contributors' GitHub Action resources. Please consider that we have many PRs per day.
<img width="636" height="374" alt="Screenshot 2025-11-13 at 12 23 34" src="https://github.com/user-attachments/assets/59021f72-8c3a-426e-b815-7d16909d5ce7" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54338][INFRA] Add pyspark-pandas to coverage run [spark]
Posted by "gaogaotiantian (via GitHub)" <gi...@apache.org>.
gaogaotiantian commented on PR #53042:
URL: https://github.com/apache/spark/pull/53042#issuecomment-3529432738
I understand the goal, but it didn't mention this specific coverage run. pandas tests are kept for daily CIs, coverage run is a daily CI. It will add 4 jobs per day, each lasts about 1hr. Say we have 20 concurrent job quotas per day, that's 480 hr in total. Would 1% addition to this quota break our limit? Or we have some other workflows running at the same time and an extra 4 jobs at the same time will overflow the quota?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54338][INFRA] Add pyspark-pandas to coverage run [spark]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #53042:
URL: https://github.com/apache/spark/pull/53042#issuecomment-3529489807
> I understand the goal, but it didn't mention this specific coverage run. pandas tests are kept for daily CIs, coverage run is a daily CI. It will add 4 jobs per day, each lasts about 1hr. Say we have 20 concurrent job quotas per day, that's 480 hr in total. Would 1% addition to this quota break our limit? Or we have some other workflows running at the same time and an extra 4 jobs at the same time will overflow the quota?
May I ask why you think in that way instead of interpreting the policy literally?
The policy says `a job concurrency level less than or equal to 20` literally. Please look at the Apache Spark CI's behavior. For examples, recent three Apache Spark commit builders selectively run.
- 20 jobs from 27 jobs
- 19 jobs from 26 jobs.
- 9 jobs from 19 jobs.
<img width="524" height="238" alt="Screenshot 2025-11-13 at 11 49 13" src="https://github.com/user-attachments/assets/eb9a4ac9-30ee-4826-a568-0044b0245e6d" />
Technically, Apache Spark PMC wants to optimize the workload further more instead of this proposal because we are still consuming more resources especially for the release period. At this point of time, your proposal has a quite opposite direction.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54338][INFRA] Enable `pyspark-pandas` in `build_coverage.yml` [spark]
Posted by "gaogaotiantian (via GitHub)" <gi...@apache.org>.
gaogaotiantian commented on PR #53042:
URL: https://github.com/apache/spark/pull/53042#issuecomment-3529726178
No worries! Thank you for the approval! I'm trying to close the gaps of uncovered source code and this is a very important indicator for us to write extra tests for pyspark!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54338][INFRA] Enable `pyspark-pandas` in `build_coverage.yml` [spark]
Posted by "gaogaotiantian (via GitHub)" <gi...@apache.org>.
gaogaotiantian commented on PR #53042:
URL: https://github.com/apache/spark/pull/53042#issuecomment-3529611833
I think there's an ambiguity on the word "coverage". The "coverage" in my title, refers to a very specific action, where we run Python tests with a specific library `coveragepy` and get the line coverage number [here](https://app.codecov.io/gh/apache/spark). Currently, we do it once per day, but only for `pyspark` tests, which resulted in a coverage rate about 76%. If you take a look at the report, we are missing a lot in pyspark/pandas
<img width="1264" height="45" alt="image" src="https://github.com/user-attachments/assets/98d3bd19-4724-4c22-8b50-3993074dd67e" />
The reason is that, for this specific daily run, we do not run pandas tests under `coveragepy`, so we do not have the number from it.
Coverage could also mean a more general concept of whether we are testing the pandas part - and yes we do have that from all the PRs. I didn't mean we never test that part.
Once again, to avoid the confusion - I did not plan to add more tests on every commit to master. I proposed to add pandas runs once per day, only in the `build_coverage` run.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54338][INFRA] Add pyspark-pandas to coverage run [spark]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #53042:
URL: https://github.com/apache/spark/pull/53042#issuecomment-3529391264
> @dongjoon-hyun you are the author of the commit to turn it off - is it intentional to turn it off for daily coverage runs?
Yes, it was intentional as I mentioned in the PR description, @gaogaotiantian .
<img width="822" height="253" alt="Screenshot 2025-11-13 at 11 29 11" src="https://github.com/user-attachments/assets/6f039f8f-4ed5-4528-998d-9b592521ab98" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54338][INFRA] Enable `pyspark-pandas` in `build_coverage.yml` [spark]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #53042:
URL: https://github.com/apache/spark/pull/53042#issuecomment-3529629540
Ya, sorry for making you confused. When you pinged me, I misunderstood the context to enable `pandas` for all. Thank you for explanation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54338][INFRA] Enable `pyspark-pandas` in `build_coverage.yml` [spark]
Posted by "gaogaotiantian (via GitHub)" <gi...@apache.org>.
gaogaotiantian commented on PR #53042:
URL: https://github.com/apache/spark/pull/53042#issuecomment-3529614265
> Is this only for .github/workflows/build_coverage.yml, @gaogaotiantian ?
Yes! Only for that.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54338][INFRA] Enable `pyspark-pandas` in `build_coverage.yml` [spark]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #53042:
URL: https://github.com/apache/spark/pull/53042#issuecomment-3529755437
Merged to master. Thank you. I added you to the Apache Spark JIRA contributor group, too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54338][INFRA] Enable `pyspark-pandas` in `build_coverage.yml` [spark]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #53042: [SPARK-54338][INFRA] Enable `pyspark-pandas` in `build_coverage.yml`
URL: https://github.com/apache/spark/pull/53042
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54338][INFRA] Add pyspark-pandas to coverage run [spark]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #53042:
URL: https://github.com/apache/spark/pull/53042#issuecomment-3529597565
Is this only for `.github/workflows/build_coverage.yml`, @gaogaotiantian ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54338][INFRA] Add pyspark-pandas to coverage run [spark]
Posted by "gaogaotiantian (via GitHub)" <gi...@apache.org>.
gaogaotiantian commented on PR #53042:
URL: https://github.com/apache/spark/pull/53042#issuecomment-3529373042
@dongjoon-hyun you are the author of the commit to turn it off - is it intentional to turn it off for daily coverage runs?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org