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

Use host.docker.internal for acceptance testing on macs #12791

Merged
merged 3 commits into from
May 11, 2022

Conversation

evantahler
Copy link
Contributor

@evantahler evantahler commented May 11, 2022

This PR updates the acceptance test host on Macs to be host.docker.internal rather than localhost. This fixes a class of problems that prevented developers (me!) from running acceptance tests locally. This change does not effect K8s test runners.

This bug may be due to a new version of Docker Desktop + M1 Macs.

@evantahler evantahler requested a review from pmossman May 11, 2022 21:08
@evantahler evantahler temporarily deployed to more-secrets May 11, 2022 21:08 Inactive
@evantahler evantahler temporarily deployed to more-secrets May 11, 2022 21:08 Inactive
Copy link
Contributor

@pmossman pmossman left a comment

Choose a reason for hiding this comment

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

LGTM assuming the PR build checks all pass!

@evantahler evantahler temporarily deployed to more-secrets May 11, 2022 21:15 Inactive
@evantahler evantahler temporarily deployed to more-secrets May 11, 2022 21:16 Inactive
@evantahler evantahler temporarily deployed to more-secrets May 11, 2022 21:49 Inactive
@evantahler evantahler temporarily deployed to more-secrets May 11, 2022 21:50 Inactive
@evantahler evantahler requested a review from pmossman May 11, 2022 23:12
@evantahler
Copy link
Contributor Author

evantahler commented May 11, 2022

@pmossman looks like we did need to consider this change just for "dev" users - re-review requested.

@evantahler evantahler changed the title Use host.docker.internal for acceptance testing Use host.docker.internal for acceptance testing on macs May 11, 2022
Copy link
Contributor

@pmossman pmossman left a comment

Choose a reason for hiding this comment

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

Ah that makes sense to me

@evantahler evantahler merged commit 5ff96ab into master May 11, 2022
@evantahler evantahler deleted the evan/acceptance-test-host branch May 11, 2022 23:22
@evantahler
Copy link
Contributor Author

cc @davinchia

suhomud pushed a commit that referenced this pull request May 23, 2022
* Use `host.docker.internal` for acceptance testing

* Lint

* conditional hostname for mac only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants