-
Notifications
You must be signed in to change notification settings - Fork 38
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
NDK symbols upload gradle task should fail if the upload is rejected #529
Comments
It could also be a option in the gradle config, cause it might not suit everyone. Still it's weird that it silently fails. |
Hi @peterdk By default the plugin should fail the build if the files are not uploaded successfully. We do have a config that would allow you change the default behaviour by setting it to false.
Do you by chance have this enabled? Did you get anything in the build log to say they weren't uploaded? Otherwise it would be interesting to see the files that you were attempting to upload that produced the "invalid file format". Assuming they are not too large, would you be able to send them to us [email protected] and we could do some testing of our own. |
Ah weird. It's not explicitly set in my config. I just found out that they result in a error response from the manual api. They are Rust libraries. I already opened a ticket with support for that. Will test with the Gradle task later on tonight and will check response code from manual API. |
Ok, I tested this with a custom version of the 8.0.1 branch. (I only added a log message)
Result:
So, yes, it detects the failure, but apparently bugsnag gradle doesn't do anything with that. Cause without the added logging I wouldn't know it failed. |
I also tried with explicit failOnUploadError=true in the bugsnag settings, but that doesn't do anything. The change below for example does make it work as intended:
So I guess somewhere in the code a exception is not correctly thrown. |
Ticket with so file is #55786 in zendesk |
Thanks. we have replied on the ticket. Mainly for the benefit of future travellers, we are going to look into fixing this behaviour. We will post any updates here. |
Description
I recently found out that for some of my apps the NDK so files that got uploaded were not present in the project settings on the website. It turns out that when I manually upload them using curl I get 'invalid file format'. Bugsnag Gradle however happily uploads them and (presumably fails) but doesn't trigger a error. That's not wanted behaviour I would say.
Describe the solution you'd like
If uploading NDK symbol file fails/gets rejected, the gradle task should fail and stop build.
Describe alternatives you've considered
I don't know if the gradle plugin upload call leads to a actual result like the curl method. So maybe this is technically not possible.
Additional context
bugsnag gradle version 8.0.1
The text was updated successfully, but these errors were encountered: