Skip to content

[Distribution] Do not call abortReleaseUpload API when uploading file failed - #1192

Merged
gordan-radojcic merged 5 commits into
microsoft:masterfrom
dhei:bugfix/cli-cancel-upload
Jan 13, 2021
Merged

gordan-radojcic merged 5 commits into
microsoft:masterfrom
dhei:bugfix/cli-cancel-upload

Conversation

@dhei

@dhei Di Hei (dhei) commented Dec 15, 2020 •

Copy link
Copy Markdown
Member

Context: We are deprecating PATCH /v0.1/apps/{owner_name}/{app_name}/release_uploads/{upload_id} API (openapi.appcenter.ms swagger link). When calling App Center CLI with incorrect build number or incorrect build version (see command below), the CLI will call the deprecated PATCH API with aborted on file upload failure. Note this bug only reproduces when both build version and build number parameters are provided but at least one of them is invalid.

appcenter distribute release --file <localFilePath> --app <appName> --group <groupName> --build-version <build-version> --build-number <build-number>

We investigated the distribute backend and discovered the aborted release upload status is never used in any meaningful way. We should stop using aborted status.

Solution: On the client-side, CLI will no longer call any aborted API on upload failure. The server side will be fixed in a different PR.

@dhei

Copy link
Copy Markdown
Member Author

FYI Attinder Khalsa (@atkhalsa)

@andrii-z4i

Copy link
Copy Markdown

Di Hei (@dhei) could you please share the PR which actually fixes the backend behavior

Solution: On the client-side, CLI will no longer call any aborted API on upload failure. The server side will be fixed in a different PR.

I think server-side should go first in such case and only if it has no issues we can complete this PR.

@gordan-radojcic
gordan-radojcic merged commit 8562f16 into microsoft:master Jan 13, 2021
@dhei
Di Hei (dhei) deleted the bugfix/cli-cancel-upload branch January 13, 2021 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants