Skip to content

Conversation

benjamin1313
Copy link
Contributor

Allows client to specify where on the exporter .labgrid_agent_{agent_hash}.py should be copied to. Default is the user homedir.

Description

Checklist

  • Documentation for the feature
  • Tests for the feature
  • PR has been tested
  • Man pages have been regenerated

Copy link
Member

@Emantor Emantor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you elaborate a bit more on why you need this? Uploading these files to other directories than the users home directory could mean that they can be modified by a different user and this may provide a security risk.

@benjamin1313
Copy link
Contributor Author

Can you elaborate a bit more on why you need this? Uploading these files to other directories than the users home directory could mean that they can be modified by a different user and this may provide a security risk.

We are running the labgrid exporter as a systemd portable service. The homedir for the exporter user is read-only (this is on purpose). We have tmpfs dirs available for the service we use for this purpose. They are local to the portable service, so not available to other users.
With a agent prefix we get more control over where the agent is saved allowing us to place it in a tmpfs dir instead of the homedir.

Copy link

codecov bot commented Feb 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.8%. Comparing base (cea524d) to head (a1141a3).
⚠️ Report is 167 commits behind head on master.

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #1584   +/-   ##
======================================
  Coverage    55.8%   55.8%           
======================================
  Files         170     170           
  Lines       13377   13378    +1     
======================================
+ Hits         7469    7470    +1     
  Misses       5908    5908           
Flag Coverage Δ
3.10 56.1% <100.0%> (+<0.1%) ⬆️
3.11 ?
3.12 56.1% <100.0%> (+<0.1%) ⬆️
3.13 56.1% <100.0%> (+<0.1%) ⬆️
3.9 56.1% <100.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.

Allows client to specify where on the exporter .labgrid_agent_{agent_hash}.py should be copied to.
Default is the user homedir.

Signed-off-by: Benjamin B. Frost <benjamin@geanix.com>
@Bastian-Krause Bastian-Krause merged commit ed1d936 into labgrid-project:master Jul 4, 2025
11 checks passed
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.

3 participants