Skip to content

Handle Bundler::Fetcher::NetworkDownError during Bundler setup #3697

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

Merged
merged 1 commit into from
Jul 30, 2025

Conversation

egiurleo
Copy link
Contributor

@egiurleo egiurleo commented Jul 30, 2025

Motivation

We have received telemetry reports of Bundler::Fetcher::NetworkDownErrors. We expect a certain number of these errors if Bundler ever encounters a networking issue, so it doesn't really help us to receive telemetry reports about it.

Implementation

This rescues Bundler::Fetcher::NetworkDownErrors in RubyLsp::SetupBundler#run_bundle_install. If Bundler encounters any network errors, the resulting exception will get caught and discarded rather than being reported to telemetry.

Automated Tests

I added an automated test.

We occasionally receive reports of `Bundler::Fetcher::NetworkDownError`s happening
in our telemetry. We expect errors like this occasionally and seeing them in
telemetry does not really help us. For now, we can handle these errors so they
don't get written to our error logging file.
Copy link
Contributor Author

egiurleo commented Jul 30, 2025


How to use the Graphite Merge Queue

Add the label graphite-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@egiurleo egiurleo requested review from alexcrocha and vinistock July 30, 2025 19:30
@egiurleo egiurleo marked this pull request as ready for review July 30, 2025 19:31
@egiurleo egiurleo requested a review from a team as a code owner July 30, 2025 19:31
@vinistock vinistock added server This pull request should be included in the server gem's release notes other Changes that aren't bugfixes, enhancements or breaking changes labels Jul 30, 2025
Copy link

graphite-app bot commented Jul 30, 2025

Merge activity

@egiurleo egiurleo merged commit 9a027cf into main Jul 30, 2025
38 of 39 checks passed
@egiurleo egiurleo deleted the ignore-network-down-error branch July 30, 2025 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
other Changes that aren't bugfixes, enhancements or breaking changes server This pull request should be included in the server gem's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants