-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Summary
Prebuilds enable fast codespace creation experience for large and/or complex projects by performing all the heavy-lifting tasks required to build your development environment beforehand. Think of a prebuild as a 'ready-to-go' template where your source code, editor extensions, project dependencies, commands, or configurations have already been downloaded, installed, and applied so that you don't have to wait for these tasks to finish in real-time every time you create a new Codespace.
This functionality enables developers to test their changes while creating a pull request that might affect the prebuild configuration for their prebuild-enabled branch.
Intended Outcome
With a Pull Request Validation step available to prebuild-enabled branches, developers can validate upfront if their changes may adversely affect the prebuild configuration for their branch. With this, developers no longer have to worry about accidently breaking the prebuild for a branch by testing and making any fixes upfront thus ensuring everyone continues to have a fast creation experience. Additionally repository admins/team leads will have additional confidence around prebuilds being steady and reliable without any manual interference.
How will it work?
- For prebuild enabled repositories, when a developer wants to push a change that updates the underlying prebuild configuration for that branch (ex. update the devcontainer configuration), GitHub will automatically introduce a test to validate if the changes will in any way cause the prebuild configuration to break. Initially this experience will only be supported via the GitHub UI, with support for CLI coming in as a fast follow.
- Developers will also have a link to the build log once the test completes to fix any issues they might discover before merging the PR thus ensuring prebuilds continue to work without any failures for their branch and repository.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status