Skip to content

Conversation

@gaogaotiantian
Copy link
Contributor

What changes were proposed in this pull request?

By patching the worker in coverage runs, we save coverage data for code executed in workers. This code will only be triggered in coverage runs, not normal runs.

Also we uses the zip lib for many tests, this PR will also combine the coverage data with the [paths] config in .coveragerc.

Why are the changes needed?

To have a better idea of what test coverage we are missing in our tests suite.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Manually test that coverage data shows up for the worker file.

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

No.

@gaogaotiantian
Copy link
Contributor Author

@HyukjinKwon , we talked about the coverage for workers. I think I made it work - without changing any spark code.

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.

+1 for testing in master branch after merging. Thank you, @gaogaotiantian .

@HyukjinKwon
Copy link
Member

Merged to master.

@gaogaotiantian gaogaotiantian deleted the enable-worker-coverage branch November 21, 2025 21:11
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.

3 participants