-
Notifications
You must be signed in to change notification settings - Fork 187
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
clean_results doesn't work with a large amount of results #136
Comments
Hi @eilonreifs I used to use the command suggested by you a few months ago and we had the same problem when you have a lot of files in that directory. I'm using this script: ls -d $PROJECT_RESULTS_DIRECTORY/* | grep -v history | xargs rm 2> /dev/null I see the same problem. Can you create different projects to avoid this issue, please? |
Hi @fescobar, I assume its better to use 'find' anyway, what do you think? BTW, what do you mean by creating different projects? for each run? Thank you! |
@eilonreifs you could group your executions by project. Different suites using different project workspaces. I need to test the command that you are suggesting. It will take time. I will put it in the backlog. |
@fescobar Thanks a lot! I really appreciate your contribution, and especially the fast responses. |
@eilonreifs probably the next year. |
@eilonreifs I will try to fix it earlier. |
Hey, I also encountered this problem and solve it using find
Some help methods to generate sample:
I hope it will help a little and happy new year :) |
@RafaelloLoliop Thank you. I will try your improvement soon. |
@fescobar
in the past something also was wrong here. |
@RafaelloLoliop I'm working on multiple changes. You will have news this week or the next one. |
@eilonreifs @RafaelloLoliop can you check the fix with the current beta version? image: "frankescobar/allure-docker-service:beta" I don't know what is the limitation. But test it as much as you can. Thank you. |
@fescobar Thanks |
@RafaelloLoliop I've tested using your bash file to create multiple users. I've created more than 40k files and I could reproduce the error. With the fix, the error disappears. |
@eilonreifs @RafaelloLoliop this fix was released from version https://github.com/fescobar/allure-docker-service/releases/tag/v2.13.8 Thank you for your help. |
http://allure-srv:****/allure-docker-service/clean-results?project_id=__proj_id does not work when the results directory contains 44780 files.
Log output during the bug
steps to reproduce:
send 50000 results, related to a project.
try to clean the results for this project.
suggestion:
if youre using
rm *
(which raises that exception)you could replace it with
find . -maxdepth 1 -type f -exec rm -r {} +
BTW - Thank you for this great tool, I'm using it for about 3 month without any bugs, and it was really simple to it set up.
The text was updated successfully, but these errors were encountered: