Skip to content

Conversation

@jakubno
Copy link
Member

@jakubno jakubno commented Oct 31, 2025

Note

Refactors periodic tests to use a shared sandbox runner that cleans up on success and extends failed sandboxes for debugging; improves template cleanup and flow in time sync test.

  • Tests (periodic):
    • Utils: Add tests/periodic-test/utils.ts with log, DEBUG_TIMEOUT_MS, and runTestWithSandbox to manage sandbox execution, auto-kill on success, and keep failed sandboxes alive with connect instructions.
    • Refactors:
      • Wrap sandbox usage with runTestWithSandbox in create-file.ts, internet-works.ts, run-code.ts, and snapshot-and-resume.ts; remove ad-hoc try/catch/finally and manual kill calls.
      • internet-works.ts: simplify flow and remove environment-based skip.
    • Time sync test (time-is-synchronized/index.ts):
      • Use runTestWithSandbox for the sandboxed check and structured logging.
      • Add deleteTemplate() helper and ensure template deletion in finally for reliable cleanup.
      • Keep idempotency (e2b.toml removal) and template build/parse logic while streamlining execution and error handling.

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

const sandbox = await Sandbox.create();
log("ℹ️ sandbox created", sandbox.sandboxId);

if (Deno.env.get("E2B_DOMAIN") === "e2b-juliett.dev") {
Copy link
Member Author

Choose a reason for hiding this comment

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

removed this as it isn't needed anymore

@sitole sitole self-requested a review November 5, 2025 09:35
@jakubno jakubno merged commit 8014191 into main Nov 6, 2025
27 checks passed
@jakubno jakubno deleted the keep-failed-sandboxes-in-tests-alive branch November 6, 2025 09:43
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