Skip to content

fix: update kill test to use valid sandbox ID format#1169

Merged
jakubno merged 2 commits into
mainfrom
dobrac/fix-kill-test-sandbox-id
Feb 26, 2026
Merged

fix: update kill test to use valid sandbox ID format#1169
jakubno merged 2 commits into
mainfrom
dobrac/fix-kill-test-sandbox-id

Conversation

@dobrac

@dobrac dobrac commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

The infra now validates sandbox ID format (^[a-z0-9]+$), allowing only lowercase alphanumeric characters. The test was using 'non-existing-sandbox' which fails format validation due to hyphens, returning a 400 error instead of reaching the expected 404 path.

This updates the test to use 'nonexistingsandbox' — a valid format that doesn't exist, so it properly hits the 404 "not found" response and returns false as expected.


Note

Low Risk
Low risk: test-only change that updates hardcoded IDs to match new validation rules, without modifying runtime logic.

Overview
Updates JS and Python SDK kill non-existing sandbox tests to use a lowercase alphanumeric sandbox ID (nonexistingsandbox) instead of a hyphenated one, so the tests exercise the intended not-found path rather than failing format validation.

Written by Cursor Bugbot for commit e43acb6. This will update automatically on new commits. Configure here.

The infra now validates sandbox ID format (^[a-z0-9]+$). Replace
'non-existing-sandbox' (invalid due to hyphens) with 'nonexistingsandbox'
so the test passes format validation and hits the expected 404 path.
@changeset-bot

changeset-bot Bot commented Feb 26, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 7db88cc

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

@dobrac dobrac added the bug Something isn't working label Feb 26, 2026
@github-actions

github-actions Bot commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Package Artifacts

Built from 8cb48ea. Download artifacts from this workflow run.

JS SDK (e2b@2.13.1-dobrac-fix-kill-test-sandbox-id.0):

npm install ./e2b-2.13.1-dobrac-fix-kill-test-sandbox-id.0.tgz

CLI (@e2b/cli@2.7.3-dobrac-fix-kill-test-sandbox-id.0):

npm install ./e2b-cli-2.7.3-dobrac-fix-kill-test-sandbox-id.0.tgz

Python SDK (e2b==2.14.0+dobrac-fix-kill-test-sandbox-id):

pip install ./e2b-2.14.0+dobrac.fix.kill.test.sandbox.id-py3-none-any.whl

@jakubno jakubno merged commit 51582e8 into main Feb 26, 2026
22 of 23 checks passed
@jakubno jakubno deleted the dobrac/fix-kill-test-sandbox-id branch February 26, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants