Rework in Kotlin - #123
Conversation
There is an edge-case where the rules are depending on each other's digests, but they're hashed in parallel, so threads will not see the result of a previous hashing iteration. To overcome this we synchronise access using ConcurrentHashMap for the ruleHashes
* separate concerns * parallelise as much as possible * rework CLI interface (generate-hashes is not a subcommand of root command really) * remove redundant interfaces (there is only 1 implementation for each, no need for abstractions) * preprocess arguments
4e3e798 to
75030c0
Compare
|
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 |
|
Turns out that using latest version of bazel, i.e. As for the coverage - I tried using the commenting action, but it doesn't work with forked repositories since |
* separate matrix jobs into jre8 and jre11. JRE8 doesn't support coverage with the latest bazel (coverage reporter class is compiled for JRE11) * latest upstream bazel breaks code coverage even for JRE11. use latest stable version
|
Cleaned up the history a bit: there was a lot of trial and error involved in making this work |
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 |
tinder-maxwellelliott
left a comment
There was a problem hiding this comment.
Looking great!
| name = "bazel-diff", | ||
| actual = "//src/main/java/com/bazel_diff:bazel-diff" | ||
| ) | ||
| #alias( |
There was a problem hiding this comment.
Feel free to delete, I do not use these aliases
There was a problem hiding this comment.
sure, will create another PR tomorrow
| "info.picocli:picocli:jar:4.3.2", | ||
| "com.google.code.gson:gson:jar:2.8.6", | ||
| "com.google.guava:guava:29.0-jre", | ||
| "org.apache.commons:commons-pool2:2.11.1", |
There was a problem hiding this comment.
Should we go through these and upgrade them as well?
There was a problem hiding this comment.
Yeah, will raise another PR then
🤦🏻 saw that as I was reviewing |
|
We should also update the readme with the new command |
|
Will do, testing in our repo now and will update accordingly |
Here is a non-exhaustive list of stuff done in the branch: