Skip to content

chore: fix smoketest tunnel removal#735

Merged
alb-rl merged 1 commit intomainfrom
cursor/smoketest-tunnel-removal-33a9
Mar 3, 2026
Merged

chore: fix smoketest tunnel removal#735
alb-rl merged 1 commit intomainfrom
cursor/smoketest-tunnel-removal-33a9

Conversation

@alb-rl
Copy link
Contributor

@alb-rl alb-rl commented Mar 2, 2026

⚠️ PR Title Must Follow Conventional Commits

Format: feat[optional scope]: <description>

Examples: feat: add new SDK method · feat(storage): support file uploads · feat!: breaking API change


Description

Updates a smoketest for the deprecated create_tunnel endpoint to reflect its current behavior, where it now creates unremovable v2 tunnels.

Motivation

The create_tunnel endpoint, though deprecated, was updated to create v2 Portal tunnels which cannot be removed. The existing smoketest was failing because it attempted to remove these tunnels, resulting in a 400 error. This PR updates the test to correctly validate the new behavior.

Changes

  • Renamed the smoketest from "create and remove legacy tunnel (deprecated)" to "create legacy tunnel (deprecated - now creates v2 tunnel)".
  • Removed the devbox.net.removeTunnel call from the test.
  • Added assertions to verify that the created tunnel persists in the devbox info.
  • Updated comments to clarify that v2 tunnels cannot be removed and remain active until the devbox is stopped.

Testing

  • Unit tests added
  • Integration tests added
  • Smoke Tests added/updated
  • Tested locally

Breaking Changes

None.

Checklist

  • PR title follows Conventional Commits format (feat: or feat(scope):)
  • Documentation updated (if needed)
  • Breaking changes documented (if applicable)

Slack Thread

Open in Web Open in Cursor 

The deprecated createTunnel endpoint now creates v2 tunnels which cannot be removed.
Updated the test to:
- Remove the tunnel removal attempt that was causing 400 errors
- Add verification that the tunnel persists in devbox info
- Update test name and comments to reflect v2 tunnel behavior

Co-authored-by: albert <alb-rl@users.noreply.github.com>
@cursor
Copy link

cursor bot commented Mar 2, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@alb-rl alb-rl marked this pull request as ready for review March 2, 2026 22:30
@alb-rl alb-rl requested review from dines-rl and tode-rl March 2, 2026 22:30
@alb-rl alb-rl changed the title Smoketest tunnel removal chore: fix smoketest tunnel removal Mar 2, 2026
@github-actions
Copy link

github-actions bot commented Mar 2, 2026

⚠️ Object Smoke Tests & Coverage Report

Test Results

✅ All smoke tests passed

Coverage Results

Metric Coverage Required Status
Functions 99.52% 100%
Lines 88.85% - ℹ️
Branches 65.75% - ℹ️
Statements 87.51% - ℹ️

Coverage Requirement: 100% function coverage (all public methods must be called in smoke tests)

⚠️ Some object methods are not covered in smoke tests. Please add tests that call all public methods.

View detailed coverage report
File Functions Lines Branches
src/sdk.ts ✅ 100% 85.11% 70.83%
src/sdk/agent.ts ✅ 100% 100% 100%
src/sdk/blueprint.ts ✅ 100% 100% 80%
src/sdk/devbox.ts ❌ 97.5% 90.9% 96.96%
src/sdk/execution-result.ts ✅ 100% 92.68% 70.83%
src/sdk/execution.ts ✅ 100% 94.11% 83.33%
src/sdk/gateway-config.ts ✅ 100% 100% 100%
src/sdk/mcp-config.ts ✅ 100% 100% 100%
src/sdk/network-policy.ts ✅ 100% 100% 100%
src/sdk/scenario-run.ts ✅ 100% 96.87% 50%
src/sdk/scenario.ts ✅ 100% 100% 100%
src/sdk/scorer.ts ✅ 100% 100% 100%
src/sdk/snapshot.ts ✅ 100% 100% 100%
src/sdk/storage-object.ts ✅ 100% 80% 48.93%

📋 View workflow run

@alb-rl alb-rl merged commit 2b15fa6 into main Mar 3, 2026
9 checks passed
@alb-rl alb-rl deleted the cursor/smoketest-tunnel-removal-33a9 branch March 3, 2026 00:46
@stainless-app stainless-app bot mentioned this pull request Mar 3, 2026
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.

3 participants