Skip to content

Fix Compile gRPC call hangs when there is a lot of output#2171

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 3 commits into from
May 8, 2023

Conversation

cmaglie
Copy link
Member

@cmagliecmaglie commented May 5, 2023

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • configuration.schema.json updated if new parameters are added.

What kind of change does this PR introduce?

Fix gRPC Compile call hangs when there is a lot of output.

What is the current behavior?

The gRPC Compile call sometimes hangs forever if there is a lot of output. For details see #2169.

What is the new behavior?

The gRPC Compile call always completes.

Does this PR introduce a breaking change, and is titled accordingly?

No

Other information

The same fix has been applied to all gRPC calls with streaming in output, even if there is no evidence of problems with it.

Fix#2169

@cmagliecmaglie self-assigned this May 5, 2023
@cmagliecmaglie added type: imperfection Perceived defect in any part of project topic: gRPC Related to the gRPC interface labels May 5, 2023
@cmagliecmaglie added this to the Arduino CLI 0.33.0 milestone May 5, 2023
@cmagliecmaglie requested a review from per1234May 5, 2023 16:07
@cmagliecmaglie changed the title Fix Compile gRPC call closing when there is a lot of outputFix Compile gRPC call hangs when there is a lot of outputMay 5, 2023
@codecov
Copy link

codecovbot commented May 5, 2023

Codecov Report

Patch coverage: 38.35% and project coverage change: -0.02⚠️

Comparison is base (ede5a78) 62.55% compared to head (e6da5f8) 62.53%.

Additional details and impacted files
@@ Coverage Diff @@## master #2171 +/- ## ========================================== - Coverage 62.55% 62.53% -0.02%  ========================================== Files 223 223 Lines 19460 19488 +28 ========================================== + Hits 12173 12187 +14 - Misses 6196 6210 +14  Partials 1091 1091 
FlagCoverage Δ
unit62.53% <38.35%> (-0.02%)⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted FilesCoverage Δ
commands/daemon/daemon.go25.61% <29.68%> (+0.04%)⬆️
commands/daemon/stream.go66.66% <100.00%> (+6.24%)⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@cmagliecmaglie merged commit 855c238 into arduino:masterMay 8, 2023
@cmagliecmaglie deleted the fix_send_synchronization branch May 8, 2023 15:50
@per1234per1234 added the topic: code Related to content of the project itself label Jun 5, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: codeRelated to content of the project itselftopic: gRPCRelated to the gRPC interfacetype: imperfectionPerceived defect in any part of project
3 participants
@cmaglie@alessio-perugini@per1234
close