Skip to content

[supervisor] workspace start fails if git is not available #15732

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kylos101 opened this issue Jan 13, 2023 · 5 comments
Closed

[supervisor] workspace start fails if git is not available #15732

kylos101 opened this issue Jan 13, 2023 · 5 comments
Labels
component: supervisor feature: outer loop meta: stale This issue/PR is stale and will be closed soon type: improvement Improves an existing feature or existing code

Comments

@kylos101
Copy link
Contributor

Is your feature request related to a problem? Please describe

Supervisor fails on workspace start if git is not available in the underlying workspace's image. The error message we shared with users was improved in #15574, but, failing workspace start because git is missing is a poor user experience. Additionally, these failures partly decrease Workspace Team SLOs [1].

Describe the behaviour you'd like

There are many ways to install git.

Since supervisor is failing on workspace start, perhaps instead it can inject the right version of git? I'm not sure why supervisor is failing, but assume it is because eventually we need git. For example, either to bootstrap the workspace, or after it's ready, so that the user can do VCS operations

Describe alternatives you've considered

  • A new component is created, and is responsible for injecting git,

Additional context

Internal Slack conversation

@iQQBot
Copy link
Contributor

iQQBot commented Jan 30, 2023

it's weird, I remember we don't rely on git in supervisor, and content init running in ws-daemon I don't know why we need to add this check #15574

maybe it related to PVC backup (it start pre stop hook running in workspace), not sure about this.

@kylos101
Copy link
Contributor Author

kylos101 commented Feb 2, 2023

👋 @laushinka @loujaybee @akosyakov may we ask you to consider this for prioritization? From a usability standpoint, it would be nice to have git added by supervisor, if the custom image does not include it. 🙏 This is similar to how we expect docker to be available from a usability standpoint.

@akosyakov
Copy link
Member

@iQQBot We do unshallow, and having git in Gitpod workspace is kind of a requirement.

@loujaybee
Copy link
Member

This relates to some issues that have come up with our investigations. This is somewhat mitigated with the use of gp rebuild, which catches this issue earlier. But yes, users who get to this point should see a better error + UX.

It's similar to these:

I've tagged up with feature: outer loop, which is an area we'll look into in future 🙏

@stale
Copy link

stale bot commented May 21, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label May 21, 2023
@stale stale bot closed this as completed Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: supervisor feature: outer loop meta: stale This issue/PR is stale and will be closed soon type: improvement Improves an existing feature or existing code
Projects
None yet
Development

No branches or pull requests

4 participants