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

👷 Add Python venv cache #1216

Closed
wants to merge 2 commits into from
Closed

Conversation

Kludex
Copy link
Member

@Kludex Kludex commented Jun 25, 2021

Following the same idea as encode/httpx#1680 and encode/uvicorn#1095.

This PR aims to add a cache to the Python environment.

@Kludex Kludex added the hold Don't merge it label Jun 25, 2021
@Kludex
Copy link
Member Author

Kludex commented Jun 25, 2021

I'll put on "hold" until the httpx PR is merged, I want to see if @tomchristie has other concerns.

Copy link
Member

@JayH5 JayH5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. The implication here is that we now pin our dev dependencies and somebody updates them every once in a while? (Seems we're not so keen on dependabot because it creates too many PRs)
  2. Before/after "benchmarks" would be appreciated 🙏 although I understand you're waiting for this to move further along with httpx for now, so no rush.

python-multipart
pyyaml
requests
-e .[full]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really want to do [full]? These dependencies then won't be pinned and so will only be updated implicitly when the cache is invalidated.

@@ -21,13 +21,25 @@ jobs:
- uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.python-version }}"

- uses: actions/[email protected]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason for asking for such a specific version?

@JayH5
Copy link
Member

JayH5 commented Jun 27, 2021

I think overall I don't really have a problem with the build time as things are (~3min or less) so I'm not sure this is worth the extra complexity?

@tomchristie
Copy link
Member

I'll put on "hold" until the httpx PR is merged, I want to see if @tomchristie has other concerns.

Echoing encode/uvicorn#1095 (comment) Agreed. Let's take things one step at a time. 😀

I think overall I don't really have a problem with the build time as things are (~3min or less) so I'm not sure this is worth the extra complexity?

I do also share this outlook somewhat. Not definitively, but tentatively.

@Kludex
Copy link
Member Author

Kludex commented Sep 16, 2021

I'm closing this, as we still have to discuss on HTTPX.

@Kludex Kludex closed this Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hold Don't merge it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants