Skip to content

next: cleanup fetch and start#102

Merged
emily-shen merged 4 commits into
nextfrom
emily/fetch-cleanup
Oct 31, 2025
Merged

next: cleanup fetch and start#102
emily-shen merged 4 commits into
nextfrom
emily/fetch-cleanup

Conversation

@emily-shen
Copy link
Copy Markdown
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 thread src/lib/container.ts
Comment thread src/lib/container.ts Outdated
Comment on lines +244 to +245
/** Whether to enable internet access for the container */
enableInternet?: boolean;
Copy link
Copy Markdown
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?

@emily-shen emily-shen marked this pull request as ready for review October 31, 2025 16:32
@emily-shen emily-shen merged commit 808e76a into next Oct 31, 2025
@emily-shen
Copy link
Copy Markdown
Collaborator Author

just going to push directly to next for now

emily-shen added a commit that referenced this pull request Dec 15, 2025
* consolidate fetch and containerFetch

* consolidate start and readiness functions

* fixups

* more fixups
emily-shen added a commit that referenced this pull request Dec 15, 2025
* consolidate fetch and containerFetch

* consolidate start and readiness functions

* fixups

* more fixups
@mattjohnsonpint mattjohnsonpint deleted the emily/fetch-cleanup branch May 13, 2026 16:35
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