Skip to content

Conversation

emily-shen
Copy link
Collaborator

@emily-shen emily-shen commented Oct 16, 2025

commit 1:
containerFetch and fetch are now just fetch.
not entirely sure how to ban users from overriding fetch. i don't think we can do that in typescript alone.

commit 2:
combine start, startAndWaitForPorts, startContainerIfNotRunning and waitForPorts into one function.

also removes 'requiredPorts' where we check all of these on start up. i don't think we should commit to this - we should make this call a user provided health check hook instead where we ping the container.

i noticed that the error strings we're matching on don't exist in the local implementation - we should either add them in and/or reconsider if there is a more robust way to do this other than string matching

todo:

  • put all the onError calls back in

@emily-shen emily-shen requested a review from a team as a code owner October 16, 2025 14:28
@emily-shen emily-shen marked this pull request as draft October 16, 2025 14:28
Comment on lines 244 to 245
/** Whether to enable internet access for the container */
enableInternet?: boolean;
Copy link
Member

Choose a reason for hiding this comment

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

For optional boolean values like this, can we document what the default is if left undefined?

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