You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the project clone init container encounters an issue, it prints the error to logs and exits with a non-zero exit code. This causes it to be restarted by k8s, losing the error log (the second time it runs, the default behavior is to not touch existing directories). This means that
Some configuration errors (e.g. a checkoutFrom that cannot be resolved) are suppressed and the workspace starts with the default checkout. A second invocation of the project clone init container wipes out the original log.
Options
Catch restarts in the project clone container and fail workspaces that fail to clone projects.
This is tricky because it's unclear how to propagate the project-clone failure reason to DevWorkspace status
Always return success from project clone to keep logs available -- maybe print errors to a file in $PROJECTS_ROOT to make it more likely that an issue will be seen?
The text was updated successfully, but these errors were encountered:
Description
When the project clone init container encounters an issue, it prints the error to logs and exits with a non-zero exit code. This causes it to be restarted by k8s, losing the error log (the second time it runs, the default behavior is to not touch existing directories). This means that
checkoutFrom
that cannot be resolved) are suppressed and the workspace starts with the default checkout. A second invocation of the project clone init container wipes out the original log.Options
Catch restarts in the project clone container and fail workspaces that fail to clone projects.
Always return success from project clone to keep logs available -- maybe print errors to a file in
$PROJECTS_ROOT
to make it more likely that an issue will be seen?The text was updated successfully, but these errors were encountered: