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

feat/proxy healthcheck through host proxy #44

Open
wants to merge 3 commits into
base: dstewart/chore/avoid-bespoke-protocol
Choose a base branch
from

Conversation

blast-hardcheese
Copy link

@blast-hardcheese blast-hardcheese commented Nov 14, 2024

  • Export 8080 to host port
  • Migrate healthcheck over to use host-forwarded 8080
  • await healthcheck calls

@blast-hardcheese blast-hardcheese force-pushed the dstewart/feat/proxy-healthcheck-through-host-proxy branch from c2adcae to 1aaf529 Compare November 14, 2024 17:48
@blast-hardcheese blast-hardcheese force-pushed the dstewart/feat/proxy-healthcheck-through-host-proxy branch 3 times, most recently from d86eb8e to 70692e9 Compare November 15, 2024 17:56
@blast-hardcheese blast-hardcheese changed the base branch from main to dstewart/chore/avoid-bespoke-protocol November 15, 2024 18:03
@@ -330,7 +355,7 @@ export async function setupContainer(

// warm up the container. wait 10s until we get at least one good result back.
if (type === 'server') {
healthCheck(container, network);
await healthCheck(container, network, hostPortMapping);
Copy link
Member

Choose a reason for hiding this comment

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

oops

@masad-frost
Copy link
Member

looks good at face value, but "why" is not clear to me.

@blast-hardcheese
Copy link
Author

looks good at face value, but "why" is not clear to me.

macOS docker doesn't (can't?) expose the docker subnets to the host due to virtualization boundary.

The reason tests passed locally at all (on mac) was because of the missing await permitting some tests to run if they were fast enough, but then the node runtime would die with an "unrooted" promise exception when the healthcheck eventually timed out.

@blast-hardcheese blast-hardcheese force-pushed the dstewart/chore/avoid-bespoke-protocol branch from 4e57c85 to 7738f54 Compare November 16, 2024 01:05
@blast-hardcheese blast-hardcheese force-pushed the dstewart/feat/proxy-healthcheck-through-host-proxy branch from 70692e9 to 5b077b6 Compare November 16, 2024 01:06
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