-
Notifications
You must be signed in to change notification settings - Fork 153
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
Fix PID instrumentation for configuration caching #238
Conversation
on Gradle versions >= 6.1, so the PID collector is compatible with configuration caching.
GFileUtils.writeFile(getPid().toString(), getParameters().getPidFile().get().getAsFile()); | ||
} | ||
|
||
private Integer getPid() throws NoSuchFieldException, IllegalAccessException, NoSuchMethodException, InvocationTargetException { |
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 am not very happy with how we obtain the PID of the current process here, though I don't have a better idea :(.
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 guess no better solution on Java 8.
@@ -16,7 +16,7 @@ abstract class AbstractProfilerIntegrationTest extends Specification { | |||
"3.3", "3.4.1", "3.5", | |||
"4.0", "4.1", "4.2.1", "4.7", | |||
"5.2.1", "5.5.1", "5.6.3", | |||
"6.0.1", "6.1", "6.6-rc-2" | |||
"6.0.1", "6.1", "6.6" |
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.
6.6.1
?
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.
Done. I also upgradled the build to 6.6.1.
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.
LGTM, thanks for fixing!
Use a build service for PID instrumentation on Gradle versions >= 6.1, so the PID collector is
compatible with configuration caching.