Closed Malinskiy closed 2 years ago
I tried to setup the codecoverage for the project, but JRE8 is incompatible with the coverage code in the bazel apparently, so this in theory would only work for JRE11. Problem is that the output of code coverage $(bazel info output_path)/_coverage/_coverage_report.dat
is always empty on the Github Runner and I can't reproduce this locally (where it passes without issues). Will try to tackle it next week
Turns out that using latest version of bazel, i.e. Using unreleased version at commit d46269fe2397b4612a654543ba6fed45c2cdbdea
doesn't produce the coverage data. I've replaced the ci config for now with the latest stable @tinder-maxwellelliott . What do you want to do? We can leave it at stable or wait until it's fixed upstream. Don't know if bazel is aware of this though, haven't checked.
As for the coverage - I tried using the commenting action, but it doesn't work with forked repositories since GITHUB_TOKEN
has read-only access to the main repo from an action running for a fork. A better way may be to use something like coveralls, I believe they support lcov format but I'm not sure if this would make any difference to the permissions problem
Cleaned up the history a bit: there was a lot of trial and error involved in making this work
I tried to setup the codecoverage for the project, but JRE8 is incompatible with the coverage code in the bazel apparently, so this in theory would only work for JRE11. Problem is that the output of code coverage
$(bazel info output_path)/_coverage/_coverage_report.dat
is always empty on the Github Runner and I can't reproduce this locally (where it passes without issues). Will try to tackle it next week
Can we create a separate workflow for JRE11 and then get coverage data on that at least? I think its good to have a test run on idk8, but we don't need coverage from both
@tinder-maxwellelliott that is exactly what’s done in this PR https://github.com/Tinder/bazel-diff/actions/runs/2337802484 coverage archive is available only from the jre11
@tinder-maxwellelliott that is exactly what’s done in this PR https://github.com/Tinder/bazel-diff/actions/runs/2337802484 coverage archive is available only from the jre11
🤦🏻 saw that as I was reviewing
We should also update the readme with the new command bazel-diff generate-hashes
. Both have less options, e.g. get-impacted-targets doesn't need bazel info anymore since it's not even used for the diff logic
Will do, testing in our repo now and will update accordingly
Here is a non-exhaustive list of stuff done in the branch: