Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

[Backport 5.0] fix: remove likelyDockerOnMac functionality#50661

Merged
keegancsmith merged 1 commit into
5.0from
backport-50638-to-5.0
Apr 17, 2023
Merged

[Backport 5.0] fix: remove likelyDockerOnMac functionality#50661
keegancsmith merged 1 commit into
5.0from
backport-50638-to-5.0

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Description

This function is trying to resolve DNS to host.docker.internal which might not work correctly on docker-compose environments, causing DNS timeouts on an air-gapped customer instance.

We can do the same check on the UI itself by checking the user navigator for Mac OS X string.

Test plan

Tested locally by running sg, running in docker-compose. @indradhanush and @jac present on a zoom call where we tested it together.

main-dry-run is here
Backport 83f26a3 from #50638

## Description

This function is trying to resolve DNS to `host.docker.internal` which
might not work correctly on docker-compose environments, causing DNS
timeouts on an air-gapped customer instance.

We can do the same check on the UI itself by checking the user navigator
for Mac OS X string.

## Test plan

Tested locally by running sg, running in docker-compose. @indradhanush
and @jac present on a zoom call where we tested it together.

[main-dry-run is
here](https://buildkite.com/sourcegraph/sourcegraph/builds/213164)

(cherry picked from commit 83f26a3)

@keegancsmith keegancsmith left a comment

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.

wow, I can't believe we had a 10s timeout on the request path to every request!! Kill with fire.

@keegancsmith keegancsmith merged commit 7754870 into 5.0 Apr 17, 2023
@keegancsmith keegancsmith deleted the backport-50638-to-5.0 branch April 17, 2023 07:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants