Skip to content

improve gRPC robustness #1574

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

Conversation

jluebbe
Copy link
Member

@jluebbe jluebbe commented Jan 21, 2025

These check for some corner cases that we've seen in your lab and handle them better.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
If an acquire or release failed on the exporter, we should add the
reason to the exception.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
@jluebbe jluebbe changed the title improve grpc robustness improve gRPC robustness Jan 21, 2025
jluebbe and others added 2 commits January 21, 2025 12:29
…pired

Event if the caller has given up on this command, we should at least report if
we receive a reply later.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Handle acquire/release calls for already acquired/released resources as
errors by raising an exception and providing the reason to the
coordinator. That also means that these calls will now return an error
to the coordinator.

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
@jluebbe jluebbe force-pushed the improve-grpc-robustness branch from 1fbda8c to 396af5d Compare January 21, 2025 11:30
Copy link

codecov bot commented Jan 21, 2025

Codecov Report

Attention: Patch coverage is 16.00000% with 21 lines in your changes missing coverage. Please review.

Project coverage is 56.1%. Comparing base (fff35ee) to head (396af5d).
Report is 74 commits behind head on master.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
labgrid/remote/coordinator.py 0.0% 13 Missing ⚠️
labgrid/remote/exporter.py 33.3% 8 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master   #1574     +/-   ##
========================================
- Coverage    56.2%   56.1%   -0.1%     
========================================
  Files         170     170             
  Lines       13248   13265     +17     
========================================
+ Hits         7449    7453      +4     
- Misses       5799    5812     +13     
Flag Coverage Δ
3.10 56.4% <16.0%> (-0.1%) ⬇️
3.11 56.4% <16.0%> (-0.1%) ⬇️
3.12 56.4% <16.0%> (-0.1%) ⬇️
3.13 56.4% <16.0%> (-0.1%) ⬇️
3.9 56.5% <16.0%> (-0.1%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Bastian-Krause Bastian-Krause merged commit fc33503 into labgrid-project:master Jan 22, 2025
9 of 11 checks passed
@jluebbe jluebbe deleted the improve-grpc-robustness branch January 23, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants