60 Commits

Author SHA1 Message Date
Gero Posmyk-Leinemann
5d557f73c8
[spicedb] Fix intermittent "Error: 4 DEADLINE_EXCEEDED...Waiting for LB pick" (#20637)
* [dev] Bump grpc/grpc-js 1.10.8 -> 1.12.6 and authzed/authzed-node 0.15.0 -> 1.2.2

Tool: gitpod/catfood.gitpod.cloud

* [server] Streamline spicedb gRPC client usage and creation options

 - instead of doing retries on two levels, rely on the gRPC-level retries
 - to mitigate the loss of insights, introduce createDebugLogInterceptor
  - client options: use sane defaults derived from the documentation instead of the excessive ones we had in place before
  - use "waitForReady" option: it should a) make our calls for responsive on re-connects, while b) - because we keep re-trying on DEADLINE_EXCEEDED - should be as reliable as before

Tool: gitpod/catfood.gitpod.cloud

* [protocol] Centralize grpc.isConnectionAlive

Tool: gitpod/catfood.gitpod.cloud

* [server] SpiceDB client: retry with new client on "Waiting for LB pick" error

Tool: gitpod/catfood.gitpod.cloud
2025-03-17 05:13:46 -04:00
Gero Posmyk-Leinemann
99cc66b7cf
[ws-manager] Re-create workspace pods on rejection (#20243)
* [ws-manager] Re-create workspace pods (incl. test)

* [gpctl] Fix "workspaces list"

* [ws-daemon, ws-manager] Review comments, logging cleanups and ordering fix

* [dev/rejector] Add the tool we use to test PodRejection under "dev"

* [bridge] Log nested status shape (and properly scrubbing it)
2024-11-15 07:28:54 -05:00
Thomas Schubart
f92950ea68
Support mounting NFS shares into workspaces (#19880)
* Handle Nfs call

* Extend IWS Api

* Add nfs-common

* Add args

* Mount nfs

* Check args

* Review comments
2024-06-12 22:56:08 +08:00
Gero Posmyk-Leinemann
2686bc2f47
[server, bridge] Bump grpc-js and authzed clients (#19849)
* [yarn] Bump @grpc/grpc-js to 1.10.8 and @authzed/authzed-node to 0.15.0

* [server] SpiceDB: explicit re-try on UNAVAILABLE

We tried to configured this inside the SpiceDBClientProvider already, but somehow it still surfaced.

* [server, bridge] Configure "grpc.dns_min_time_between_resolutions_ms" to be 2s instead of 30s
2024-06-06 13:57:19 +08:00
Sven Efftinge
841b616c34
[spicedb] fix stale connection handling (#18631) 2023-09-01 12:53:58 +02:00
Manuel Alejandro de Brito Fontes
64994160d9
Remove FUSE support (#18536)
* Remove FUSE support

* Update docs

* Remove fuse-overlayfs

* Fix installer validation
2023-08-18 16:13:44 +02:00
Alex Tugarev
afac02330b
Downgrade grpc-js (#18346)
Current version seems to have issues with tearing down the node processes.
2023-07-26 17:46:42 +08:00
Gero Posmyk-Leinemann
d7acfb662a
Updated outdated dependencies to avoid CVEs (#18144)
* Update grpc/grpc-js

* Update http-cache-semantics

* decode-uri-component
2023-07-04 16:40:21 +08:00
Gero Posmyk-Leinemann
cc52d25280
Upgrade yarn packages (#18128)
* [ts] Pin mimimatch and minimist

* [server] Update minio

* [ts] Remove superfluous node-pre-gyp dep

* [ts] Pin jsonwebtoken to 9.0.0

* [grpc] Update grpc-toolsis

* [ts] Upgrade from mocha-typescript to  @testdeck/mocha

* fix rimraf
2023-07-03 14:47:19 +08:00
Gero Posmyk-Leinemann
909955d2c4
[db, ts] Introduce a generic db.transaction() (#17980)
* [ts] Upgrade inversify 5.0.1 -> 6.0.1

* [server, db] Introduce TransactionalDB for User, Workspace, Projects

* Fix tests
2023-06-21 16:12:11 +08:00
Thomas Schubart
2cab1406dd
[ws-manager-mk2] Remove persistent volume claim feature (#17860)
* [ws-daemon] Remove PVC

* [installer] Remove PVC

* [workspacekit] Remove PVC

* [content] Remove PVC

* [preview] Remove PVC

* [wsman-api] Remove PVC

* [ws-daemon-api] Remove PVC

* [workspacekit] Mount workspace directory

* [supervisor] Remove PVC

* [test] Remove PVC

* Fix build
2023-06-13 18:35:04 +08:00
Thomas Schubart
fe08421325
[ws-daemon] Remove full workspace backup (#17803) 2023-06-01 17:36:06 +08:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Pavel Tumik
389f7767fb [ws-daemon] fix WaitForInit not found error in tracing 2022-10-05 10:35:21 +02:00
Thomas Schubart
9467431217 [daemon-api] Add workspace info endpoint 2022-06-28 22:45:37 +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
301190db53 Add persistent volume support for workspaces
fix
2022-05-04 03:08:19 +05:30
Christian Weichel
fc1b0ac4a6 [ws-daemon] Support storage quota per class 2022-04-29 14:24:15 +05:30
Manuel Alejandro de Brito Fontes
ab0d69cfea Update generated code 2022-04-25 15:52:37 +05:30
utam0k
f046782319 ws-dameon: implement the SetupPairVeths function. 2022-04-11 16:07:24 +05:30
Anton Kosyakov
b3ea6db43e Revert "ws-dameon: implement the SetupPairVeths function."
This reverts commit a960121dce48a80c3e5919f4fe7f056781ef9504.
2022-04-08 18:19:21 +05:30
utam0k
a960121dce ws-dameon: implement the SetupPairVeths function. 2022-04-08 13:41:21 +05:30
Christian Weichel
b6a851ebda [ws-daemon] Add EvacuateCGroup support to IWS 2022-03-04 04:08:11 +05:30
Manuel Alejandro de Brito Fontes
a30a1bff48 Add ExposedPorts message and remove Target and GlobalPort 2021-11-05 10:33:03 +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
Manuel Alejandro de Brito Fontes
353b33eb42 Update typescript dependencies 2021-11-02 15:50:10 +01:00
Manuel Alejandro de Brito Fontes
9b90bd5f6b Update protoc generated code 2021-11-02 15:50:10 +01:00
Gero Posmyk-Leinemann
7abe78c917 [dev] Upgrade to node.js v16 and all major TS libs
This commit includes the following commits:
 - @iqqbot update dev image to nodejs v16lts
 - @iqqbot update dev-environment-image to use nodejs v16
 - @iqqbot update component to nodejs v16 lts
 - [licensor] Adjust to v16
 - [ts] Bump @types/node to ^16.11.0 accordingly
 - @aledbf Update typescript dependencies
 - @aledbf Update typescript configuration
 - @aledbf / @geropl Update typescript code
 - [server] Fix express/passport types
 - [db] typeorm upgrade 0.1.20 -> 0.2.22: fix compile and runtime issues
 - [db] typeorm upgrade 0.2.22 -> 0.2.38: fix compile and runtime issues
 - [dev] Upgrade amqplib and smaller libs
 - [dev] Upgrade uuid
 - [dev] Update probot
 - [dev] Final yarn.lock
2021-11-02 13:59:10 +01:00
Pudong Zheng
40c8138d2b upgrade typescript compiler target to es6 2021-10-21 15:30:59 +02:00
rl-gitpod
87ea360977 [gpctl] add workspace backup command 2021-09-30 04:50:47 -03:00
Prince Rachit Sinha
a0f4ed58eb Upgrade grpc-js library 2021-08-31 08:43:29 -03:00
Manuel Alejandro de Brito Fontes
4606a42d03 Update typescript generated code 2021-08-04 15:49:04 +02:00
Manuel Alejandro de Brito Fontes
44d5f0a81f Update npm dependencies 2021-08-04 15:49:04 +02:00
Christian Weichel
55274105ea [ws-daemon] Support sysfs mount using IWS 2021-08-02 10:16:01 +02:00
Christian Weichel
c3bea3b9c0 [ws-daemon] Support workspaces without remote storage 2021-07-28 17:52:32 +02:00
Gero Posmyk-Leinemann
000da4503b [ws-daemon] Upload logs 2021-07-15 09:00:38 +02:00
Manuel Alejandro de Brito Fontes
9d4f213d24 Bind mounting /workspace in ring1 only if not running FWB 2021-05-26 13:10:54 +02:00
Jan Keromnes
1b2605ff53 [protoc] Re-run 'leeway run components:generate-code-from-protobuf' 2021-04-20 15:04:10 +02:00
Manuel Alejandro de Brito Fontes
f99f96ce2f [ws-daemon-api] Switch to @grpc/grpc-js 2021-04-15 08:54:05 -04:00
Autofix
af51739d34 Autofix: trailing-spaces 2021-04-12 08:29:10 +02:00
Manuel Alejandro de Brito Fontes
1569e1a3ba Update generated code 2021-04-07 07:39:04 -04:00
Manuel Alejandro de Brito Fontes
9e6635dbd3
[user-namespaces] Support FUSE FS shift (#3384)
[user-namespaces] Support FUSE FS shift
2021-03-25 08:13:30 -03:00
Manuel Alejandro de Brito Fontes
326b3227be Enable user_namespace feature 2021-03-22 08:22:01 -03:00
Manuel Alejandro de Brito Fontes
ed3e43120d Update ws-daemon 2021-03-12 12:54:40 -03:00
Christian Weichel
2b4ae94df1 [ws-daemon] Support umount proc 2021-01-29 17:46:53 +01:00
Christian Weichel
7cc8e52725 [ws-daemon] Support proc mounts using open_tree/move_mount 2021-01-29 17:46:53 +01:00
Christian Weichel
7712280777 [workspacekit] Support mount proc in a workspace using seccomp-notify 2021-01-29 17:46:53 +01:00
Anton Kosyakov
4cc6245ab8 [supervisor] terminal API enhancements 2021-01-28 09:33:09 +01:00
Christian Weichel
b7dda84ad0 [license] Update license header from TypeFox GmbH to Gitpod GmbH 2021-01-04 15:12:02 +01:00