common-custom-user-data-gradle-plugin
common-custom-user-data-gradle-plugin copied to clipboard
Add new tag to identify scans of tasks debugging from the IDE
Hi! 👋
When a task is executed from the IDE with the debugger enabled, the total build time reported will include all the debugging.
While this is expected, it might introduce some artificial outliers in the data. When looking into the p95, searching for long builds or aggregating results this might induce to a wrong analysis of the build health of a project.
I detected this by debugging some unit tests, which I believe is a pretty common use case when developing.
I noticed that IntellijIdea (checked with Android Studio) attaches 2 environment properties when debugging that are not present in normal runs:
idea.debugger.dispatch.port : 57328
idea.debugger.dispatch.addr : 127.0.0.1
Any of these properties can be used to add a new tag like IDE debugging
to identify (and filter out when required) these scans.
I've added a draft PR #312 with a proposal to solve this. Let me know if you want to move it forward with this improvement :)
Thanks!