-
-
Notifications
You must be signed in to change notification settings - Fork 692
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
Attachments causes report generation to take forever #1860
Comments
You can use TestLifecycleListener to remove unused attachments (for example, you can remove all the attachments from passed tests) before report generation. |
Hi @baev unfortunately I cannot, for regulatory reasons, we need to keep evidences for passed scenarios as well. |
Hi @baev and @anilverma-070 |
Hi! There are about ~2k test tests with logging only (so there are no attachments for except captured log output). The average report size is ~104mB and it takes extra 7-10 minutes for allurectl to process all the files after tests are finished. It's kinda weird since whole the test run is finished in 4-5mins :/ |
Hi @Vladislav-Bartalevich |
For large sized execution with several steps and attachments, report generation takes longer than execution itself
We have really long end to end test cases, with complex and hierarchial steps which can go in thousands. Each step has one or more attachment. When full regression tests are executed which takes say 5 hours to execute, report generation is taking more than 12 hours.
Primary reason appears to be that allure creates small sized files for each attachment, which happens to run into more than 300k files in our case. Then during report generation, these files are moved from result folder to report folder. This takes forever.
Expected behavior
I can only say that report generation should be quicker and we shouldn't have to wait for reports to be produced.
Screenshots
![image](https://user-images.githubusercontent.com/69011675/207327087-5f627c99-f99d-4a80-86ec-aeeeb9481917.png)
Environment (please complete the following information):
Additional context
Since we realized this problem, we did an override on allure attachments. Started a directory listing server, updated our code to place files on this server instead of attaching to allure steps, created a link to attachment and attached as parameter to allure step. This reduced our report generation time from 12 hours to 2 minutes. However, they look very ugly in the report generated.
Questions/ Suggestions
Currently, allure tries to create attachment file to every attachment, even links and strings for a test step. Is there a way to keep this data in results.json only and not create an external attachment file?
We also tried to create an html string of links and add it as parameter to test step. However, allure will show this html string as plan string (sort of escaping html). Is there a way to disable html escaping for parameter values, or just specific parameter if not all as a whole?
The text was updated successfully, but these errors were encountered: