mikemccand commented on code in PR #15997:
URL: https://github.com/apache/lucene/pull/15997#discussion_r3169031713
##########
build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/java/CodeProfilingPlugin.java:
##########
@@ -204,13 +204,22 @@ public void apply(Project project) {
.getProviders()
.provider(
() -> {
- return task.getState().getFailure() ==
null;
+ return taskDidNotFail(task);
}));
});
});
}
}
+ private static boolean taskDidNotFail(Test task) {
+ try {
+ task.getState().rethrowFailure();
Review Comment:
I checked w/ Gemini (I was worried maybe this method had side effects or so
-- it's fine (idempotent)): https://share.google/aimode/keVKF6K1aIoSshuoI
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]