-
-
Notifications
You must be signed in to change notification settings - Fork 403
gRPC Upload
response stream truncated
#1818
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
Comments
this makes SerialUPDI hard to use as a programmer and generally may degrade the quality of other bug reports |
Actually it is not the expected output, because the
BTW I think I already fixed this problem as part of another PR: @per1234 may I ask you to retest it? In case it's not fixed, may I ask you how you create the conditions for an upload failure? |
I've retested with the latest version:
it seems that the
the |
Describe the problem
The
cc.arduino.cli.commands.v1.ArduinoCoreService.Upload
method of Arduino CLI's gRPC interface has a streaming response that contains the output from the upload process.🐛 Under some conditions, this stream is truncated, resulting in information essential for troubleshooting upload failures not being available to the user.
To reproduce
Set up
Run the following command in another terminal:
Demo
Check the command line output
Run the following command in another terminal:
🙂 The non-verbose command line output is exactly as expected.
🙂 The verbose command line output is exactly as expected.
Check the gRPC response
Use grpcurl to run the following commands.
Upload with verbose output disabled:
🙂 The contents of the
errStream
field of the response is exactly as expected:Upload with verbose output enabled:
🐛 The
errStream
field of the response is empty.Expected behavior
cc.arduino.cli.commands.v1.ArduinoCoreService.Upload
response stream contains the full output from the upload tool.Arduino CLI version
5332ffd
Operating system
Windows, Ubuntu
Operating system version
Windows 10, Ubuntu 20.04
Additional context
I bisected the introduction of the issue to 5332ffd
I encountered the issue under specific conditions, but am not certain this is the entire scope of the issue:
I used grpcurl in the demo, but the same problem occurs when using Arduino IDE 2.x.
I can see the full expected output in the
arduino-cli daemon --debug
output (note that it is in the second segment of the stream):Originally reported by @sterretjeToo at https://forum.arduino.cc/t/serial-monitor-detect-interferes-with-sketch-on-promicro/1017659/5
Issue checklist
The text was updated successfully, but these errors were encountered: