Skip to content

Comments

Minor helper updates#1794

Merged
Emantor merged 3 commits intolabgrid-project:masterfrom
vzlu:minor-helper-updates
Jan 9, 2026
Merged

Minor helper updates#1794
Emantor merged 3 commits intolabgrid-project:masterfrom
vzlu:minor-helper-updates

Conversation

@stoupa-cz
Copy link
Contributor

Minor updates to the helpers and doc. These were found when working on a new helper in #1719 -- especially the sudo and DynamicUser limitation. I didn't test the helpers which are in the current master (though I think labgrid-raw-interface is also affected when used on the exporter).

I've regenerated the doc with no issues.

Signed-off-by: Tomas Novotny <tomas@novotny.cz>
Update helpers to enforce a maximum interface name length of 15
characters, matching the actual limit. In Linux, the last byte of the
16-byte array is reserved for the null terminator.

Signed-off-by: Tomas Novotny <tomas@novotny.cz>
The helpers with sudo on exporters cannot be used together with
systemd's DynamicUser. This directive enforces the NoNewPrivileges
directive, which leads to the following error:

sudo: The "no new privileges" flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.

Since DynamicUser introduced in 0a2deef
("contrib/systemd/labgrid-exporter: improve service") is a useful
feature, switch to User and Group only when using helpers.

Signed-off-by: Tomas Novotny <tomas@novotny.cz>
@codecov
Copy link

codecov bot commented Jan 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.1%. Comparing base (cb7b04f) to head (5e4119a).
⚠️ Report is 4 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #1794   +/-   ##
======================================
  Coverage    45.1%   45.1%           
======================================
  Files         172     172           
  Lines       13617   13617           
======================================
  Hits         6143    6143           
  Misses       7474    7474           
Flag Coverage Δ
3.10 45.1% <ø> (ø)
3.11 45.1% <ø> (ø)
3.12 45.1% <ø> (ø)
3.13 45.0% <ø> (ø)
3.14 45.0% <ø> (ø)
3.9 45.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.

@Emantor Emantor merged commit 9280f5f into labgrid-project:master Jan 9, 2026
12 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.

2 participants