224 Commits

Author SHA1 Message Date
Gero Posmyk-Leinemann
9be1fec2c0
[ts] Add metric gitpod_logs_total(level) for TS components (#19093) 2023-11-21 16:39:59 +02:00
Christian Weichel
bb51f07988
Collect workspace classes from workspace cluster (#19003)
* Extend ws-manager API to support workspace class descriptions

fixes ENG-1065

* Extend  DescribeCluster in ws-manager-mk2

to acurately report the available workspace classes

fixes ENG-1066

* Add workspace classes to cluster in DB

* Intergrate workspace cluster collection in ws-manager-bridge

* Feature flag off discovered workspace class usage

* Fix build

* Add unittest for getSupportedWorkspaceClasses

* Fix workspace class storage

* Adress review feedback
2023-11-10 13:13:48 +02:00
Anton Kosyakov
cf7d0e9500
remove supervisor_live_git_status (#18921)
and deprecated instance.status.repo
2023-10-16 17:20:24 +03:00
Alex Tugarev
0189623c4b
🧹 Update mocha and remove resolutions (#18736)
* remove resolutions in root package.json

update mocha to avoid pulling in minimatch@3.0.4

* adjust mocha config

* also consider *.spec.db.*

* re-add missing exclude of node_modules

* remove recursive

* fix mocha execution
2023-09-19 09:22:58 +02:00
Gero Posmyk-Leinemann
5cb145e57f
Reconcile startWorkspace (#18673)
* [server] Reconcile workspace starts using redlock

* [server] Check abortSignal before updating the DB state

* [server] Add feature flag workspace_start_controller

review comments
2023-09-14 08:40:53 +02:00
Robo Quat
9ad3360abf
update index (#18636)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-09-03 19:02:00 +02:00
Alex Tugarev
5efb011c08
Update GitLab REST client library (#18523)
* [server] update gitlab REST client library

* clean up workspace packages

* Update gitlab rest client

* Fix yarn.lock

* Update chainguard node image

* Catch up with GitLab client library changes.

Several places relied on a particular shape of errors.

* [gitlab] fix project typings

---------

Co-authored-by: Jean Pierre <jeanp413@hotmail.com>
2023-08-28 16:09:55 +02:00
Alex Tugarev
c7e492b6ef
update node to 18.17.1 (#18525)
* update node to 18.17.1

* use new dev image

* fix webpack in supervisor-frontend

* bump webpack to 5.88.2 in dashboard

* streamline webpack versions

* Fix craco config

* streamline eslint versions

* Update eslint config and disable for now

* Enable eslint again

* Update vscode-jsonrpc for browser implementation

* Polyfill setimmeadiate

* Remove NODE_OPTIONS env var from supervisor front end scripts

* Fix css

* Fix css 2

* Fix checkboxchecked

* Add comment

* Fix yarn.lock

---------

Co-authored-by: Jean Pierre <jeanp413@hotmail.com>
2023-08-24 13:41:50 +02:00
Thomas Schubart
55c9165c0d
Support managed redis (#18581)
* [installer] Specify redis configuration for server

* [server] Configure Redis authentication

* [wsman-bridge] Configure Redis authentication

* [wsman-bridge] Add redis credentials to environment
2023-08-24 10:30:50 +02:00
Sven Efftinge
9b4cc8507d
[server] handle uncaught exception from grpc-js (#18437) 2023-08-04 19:25:29 +08:00
Alex Tugarev
436130bf26
Fix listeners leaks – EXP-206 (#18321)
* [server] fix leaking prebuild update listeners

- check for client be defined in gitpod-server-impl
- add prebuild subscribers only if the thing is not disposed yet
   - this might have happened frequently on very short living workspacePageClose events

* [server] fix metric registration

don't override default registry, which breaks other metrics.

* fixup for getMetricsAsArray

* [server] bump prom-client
2023-08-02 18:28:27 +08:00
Milan Pavlik
66df7ffb04
[db] Move redis publisher to gitpod-db WEB-621 (#18275)
* [db] Move redis publisher to gitpod-db

* Fix

* fix
2023-07-25 19:24:41 +08:00
Sven Efftinge
78e607d26b
[server] bump js target (#18334) 2023-07-25 16:50:41 +08:00
Milan Pavlik
bd9c0de53f
[gitpod-db] Include redis client to share WEB-621 (#18264)
* [gitpod-db] Include redis client to share

* fix

* fix

* fix
2023-07-25 15:47:41 +08:00
Milan Pavlik
a285a1c732
Remove gitpod-messagebus component WEB-618 (#18269)
* [server] Publish events during workspace starter

* retest

* fix

* fix

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* [server] Publish events during workspace starter

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* fix

* Remove gitpod-messagebus component
2023-07-24 21:49:40 +08:00
Milan Pavlik
a5b4a66e0f
[server, ws-man-bridge] Remove messagebus WEB-618 (#18238)
* [server] Publish events during workspace starter

* retest

* fix

* fix

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* [server] Broadcast prebuild updates from redis

* [server] Broadcast headless updates to subscribers

* Fix

* retest

* [server] Publish events during workspace starter

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* [server] Remove messagebus

* remove ws-man-bridge messagebus

* fix

* fix
2023-07-24 18:04:40 +08:00
Milan Pavlik
ed5191b55b
[ws-man-bridge] Refactor constructors and cleanup deps (#18263)
* [ws-man-bridge] Refactor constructors and cleanup deps

* fix

* Fix
2023-07-13 18:00:29 +08:00
Milan Pavlik
34002592b1
[server] Broadcast headless updates to subscribers WEB-598, WEB-600 (#18215)
* [server] Publish events during workspace starter

* retest

* fix

* fix

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* [server] Broadcast prebuild updates from redis

* [server] Broadcast headless updates to subscribers

* Fix

* Fix

* Fix

* fix

* fix

* retest
2023-07-12 22:59:29 +08:00
Milan Pavlik
0d745ca20b
[server] Publish events in workspace starter - WEB-622 (#18234)
* [server] Publish events during workspace starter

* add copy comment

* retest

* fix

* fix

* fix

* fix

* fix

* retest

* retest

* try?
2023-07-12 20:22:28 +08:00
Milan Pavlik
06916a12a0
[server] Broadcast prebuild updates from redis WEB-599, WEB-593 (#18214)
* retest

* retest

* [server] Broadcast prebuild updates from redis

* register

* fix

* Fix

* retest
2023-07-11 16:22:27 +08:00
Milan Pavlik
a095ddb3a2
[ws-man-bridge] Publish ownerID for WorkspaceInstance updates (#18211) 2023-07-10 21:58:27 +08:00
Milan Pavlik
8fd37fc8b7
[ws-man-bridge] Fix metric label reporting (#18197) 2023-07-07 17:35:24 +08:00
Sven Efftinge
02f976edb5
[ws-manager-bridge] fix path to entry point (#18175)
* [ws-manager-bridge] fix path to entry point

* Adjust docker start CMD

---------

Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
2023-07-05 19:39:22 +08:00
Sven Efftinge
075e14c47f
[build] enabled some eslint rules (#18165) 2023-07-04 22:32:21 +08:00
Milan Pavlik
56d95d7fab
[ws-man-bridge] Publish ws-instance-update - WEB-592 (#18162)
* [ws-man-bridge] Publish ws-instance-update

* tests

* fix

* fix
2023-07-04 21:51:21 +08:00
Milan Pavlik
dfc1020570
[ws-man-bridge] Rename metric label to workspace-instance (#18161) 2023-07-04 21:05:21 +08:00
Sven Efftinge
3f86e66f14
[server] reduce build time (#18160)
* [server] reduce build time

Include the db tests in the regular `yarn test` script.
Also remove `prepare` as it would duplicate the build.

* [build] remove `prepare`task

it makes the our build run `yarn clean && yarn build` twice per packge.
2023-07-04 21:00:21 +08:00
Sven Efftinge
d7aa23ed03
[server, ws-bridge, protocol, db] added eslint (#18147) 2023-07-04 20:21:21 +08:00
Milan Pavlik
5ee1dbd9ec
[ws-man-bridge] Setup noop publisher WEB-595 (#18156)
* [ws-man-bridge] Setup redis

* fix

* fix

* [ws-man-bridge] Setup noop publisher

* fix

* fix

* fix
2023-07-04 20:11:21 +08:00
Milan Pavlik
4cb8fd08b4
[ws-man-bridge] Setup redis WEB-595 (#18155)
* [ws-man-bridge] Setup redis

* fix

* fix

* fix
2023-07-04 18:01:21 +08:00
Gero Posmyk-Leinemann
a10b412446
[server, bridge] Small messagebus cleanup (#18153) 2023-07-04 16:41:21 +08:00
Sven Efftinge
0aff5b1c77
[server] perm-check and test project service (#18111) 2023-07-03 23:34:20 +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
Milan Pavlik
2933eeef54
Upgrade ts-node to 10.4 WEB-575, WEB-576 (#18102)
* Upgrade ts-node to 10.4

* [server] Make typings work in workspace AND leeway

* [leeway] Increase node heap size to 8GB

---------

Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
2023-06-30 20:26:48 +08:00
Milan Pavlik
0d0ab3aef3
[ws-man-bridge] Remove EE (#18090)
* [ws-man-bridge] Remove EE

* fix

* fix
2023-06-28 20:11:46 +08:00
Milan Pavlik
3b6472b158
[ws-man-bridge] Use chainguard image WEB-576 (#18084)
* [ws-man-bridge] Use chainguard image

* fix

* retest

* Fix

* fix?

* fix
2023-06-28 18:32:46 +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
9fddc74ad4
[wsman-bridge] Remove worksplace classes feature flag (#17952) 2023-06-15 22:26:06 +08:00
Sven Efftinge
fb3f55ad51
[db/server] cache the user object using redis (#17906) 2023-06-14 13:50:04 +08:00
Anton Kosyakov
9e9b4c63ba
fix IDE-133: enrich workspace events (#17794)
In order to avoid relying on DB:
- align with DB timestamps
- add info about stopping time, timeout and conditions to stopped event
2023-06-13 19:21:03 +08:00
Huiwen
306ac3bf98
Add missing protocol property IDE-153 (#17890)
* Add missing protocol property

* 💄
2023-06-09 23:44:00 +08:00
Pudong
176393a0c8
Add support to forward https protocol port (#17644)
* add support to forward https protocol port

* Update components/ws-proxy/pkg/proxy/routes.go

Co-authored-by: Kyle Brennan <kyle@gitpod.io>

---------

Co-authored-by: Kyle Brennan <kyle@gitpod.io>
2023-05-19 15:22:53 +08:00
Gero Posmyk-Leinemann
0095dcefd8
[prometheus] Remove references to db_write (#17041) 2023-03-28 20:49:26 +02:00
Milan Pavlik
a5df1cb005
Revert "Remove workspace_classes_backend feature flag (#16825)" (#16854)
This reverts commit afb724660182fcd480dc2e7fc06c45291b0023ad.
2023-03-15 10:34:07 +01:00
Milan Pavlik
5bcd92c36f
[ws-man-bridge] Remove application_cluster (#16840)
* [ws-man-bridge] Renmove application_cluster

* Fix
2023-03-15 10:20:07 +01:00
Milan Pavlik
0e2ec6cd24
Remove usage of applicationCluster column from WorkspaceCluster (#16824)
* Remove usage of applicationCluster column from WorkspaceCluster

* fix

* Fix

* fix

* Fix

* fix

* Fix

* fix

* Fix

* Fix

* fix
2023-03-14 13:13:07 +01:00
Milan Pavlik
f4a06b818c
[ws-man-bridge] Fix leftover imports (#16827) 2023-03-13 17:11:49 +01:00
Milan Pavlik
afb7246601
Remove workspace_classes_backend feature flag (#16825) 2023-03-13 15:27:49 +01:00
Milan Pavlik
805beca614
[ws-man-bridge] Correct name for Workspace Instance Controller var (#16795)
* [ws-man-bridge] Correct name for Workspac Instance Controller var

* fix

* Fix
2023-03-10 10:37:45 +01:00
Milan Pavlik
5f3dfe2699
[ws-man-bridge-api] Always set govern to true (#16631)
* [ws-man-bridge-api] Always set govern to true

* fix

* Fix
2023-03-08 14:56:05 +01:00