-
Notifications
You must be signed in to change notification settings - Fork 78
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
Wipe target working directory upon disconnect #680
Comments
Comment from @marcbonnici : True, I agree it is safer in the general case to push to the target each time but even today a client can currently do so without issue. I would just question whether it makes sense for devlib to automatically handle the cleanup vs leave the decision to the client code itself via whatever mechanism they choose. So far we haven't placed any restrictions on the expectations on the working directory, so I'd be hesitant to introduce a new default that would wipe it out as we can't say how other users / client code could be using this directory. Essentially I think I might be missing what the benefit would be to the end user vs the potential downsides of clearing files the user may not have wanted to? |
Yeah, in that case maybe the default should stick to current behavior, and we can simply add an option to do so.
Things can pile up, and it's not desirable. AFAIR things like trace.dat will stay there "forever". In our Linux targets, we typically have a buildroot rootfs over tmpfs, so having big files stay there just clogs memory for subsequent experiments until reboot. Running tests on the my development machine leaves stuff behind in a non-standard location, which I'm not super fond of. Generally speaking, I'd expect something like devlib to leave things they way it found it in cases where it could achieve an orderly exit. That's a big part of the push to using context managers for setting things like CPU frequency. |
Following the discussion at #677 (comment):
The text was updated successfully, but these errors were encountered: