Commit 59a2a74
[SPARK-54441][INFRA] Enable coverage data for workers
### 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.
Closes #53145 from gaogaotiantian/enable-worker-coverage.
Authored-by: Tian Gao <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>1 parent d3346eb commit 59a2a74
2 files changed
+32
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
25 | 51 | | |
26 | 52 | | |
0 commit comments