-
Notifications
You must be signed in to change notification settings - Fork 223
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
OBS-504: Optimize Socorro builds for better FE dev speed #6908
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9d6d79d
OBS-504: reorder docker commands to improve FE build speed
toufali 18710da
OBS-504: exclude devcontainer from default build target
toufali 2134275
OBS-504: reorder devcontainer docker commands
toufali cb5d665
Update justfile
toufali 99d659c
Update justfile
toufali File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding is that this will speed up installing new web dependencies, while it slows down updating Python dependencies, right? I don't have an opinion on this, just asking for clarification.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's possible: if changes are made to the python dependencies it will rebuild the JS deps on the subsequent layer. However, my experience suggests the JS deps are minimal and build much faster than the python deps (seconds vs minutes).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggested making this change locally on your machine because it would speed up the loop you were doing often. I didn't intend to suggest we make this change globally.
Typically, we want to order steps in the Dockerfile to improve cache hits when doing typical work. We typically don't make changes to the JS environment, but we do land Python environment PRs from Dependabot and elsewhere, so we'll now be rebuilding the JS environment over and over. It doesn't add a lot on my machine (4s), so I'm game for making this change globally for everyone, but I would suggest we revert it it leads to longer build times for typical work.
Going back to the bigger problem of it taking a long time to build Socorro, it takes my machine 1m40s to do a full no-cache rebuild. It's curious it takes 4+ minutes for you. There might be other things you could look into to speed it up locally.