Skip to content

Retry git clone failures #14

@ben-z

Description

@ben-z

Sometimes, we get the following error when cloning repos:

│ GitCommandError: Cmd('git') failed due to: exit code(128)                                                                                                                                              │
│   cmdline: git clone -v --                                                                                                                                                                             │
│ https://github.com/WATonomous/sentry-kubernetes-charts.git                                                                                                                                             │
│ /tmp/workspace/https:/github.com/WATonomous/sentry-kubernetes-charts.git                                                                                                                               │
│   stderr: 'Cloning into                                                                                                                                                                                │
│ '/tmp/workspace/https:/github.com/WATonomous/sentry-kubernetes-charts.git'...                                                                                                                          │
│ POST git-upload-pack (175 bytes)                                                                                                                                                                       │
│ POST git-upload-pack (317 bytes)                                                                                                                                                                       │
│ error: RPC failed; curl 56 GnuTLS recv error (-9): Error decoding the received                                                                                                                         │
│ TLS packet.                                                                                                                                                                                            │
│ error: 12 bytes of body are still expected                                                                                                                                                             │
│ fetch-pack: unexpected disconnect while reading sideband packet                                                                                                                                        │
│ fatal: early EOF                                                                                                                                                                                       │
│ fatal: fetch-pack: invalid index-pack output                                                                                                                                                           │
│ '      

This is usually retriable. Implement a retry mechanism.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions