Skip to content

remote: Detach streams from unary RPCs - #1906

Closed
asher-pem-arm wants to merge 2 commits into
labgrid-project:masterfrom
ARM-software:detach-streams-from-unary-rpcs-rebase-on-fork_part1
Closed

remote: Detach streams from unary RPCs#1906
asher-pem-arm wants to merge 2 commits into
labgrid-project:masterfrom
ARM-software:detach-streams-from-unary-rpcs-rebase-on-fork_part1

Conversation

@asher-pem-arm

@asher-pem-arm asher-pem-arm commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Description

Checklist

  • Documentation for the feature
  • Tests for the feature
  • The arguments and description in doc/configuration.rst have been updated
  • Add a section on how to use the feature to doc/usage.rst
  • Add a section on how to use the feature to doc/development.rst
  • PR has been tested
  • Man pages have been regenerated

See:
#1881

Summary:
Add metadata-based gRPC client identity using client/server interceptors.
Detach unary place/reservation RPC identity lookup from the long-lived ClientStream, while keeping deprecated startup stream fields for compatibility.

note:
new client with these changes using old coordinator pre these changes would be broken here, discussion needed on this point

asher-pem-arm and others added 2 commits June 29, 2026 15:00
Add client and server interceptors which attach labgrid identity metadata
to gRPC calls and expose it to coordinator RPC handlers.

Use the metadata identity to register client and exporter stream sessions
while keeping startup-message handling as a deprecated fallback for older
clients and exporters.

Signed-off-by: Asher Pemberton <asher.pemberton@arm.com>
Reviewed-by: Asher Pemberton <asher.pemberton@arm.com> # gatekeeper
Co-authored-by: Luke Beardsmore <luke.beardsmore2@arm.com>
Allow AcquirePlace, ReleasePlace and CreateReservation to identify the
caller from gRPC metadata instead of requiring identity to come only from
an established ClientStream session.

Keep the existing ClientStream session lookup as a fallback so older
clients which still send startup messages on the stream continue to work.

Signed-off-by: Asher Pemberton <asher.pemberton@arm.com>
Reviewed-by: Asher Pemberton <asher.pemberton@arm.com> # gatekeeper
Co-authored-by: Luke Beardsmore <luke.beardsmore2@arm.com>
@asher-pem-arm asher-pem-arm changed the title Detach streams from unary rpcs rebase on fork part1 remote: Detach streams from unary RPCs Jun 29, 2026
@asher-pem-arm

Copy link
Copy Markdown
Contributor Author

closing now part of: #1918

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant