Skip to content
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

[content-service] Retry git clone #4506

Merged
merged 1 commit into from
Jun 15, 2021
Merged

Conversation

corneliusludmann
Copy link
Contributor

@corneliusludmann corneliusludmann commented Jun 14, 2021

This change introduces an exponential backoff retry of git clone. It retries until a timeout of 5 minutes (we could also use another timeout duration if someone has another proposal).

Fixes #4203

How to test

To be honest, I have no idea how to test this. A good start is to verify that it is still possible to start a workspace, though.

@codecov
Copy link

codecov bot commented Jun 14, 2021

Codecov Report

Merging #4506 (7f5c959) into main (a6ce026) will increase coverage by 3.74%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4506      +/-   ##
==========================================
+ Coverage   30.51%   34.26%   +3.74%     
==========================================
  Files          29       60      +31     
  Lines        4683    12710    +8027     
==========================================
+ Hits         1429     4355    +2926     
- Misses       3139     7957    +4818     
- Partials      115      398     +283     
Impacted Files Coverage Δ
components/supervisor/pkg/terminal/terminal.go 66.10% <0.00%> (-0.34%) ⬇️
components/supervisor/pkg/ports/ports.go 60.22% <0.00%> (-0.19%) ⬇️
components/gitpod-cli/cmd/preview.go
components/gitpod-cli/cmd/sync-done.go
components/gitpod-cli/cmd/open.go
components/gitpod-cli/cmd/env.go
components/gitpod-cli/cmd/git-token-validator.go
components/gitpod-cli/cmd/forward-port.go
components/gitpod-cli/cmd/init.go
components/gitpod-cli/cmd/gitpodRun.go
... and 51 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a6ce026...7f5c959. Read the comment docs.

@JinKoehnlein
Copy link

JinKoehnlein commented Jun 15, 2021

/werft run

👎 not authorized

@JanKoehnlein
Copy link
Contributor

JanKoehnlein commented Jun 15, 2021

/werft run

👍 started the job as gitpod-build-clu-ws-daemon-retry-4203.2

@JanKoehnlein
Copy link
Contributor

JanKoehnlein commented Jun 15, 2021

/werft run

👍 started the job as gitpod-build-clu-ws-daemon-retry-4203.3

Copy link
Contributor

@JanKoehnlein JanKoehnlein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Workspaces are still starting and code LGTM

@corneliusludmann corneliusludmann merged commit 5635a95 into main Jun 15, 2021
@corneliusludmann corneliusludmann deleted the clu/ws-daemon-retry-4203 branch June 15, 2021 08:48
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.

[ws-daemon] Retry git clone
3 participants