Skip to content

TFTPProviderDriver/HTTPProviderDriver should create symlinks when staging files for local TFTPProvider/HTTPProvider #1662

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rvdgracht
Copy link
Contributor

When a local TFTPProviderDriver/HTTPProviderDriver is used, the file sync can be skipped but the symlink creation in the server internal directory should still take place.

When the internal dir contains a subdir that does not yet exist on the server (i.e. '/srv/tftp/board-23/') the symlink creation will fail.

Fixes #1661

rvdgracht added 2 commits June 4, 2025 09:10
When a local TFTPProviderDriver/HTTPProviderDriver is used, the file sync
can be skipped but the symlink creation in the server internal directory
shouldn't.

Signed-off-by: Robin van der Gracht <[email protected]>
When the internal dir contains a subdir that does not yet exist on the
server (i.e. '/srv/tftp/board-23/') the symlink creation will fail.

Signed-off-by: Robin van der Gracht <[email protected]>
@Emantor Emantor requested a review from Bastian-Krause June 4, 2025 08:36
@Bastian-Krause
Copy link
Member

I think until now we simply expected the provider's internal directory to exist. I'm not sure if we should change that. @jluebbe @Emantor What do you think?

Copy link

codecov bot commented Jun 4, 2025

Codecov Report

Attention: Patch coverage is 30.00000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 55.8%. Comparing base (6d8febb) to head (8b7e55b).
Report is 52 commits behind head on master.

Files with missing lines Patch % Lines
labgrid/util/managedfile.py 30.0% 7 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##           master   #1662   +/-   ##
======================================
  Coverage    55.8%   55.8%           
======================================
  Files         170     170           
  Lines       13388   13391    +3     
======================================
+ Hits         7472    7474    +2     
- Misses       5916    5917    +1     
Flag Coverage Δ
3.10 55.8% <30.0%> (+<0.1%) ⬆️
3.11 55.8% <30.0%> (+<0.1%) ⬆️
3.12 ?
3.13 55.7% <30.0%> (+<0.1%) ⬆️
3.9 55.8% <30.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 added the needs rebase Needs a rebase onto the master branch, maintainter could probably not push to submitter branch. label Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs rebase Needs a rebase onto the master branch, maintainter could probably not push to submitter branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TFTPProviderDriver/HTTPProviderDriver do not create symlinks when staging files for local TFTPProvider/HTTPProvider
2 participants