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

conf: Fix httpcli config#54745

Merged
efritz merged 1 commit into
mainfrom
ef/fix-outbound-requests
Jul 10, 2023
Merged

conf: Fix httpcli config#54745
efritz merged 1 commit into
mainfrom
ef/fix-outbound-requests

Conversation

@efritz

@efritz efritz commented Jul 10, 2023

Copy link
Copy Markdown
Contributor

See this comment for the source issue. Looks like #52242 introduced a condition where certain httpcli settings were not being configured in the frontend due to some cyclic package dependency-avoidance trickery in the conf.Init function.

This PR ensures that this setup code is hit in the frontend initialization process. No other service should need this (as they hit the conf.Init function directly from SingleServiceMain on startup), and no other feature should have been affected (as these are the only settings missing from that path).

Test plan

Tested locally.

@efritz efritz requested review from Strum355, burmudar and mrnugget July 10, 2023 13:39
@efritz efritz self-assigned this Jul 10, 2023
@cla-bot cla-bot Bot added the cla-signed label Jul 10, 2023

@mrnugget mrnugget 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.

Nice!

@efritz efritz enabled auto-merge (squash) July 10, 2023 15:55
@efritz efritz force-pushed the ef/fix-outbound-requests branch from cadbee6 to cb69e4e Compare July 10, 2023 15:56
@efritz efritz merged commit e715340 into main Jul 10, 2023
@efritz efritz deleted the ef/fix-outbound-requests branch July 10, 2023 17:10
github-actions Bot pushed a commit that referenced this pull request Jul 10, 2023
(cherry picked from commit e715340)
coury-clark pushed a commit that referenced this pull request Jul 10, 2023
See [this
comment](https://github.com/sourcegraph/sourcegraph/pull/52242/files#r1254598066)
for the source issue. Looks like #52242 introduced a condition where
certain httpcli settings were not being configured in the frontend due
to some cyclic package dependency-avoidance trickery in the `conf.Init`
function.

This PR ensures that this setup code is hit in the frontend
initialization process. No other service should need this (as they hit
the `conf.Init` function directly from `SingleServiceMain` on startup),
and no other feature should have been affected (as these are the only
settings missing from that path).

## Test plan

Tested locally. <br> Backport e715340
from #54745

Co-authored-by: Eric Fritz <eric@sourcegraph.com>
nelsonjr pushed a commit that referenced this pull request Jul 11, 2023
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.

3 participants