bitrise-steplib/steps-appcenter-deploy-android

New Release has broken uploads to app center

vermasumeet1982 opened this issue · 6 comments

Hello Bitrise team
I think your last release 17c3521

has broken deploy to Microsoft AppCenter.

Our workflows have suddenly stop working and the error I get is

github.com/bitrise-steplib/steps-appcenter-deploy-android/vendor/github.com/hashicorp/go-retryablehttp
src/github.com/bitrise-steplib/steps-appcenter-deploy-android/vendor/github.com/hashicorp/go-retryablehttp/roundtripper.go:48:16: undefined: errors.Unwrap
ERRO[16:56:08] Step (appcenter-deploy-android) failed: Failed to prepare the step for execution through the required toolkit (go), error: Failed to install package, error: exit status 2 

There are some code changes done to hashicorp/go-retryablehttp and I wonder if this issue I am facing with uploading Android apk to Microsoft AppCenter are related to these code changes

Hi @vermasumeet1982,

I am about to fix the issue, please use the older (2.0.0) version for now. I will fix the issue as soon as possible :).

Hello @vermasumeet1982,

The incorrect Go version caused the issue. The step (the HTTP library) used a newer Golang version and the errors package was not found in the VM's Golang version. I think you are using the Ubuntu LTS stack. For those who get this exception please use the non-LTS version of the Ubuntu stack or upgrade to the latest version of the step.
After all, we have fixed the issue, and the latest version (2.0.2) of the step is using the older hashicorp/go-retryablehttp library so the issue must be fixed now.

Sorry for the inconvenience and thank you for reporting the issue 😺 .

Fix: #13
Release: https://github.com/bitrise-steplib/steps-appcenter-deploy-android/releases/tag/2.0.2
Steplib release: bitrise-io/bitrise-steplib#2849

Thank you @sylank for fixing this so fast. I am just testing it at my end and will confirm if all is working at my end. Cheers!!

hi @sylank Unfortunately the issue still remains

+------------------------------------------------------------------------------+

| (2) appcenter-deploy-android                                                 |
+------------------------------------------------------------------------------+
| id: appcenter-deploy-android                                                 |
| version: 2.0.1                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2021-01-13T10:51:17Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
# github.com/bitrise-steplib/steps-appcenter-deploy-android/vendor/github.com/hashicorp/go-retryablehttp
src/github.com/bitrise-steplib/steps-appcenter-deploy-android/vendor/github.com/hashicorp/go-retryablehttp/roundtripper.go:48:16: undefined: errors.Unwrap
ERRO[10:51:18] Step (appcenter-deploy-android) failed: Failed to prepare the step for execution through the required toolkit (go), error: Failed to install package, error: exit status 2 
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | appcenter-deploy-android (exit code: 1)                       | 2.18 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: ....com/bitrise-steplib/steps-appcenter-deploy-android/issues |
| Source: https://github.com/bitrise-steplib/steps-appcenter-deploy-android    |
+---+---------------------------------------------------------------+----------+

I can confirm I am using the step version 2.0.2
Screenshot 2021-01-13 at 10 59 55

hi @sylank my bad. I hadn't notice the bitrise workflow didn't pick the latest version. I retried after a few minutes and now it is 2.0.2 and it works. Apologies for inconvenience. I didn't notice the version in the log.

+------------------------------------------------------------------------------+

| (2) appcenter-deploy-android                                                 |
+------------------------------------------------------------------------------+
| id: appcenter-deploy-android                                                 |
| version: 2.0.2                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2021-01-13T12:21:45Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
Config:
- Debug: false
- AppPath: /bitrise/deploy/app-normal-release-bitrise-signed.apk

@vermasumeet1982 no problem. Thank you for the confirmation 😺 .