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

fix: remove likelyDockerOnMac functionality#50638

Merged
kopancek merged 1 commit into
mainfrom
milan/remove_likely_docker_on_mac
Apr 14, 2023
Merged

fix: remove likelyDockerOnMac functionality#50638
kopancek merged 1 commit into
mainfrom
milan/remove_likely_docker_on_mac

Conversation

@kopancek

@kopancek kopancek commented Apr 14, 2023

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

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.
@kopancek kopancek requested review from indradhanush, jac and vdavid April 14, 2023 13:23
@cla-bot cla-bot Bot added the cla-signed label Apr 14, 2023
@kopancek kopancek changed the title chore: remove likelyDockerOnMac functionality fix: remove likelyDockerOnMac functionality Apr 14, 2023

@indradhanush indradhanush left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approve to unblock. I think there's one unrelated change.

Comment thread doc/dev/security/csrf_security_model.md
@sg-e2e-regression-test-bob

Copy link
Copy Markdown

Bundle size report 📦

Initial size Total size Async size Modules
0.00% (+0.01 kb) 0.00% (+0.01 kb) 0.00% (0.00 kb) 0.00% (0)

Look at the Statoscope report for a full comparison between the commits 3666c27 and 2d15210 or learn more.

Open explanation
  • Initial size is the size of the initial bundle (the one that is loaded when you open the page)
  • Total size is the size of the initial bundle + all the async loaded chunks
  • Async size is the size of all the async loaded chunks
  • Modules is the number of modules in the initial bundle

@kopancek kopancek merged commit 83f26a3 into main Apr 14, 2023
@kopancek kopancek deleted the milan/remove_likely_docker_on_mac branch April 14, 2023 20:17
github-actions Bot pushed a commit that referenced this pull request Apr 14, 2023
## 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)
cesrjimenez pushed a commit that referenced this pull request Apr 14, 2023
## 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)
keegancsmith pushed a commit that referenced this pull request Apr 17, 2023
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)

Backport 83f26a3 from #50638

Co-authored-by: Milan Freml <kopancek@users.noreply.github.com>
kopancek added a commit that referenced this pull request Apr 18, 2023
kopancek added a commit that referenced this pull request Apr 18, 2023
## Test plan

just changelog change, no tests
github-actions Bot pushed a commit that referenced this pull request Apr 18, 2023
## Test plan

just changelog change, no tests

(cherry picked from commit e74d2b3)
coury-clark pushed a commit that referenced this pull request Apr 18, 2023
## Test plan

just changelog change, no tests
 <br> Backport e74d2b3 from #50775

Co-authored-by: Milan Freml <kopancek@users.noreply.github.com>
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.

4 participants