Skip to content
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

Pin Poetry versions to speed up build time #137

Open
Nava-JoshLong opened this issue Feb 13, 2023 · 0 comments
Open

Pin Poetry versions to speed up build time #137

Nava-JoshLong opened this issue Feb 13, 2023 · 0 comments
Assignees

Comments

@Nava-JoshLong
Copy link
Contributor

In our repo, the build times for the release image was taking ~10 minutes, with the poetry installs taking over 4 minutes. Upon researching, I found this thread where it says that when a poetry version is specified as a range of versions (ie alembic = "^1.8.1"), then poetry has to resolve any dependencies or issues for a range of versions. If you change it to a specified version (alembic = "1.9.1"), it can help speed up build times. Once we changed to pinned versions, it dropped the build time to ~6 minutes, with the poetry installs taking ~1 minute now.

I have the versions pinned in local changes, but since this is a basic app, it only saves ~10 seconds. I'll be adding some docs explaining the tweaks and reasoning behind it so that other repos can make the changes and report back the time saved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant