Skip to content

chore(vercel-sandbox): fix and improve sandbox integration tests#162

Merged
marc-vercel merged 2 commits into
named-sandboxesfrom
sandboxes-fix-tests
Apr 27, 2026
Merged

chore(vercel-sandbox): fix and improve sandbox integration tests#162
marc-vercel merged 2 commits into
named-sandboxesfrom
sandboxes-fix-tests

Conversation

@marc-vercel
Copy link
Copy Markdown
Collaborator

Test fixes:

  • Fix the 2 failing tests regarding OIDC by mocking it.
  • Fix the 2 failing tests regarding killing a command by expecting a 255 instead of 128 + signal code. There was a regression around one month ago where we started returning 255 instead of the 128 + signal code. We can revert back to the previously state if we want to, but for now I am just ensuring the tests pass.
  • Increase the afterEach timeout from 10 seconds (default) to 30 seconds. This is due to the .stop() step being blocking by default. Persistent sandboxes have to stop the sandbox and snapshot.

Other improvements:

  • Integration tests now create snapshots with an expiration time of 1 day, to ensure they are cleaned up fast.
  • Integration tests now always delete the sandboxes, to avoid having test sandboxes in the accounts where we run the tests.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sandbox-sdk Ready Ready Preview, Comment Apr 23, 2026 3:48pm

@marc-vercel marc-vercel changed the title Sandboxes fix tests chore(vercel-sandbox): fix and improve sandbox integration tests Apr 23, 2026
@marc-vercel marc-vercel marked this pull request as ready for review April 27, 2026 15:17
@marc-vercel marc-vercel merged commit 06c20c7 into named-sandboxes Apr 27, 2026
13 checks passed
@marc-vercel marc-vercel deleted the sandboxes-fix-tests branch April 27, 2026 15:18
LukeSheard pushed a commit that referenced this pull request May 7, 2026
Test fixes:
- Fix the 2 failing tests regarding OIDC by mocking it.
- Fix the 2 failing tests regarding killing a command by expecting a 255
instead of 128 + signal code. There was a regression around one month
ago where we started returning 255 instead of the 128 + signal code. We
can revert back to the previously state if we want to, but for now I am
just ensuring the tests pass.
- Increase the `afterEach` timeout from 10 seconds (default) to 30
seconds. This is due to the `.stop()` step being blocking by default.
Persistent sandboxes have to stop the sandbox and snapshot.

Other improvements:
- Integration tests now create snapshots with an expiration time of 1
day, to ensure they are cleaned up fast.
- Integration tests now always delete the sandboxes, to avoid having
test sandboxes in the accounts where we run the tests.
LukeSheard pushed a commit that referenced this pull request May 11, 2026
Test fixes:
- Fix the 2 failing tests regarding OIDC by mocking it.
- Fix the 2 failing tests regarding killing a command by expecting a 255
instead of 128 + signal code. There was a regression around one month
ago where we started returning 255 instead of the 128 + signal code. We
can revert back to the previously state if we want to, but for now I am
just ensuring the tests pass.
- Increase the `afterEach` timeout from 10 seconds (default) to 30
seconds. This is due to the `.stop()` step being blocking by default.
Persistent sandboxes have to stop the sandbox and snapshot.

Other improvements:
- Integration tests now create snapshots with an expiration time of 1
day, to ensure they are cleaned up fast.
- Integration tests now always delete the sandboxes, to avoid having
test sandboxes in the accounts where we run the tests.
LukeSheard pushed a commit that referenced this pull request May 11, 2026
Test fixes:
- Fix the 2 failing tests regarding OIDC by mocking it.
- Fix the 2 failing tests regarding killing a command by expecting a 255
instead of 128 + signal code. There was a regression around one month
ago where we started returning 255 instead of the 128 + signal code. We
can revert back to the previously state if we want to, but for now I am
just ensuring the tests pass.
- Increase the `afterEach` timeout from 10 seconds (default) to 30
seconds. This is due to the `.stop()` step being blocking by default.
Persistent sandboxes have to stop the sandbox and snapshot.

Other improvements:
- Integration tests now create snapshots with an expiration time of 1
day, to ensure they are cleaned up fast.
- Integration tests now always delete the sandboxes, to avoid having
test sandboxes in the accounts where we run the tests.
LukeSheard pushed a commit that referenced this pull request May 11, 2026
Test fixes:
- Fix the 2 failing tests regarding OIDC by mocking it.
- Fix the 2 failing tests regarding killing a command by expecting a 255
instead of 128 + signal code. There was a regression around one month
ago where we started returning 255 instead of the 128 + signal code. We
can revert back to the previously state if we want to, but for now I am
just ensuring the tests pass.
- Increase the `afterEach` timeout from 10 seconds (default) to 30
seconds. This is due to the `.stop()` step being blocking by default.
Persistent sandboxes have to stop the sandbox and snapshot.

