Skip to content

test(js-sdk): run the template test suite on Bun - #1600

Merged
mishushakov merged 1 commit into
mainfrom
bun-template-tests-v2
Jul 24, 2026
Merged

test(js-sdk): run the template test suite on Bun#1600
mishushakov merged 1 commit into
mainfrom
bun-template-tests-v2

Conversation

@mishushakov

@mishushakov mishushakov commented Jul 23, 2026

Copy link
Copy Markdown
Member

Description

Adds --project template to test:bun so the Bun CI leg runs the template suite, matching the Deno leg (#1595).

No code changes are needed: the template suite previously failed under Bun because Bun's JavaScriptCore elides tail-call frames and the fixed-depth stack walk attributed build errors one frame past the user's call site (the workaround attempt in #1596 was closed in favor of #1599). With #1599's boundary-based frame selection (now merged), the suite passes under Bun as-is.

The CI workflow already passes E2B_API_KEY/E2B_DOMAIN to the Bun leg, and the matrix comment (updated in #1595) already covers Bun re-running API-backed suites, so package.json is the only change.

Testing

Full test:bun (unit + connectionConfig + template) green locally on Bun 1.3.14 against the real API: 530 passed, 35 skipped, 0 failed — including all 34 stack-trace/caller-directory tests that pin exact user call-site line/columns, the frames Bun used to elide.

🤖 Generated with Claude Code

@cla-bot cla-bot Bot added the cla-signed label Jul 23, 2026
@changeset-bot

changeset-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 5e5fa83

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

@cursor

cursor Bot commented Jul 23, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
Only the Bun test npm script changes; no runtime or library behavior is modified.

Overview
The test:bun script now includes --project template, so Bun runs the same vitest projects as test:deno (unit, connectionConfig, and template). No SDK source changes; template tests are expected to pass under Bun after the stack-trace boundary fix from the parent stack.

Reviewed by Cursor Bugbot for commit 5e5fa83. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Package Artifacts

Built from 78ef27a. Download artifacts from this workflow run.

JS SDK (e2b@2.35.4-bun-template-tests-v2.0):

npm install ./e2b-2.35.4-bun-template-tests-v2.0.tgz

CLI (@e2b/cli@2.15.1-bun-template-tests-v2.0):

npm install ./e2b-cli-2.15.1-bun-template-tests-v2.0.tgz

Python SDK (e2b==2.34.0+bun.template.tests.v2):

pip install ./e2b-2.34.0+bun.template.tests.v2-py3-none-any.whl

@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.

LGTM — straightforward CI config change with no production code impact.

What was reviewed: The one-line addition of --project template to the test:bun script, confirming it mirrors the existing test:deno pattern and relies on the stack-trace frame-selection fix already merged in a prior PR. Checked that no changeset is needed since this only touches a test script, not shipped SDK behavior.

Extended reasoning...

Overview

The entire diff is a single line in packages/js-sdk/package.json: the test:bun script gains --project template, so the Bun CI leg now runs the template vitest project in addition to unit/connectionConfig. No source files, runtime behavior, or public API surface changed.

Security risks

None. This only affects which test suites run under Bun in CI; it has no effect on production code paths, auth, or data handling.

Level of scrutiny

Minimal scrutiny is appropriate — this is a mechanical CI/test-config change that follows an already-established pattern (the Deno leg enabling the same project in #1595). The PR description credibly explains why this now works (frame-selection fix landed in a prior stacked PR) and cites a full local test run.

Other factors

The changeset-bot flag for 'no changeset' is expected and correct here — this is a test-only change with no package version implications, so a changeset is not needed. No other reviewer comments are outstanding.

Base automatically changed from boundary-based-stack-frames to main July 24, 2026 12:42
@linear-code

linear-code Bot commented Jul 24, 2026

Copy link
Copy Markdown

SDK-269

With frame selection now boundary-based, the fixed-depth stack walk
that Bun's tail-call frame elision used to break is gone, so the
template suite passes under Bun without runtime-specific workarounds.
Add --project template to test:bun, matching the Deno leg (#1595).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mishushakov
mishushakov force-pushed the bun-template-tests-v2 branch from 6fecd01 to 5e5fa83 Compare July 24, 2026 12:44
@mishushakov
mishushakov enabled auto-merge (squash) July 24, 2026 12:46
@mishushakov
mishushakov merged commit ada1744 into main Jul 24, 2026
30 of 31 checks passed
@mishushakov
mishushakov deleted the bun-template-tests-v2 branch July 24, 2026 12:51
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.

2 participants