93 Commits

Author SHA1 Message Date
Filip Troníček
19d8a73de3
Don't report supervisor_check_ready unless the FF is enabled (#20292) 2024-10-14 12:11:11 -04:00
Filip Troníček
8e8a5db974
[PAPI] Retry steams upon not receiving data for 10 seconds (#20172)
* [PAPI] Retry steams upon not receiving data for 10 seconds

* [PAPI] Retry steams upon not receiving data for 10 seconds (#20176)

* debug message

* Do not listen for ws updates globally and do not timeout for those calls

* Timeout signal as a getter

* use ff for disablement

* accesor fn => getter

* send empty initial data in papi for global ws watch requests

---------

Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
2024-09-06 04:31:49 -04:00
Gero Posmyk-Leinemann
414ee45983
[supervisor] Frontend: re-try + track "checkReady" (#20175)
* [ws-proxy] Log whenever we can't connect to an upstream

* [protocol] Fix linter error

* [supervisor] Frontend: re-connect every 5s + track behavior

* [supervisor] Frontend: Guard connection re-try with feature flag "supervisor_check_ready_retry"
2024-09-05 10:54:48 -04:00
Filip Troníček
acae8deec5
Lower fetch priority of metrics (#20158)
* Minor improvements to metrics requests

* Fix builds
2024-08-30 11:46:43 -04:00
Filip Troníček
2f45ecdb50
Deal with clipboard permission issues (#19687)
* Deal with clipboard permission issues

* Fix test types

* fix permission name
2024-05-02 15:40:42 +08:00
Jean Pierre
e6bf79e5b7
Revert "Revert "Redirect on workspace stop" (#19323)" (#19325)
* Revert "Revert "Redirect on workspace stop" (#19323)"

This reverts commit 827a1a03127bd2ab24ce2503247a19b48326fca5.

* Fix

* Fix

* 💄
2024-01-18 01:06:56 +02:00
Sven Efftinge
827a1a0312
Revert "Redirect on workspace stop" (#19323) 2024-01-15 11:46:52 +02:00
Jean Pierre
10648e17f2
Redirect on workspace stop (#19314)
* Redirect to custom url when workspace stops

* Redirect to url when workspace stops

* Address feedback

* 💄

* 💄

* 💄

* 💄

* 💄
2024-01-12 16:33:49 +02:00
Anton Kosyakov
2f14d7a2fe
decouple gitpod-protocol from public-api (#19151)
to prevent rebuilding of components which dependent on gitpod-protocol, but not public-api on an API change
2023-11-29 10:36:06 +02:00
Huiwen
35d47fef6b
Fix incorrect start workspace url (#18934) 2023-10-17 14:43:25 +03:00
Jean Pierre
3b53a0ac4d
Update connect libraries (#18886)
* Update connect lib

* Update protoc-gen-connect-es

* Fix
2023-10-09 22:49:17 +03:00
Anton Kosyakov
34443431b1
add ws client metrics (#18773) 2023-09-22 16:56:01 +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
Jean Pierre
e22f6bee12
Update to webpack 5 in supervisor frontend (#18552)
* Update to webpack 5 in supervisor frontend

* Fix

* Fix
2023-08-22 16:53:48 +02:00
Anton Kosyakov
8f1640ed0b
[supervisor-frontend] fix metrics reporting (#17361)
* [supervisor-frontend] fix metrics reporting

when workspace URL contains search, hash or path

* ensure that GitpodHostUrl always trim search, hash, path

+ remove unused arg type and function
2023-04-28 02:55:36 +08:00
Filip Troníček
83e56d54d5
Add the Browser Terminal as an IDE (#17196)
* Add xterm as an IDE

* Move the IDE to our GCP registry 🎉

* Also resolve the source code commit for IDEs in `ide-service`

* Add feature flag

* Xterm => terminal

* Revert "Also resolve the source code commit for IDEs in `ide-service`"

This reverts commit 06aee00959c24469e6fae904394badd4660dd97b.

* always add `<iframe>` to the top of `<body>`

* Add the next non-jb IDE :)

* Add latest image

* Filter out IDEs on the backend (#17324)

* Address review comments

Never mutate `s.ideConfig` itself and make an in-memory copy of it to not use it every time.

* Pre-compute outside

* Stringify config instead of options
2023-04-24 19:42:45 +08:00
Pudong
2ff2d88ed0
[supervisor-frontend] only wait supervisor close in debug workspace (#16700)
* [supervisor-frontend] only wait supervisor close in debug workspace

* [supervisor-frontend] add workspace closed condition
2023-03-07 16:35:05 +01:00
Anton Kosyakov
ad26ca1a57
[rebuild] fix 16535: auto manage windows (#16561) 2023-02-24 15:52:54 +01:00
Pudong Zheng
232a881cb8 [supervisor-frontend] only send heartbeat when logged user is owner 2023-02-17 18:20:22 +01:00
Huiwen
b16eae0e1d [supervisor-frontend] implement encryption for code 2023-02-16 14:44:21 +01:00
Huiwen
901dcd26a8 [supervisor-frontend] add open desktop ide entrypoint for browser code 2023-02-09 13:26:14 +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
Anton Kosyakov
41a67f17cf clean up after https://github.com/gitpod-io/gitpod/pull/15895
removed unused code
2023-01-30 15:56:37 +01:00
Anton Kosyakov
674ad1c978 polish IDEFrontendDashboardService
- add docs and security notes
- remove imlementation methods from the interface
- fix a regression with opening desktop IDEs on the workspace origin
- allow to access the interface from other locations for the same workspace, i.e. for dev and debug modes
2023-01-20 11:12:28 +01:00
Jean Pierre
40859b1d24 Revert "Partially revert "[supervisor-frontend] implement frontend dashboard client""
This reverts commit 77d5ba574a0a2ece941d4244c4dd0c3dac5385a8.
2023-01-18 16:21:26 +01:00
Jean Pierre
77d5ba574a Partially revert "[supervisor-frontend] implement frontend dashboard client"
This reverts commit 151ab80e50faaf1de2ca1a320cf0ad68d7a16f65 except global.ts changes so we just cast to any for now
2023-01-17 20:06:25 +01:00
Huiwen
151ab80e50 [supervisor-frontend] implement frontend dashboard client
Co-authored-by: mustard <mhqnwt@gmail.com>
Co-authored-by: Jean Pierre <jeanp413@hotmail.com>
2023-01-17 17:42:25 +01:00
Huiwen
f436cb7ae7 [supervisor-frontend] add user id for browser code
Co-authored-by: mustard <mhqnwt@gmail.com>
Co-authored-by: Jean Pierre <jeanp413@hotmail.com>
2023-01-10 09:10:49 +01:00
Anton Kosyakov
697696029b [gp-run] experimental workspace config debug mode
Co-authored-by: Anton Kosyakov <anton@gitpod.io>
Co-authored-by: Victor Nogueira <victor@gitpod.io>
Co-authored-by: Andrea Falzetti <andrea@gitpod.io>
2023-01-09 06:32:48 +01:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Anton Kosyakov
6c943e72a9 fix #14782: singleton SupervisorServiceClient 2022-12-02 09:57:01 -03:00
Filip Troníček
ddfec3a834 [code browser]: Measure all sessions vs errored sessions
Move remainder of IDE metrics to under OpenVSCode Server workbench

Co-authored-by: Anton Kosyakov <anton@gitpod.io>
Co-authored-by: mustard <mhqnwt@gmail.com>
2022-09-16 08:46:17 +02:00
Pudong Zheng
22c71c5391 [supervisor-frontend] use properties to store error name and message 2022-09-15 14:23:16 +02:00
Pudong Zheng
6d643ea92a [supervisor-frontend] collection loaderror 2022-09-15 14:23:16 +02:00
Pudong Zheng
fc9a936a27 [supervisor-frontend] add version commit 2022-09-15 14:23:16 +02:00
Pudong Zheng
3364a06b1e [supervisor-frontend] add error reporting 2022-09-15 14:23:16 +02:00
Anton Kosyakov
dc9fbe40a7 [code-browser] extensions observability 2022-09-05 12:35:20 +02:00
Filip Troníček
cbe5665201 Capture document errors in supervisor frontend 2022-08-26 18:35:11 +02:00
Anton Kosyakov
81c98f8f54 [supervisor-frontend] redirect to desktop IDE on gitpod.io domain 2022-08-15 15:26:32 +02:00
Pudong Zheng
d61aab3c07 [supervisor-frontend] add error counter and client counter
Co-authored-by: Huiwen <mhqnwt@gmail.com>
2022-08-05 07:52:49 -03:00
mustard
c4ce50811c [supervisor-frontend] use beacon to send workspacePageClose to avoid data loss 2022-08-05 01:08:49 -03:00
mustard
c819f00952 [supervisor] add browser code telemetry tracking 2022-07-06 01:07:53 +05:30
mustard
490419b99d [supervisor-frontend] add track for sent closed heartbeat 2022-06-28 18:35:36 +05:30
mustard
43a41f2a65 Redirect web page when instance changed 2022-04-06 22:31:20 +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
Gero Posmyk-Leinemann
c0bbf911db [dashboard, ws-proxy, supervisor] Break potential DDOS cycle by disabling autostart
When triggered:
     a) inFrame or
     b) when redirect from IDE url (by ws-proxy)
2022-02-14 11:06:35 +01:00
Anton Kosyakov
84a496d03c [supervisor] resume hearbeating if window unload was cancelled 2022-01-27 10:15:19 +01:00
Anton Kosyakov
f3ed7e4a91 [ide] desktop client installation steps 2022-01-24 13:32:16 +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
Cornelius A. Ludmann
e662de1298 [supervisor] Add desktop IDE frontend support
/werft with-clean-slate-deployment
2021-10-27 12:59:04 +02:00