Skip to content

chore(code-interpreter-python): add @e2b/python-sdk workspace dependency - #1968

Merged
mishushakov merged 1 commit into
mainfrom
devin/1791555980-ci-python-sdk-dep
Oct 9, 2026
Merged

mishushakov merged 1 commit into
mainfrom
devin/1791555980-ci-python-sdk-dep

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Adds "@e2b/python-sdk": "workspace:*" to packages/code-interpreter-python/package.json dependencies, mirroring how packages/python-sdk already declares @e2b/dockerfile-utils-python. This makes the workspace dependency between the two packages explicit to pnpm.

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

@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 Oct 9, 2026
@changeset-bot

changeset-bot Bot commented Oct 9, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: af8b923

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@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: complies, with 0 violations. The PR only adds an @e2b/python-sdk workspace dependency to the private packages/code-interpreter-python/package.json (plus the lockfile entry). It changes no public SDK API, so none of T-1–T-74 apply; T-54 and T-56 (package structure, SDK version) were checked and are not affected.

Written by Devin

@@ -2,6 +2,9 @@
"name": "@e2b/code-interpreter-python",
"private": true,
"version": "2.10.4",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is the version actually needed here?

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.

The version field was already there (not added by this PR). It's used by the postVersion script below, which syncs it into pyproject.toml via uv version on release — same pattern as packages/python-sdk. Only the dependencies block is new.

@mishushakov
mishushakov marked this pull request as ready for review October 9, 2026 14:27
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Package Artifacts

Built from b34329d. Download artifacts from this workflow run.

JS SDK (e2b@2.55.1-devin-1791555980-ci-python-sdk-dep.0, with @e2b/dockerfile-utils@0.1.1-devin-1791555980-ci-python-sdk-dep.0):

npm install ./e2b-dockerfile-utils-0.1.1-devin-1791555980-ci-python-sdk-dep.0.tgz ./e2b-2.55.1-devin-1791555980-ci-python-sdk-dep.0.tgz

CLI (@e2b/cli@2.21.3-devin-1791555980-ci-python-sdk-dep.0):

npm install ./e2b-cli-2.21.3-devin-1791555980-ci-python-sdk-dep.0.tgz

Code Interpreter JS SDK (@e2b/code-interpreter@2.8.4-devin-1791555980-ci-python-sdk-dep.0):

npm install ./e2b-code-interpreter-2.8.4-devin-1791555980-ci-python-sdk-dep.0.tgz

Desktop JS SDK (@e2b/desktop@2.4.1-devin-1791555980-ci-python-sdk-dep.0):

npm install ./e2b-desktop-2.4.1-devin-1791555980-ci-python-sdk-dep.0.tgz

Python SDK (e2b==2.55.0+devin.1791555980.ci.python.sdk.dep, with e2b-dockerfile-utils==0.1.0+devin.1791555980.ci.python.sdk.dep):

pip install ./e2b_dockerfile_utils-0.1.0+devin.1791555980.ci.python.sdk.dep-py3-none-any.whl ./e2b-2.55.0+devin.1791555980.ci.python.sdk.dep-py3-none-any.whl

Code Interpreter Python SDK (e2b-code-interpreter==2.10.4+devin.1791555980.ci.python.sdk.dep):

pip install ./e2b_code_interpreter-2.10.4+devin.1791555980.ci.python.sdk.dep-py3-none-any.whl

Desktop Python SDK (e2b-desktop==2.6.1+devin.1791555980.ci.python.sdk.dep):

pip install ./e2b_desktop-2.6.1+devin.1791555980.ci.python.sdk.dep-py3-none-any.whl

@mishushakov
mishushakov enabled auto-merge (squash) October 9, 2026 14:27

@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

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T14:29:46.353757Z af8b923 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.

"private": true,
"version": "2.10.4",
"dependencies": {
"@e2b/python-sdk": "workspace:*"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 After merging, a release with only a python-sdk changeset also publishes a new e2b-code-interpreter to PyPI, and its test suite is skipped. Changesets reads workspace:* as an exact pin, so with updateInternalDependencies: "patch" the dependent gets a patch bump. The test gate in release.yml:110 only looks at raw changeset files, which never name the dependent. Fix: base the per-package release outputs on the computed plan (pnpm changeset status --output, the same source publish_command.cjs reads), so every package that gets bumped also has its tests run.

Why this was flagged

Trigger: a changeset that bumps only @ e2b/python-sdk, then the Release workflow. Changesets resolves the dependent range workspace:* to the dependency's old version. Combined with updateInternalDependencies: "patch" (.changeset/config.json:10) and privatePackages.version: true, this adds a patch release of @ e2b/code-interpreter-python to the plan. pnpm run version bumps it, and postVersion/uv version rewrites pyproject. pnpm run publish then runs its postPublish (uv build && uv publish), which uploads a new e2b-code-interpreter to PyPI. The preflight step at release.yml:106-111 calls is_release_for_package.sh, and that script (line 13) only checks @ changesets/read changeset files for the package name. So code_interpreter_python is false, and code-interpreter-python-tests (release.yml:185-190) is skipped. On the base branch the importer had no dependency, so no bump, publish or skipped gate happened. Nothing else stops it: the publish job only requires that no needed job failed, and skipped jobs pass that check.

Verification: The diff adds "@ e2b/python-sdk": "workspace:*" in packages/code-interpreter-python/package.json:5-7, so any python-sdk bump gives the dependent a patch release. release.yml:110 runs is_release_for_package.sh, which reads only the raw changeset files, so it outputs false. The code-interpreter-python-tests job (release.yml:185-190) is skipped, and publish (release.yml:231) still runs.

@mishushakov
mishushakov merged commit 81fc7cd into main Oct 9, 2026
83 of 85 checks passed
@mishushakov
mishushakov deleted the devin/1791555980-ci-python-sdk-dep branch October 9, 2026 14:47
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