History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-3224
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Robin Shen
Reporter: AlSt
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

Quickbuild should retry git fetch command, if suggested by error message

Created: 23/Jul/18 06:09 AM   Updated: 28/Feb/19 03:05 PM
Component/s: None
Affects Version/s: 8.0.10
Fix Version/s: 9.0.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

 Description  « Hide
Sometimes, more or less often, git fetch command executed by quickbuild fails with the following error message/response:

> 2018-07-12 09:43:48 - Failed to run command: git fetch --all --tags -q
> Command return code: 1
> Command error output: fatal: git fetch-pack: expected ACK/NAK, got 'A ref was requested that is no longer valid. The ref may have been updated while the git-upload-pack request was received. Please try again.'
> fatal: The remote end hung up unexpectedly
> error: Could not fetch origin

This is caused by the nature of the http(s) request used by git and modifications during these, which occurs more likely with increased action on a repository.

Quickbuild should follow the advice in the response and retry the fetch command automatically to avoid failures during CHECK_BUILD_CONDITION.

Basically this would make sense for every git command. If there is a "Please try again" contained in the message it really should try the command again.

 All   Comments   Work Log   Change History      Sort Order:
AlSt [20/Aug/18 11:02 AM]
Any thoughts on this one?

Robin Shen [20/Aug/18 11:59 AM]
We plan to get this into next big version of QB planned to be released in the end of this year.