-
Notifications
You must be signed in to change notification settings - Fork 10
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
Error commenting stages: Error: Comment for stack foobar is too long, please report this as a bug #34
Comments
I have seen this issue before, but I don't remember exactly what the issue was. I think it was something to do with the credentials not being configured correctly (i've created a new issue #35). It might be:
For the actual issue of a single stack diff being too big, I'm not sure how to handle that. Maybe we can gradually remove parts of the diff starting with the security changes? |
I'd have suggested adding it as an attachment, but seems like there is no API for that 😞 Gradually removing content seems like the best idea. Let's make sure to put a big fat warning in though. |
@corymhall This current problem makes destructive changes in rather large stacks untraceable. Given that destructive changes is the main feature we are interested in, and it doesn't take up much space in the comment compared to a summary of stack changes, why not make the “Summary of stack changes” feature optional so that it can be disabled and free up a lot of space in the comment for the really important information? What do you think? cdk-diff-action/src/stage-processor.ts Lines 204 to 212 in c377c65
|
That's actually a good idea. We can fallback to just commenting the destructive changes if the comment is too long 👍🏻 |
#32 is fixed and works great, however we are still getting the following error for one of the stacks. Reporting this for completeness. FWIW I think we are getting this because the diff (incorrectly, but probably a configuration issue on my end) believes this is a new stack and so it just lists all changes which is very long.
Further ideas for fixing:
The text was updated successfully, but these errors were encountered: