Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getInfo/get_info methods to the SDKs #625

Merged
merged 6 commits into from
Mar 24, 2025
Merged

Add getInfo/get_info methods to the SDKs #625

merged 6 commits into from
Mar 24, 2025

Conversation

mishushakov
Copy link
Member

Copy link

changeset-bot bot commented Mar 21, 2025

🦋 Changeset detected

Latest commit: 654ac8d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@e2b/python-sdk Patch
e2b Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

mlejva
mlejva previously requested changes Mar 21, 2025
@ValentaTomas ValentaTomas added the feature New feature or request label Mar 23, 2025
@ValentaTomas ValentaTomas requested review from dobrac and mlejva and removed request for mlejva and jakubno March 23, 2025 18:20
Copy link
Contributor

@dobrac dobrac left a comment

Choose a reason for hiding this comment

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

looks good, just minor documentation comments improvements

...(res.data.alias && { name: res.data.alias }),
metadata: res.data.metadata ?? {},
startedAt: new Date(res.data.startedAt),
endAt: new Date(res.data.endAt),
Copy link
Contributor

Choose a reason for hiding this comment

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

what if the sandbox is still running? It it the expected end time then? It might be good to explain in then in the documentation as it isn't clear imo

Copy link
Member Author

Choose a reason for hiding this comment

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

It's returned from the API already, should be the timestamp when the sandbox is expected to expire

@@ -19,5 +19,10 @@ sandboxTest.skipIf(isDebug)('shorten then lenghten timeout', async ({ sandbox })

await wait(6000)

await sandbox.isRunning()
expect(await sandbox.isRunning()).toBeTruthy()
Copy link
Contributor

Choose a reason for hiding this comment

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

why this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

before, I believe the test would pass even if the promise resolved with false, it should however check that the Promise resolves with true, explicitly

@mishushakov mishushakov dismissed mlejva’s stale review March 24, 2025 13:25

I have addressed the comments and @dobrac has approved already

@mishushakov mishushakov merged commit d4f4352 into main Mar 24, 2025
5 checks passed
@mishushakov mishushakov deleted the get-info branch March 24, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants