Skip to content
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

remote: add session feature in labgrid-client #1561

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

luke-hackwell
Copy link

@luke-hackwell luke-hackwell commented Jan 6, 2025

Description
Adds a --session option to the labgrid-client monitor, reserve and acquire commands.
Enables the user to setup a monitor session. Reservations and place acquisitions which are registered to the same monitor sessions will be released if the monitor session ends.

This is useful for reservations and places acquired under a CI job which may be killed without warning.

Example usage:

labgrid-client monitor --session $$ &
MONITOR_PID="$!"
eval $(labgrid-client reserve  --session $$ --shell tag=value)
labgrid-client -p + lock --session $$
kill "${MONITOR_PID}"

Sessions are unique for the same IP address and session name.

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

Adds a --session option to the labgrid-client monitor, reserve and acquire commands.
Enables the user to setup a monitor session. Reservations and place acquisitions which are registered to the same monitor sessions will be released if the monitor session ends.

Signed-off-by: Luke Hackwell <[email protected]>
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