79 Commits

Author SHA1 Message Date
iQQBot
301f1b73da
upgrade golang to 1.24.3 (#20846)
* upgrade golang to 1.24.3

* fix caddy

* update go debug

* fix non-constant format string in call to fmt Format method
2025-05-28 13:32:00 -04:00
Gero Posmyk-Leinemann
c095d11eab
[supervisor] init: Add logging around termination (#20380) 2024-11-21 03:20:59 -05:00
mustard
825fb445e7
Reapply "[supervisor] set pod failure reason when supervisor is reaped" (#20327)
* Revert "[supervisor] revert recent changes to reduce frequency of `supervisor run error with unexpected exit code` (#20325)"

This reverts commit 3f066ce935d282d20c3098fbc6c7f6d2d5b1f152.

* Ignore expected case: pod kill / process kill by supervisor

* Debug commit

* fix

* Revert "Debug commit"

This reverts commit 1473e3d147c5f20e65f0a44a67d48dfd8bf9b258.
2024-10-30 15:05:56 -04:00
Kyle Brennan
3f066ce935
[supervisor] revert recent changes to reduce frequency of supervisor run error with unexpected exit code (#20325)
* Revert "[supervisor] switch lib back to use upstream `ramr/go-reaper` (#20322)"

This reverts commit 9442b52b9a1ade40857d16c65dca7993703bc5d9.

* Revert "[supervisor] set pod failure reason when supervisor is reaped (#20318)"

This reverts commit 9e8da3bdd041b1a42fd8d2ef1d732907bb0630c7.
2024-10-28 23:14:54 -04:00
mustard
9442b52b9a
[supervisor] switch lib back to use upstream ramr/go-reaper (#20322) 2024-10-28 05:53:54 -04:00
mustard
9e8da3bdd0
[supervisor] set pod failure reason when supervisor is reaped (#20318)
* [supervisor] set pod failed reason when supervisor been reap

* Debug commit

* upgrade pkg

* Revert "Debug commit"

This reverts commit 1b6bde80c410034b62e235438b8f7262fa7f63b6.
2024-10-25 09:04:55 -04:00
Huiwen
92fccc81ef
Build - make backend-plugin readiness a condition of JetBrains IDEs readiness (#19710)
* Make backend-plugin readiness a condition of IDE readiness

* Add compatibility to `2022.3.3`

* fixup

* Observe ide readiness as Inf after 11 seconds

* shutdown after 10 minutes

* fix hot-deploy.sh

* Add shutdown reason

* address feedback

* Add Feature Flags

* fixup

* fix

* Add one line log

* address feedback
2024-05-14 18:02:52 +08:00
Anton Kosyakov
40c39f5312
Revert "Relax assumptions in supervisor (#18782)" (#18857)
This reverts commit 9a38b607055780fa7b2cd61c1379143d6c7b3715.
2023-10-02 23:00:11 +03:00
Christian Weichel
9a38b60705
Relax assumptions in supervisor (#18782)
* [supervisor] Make UID/GID configurable

* Support content initializer as env var

* Make workspace runtime explicit

* Make linux user configurable for Git operations

* Don't assume /home/gitpod

* Fix unittest

* Fix wsdaemon
2023-09-27 17:32:06 +03:00
Anton Kosyakov
d4592d44d4
fix EXP-19: allow access to supervisor logs within a workspace (#18322) 2023-07-20 22:33:36 +08:00
Anton Kosyakov
fdb7e5ea16
validate jb warmup (#18050)
* [jb] move warmup tasks to integration

* move composition of ide prebuild tasks in supervisor
2023-06-30 14:51:48 +08:00
Jean Pierre
6652c98a1a
Add WorkspaceUpdates method (#17728)
* Add WorkspaceUpdates method

* Replace InstanceUpdates
2023-05-30 23:56:04 +08:00
Pudong Zheng
7197187149 supervisor: only write /dev/termination-log in init or run command 2023-02-10 16:13:15 +01:00
Pudong Zheng
352393456b gitpod-cli: add analytics
Co-authored-by: Andrea Falzetti <andrea@gitpod.io>
2023-02-08 17:43:46 +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
Pudong Zheng
223052fd12 [suoervisor] show detail message if supervisor failed 2023-01-11 19:52:52 +01:00
Pavel Tumik
1512a765b1 show user friendly error if git is not found 2023-01-09 21:52: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
mustard
aa59db2ec9 [supervisor] ignore all signal error 2022-11-14 16:56:45 +02:00
mustard
03aae67a42 [supervisor] don't swallow supervisor exit error 2022-11-14 11:26:43 +02:00
Pudong Zheng
9bf2aa1a1f [supervisor] remove unnecessary close channel 2022-10-28 08:30:01 +02:00
Sven Efftinge
fef62f3e9e [supervisor] shutdown processes gracefully 2022-10-07 13:09:22 +02:00
Anton Kosyakov
01487c9a61 [supervisor] fix gitpod config changed analytics 2022-08-09 09:54:53 -03:00
Christian Weichel
ae7f3fd8c0 [supervisor] Make compatible with run-gp 2022-06-21 19:35:30 +05:30
JenTing Hsiao
9631a0b57b Remove deprecated function
The function grpc.WithInsecure() is deprecated, use
grpc.WithTransportCredentials(insecure.NewCredentials()) instead.

Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-06-15 13:07:24 +05:30
Anton Kosyakov
52e422189c [supervisor] fix #9521: add resources endpoint respecting cgroup v1 2022-05-18 13:06:32 +05:30
Manuel Alejandro de Brito Fontes
90fe82a508 Remove ghost from the codebase 2022-02-28 14:17:07 +05:30
Christian Weichel
ec94c225e9 [supervisor] Improve init shutdown behaviour 2022-02-12 15:56:33 +01:00
Pudong Zheng
70606e9c4f move reaper to another process 2022-02-09 09:10:30 +01:00
Pudong
fb99a9f5eb [ide] add user-agent header to ws connection to server 2021-12-20 07:21:44 +01:00
Manuel Alejandro de Brito Fontes
d70eb53070 [supervisor] Lint code 2021-11-03 14:58:11 +01:00
Manuel Alejandro de Brito Fontes
f25de2cdbf Log error changing default level 2021-09-22 10:15:47 -03:00
Manuel Alejandro de Brito Fontes
e6d1cea54d Enable GRPC logging 2021-09-13 21:09:39 +05:30
Christian Weichel
8c38329044 [supervisor] Add gitpod user if it doesn't exist 2021-08-04 14:59:04 +02:00
Manuel Alejandro de Brito Fontes
bd3ba7cdec Refactor port parsing 2021-06-16 10:45:31 -04:00
Anton Kosyakov
f7b2e37cbd [supervisor] support tunneled ports 2021-05-20 09:49:33 +02:00
Manuel Alejandro de Brito Fontes
d3ebfd454b Update golangci-lint 2021-05-11 07:15:24 -04:00
Christian Weichel
c2a2352f12 [supervisor] Add config change analytics 2021-05-06 16:21:40 +02:00
Anton Kosyakov
5e39b06cb5 [gitpod-cli/protocol] remove dependency to common-go 2021-03-29 16:10:34 +02:00
Christian Weichel
800f5fe251 [supervisor] Minor post-notification PR cleanup 2021-03-22 12:20:47 +01:00
Manuel Alejandro de Brito Fontes
7e9da6ce3b [supervisor] Lint code 2021-03-16 07:35:57 -03:00
Jan Koehnlein
9321428573 [supervisor] added notification API (#3038) 2021-03-11 13:05:16 +01:00
Manuel Alejandro de Brito Fontes
2b6a56bc40 Update go imports 2021-03-02 06:37:49 -03:00
Gero Posmyk-Leinemann
133e2c367c [ws-scheduler] Re-use PriorityQueue from k8s incl. metrics 2021-03-01 10:17:16 +01:00
Christian Weichel
e641afad2b [workspacekit] Move all user namespace setup stuff to its own component
To keep supervisor free from CGO e.g. libcap or libseccomp
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
e086599357 [supervisor] Add annotations to terminals 2021-01-15 14:11:21 +01:00
Christian Weichel
2e2f00127a [supervisor] Provide the PID of terminal processes 2021-01-15 14:11:21 +01:00
Christian Weichel
ef66ca19a1 [supervisor] execve into ring3 2021-01-08 15:58:39 +01:00