-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Sentry-gradle + Skaffold causes infinite restarts with Spring Boot #628
Comments
@adinauer Can you have a look into it? |
@jasonab I've never used skaffold, can you please provide a minimum reproducible sample? |
My honest answer is, "no, I can't" because it would require providing not only a code sample, but a k8s cluster definition and a skaffold config to sync the code. I know that the file change is in the |
🤔 could you try disable dependencies report?
another culprit could be telemetry:
|
I will explore those options, thank you |
@romtsn I tried using those flags, both separately and together, but did not see any change in behavior - skaffold still sees constant file changes to be synced. It appears that every single file in my |
@jasonab have you enabled source context in the gradle plugin? If so, can you please try disabling it.
Might also be @romtsn is there a way to disable @jasonab is there a way to run gradle with debug logging to see what sentry tasks execute before a restart? |
Ah I missed the "every" when first reading. Hmm I wouldn't know how we cause this. Maybe @romtsn has some ideas. |
I tried setting Here are the Gradle tasks that run to generate the jar:
After looking at the Skaffold logs in debug mode, I believe that it is the I'm not sure why this causes Skaffold to sync the entire |
@jasonab thanks for checking.
Yeah this also indicates |
@jasonab I think you can work it around for now as follows:
|
Gradle Version
8.5
AGP Version
Kotlin 1.9.22
Code Minifier/Optimizer
None
Version
4.1.1
Sentry SDK Version
Spring Boot 7.1.0
Steps to Reproduce
Kotlin + Spring Boot + Gradle
Adding the Sentry Gradle plugin, then running my local dev environment with Skaffold sync, causes Skaffold to infinitely loop its sync. Spring barely finishes starting up before it is killed and auto-restarted because of changes in disk caused by the Gradle plugin. Using Sentry Spring Boot Starter lib directly does not exhibit this behavior.
Expected Result
Spring starts up correctly and continues running
Actual Result
Spring is constantly restarted by Skaffold because of file changes on disk
The text was updated successfully, but these errors were encountered: