149 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
mustard
b6c243b149
[JBGateway] connection-based client side additional heartbeat (#20319)
* [supervisor-api] Protobuf update and code generating

* [supervisor] implement `sendHeartbeat` method

* [JBGW] update jetbrains gateway (WIP)

* add thinClient a condition for additional heartbeat

* Update checkbox description
2024-11-05 11:50:02 -05:00
Filip Troníček
a4c1a319cf
Implement gp tasks stop --force-success (#20067)
* Implement `gp tasks stop --force-success`

* Fix potential race
2024-07-26 22:21:48 +02:00
Filip Troníček
b94aec1263
Integrate reading from log files into Supervisor's terminal.Listen (#19863)
* Integrate reading from log files into Supervisor's `terminal.Listen`

* Try with GetOutput

* do not bubble down and fail

* remove debug stuff

* definitions and impl of `task.proto`

* codegen

* update endpoint

* Implement `ListenToOutput`

* Try with one API (🤞)

* stream beginning from where we left off

* Do not watch closed tasks

* move closing of worker channel

* simplify one-off reading

* codegen

* consolidate for loops, optimize watching

* remove extra line

It makes sense to group the offset definition with the function below it

* Gpl/ft/supervisor-listen-files (#19878)

* commit step 1

* 2nd

* Changes from joint code review

---------

Co-authored-by: Filip Troníček <filip@gitpod.io>

* Remove year bumps

---------

Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
2024-06-12 21:37: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
Manuel Alejandro de Brito Fontes
5992b0f614
Update go dependencies (#19577)
* Update go dependencies

* Update S3

* Caddy plugins cannot use 1.22

* Update controller runtime signatures

* Update webhook suite test

* Update IPFS signatures

* Update go modules

* Update ipfs-cluster to v1.0.8

* Fix node-labeler build

* Fix IPFS CID parsing

* Update ipfs-cluster version

* Update controller-runtime signature

* Update statefulset signature

* Disable controller-runtime metrics

* Add comments
2024-03-26 20:55:35 +01:00
Huiwen
a7bd49fb34
[supervisor] Remove default image fetch to improve IDE startup performance (#18993)
* [supervisor] Remove default image fetch to improve IDE startup performance

* fix build

* address feedback
2023-11-02 08:30:40 +02:00
Anton Kosyakov
cbc308305c
[ssh] flexible auth user (#18880) 2023-10-06 14:52:15 +03:00
Manuel Alejandro de Brito Fontes
8ef82ff356
Update go modules to 1.21 (#18805) 2023-09-26 17:52:05 +03:00
Huiwen
04e576fbe0
Add default workspace image to org setting (#18723)
* Add default workspace image to org setting

* [db] add migration

* fixup

* [dashboard] add org default image settings

* fixup

* dashboard fixup

* Add server image test TODO

* [server] assign global workspace default image

* [dashboard] allow to submit empty string (will fallback to global default)

* [gp-cli] support gp validate with default image

* [dashboard] save default image

* fixup

* fixup

* [gp-cli] improve output

* [gp-cli] improve gp init

* [gp-cli] gp validate compatibility

* Update components/dashboard/src/teams/TeamSettings.tsx

Co-authored-by: Filip Troníček <filip@gitpod.io>

* Remove org id / get org settings in supervisor

* Remove `WorkspaceConfigContext`

* Add unit tests

* Rename to `DefaultWorkspaceImage`

* Update components/dashboard/src/teams/TeamSettings.tsx

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>

* Add empty image fallback to supervisor

* Fix default workspace image setup

* Update org settings fields

* fixup

* Allow empty image to set to default one

---------

Co-authored-by: Filip Troníček <filip@gitpod.io>
Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
2023-09-19 14:51:58 +02:00
Sven Efftinge
841b616c34
[spicedb] fix stale connection handling (#18631) 2023-09-01 12:53:58 +02:00
Anton Kosyakov
dda04f50a8
[supervisor-api] don't generate java typings separately (#18426)
to avoid ditry changes
2023-08-03 17:15:28 +08:00
Anton Kosyakov
8f85d82009
[supervisor] expose control service over REST (#18411)
* [supervisor] expose control service over REST

* [supervisor] expose host key on create key pair

to let clients to do fingerpring checking
2023-08-02 23:01:28 +08:00
Anton Kosyakov
8a529c132c
[supervisor] add http binding for create private ssh keys (#18405)
There is not grcp web client for Java.
I would like to use plain http request to resolve it
in order to establish SSH over Web Socket tunnel.
2023-08-02 17:57:27 +08:00
Anton Kosyakov
f91100838f
[supervisor] commit java typings (#18404)
to unblock local development
2023-08-02 16:34:28 +08:00
Manuel Alejandro de Brito Fontes
54c2040632
Update go modules to 1.20 (#18360) 2023-07-27 22:24:29 +08: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
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
Pudong
b465d06617
Uniformly use proxy to get the configuration of configcat (#16942)
* Uniformly use proxy to get the configuration of configcat

* Add configcat enabled in workspace info api

* enabled configcat in ide-service
2023-03-23 11:01:15 +01:00
Anton Kosyakov
affaa319ca
[jb] bump up major platform version of backend plugin (#16913) 2023-03-21 09:22:13 +01:00
Anton Kosyakov
ad26ca1a57
[rebuild] fix 16535: auto manage windows (#16561) 2023-02-24 15:52:54 +01:00
Anton Kosyakov
9b3f8a2cc4 gp rebuild with isolated debug workspace
Co-authored-by: Pudong Zheng <tianshi8650@gmail.com>
2023-02-06 14:47:44 +01:00
Andrea Falzetti
1c5296e0f5 gitpod-cli: call segement directly for analytics 2023-01-18 18:40:26 +01:00
Victor Nogueira
0c06ac63be Git-ignore the proto-generated Java files from Supervisor API 2022-12-22 08:43:31 -03:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Victor Nogueira
6dfd3f7003 Upgrade Gradle Wrapper to v7.5.1 in all components
The process of upgrading Gradle Wrapper is described here: https://docs.gradle.org/7.5.1/userguide/gradle_wrapper.html#sec:upgrading_wrapper
2022-11-08 10:18:38 +01:00
Manuel Alejandro de Brito Fontes
d5eb5815b5 Update to 1.19 2022-10-04 15:17:22 +02:00
Manuel Alejandro de Brito Fontes
000cadead8 Update grpc code 2022-10-04 15:17:22 +02:00
Manuel Alejandro de Brito Fontes
3f6cbd07f1 Update go dependencies 2022-10-04 15:17:22 +02:00
Christian Weichel
174a09222f Revert "Run go work sync"
This reverts commit 6b23167e09f74062b31150d4044a8fe7cacbc34b.
2022-09-29 05:28:29 +02:00
Christian Weichel
6b23167e09 Run go work sync 2022-09-28 08:45:28 +02:00
Jean Pierre
0acc0b30ec [supervisor] Add PortsStatus::on_open and deprecate ExposedPortInfo::on_exposed 2022-09-22 12:29:23 +02:00
Anton Kosyakov
3c6c85fc72 jb: backend plugin hot deploy 2022-09-12 11:21:13 +02:00
mustard
95fa4439e5 [gp-cli] provide workspace class info in top command 2022-08-30 10:25:14 +02:00
Andrea Falzetti
131aa358ad feat(supervisor): add resource status severity 2022-08-17 13:35:33 +02:00
Victor Nogueira
b60946ec96 Fix Java projects configs 2022-08-11 21:16:28 +02:00
Victor Nogueira
232e85a0d7 Upgrade Gradle Wrapper for compatibility with Java 17 2022-08-10 07:48:54 +02:00
Manuel Alejandro de Brito Fontes
6efe212447 Update sigs.k8s.io/e2e-framework to v0.0.7 2022-06-07 15:29:17 +05:30
Anton Kosyakov
52e422189c [supervisor] fix #9521: add resources endpoint respecting cgroup v1 2022-05-18 13:06:32 +05:30
Jan Keromnes
8ce8f7a5d0 [protoc] Automatically remove trailing spaces in generated java files 2022-05-09 12:42:24 +05:30
Manuel Alejandro de Brito Fontes
1b88c8058e Update go modules 2022-04-25 15:52:37 +05:30
Manuel Alejandro de Brito Fontes
ab0d69cfea Update generated code 2022-04-25 15:52:37 +05:30
Manuel Alejandro de Brito Fontes
cf1ac80c70 Add new go modules (due to 1.18) 2022-04-25 15:52:37 +05:30
mustard
dea32b3119 [supervisor-api] introduce new endpoint to set active client 2022-04-21 18:52:33 +05:30
Anton Kosyakov
0b6c4273bb [supervisor]: add ide-dekstop-ready phase to status_rendered analyitcs event
To track whether a user seen loading screen after configuring desktop IDE.
2022-02-25 16:51:05 +05:30
Mads Hartmann
dd8b5b728a Remove OWNERS related files
Fixes https://github.com/gitpod-io/ops/issues/844
2022-02-08 09:15:30 +01:00
Anton Kosyakov
bc75f05bba increase gradle timeouts to stabilize builds 2022-02-01 10:23:23 +01:00
Anton Kosyakov
615e8a0bbc fixing JB backend plugin
- remove dependencies, since JB backend already has Kotling dependencies, and adding other version leads to runtime incompatibilities
- fix memory leak of grpc message channels
- use Kotlin koroutines instead of dedicated thread for heartbeating
- implement web socket reconnection handling for Gitpod server connection
- pin java target to v.11 in all projects
2022-01-27 10:15:19 +01:00