Commit dac8a5f
fix: Exclude external directory when generating python report (bazel-contrib#2136)
This PR will reduce the time it take to run `bazel coverage`
*Before this fix,*
```
bazel coverage --cache_test_results=no //...
Elapsed time: 7.054s, Critical Path: 6.87s
```
[lcov --list
bazel-out/_coverage/_coverage_report.dat](https://github.com/user-attachments/files/16681828/lcov.log)
*After*
```
bazel coverage --cache_test_results=no //...
Elapsed time: 2.474s, Critical Path: 1.18s
$ lcov --list bazel-out/_coverage/_coverage_report.dat
Reading tracefile bazel-out/_coverage/_coverage_report.dat
|Lines |Functions |Branches
Filename |Rate Num|Rate Num|Rate Num
================================================================================
[/home/ewianda/.cache/bazel/_bazel_ewianda/da4b4cc49e0e621570c9e24d6f1eab95/execroot/_main/bazel-out/k8-fastbuild/bin/benchsci/ml/nlp/]
test_tokenizer_stage2_bootstrap.py | 6.0% 250| - 0| - 0
[benchsci/]
devtools/python/pytest_helper.py |90.5% 21| - 0| - 0
ml/nlp/test_tokenizer.py | 100% 13| - 0| - 0
ml/nlp/tokenizer.py |61.8% 76| - 0| - 0
================================================================================
Total:|26.1% 360| - 0| - 0
```
Related to bazel-contrib#1434
---------
Co-authored-by: aignas <240938+aignas@users.noreply.github.com>1 parent 04e2f32 commit dac8a5f
2 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
367 | 375 | | |
368 | 376 | | |
369 | 377 | | |
| |||
0 commit comments