Skip to content

fix(python-sdk): upgrade pyqwest to 0.15 and download files over HTTP/2 again - #2197

Merged
mishushakov merged 3 commits into
mainfrom
devin/1796039265-pyqwest-0.15
Nov 30, 2026
Merged

mishushakov merged 3 commits into
mainfrom
devin/1796039265-pyqwest-0.15

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Bumps pyqwest >=0.12.0,<0.13 → >=0.15.0,<0.16 (v0.15.0) and drops the workarounds it makes unnecessary. Lockfiles of acp-python, code-interpreter-python and desktop-python are relocked.

Verification

  • test_envd_file_download_empty_data_frames.py asserts bytes/text reads use the configured version and streamed reads use HTTP/1.1; the fake server sends 600-byte frames each followed by an empty one (the real proxy sends ~32 KiB per empty frame). It fails on pyqwest 0.12 with too_many_data_frames and passes on 0.15.
  • Real sandbox, buffered reads over HTTP/2 (envd negotiates HTTP/2 via ALPN, checked with a raw pyqwest request): sync and async, 40 sequential text reads and 32 concurrent 4 MiB reads pass; the same script fails with too_many_data_frames on pyqwest 0.12.
  • Real sandbox, streams: with streamed reads on HTTP/2, 3 partly read 8 MiB async streams (stream_idle_timeout=15) made the 4th files.read and commands.run time out. With this PR, 10 such open streams don't block a new read, commands.run or files.list.
  • Real sandbox uploads over HTTP/2 (32 concurrent 4 MiB writes, iterator, file object, gzip, write_files) pass sync and async, checksums match.
  • Unit tests: 1047 passed. files integration tests: 133 passed, 2 failed (test_file_symlink, a backend failure already on main, see chore(deps): scheduled patch/minor dependency updates for js-sdk / cli / python-sdk #2194).

Link to Devin session: https://app.devin.ai/sessions/d734c4752b1a4f7b90b09bfd3379c6f4
Open in Devin Desktop: https://app.devin.ai/desktop/session/d734c4752b1a4f7b90b09bfd3379c6f4?variant=devin
Requested by: @mishushakov


🟢 Devin Review found nothing to fix · View findings

Devin Review

…/2 again

Co-Authored-By: mish@e2b.dev <mish@e2b.dev>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@cla-bot cla-bot Bot added the cla-signed label Nov 30, 2026
@changeset-bot

changeset-bot Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1d618be

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@e2b/python-sdk Patch
@e2b/acp-python Patch
@e2b/code-interpreter-python Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Co-Authored-By: mish@e2b.dev <mish@e2b.dev>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

TASTE.md review: no violations. I checked the changed code against parity (T-1, T-2), options and docstrings (T-10, T-69, T-71), validation errors (T-59, T-62), timeouts (T-45, T-47), and export/deprecation rules (T-54, T-65). The removed ENVD_API_FILE_DOWNLOAD_HTTP_VERSION and ChunkCheck were internal and never exported from e2b/__init__.py, so no deprecated aliases are needed. Non-bytes upload chunks still raise InvalidArgumentException.

Written by Devin

@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Package Artifacts

Built from efcd8f2. Download artifacts from this workflow run.

JS SDK (e2b@2.67.1-devin-1796039265-pyqwest-0-15.0, with @e2b/dockerfile-utils@0.1.3-devin-1796039265-pyqwest-0-15.0):

npm install ./e2b-dockerfile-utils-0.1.3-devin-1796039265-pyqwest-0-15.0.tgz ./e2b-2.67.1-devin-1796039265-pyqwest-0-15.0.tgz

CLI (@e2b/cli@2.26.1-devin-1796039265-pyqwest-0-15.0):

npm install ./e2b-cli-2.26.1-devin-1796039265-pyqwest-0-15.0.tgz

Code Interpreter JS SDK (@e2b/code-interpreter@2.9.2-devin-1796039265-pyqwest-0-15.0):

npm install ./e2b-code-interpreter-2.9.2-devin-1796039265-pyqwest-0-15.0.tgz

Desktop JS SDK (@e2b/desktop@2.5.1-devin-1796039265-pyqwest-0-15.0):

npm install ./e2b-desktop-2.5.1-devin-1796039265-pyqwest-0-15.0.tgz

Python SDK (e2b==2.67.0+devin.1796039265.pyqwest.0.15, with e2b-dockerfile-utils==0.1.2+devin.1796039265.pyqwest.0.15):

pip install ./e2b_dockerfile_utils-0.1.2+devin.1796039265.pyqwest.0.15-py3-none-any.whl ./e2b-2.67.0+devin.1796039265.pyqwest.0.15-py3-none-any.whl

Code Interpreter Python SDK (e2b-code-interpreter==2.11.13+devin.1796039265.pyqwest.0.15):

pip install ./e2b_code_interpreter-2.11.13+devin.1796039265.pyqwest.0.15-py3-none-any.whl

Desktop Python SDK (e2b-desktop==2.7.2+devin.1796039265.pyqwest.0.15):

pip install ./e2b_desktop-2.7.2+devin.1796039265.pyqwest.0.15-py3-none-any.whl

@mishushakov
mishushakov marked this pull request as ready for review November 30, 2026 12:56
@mishushakov
mishushakov self-requested a review as a code owner November 30, 2026 12:56
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T12:58:57.689920Z 33828a2 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.

…ms can't stall a shared HTTP/2 connection

Co-Authored-By: mish@e2b.dev <mish@e2b.dev>
@mishushakov
mishushakov merged commit 098e725 into main Nov 30, 2026
28 checks passed
@mishushakov
mishushakov deleted the devin/1796039265-pyqwest-0.15 branch November 30, 2026 13:18
@linear-code

linear-code Bot commented Dec 1, 2026

Copy link
Copy Markdown

SDK-451

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant