-
Notifications
You must be signed in to change notification settings - Fork 14
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
outputs.content exceeds maximum allowed memory size #38
Comments
Hey, you have a pretty interesting setup going on there!
Yup, I think it is doable. Do you know the maximum length of output that we can use?
There were some performance optimizations in the last releases but I haven't got to work on parallelization yet. First step would be finding the bottlenecks and see if we can possibly add caching. Do you mind sharing more information about your setup and the git-cliff command you are running? |
The maximum output seems to be defined by size: https://docs.github.com/en/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions#outputs-for-composite-actions I helped myself by using |
I see, thanks for sharing the docs about maximum size. Do you still need to optionally disable the output? |
Whether it's disabled or not, I don't care to be honest 😄 - just that it shouldn't crash on long changelogs. |
I see, created #40 for limiting the size. Can you check? |
nope, issue still exists, although the error message is different:
Maybe this time it's about stdout? the log has to be truncated there as well I would guess |
Also, 50MB references the sum of all outputs, not just one output value. |
Oh, and the corresponding changelog file ist only 13MB |
Oh, that's a bit more work than I anticipated then :D
We can probably disable this based on output size as well: Line 28 in 14bb673
But I'm not sure if that'll work 🤔 |
Following worked for me:
I reduced the maxsize a little to account for other output. For now, it just works. |
Awesome, thanks for testing! |
We are trying to use git-cliff with about 200 repositories at the same time and generate one changelog for it. This results in the github action crashing because of the output being too large. Is there an option to remove the output/make it optional if its too long?
Error message:
orhun/git-cliff-action/v4/action.yml (Line: 26, Col: 12): The maximum allowed memory size was exceeded while evaluating the following expression: steps.run-git-cliff.outputs.content
Also, maybe there is some consideration to improve git-cliffs performance with multithreading? Running with so many repos takes quite some time to finish.
The text was updated successfully, but these errors were encountered: