- Newest
- Most votes
- Most comments
Can you explain what actually happens during the source stage? Why does anything need to get copied to or from S3? CodeBuild can read directly from CodeCommit, so if the source is CodeCommit and the build action is CodeBuild, what actually needs to happen during the source stage?
Hi,
Regretfully, this is likely the expected time for the repository source stage action currently based on the repository. We understand the pain this causes and will take this post as a customer request to improve performance on this aspect of the CodeCommit experience.
The CodeCommit source stages tend to be particularly slow packaging large individual files into the ZIP archives. As a workaround, if you can move some of your largest file assets out into other locations (like S3, for example), then it would very likely have a positive performance impact on the source stage.
Another potential for slowness comes from long delta chains that Git may be creating. If you repack your repository with a smaller delta chain length and re-push to CodeCommit, this may also have some positive performance impact on your Source stage. To do this, run:
git repack -adf --depth 15
git push
Note that there must be a new content to push here.
Thanks!
Relevant content
- Accepted Answerasked a year ago
- Accepted Answerasked 2 years ago
- asked 8 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago