Skip to content
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

Attaching a large number of images to the report #378

Open
ghost opened this issue Oct 7, 2020 · 2 comments
Open

Attaching a large number of images to the report #378

ghost opened this issue Oct 7, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 7, 2020

Hi, is there a recommended approach to attach images to the report, in the case where the report has hundreds of scenarios and each one attaches an image (let's assume the average image size is 1-1.5MB)?

scenario.embed(bytes, "image/png")
produces a very large json file (i've generated a report file that is ~350MB) and the plugin throws an OutOfMemoryError when parsing it (i've tested this with a Jenkins heap size of 4GB). Thanks!

@damianszczepanik
Copy link
Member

Well, I guess you're the first who has started to attach such big image and thus it might be a problem with Jenkins it self

@ghost
Copy link
Author

ghost commented Oct 13, 2020

You are correct, the problem was with Jenkins. I assumed that the plugin would run on a Jenkins slave but it's running on the master (which is underprovisioned and only had about 150MB of memory available).
Is the fact that it runs on the master intentional or should it be running on a slave?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant