sentry-android-gradle-plugin icon indicating copy to clipboard operation
sentry-android-gradle-plugin copied to clipboard

Configuration cache issue with sentry-cli executable.

Open prashanOS opened this issue 1 year ago • 2 comments

Integration

sentry-android

Build System

Gradle

AGP Version

7.3.0

Proguard

Enabled

Version

6.4.2

Steps to Reproduce

Occasionally when running a build with Proguard/R8 enabled and Gradle's configuration cache turned on, I'll run into this issue:

Execution failed for task ':app:uploadSentryProguardMappingsInternal'.
> A problem occurred starting process 'command '/var/folders/3z/jtlq288544zdqjdmlvsc3qmh0000gn/T/.sentry-cli7063660718712881532.exe''
    Cause: error=2, No such file or directory

Clearing Gradle's configuration cache (rm -rf .gradle/configuration-cache) fixes this issue. It seems that the Sentry Gradle tasks are not properly configured for use with configuration cache?

Expected Result

Build succeeds successfully.

Actual Result

Execution failed for task ':app:uploadSentryProguardMappingsInternal'.
> A problem occurred starting process 'command '/var/folders/3z/jtlq288544zdqjdmlvsc3qmh0000gn/T/.sentry-cli7063660718712881532.exe''
    Cause: error=2, No such file or directory

prashanOS avatar Sep 29 '22 18:09 prashanOS

hey, thanks for the report, this looks like a bug indeed, we've never tested with config cache. We'll take a look soon!

romtsn avatar Sep 29 '22 20:09 romtsn

@prashanOS would you be able to provide a reproducible sample? I've tried to reproduce it locally with our sample projects, but no luck. I have some ideas on how this could be fixed, but ideally would need a reproducer to confirm on. Thanks in advance

romtsn avatar Oct 19 '22 20:10 romtsn

@prashanOS were you able to consistently reproduce it? Otherwise we might need to close it as not reproducible

romtsn avatar Nov 04 '22 08:11 romtsn

Closing as not reproducible, feel free to reopen with more details

romtsn avatar Nov 10 '22 08:11 romtsn