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
Remove printing of every single log file which could take a very long… #1042
Conversation
The information shown by EMBA is caused because there should no other files in the EMBA directory. Usually you are going to quit EMBA anyways and remove these leftover files. |
Probably only printing the first 100 files or so would be a possible solution. |
I think it should be up to the user to decide if he wants to quit and remove the leftovers or not. It's not like the Docker environment is untrusted that runs on my machine... e.g. I think running this entire thing as root is the bigger issue than disclosing a couple of log files to a docker container on the same machine. Even printing the first 100 files is ridiculously slow, I don't know why. Also, this serves as a shortcut to also make this issue less of a hassle for the resume feature. Because when using the resume feature to resume from folder ./x it is not very helpful when EMBA warns that there are leftover logs in folder ./x. But that's actually an independent bug. |
It is not because of the docker, it is because you are probably exposing the logs from one firmware test to the other test. From my point it is very useful to get a direct feedback what we have in the EMBA directory. So, we can find the bottle neck, strip it down to more essential output but we will leave it somehow in there.
;)
probably the print_path is the slow guy in here: emba/helpers/helpers_emba_path.sh Line 39 in 4beaf36
this uses path_attr here emba/helpers/helpers_emba_path.sh Line 78 in 4beaf36
and here we are doing some find which will probably slow this functionality
You should not let EMBA log to ./x. Use a different log directory outside of the EMBA directory for logging. |
hell this is slow ... I suggest the following two changes :
|
done, also additionally implemented #1043 |
Thank you @floyd-fuh for using EMBA and your contribution in making her better! :) |
… time
Remove printing every leftover file, which takes a significant amount of time
EMBA prints every single file, which takes forever, making me quit EMBA
There is no point in printing every single file anyway, if a user wants to know the permissions and files they should be able to execute a command themselves.
It also indirectly solves the problem that this check is done at all during a scan resume. While it is still done (which it shouldn't because obviously there are log files when we resume from those), it is not blocking the entire resume by taking a long time to print file lists.
No