-
-
Notifications
You must be signed in to change notification settings - Fork 778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better error classification in Gradle Enterprise. #4586
Conversation
Use `Lint failed` instead of `Build failed` in exception Fixes detekt#4585
Codecov Report
@@ Coverage Diff @@
## main #4586 +/- ##
===========================================
+ Coverage 0 84.49% +84.49%
- Complexity 0 3335 +3335
===========================================
Files 0 481 +481
Lines 0 11147 +11147
Branches 0 2040 +2040
===========================================
+ Hits 0 9419 +9419
- Misses 0 697 +697
- Partials 0 1031 +1031
Continue to review full report at Codecov.
|
I'd change to "Analysis failed" as "Lint" is an overloaded term in the Android space |
@cortinico I've changed it. It seems that some of the tests that are failing are not picking up the new detekt artifact. Do you know why? |
@3flex can tell you more here. The issue is that our build setup is configured to don't use composite builds (I never recall why). So essentially you're testing against the latest released version of the Gradle plugin (as the failing tests are only those on Unless we switch to use the included build here: Line 14 in f15ce50
We should probably keep the test update as a draft PR and merge it once we're about to release. |
@@ -66,7 +66,7 @@ internal class DefaultCliInvoker( | |||
} | |||
} | |||
|
|||
private fun isBuildFailure(msg: String) = "Analysis failed with" in msg && "issues" in msg | |||
private fun isBuildFailure(msg: String) = "Build failed with" in msg && "issues" in msg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cortinico I had to revert this change to the Gradle plugin since the failure detection would break. Is the Gradle plugin published together with the detekt-core artifact?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes they are 👍
Here is the follow up PR: #4588 |
Use
Lint failed
instead ofBuild failed
in exceptionFixes #4585
Correctly classified error
Incorrectly classified error