126 Commits

Author SHA1 Message Date
Manuel Alejandro de Brito Fontes
f06f18191b [ws-daemon] Improve download options 2022-10-06 00:22:21 +02:00
Pavel Tumik
389f7767fb [ws-daemon] fix WaitForInit not found error in tracing 2022-10-05 10:35:21 +02:00
Manuel Alejandro de Brito Fontes
0412c5f461 [test] Reduce loop wait time 2022-10-05 05:15:20 +02:00
Manuel Alejandro de Brito Fontes
0b1006ab56 [ws-daemon] Improve download speed of snapshots 2022-10-04 15:57:21 +02:00
Pavel Tumik @ GitPod
153726046a add addional tracing for remoteContentStorage Download fn 2022-09-27 02:23:27 +02:00
Pavel Tumik @ GitPod
c8c906e278 replace os.IsNotExist with errors.Is(err, fs.ErrNotExist) 2022-08-24 03:35:40 +02:00
utam0k
c2d249a5b5 ws-daemon: Proper use of content.json 2022-08-19 19:38:36 +02:00
Thomas Schubart
212b4712f4 [ws-daemon] Include workspace id in error 2022-08-09 15:38:53 +02:00
JenTing Hsiao
9017476767 Return error to the client and only ignore tracing error
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-08-06 19:18:50 -03:00
JenTing Hsiao
d5c9bd792f Log warning instead of tracing error span
Special handling the error message for tracing when we can't find
workspace in memory.

Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-08-04 06:46:48 -03:00
Manuel Alejandro de Brito Fontes
ccb4e180a7 Remove backup trail 2022-08-04 05:00:48 -03:00
JenTing Hsiao
80eedafd74 The instance ID is required field
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-08-02 05:34:46 -03:00
Manuel Alejandro de Brito Fontes
797f440c7c Simplify configuration of git setting safe.directory 2022-07-19 17:23:14 +02:00
Manuel Alejandro de Brito Fontes
38b886bb6a [ws-daemon] Increase number of concurrent backup uploads 2022-07-15 01:45:01 +02:00
Pavel Tumik
af62571a40 Update components/ws-daemon/pkg/content/service.go
Co-authored-by: Christian Weichel <chris@gitpod.io>
2022-07-14 09:24:01 +02:00
Pavel Tumik
52717d7104 [ws-daemon] do not fail workspace if git status failed during dispose 2022-07-14 09:24:01 +02:00
Pavel Tumik
6dd7fc82b4 [ws-daemon] improve DisposeWorkspace logging 2022-07-13 02:01:59 +02:00
Christian Weichel
8248935e44 [ws-manager] Add Git token to workspace secret 2022-07-06 19:22:53 +05:30
Christian Weichel
9ace0e8f1e Make content init work on Ubuntu 2022-07-06 05:12:53 +05:30
Pavel Tumik
7d005012a8 Add PVC support to prebuilds 2022-06-24 22:22:33 +05:30
utam0k
561df01704 ws-daemon: Soft limit the xfs at first to ensure that the contents can be restored 2022-06-08 16:12:18 +05:30
utam0k
0ace3aa498 ws-daemon: Apply the xfs limit in stages. 2022-06-01 14:00:50 +05:30
Christian Weichel
d9a66c466b [ws-daemon] Add backup ratelimiting timeout 2022-06-01 01:52:49 +05:30
Manuel Alejandro de Brito Fontes
afdf9614d5 [ws-daemon] Use a metric for backup waiting time instead logs 2022-05-30 16:12:48 +05:30
Tarun Pothulapati
77279a892e [initializer] Replace GIT_SSL_CAINFO with GIT_SSL_CAPATH
Fixes https://github.com/gitpod-io/gitpod/issues/10173

Using `GIT_SSL_CAPATH` means that we will continue to support
publicly signed SCM's even when we have a `customCA` configured.

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-05-30 14:03:48 +05:30
Manuel Alejandro de Brito Fontes
2dbef7ad51 [ws-daemon] Limit the number of concurrent workspace backups 2022-05-26 19:24:45 +05:30
Pavel Tumik
56d1756376 remove daemon-api change as it is not needed 2022-05-25 13:17:39 +05:30
Pavel Tumik
88768f6e50 snapshot volume support 2022-05-25 13:17:39 +05:30
Pavel Tumik
0cdce52b73 [ws-daemon] update git safe directory at init workspace phase 2022-05-14 00:15:28 +05:30
Sven Efftinge
d8f51d3cf0 [supervisor] inflate all git repos
fixes [multi-repo] Shallow clones are not inflated #9021
2022-05-13 15:01:28 +05:30
utam0k
8ef12e49ef improve start up time of iws for workspacekit. 2022-05-13 14:58:28 +05:30
Pavel Tumik
c1cd9bb777 [ws-daemon] fix restore from snapshot not working 2022-05-12 11:42:27 +05:30
Pavel Tumik @ GitPod
08acca87c1 [content-service] add prestop hook to extract git status when workspace is using pvc 2022-05-10 19:27:25 +05:30
Pavel Tumik
0ffc77d16a PR feedback fixes 2022-05-04 03:08:19 +05:30
Pavel Tumik
301190db53 Add persistent volume support for workspaces
fix
2022-05-04 03:08:19 +05:30
Manuel Alejandro de Brito Fontes
f6cfa947f5 Refactor backup creation 2022-04-29 19:37:15 +05:30
Christian Weichel
fc1b0ac4a6 [ws-daemon] Support storage quota per class 2022-04-29 14:24:15 +05:30
Christian Weichel
96b2a36540 [ws-daemon] Support GIT_SSL_CAINFO 2022-04-28 18:47:14 +05:30
Pavel Tumik
f9531f3915 [ws-daemon] update log message to be unique 2022-04-28 09:47:14 +05:30
Thomas Schubart
3bf6664eac Use checkout location during content init 2022-04-08 00:29:21 +05:30
Christian Weichel
9d3669713b [ws-daemon] Remove tar file size limit 2022-03-31 13:58:14 +05:30
Sven Efftinge
cc2f3b30fe [multi-repo] Support prebuilds on multi-repo setup 2022-03-10 15:46:17 +05:30
Christian Weichel
5702a9c74c [iws] Prepare cgroup when prearing for user NS 2022-03-04 04:08:11 +05:30
utam0k
3f295e32ad ws-daemon: Name the magic exit code to make it common 2022-01-24 13:09:16 +01:00
Christian Weichel
990dd33e86 [content-init] Propagate sensible error messages
when the content initializer fails
2022-01-21 14:03:13 +01:00
Christian Weichel
0a47ea41ce [content-init] Ensure .gitpod path is available 2022-01-21 11:44:13 +01:00
Kyle Brennan
cf89cc7618 [ws-daemon] log error for content init failures 2022-01-19 04:58:11 +01:00
utam0k
99b5542b64 ws-daemon: Prevent unnecessary process creation by using lib of runc instead of cmd. 2022-01-18 18:42:11 +01:00
Gero Posmyk-Leinemann
2f55599b1e [ws-daemon] Make 'takeSnapshot' return early
The motivation here is to get the URL as identifiable attribute back to the caller so we can make this look re-entrant from the outside.
For backwards compatibilities sake, there is a "returnImmediately" flag on the call that needs to be set for the early return.
2021-11-04 12:18:12 +01:00
Simon Emms
a034b44076 [ws-daemon]: json marshal the FSShift value from the int to string value 2021-10-28 13:37:05 +02:00