172 Commits

Author SHA1 Message Date
Gero Posmyk-Leinemann
84b0fbee7a [server, et al] Remove PrebuildStatusMaintainer and subsequent unused code 2022-01-07 15:05:01 +01:00
Filip Troníček
b3fa44b7c1 Make analytic event casing consistent 2022-01-05 17:32:59 +01:00
Gero Posmyk-Leinemann
0189125c45 [protocol] Rename TraceContext.log* to TraceContext.set* 2021-12-10 14:26:35 +01:00
Mads Hartmann
28bf0e6541 component/gitpod-protocol/tracing: Add version tags to all spans
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2021-12-08 11:30:33 +01:00
Gero Posmyk-Leinemann
56874b6a0f [server, et. al] Add repeat(cb, ms) as replacement for setInterval, and use it across meta components 2021-12-07 18:43:33 +01:00
Christian Weichel
e1f11835e5 [ws-manager-bridge] Support forced cluster dereg 2021-11-18 13:00:15 +01:00
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
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
Jan Keromnes
bad83721b7 [server][dashboard] Allow cancelling Prebuilds 2021-10-18 05:12:04 -03:00
Christian Weichel
9605e0b386 [wsman-bridge] Introduce admission preferences 2021-10-14 06:00:00 -03:00
Christian Weichel
8efac73cba [prow] Add labels to OWNERS files 2021-10-12 09:01:58 -03:00
Christian Weichel
ab20a12624 [ws-manager-bridge] Properly provide cluster metrics 2021-09-28 03:30:45 -03:00
Jan Keromnes
e416561243 [ws-manager-bridge] Also copy status.conditions.headlessTaskFailed into WorkspaceInstanceConditions 2021-09-28 03:28:45 -03:00
Gero Posmyk-Leinemann
15fcc0ee42 [protocol] Log.setLogLevel 2021-09-20 11:48:45 -03:00
Christian Weichel
b031cf3296 [ws-manager-bridge] Add status update metric 2021-09-20 04:57:45 -03:00
Gero Posmyk-Leinemann
5b6f33fc8a [ws-manager-bridge] Logging hygiene 2021-09-20 04:29:45 -03:00
Manuel Alejandro de Brito Fontes
a1dc90b927 Update node prometheus library to 13.2.0 2021-09-17 12:32:42 -03:00
Christian Weichel
0add786e81 [ws-manager-bridge] Add registered cluster metrics 2021-09-17 08:34:42 -03:00
Christian Weichel
4e59ceeb9f [ws-manager-bridge] Add kube-rbac-proxy 2021-09-17 08:34:42 -03:00
Manuel Alejandro de Brito Fontes
c7ba93c52e Configure grpc client ChannelOptions 2021-09-02 09:09:31 +02:00
Alex Tugarev
46feeac4c9 [projects] Add Prebuild Events 2021-09-01 04:27:30 -03:00
Manuel Alejandro de Brito Fontes
77ef3cae47 [ws-manager-bridge] Remove unused grpc dependency 2021-08-31 09:20:30 -03:00
Yauhen Pyl
a6d7ed4a5f Missed semicolon 2021-08-30 02:34:28 -03:00
Manuel Alejandro de Brito Fontes
1545241295 [ws-manager-bridge] Sync node grpc options with go counterpart 2021-08-23 18:05:22 +02:00
Simon Emms
a169bc0239 [workspace]: update force-stop logs 2021-08-23 12:53:22 +02:00
Sven Efftinge
f0fab5bcf9 [ws-man-bridge] don't update stopped workspaces
back to stopping.
2021-08-17 10:04:13 +02:00
Simon Emms
f35e762354 [workspace]: add force-stop check on stopping workspaces
Since #4910 stopped counting "stopping" workspaces for billing purposes,
any workspace caught in a "stopping" phase would never be force-stopped.
This adds a conditional "includeStopping" boolean (defaulting to `false`)
to the DB implementation and the meta-instance-controller simply includes
that phase in the search.

It was discovered that ~200 workspaces were caught in this phase (90%
prebuilds) so this phase is necessary to force-stop.
2021-08-13 13:12:12 +02:00
Christian Weichel
871f550d80 [ws-manager-bridge] Remove VERSION
logging is not a good enough reason to restart bridge so often
2021-08-12 18:00:12 +02:00
Christian Weichel
cce91040ec [ws-manager-bridge] Set stopping/stopped time
when forcing the phase from preparing or unknown
2021-08-06 16:32:05 +02:00
Simon Emms
031111f700 fix(workspace): force-stop workspaces stuck in a bad state 2021-08-06 13:19:05 +02:00
Christian Weichel
7df1a3ff1a [ws-manager-bridge] Don't interpret failed tasks as aborted prebuild 2021-07-29 10:12:32 +02:00
Christian Weichel
140c897d0d Remove old headless log infrastructure 2021-07-28 12:33:31 +02:00
Gero Posmyk-Leinemann
be64af383f [db, bridge] Review comments 2021-07-20 11:31:24 +02:00
Christian Weichel
d63f0f4585 [bridge] Set stoppingTime when workspace is stopping
there's no need to include the time our workspaces take to stop into account
when computing workspace runtime (which is accounting relevant).
2021-07-20 11:31:24 +02:00
Gero Posmyk-Leinemann
64289cee1f [bridge] Fix removal of "has-permission" admission constraint 2021-07-15 13:32:12 +02:00
Christian Weichel
c8eb943822 [prow] Add OWNERS files 2021-07-15 11:29:47 +02:00
Christian Weichel
53bc9e96e3 [server] Add trackEvent to support dashboard analytics 2021-07-09 10:02:02 +02:00
Gero Posmyk-Leinemann
8f0c24af66 [ws-manager, supervisor, bridge] Prebuild workspaces are done when their container stops 2021-07-08 09:27:34 +02:00
Mike Nikles
334c135d50 Spell "instance" correctly. 2021-07-08 09:01:34 +02:00
Christian Weichel
eaa6e80038 [build] Tag images with commit hash instead of leeway pkg version 2021-06-16 18:34:51 +02:00
Christian Weichel
f9a2ae3a45 [versions] Produce helm chart compatible versions file 2021-06-13 19:22:45 +02:00
Autofix
e8762f258e Autofix: trailing-spaces 2021-06-09 12:52:57 +02:00
Alex Tugarev
7a7793c878 bump dependencies
[server/probot] update probot and other dependencies

fix authorized API calls for the GH App.
2021-06-08 09:45:10 +02:00
Christian Weichel
015b38ff06 [build] Produce version manifest 2021-06-03 15:17:16 +02:00
Gero Posmyk-Leinemann
1ca6b44d06 [analytics] Fix segment assertion error 2021-05-26 14:40:41 +02:00
Christian Weichel
c81c348070 [PWC] Prevent deregistering non-empty cluster 2021-05-11 07:54:52 +02:00
Christian Weichel
61c466b8e0 [gpctl] List static workspace cluster, too 2021-05-07 08:23:08 +02:00
Christian Weichel
83cc11aee3 [pwc] Add admission constraints to gpctl 2021-05-07 08:23:08 +02:00
Christian Weichel
d063fb7153 [pwc] Support admission constraints
when selecting a workspace cluster for starting a workspace.
2021-05-07 08:23:08 +02:00
Christian Weichel
129816f619 [server] Add analytics support 2021-05-06 16:21:40 +02:00