-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix(workflow-hook): pre/post hook not sending output due to invalid key #3091
Conversation
@@ -70,7 +70,8 @@ func (wh DefaultPostWorkflowHookRunner) Run(ctx models.WorkflowHookCommandContex | |||
} | |||
} | |||
|
|||
wh.OutputHandler.SendWorkflowHook(ctx, fmt.Sprintf("%s\n", string(out)), true) | |||
wh.OutputHandler.SendWorkflowHook(ctx, string(out), false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution and fix @Fabianoshz. Could you please add the test section to the pr body to describe how this was tested e2e for post and pre workflpws?
Oh and could you verify that this works with automerge and no automerge?
And if possible, could you also add a unit test for this to ensure this doesn't break pre and post workflow runs going forward?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc: @Fabianoshz friendly ping
also have you tested this change out in your own setup?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's approve and get this fixed. We can always revert if there are issues
what
why
tests
references
atlantis/post_workflow_hook
due to websocket 500 internalinvalid key
error #3008