-
Notifications
You must be signed in to change notification settings - Fork 5k
Use problem information in build failure message #31374
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
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
0cdd3e3
to
9613256
Compare
* @return nothing, the method throws an exception | ||
* @since 8.12 | ||
*/ | ||
RuntimeException throwing(Throwable exception, Collection<? extends Problem> problems); |
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.
I'm going to do the API cleanup separately.
This comment has been minimized.
This comment has been minimized.
9613256
to
568dfab
Compare
568dfab
to
d15be93
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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.
Happy to see this shaping up!
Left some comments, PTAL.
* @since 8.10 | ||
*/ | ||
Collection<Problem> getProblems(); | ||
public interface ProblemLookup { |
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.
🤔 Something doesn't click with me with this classname, but I cannot come up with something better either.
Any case, this is internal so if we come up with something better, we can change it anytime.
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.
ProblemLocator?
...rojects/build-events/src/main/java/org/gradle/internal/build/event/types/DefaultFailure.java
Outdated
Show resolved
Hide resolved
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.
🎉 Nice cleanup, happy to see that exception mapping go away (at least from here)
...core/src/integTest/groovy/org/gradle/internal/buildevents/BuildFailureIntegrationTest.groovy
Outdated
Show resolved
Hide resolved
subprojects/core/src/main/java/org/gradle/internal/buildevents/BuildLoggerFactory.java
Outdated
Show resolved
Hide resolved
testing/architecture-test/src/changes/archunit-store/internal-api-nullability.txt
Outdated
Show resolved
Hide resolved
...distributions-integ-tests/src/integTest/groovy/org/gradle/DistributionIntegrationSpec.groovy
Show resolved
Hide resolved
@hegyibalint Thanks for the review, I'll clean up the items. Some of the issues come from cherry-picking changes from another (wip) branch. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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.
Thanks for the fixes, let's merge this!
...distributions-integ-tests/src/integTest/groovy/org/gradle/DistributionIntegrationSpec.groovy
Show resolved
Hide resolved
The following builds have failed: |
@bot-gradle merge |
Fixes #31376
Reviewing cheatsheet
Before merging the PR, comments starting with