Other improvements:
- Integration tests now create snapshots with an expiration time of 1
day, to ensure they are cleaned up fast.
- Integration tests now always delete the sandboxes, to avoid having
test sandboxes in the accounts where we run the tests.
LukeSheard pushed a commit that referenced this pull request May 11, 2026
Test fixes:
- Fix the 2 failing tests regarding OIDC by mocking it.
- Fix the 2 failing tests regarding killing a command by expecting a 255
instead of 128 + signal code. There was a regression around one month
ago where we started returning 255 instead of the 128 + signal code. We
can revert back to the previously state if we want to, but for now I am
just ensuring the tests pass.
- Increase the `afterEach` timeout from 10 seconds (default) to 30
seconds. This is due to the `.stop()` step being blocking by default.
Persistent sandboxes have to stop the sandbox and snapshot.

Other improvements:
- Integration tests now create snapshots with an expiration time of 1
day, to ensure they are cleaned up fast.
- Integration tests now always delete the sandboxes, to avoid having
test sandboxes in the accounts where we run the tests.
LukeSheard pushed a commit that referenced this pull request May 11, 2026
Test fixes:
- Fix the 2 failing tests regarding OIDC by mocking it.
- Fix the 2 failing tests regarding killing a command by expecting a 255
instead of 128 + signal code. There was a regression around one month
ago where we started returning 255 instead of the 128 + signal code. We
can revert back to the previously state if we want to, but for now I am
just ensuring the tests pass.
- Increase the `afterEach` timeout from 10 seconds (default) to 30
seconds. This is due to the `.stop()` step being blocking by default.
Persistent sandboxes have to stop the sandbox and snapshot.

Other improvements:
- Integration tests now create snapshots with an expiration time of 1
day, to ensure they are cleaned up fast.
- Integration tests now always delete the sandboxes, to avoid having
test sandboxes in the accounts where we run the tests.
LukeSheard pushed a commit that referenced this pull request May 11, 2026
Test fixes:
- Fix the 2 failing tests regarding OIDC by mocking it.
- Fix the 2 failing tests regarding killing a command by expecting a 255
instead of 128 + signal code. There was a regression around one month
ago where we started returning 255 instead of the 128 + signal code. We
can revert back to the previously state if we want to, but for now I am
just ensuring the tests pass.
- Increase the `afterEach` timeout from 10 seconds (default) to 30
seconds. This is due to the `.stop()` step being blocking by default.
Persistent sandboxes have to stop the sandbox and snapshot.

Other improvements:
- Integration tests now create snapshots with an expiration time of 1
day, to ensure they are cleaned up fast.
- Integration tests now always delete the sandboxes, to avoid having
test sandboxes in the accounts where we run the tests.
LukeSheard pushed a commit that referenced this pull request May 11, 2026
Test fixes:
- Fix the 2 failing tests regarding OIDC by mocking it.
- Fix the 2 failing tests regarding killing a command by expecting a 255
instead of 128 + signal code. There was a regression around one month
ago where we started returning 255 instead of the 128 + signal code. We
can revert back to the previously state if we want to, but for now I am
just ensuring the tests pass.
- Increase the `afterEach` timeout from 10 seconds (default) to 30
seconds. This is due to the `.stop()` step being blocking by default.
Persistent sandboxes have to stop the sandbox and snapshot.

Other improvements:
- Integration tests now create snapshots with an expiration time of 1
day, to ensure they are cleaned up fast.
- Integration tests now always delete the sandboxes, to avoid having
test sandboxes in the accounts where we run the tests.
LukeSheard pushed a commit that referenced this pull request May 11, 2026
Test fixes:
- Fix the 2 failing tests regarding OIDC by mocking it.
- Fix the 2 failing tests regarding killing a command by expecting a 255
instead of 128 + signal code. There was a regression around one month
ago where we started returning 255 instead of the 128 + signal code. We
can revert back to the previously state if we want to, but for now I am
just ensuring the tests pass.
- Increase the `afterEach` timeout from 10 seconds (default) to 30
seconds. This is due to the `.stop()` step being blocking by default.
Persistent sandboxes have to stop the sandbox and snapshot.

Other improvements:
- Integration tests now create snapshots with an expiration time of 1
day, to ensure they are cleaned up fast.
- Integration tests now always delete the sandboxes, to avoid having
test sandboxes in the accounts where we run the tests.
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