Description
Starting prebuilds should be as fast as possible.
Incremental Workspaces would allow starting a workspace using a prebuild that ran for an older commit (based on commit history) and then run the init tasks on top of that when the workspace starts. This allows benefitting from the caching on the file system just like you would in a local dev environment.
Activating this behavior would mean that users never get to see the 'prebuild in flight' view anymore as we would ignore non-finished rebuilds and only consider finished ones when starting a workspace.
Disclaimer: I am aware that in some cases where the workspace is really large, loading prebuild data can take more time than the actual full build. So it would be desired to not use prebuilds at all.
internal RFC https://www.notion.so/gitpod/Incremental-Workspaces-08507a1d569c4c15ba6493d7380a5637
Related to #12583
EDIT by @jankeromnes -- steps:
- Implement a 'Use Last Successful Prebuild' workspace creation mode #13801
- When starting a workspace in this new mode, also make Gitpod re-run the prebuild tasks to incrementally update the build with the latest Git state (similar to what incremental prebuilds do) [content-service] incremental workspace init #14140
- Add a feature flag that ignores running prebuilds and automatically uses the best matching prebuild as base.
- Implement a Project Setting that makes this new workspace creation mode the default for a project, such that you never see the "Prebuild in Progress" waiting screen again
Metadata
Metadata
Assignees
Type
Projects
Status