-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Avoid deeply nesting log file when running tests #40242
Conversation
List<String> logFileLocationParts = getLogFileLocationParts(getLogFinalName()); | ||
if (logFileLocationParts.isEmpty()) { | ||
throw new IllegalStateException("Unable to determine log file path"); | ||
} else if (logFileLocationParts.size() == 1) { | ||
return Paths.get(logFileLocationParts.get(0)); | ||
} else { | ||
return Paths.get(logFileLocationParts.get(0), | ||
logFileLocationParts.subList(1, logFileLocationParts.size()).toArray(new String[0])); | ||
} | ||
return Paths.get(getLogFileLocation()); |
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.
@geoand Interested in your feedback on this particular change as I didn't understand the need for such complexity. But maybe you tried to work around the issue I fixed above.
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 honestly don't remember, but it certainly could be the case.
If CI is all good, then I have no objections :)
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.
That, we will discover soon :).
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.
🤞🏼
Status for workflow
|
Fixes #40196