Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: remove initial global HTTP client usage#20128

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
zedkipp merged 2 commits intomainfromzedkipp/initial-rm-global-http-client
Oct 2, 2025

Conversation

@zedkipp
Copy link
Contributor

This PR makes the initial steps at removing usage of the global Go HTTP client, which was seen to have impacts on test flakiness incoder/internal#1020. The first commit removes uses from tests, with the exception ofone test that is tightly coupled to the default client. The second commit makes easy/low-risk removals from application code (I'm new to the project). This should have some impact to reduce flakiness.

This commit is an effort to further isolate tests by removingshared used of the global default HTTP client.
Make easy, low-risk removals of default HTTP client usage.Some application code calls CloseIdleConnections on the default HTTPclient which can cause other code under test using the default HTTPclient to be impacted. This should reduce test flakiness.
@github-actions
Copy link

github-actionsbot commentedOct 1, 2025
edited
Loading

All contributors have signed the CLA ✍️ ✅
Posted by theCLA Assistant Lite bot.

@zedkipp
Copy link
ContributorAuthor

I have read the CLA Document and I hereby sign the CLA

cdrci2 added a commit to coder/cla that referenced this pull requestOct 1, 2025
@zedkippzedkipp changed the titlefix: initial removal of global HTTP client usagefix: remove initial global HTTP client usageOct 2, 2025
@zedkippzedkipp marked this pull request as ready for reviewOctober 2, 2025 14:55
Copy link
Contributor

@buenos-nachosbuenos-nachos left a comment

Choose a reason for hiding this comment

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

Everything looks good to me, but I'd rather this get a second opinion from someone with more backend context

(Also, for future reference, Kayla and I got tagged as code owners because the PR changed a file in/site, but the main intent for that check is to get more eyes on the TypeScript parts of the codebase. Kayla can absolutely hold her own when it comes to backend stuff – I'm definitely still getting my feet wet, though, so I'm going to be less useful. I'd say that if you're not updating any TypeScript code, you can go ahead and tag any backend engineer for changes like these.)

zedkipp reacted with thumbs up emoji
@bcpeinhardt
Copy link
Contributor

Nice 😎 It looks good to me. I went looking for other types of invocations that might use the default client (likehttp.Get etc.) but didn't find any.

Might be a good opportunity to start documenting some testing practices in the CONTRIBUTING guide (usingNewRequestWithContext and a new client etc.), but doesn't need to be on this PR.

zedkipp reacted with thumbs up emoji

@zedkippzedkipp merged commit4d1003e intomainOct 2, 2025
76 of 79 checks passed
@zedkippzedkipp deleted the zedkipp/initial-rm-global-http-client branchOctober 2, 2025 17:43
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 2, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@aslilacaslilacAwaiting requested review from aslilac

2 more reviewers

@buenos-nachosbuenos-nachosbuenos-nachos left review comments

@bcpeinhardtbcpeinhardtbcpeinhardt approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

@zedkippzedkipp

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@zedkipp@bcpeinhardt@buenos-nachos

[8]ページ先頭

©2009-2025 Movatter.jp