Skip to content

Use base e2b SDK in tests that don't need code-interpreter#2204

Merged
beran-t merged 2 commits intomainfrom
fix-code-interpreter-imports
Mar 23, 2026
Merged

Use base e2b SDK in tests that don't need code-interpreter#2204
beran-t merged 2 commits intomainfrom
fix-code-interpreter-imports

Conversation

@beran-t
Copy link
Contributor

@beran-t beran-t commented Mar 23, 2026

Summary

  • internet-works.ts, time-is-synchronized/index.ts, and utils.ts only use sandbox.commands.run() and sandbox lifecycle methods — no runCode() needed
  • Changed these files to import from base e2b instead of @e2b/code-interpreter
  • Added e2b as explicit dependency in package.json
  • run-code.ts and snapshot-and-resume.ts still correctly use @e2b/code-interpreter (they call runCode())

Test plan

  • Verify periodic tests still pass with the updated imports

internet-works.ts, time-is-synchronized, and utils.ts only use
sandbox.commands.run() and sandbox lifecycle methods, which are
available in the base e2b SDK. Only run-code.ts and
snapshot-and-resume.ts actually need code-interpreter for runCode().
Comment on lines +8 to +9
"@e2b/code-interpreter": "^2.3.3",
"e2b": "^2.3.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

is this the code-interpreter 2.3.3 version? Would it make sense to update to latest?

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1f09227059

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

"@e2b/cli": "^2.7.3",
"@e2b/code-interpreter": "^2.3.3"
"@e2b/code-interpreter": "^2.3.3",
"e2b": "^2.3.0"

Choose a reason for hiding this comment

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

P1 Badge Update bun.lock after adding e2b dependency

This adds e2b to tests/periodic-test/package.json but does not update tests/periodic-test/bun.lock, which makes the dependency manifest inconsistent. In the periodic test workflow I checked (.github/workflows/periodic-test.yml, install step at lines 88-90), dependencies are installed with bun install --frozen-lockfile, so this mismatch will cause CI to fail before any test executes.

Useful? React with 👍 / 👎.

Update @e2b/code-interpreter to ^2.4.0 and e2b to ^2.15.0.
Also regenerates bun.lock to fix frozen-lockfile CI failures.
@beran-t beran-t merged commit 34970da into main Mar 23, 2026
35 checks passed
@beran-t beran-t deleted the fix-code-interpreter-imports branch March 23, 2026 18:45
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 this pull request may close these issues.

2 participants