-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
Report generation timed out for Requirements report #1265
Comments
It's normal that there are lots of tasks (one per page generated), as the report generation happens in parallel streams. Can you provide a project that reproduces the issue? |
Sorry, I can't. But I suppose it can be |
Same issue here, versions: |
I fixed problem by change all packages name with tests to unique values. In my packeges sturcture was with the same names. @DjerohN Maybe it also solves your issue. |
I have a little bit more complex structure in my tests, like: features/some_container/some_service/*.feature |
We have lots of stories in my project and I get this issue in every build. |
@SumantaSarathiChakraborty Can you provide a sample project that reproduces the issue? Also, this issue has been reported when you have multiple feature files with the same names, so check that your feature file names (and feature names) are unique. |
The issue reproduces again, I think it's because of significantly increased number of tests (requirements). As a temporary fix you can increase number of threads for maven (-T 8 for example), but for me this is not enough for ~1900 tests and ~400 requirements. I'm getting errors:
Unfortunately, I can't provide sample project to reproduce the issue, because of NDA stuff. |
Have a look in the AggregateReportingTask to see why it might time out - happy to review any PRs |
I haven't found problem, but I've found workaround: you can specify report.timeout property in seconds in serenity.properties file (e.g. report.timeout=60) and everything works fine.
Build time slightly increased. Obviously, it needs more time for each task to aggregate report page. |
@wakaleo Its not resolved even after specifying report.timeout property in seconds in serenity.properties file Please look into it |
Problem still persists given that configuration set to report.timeout=300. I have ~300 stories running in one build and failed to perform aggregate report. java.util.concurrent.FutureTask.get(FutureTask.java:205) |
Can confirm, issue is reproduced on my project. I have ~400 Cucumber features from different parallel launches, merged together to 1 On latest versions (serenity-core |
Can you provide a sample project? |
Hi John, I am also facing this issue, please let me know how can i fix this issue, i am facing this everytime maven build is executed from jenkins pipeline job, its working fine on local build. please help, as it seems blocking without much help in forums. I have tried below properties but result is same serenity.requirements.dir=com.trading.junit Thanks Below are logs [main] INFO net.thucydides.core.reports.html.HtmlAggregateStoryReporter - 1144 requirements loaded after 35.5 secs
|
On my project we've recently upgraded to Serenity 2.3.33 and with Cucumber 6 and we've seen our report aggregation times go from around 1 minute to to 21 minutes and they consistently log the timeout exception in this issue. For instance, If we use report aggregation from our old version of serenity 2.0.70 we get this output and no timeouts:
But the new version produces this output: With |
Here's an extract of the "long-tails" of report generation, where the 1st log item is fast/normal and the remainder are very slow:
We are thinking that there might be a slow down in the creation of environment variables on a recent version of serenity which manifests unfavourably in projects where there may be many serenity.conf files on the classpath (Our project's monorepo has over 120 modules each with its own serenity.conf). Currently proving that at the moment and will report back soon... |
…his is slow to instantiate on large project
… requirements to see how frequently this is created and whether caching is a way forward
…ngCache<RequirementsKey, FileSystemRequirementsTagProvider>
…d dont log requirements count to avoid unnecessary computation
Having the same issue with version 3.9.8. Was this fixed? If so, in which version of serenity-core? |
Try with 4.0.21 |
Thank you very much for the quick answer! Made the update and issue is fixed in 4.0.21. |
serenity-maven-plugin 1.9.19
serenity-core 1.9.19
serenity-junit 1.9.19
serenity-rest-assured 1.9.19
Hi! I have some problem with getting report.
[WARNING] Report generation timed out for Requirements report capabilities.html - java.util.concurrent.TimeoutException java.util.concurrent.FutureTask.get(FutureTask.java:205)
Also for other files capabilities.html. *.html.
What can be wrong?
And tell me please, is it ok? that in Reporter.generateReports() there are about 700 tasks just for one test.
Thank you.
The text was updated successfully, but these errors were encountered: