-
Notifications
You must be signed in to change notification settings - Fork 741
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: Fix git trigger issue caused by a misconfig of the object mapper when creating the echo retrofit service #1756
Conversation
… when creating the echo retrofit service Because of the misconfiguration echo was failing with GitEventHandler : Github Digest mismatch! Pipeline NOT triggered Closes spinnaker/spinnaker#6886
@jasonmcintosh fyi |
Possible to add a test for this? |
https://github.com/spinnaker/gate/pull/1663/files#r1227101209 is where this came in. What's interesting is the commentary - I'd GUESS that the defaults on the object mapper builder are breaking things incorrectly though this is just goofy/where. Tests/details appreciated! |
… when creating the echo retrofit service Because of the misconfiguration echo was failing with GitEventHandler : Github Digest mismatch! Pipeline NOT triggered Closes spinnaker/spinnaker#6886
The issue is caused by the fact that when Gate passes the payload to Echo, it sorts the keys alphabetically (this is enabled in the Gate needs to pass through the raw content without any additional parsing. |
…rdered alphabetically Closes spinnaker/spinnaker#6886
e8169bd
to
46273b7
Compare
hey @jasonmcintosh / @dbyron-sf I added one test to verify that the body sent to Echo is not ordered alphabetically. |
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.
Nice MERGING! :) Then backport time!
@mergify backport release-1.32.x release-1.33.x |
✅ Backports have been created
|
… when creating the echo retrofit service (#1756) * fix: Fix git trigger issue caused by a misconfig of the object mapper when creating the echo retrofit service Because of the misconfiguration echo was failing with GitEventHandler : Github Digest mismatch! Pipeline NOT triggered Closes spinnaker/spinnaker#6886 * fix: Fix git trigger issue caused by a misconfig of the object mapper when creating the echo retrofit service Because of the misconfiguration echo was failing with GitEventHandler : Github Digest mismatch! Pipeline NOT triggered Closes spinnaker/spinnaker#6886 * test: Add test verifying that the payload being sent to Echo is not ordered alphabetically Closes spinnaker/spinnaker#6886 * fix: Apply spotless checks to the test * fix: Fix failing test (cherry picked from commit 4aae98d)
… when creating the echo retrofit service (#1756) * fix: Fix git trigger issue caused by a misconfig of the object mapper when creating the echo retrofit service Because of the misconfiguration echo was failing with GitEventHandler : Github Digest mismatch! Pipeline NOT triggered Closes spinnaker/spinnaker#6886 * fix: Fix git trigger issue caused by a misconfig of the object mapper when creating the echo retrofit service Because of the misconfiguration echo was failing with GitEventHandler : Github Digest mismatch! Pipeline NOT triggered Closes spinnaker/spinnaker#6886 * test: Add test verifying that the payload being sent to Echo is not ordered alphabetically Closes spinnaker/spinnaker#6886 * fix: Apply spotless checks to the test * fix: Fix failing test (cherry picked from commit 4aae98d)
Fixes bug introduced in #1663 FYI |
… when creating the echo retrofit service (#1756) (#1758) * fix: Fix git trigger issue caused by a misconfig of the object mapper when creating the echo retrofit service Because of the misconfiguration echo was failing with GitEventHandler : Github Digest mismatch! Pipeline NOT triggered Closes spinnaker/spinnaker#6886 * fix: Fix git trigger issue caused by a misconfig of the object mapper when creating the echo retrofit service Because of the misconfiguration echo was failing with GitEventHandler : Github Digest mismatch! Pipeline NOT triggered Closes spinnaker/spinnaker#6886 * test: Add test verifying that the payload being sent to Echo is not ordered alphabetically Closes spinnaker/spinnaker#6886 * fix: Apply spotless checks to the test * fix: Fix failing test (cherry picked from commit 4aae98d) Co-authored-by: ovidiupopa07 <[email protected]>
… when creating the echo retrofit service (#1756) (#1757) * fix: Fix git trigger issue caused by a misconfig of the object mapper when creating the echo retrofit service Because of the misconfiguration echo was failing with GitEventHandler : Github Digest mismatch! Pipeline NOT triggered Closes spinnaker/spinnaker#6886 * fix: Fix git trigger issue caused by a misconfig of the object mapper when creating the echo retrofit service Because of the misconfiguration echo was failing with GitEventHandler : Github Digest mismatch! Pipeline NOT triggered Closes spinnaker/spinnaker#6886 * test: Add test verifying that the payload being sent to Echo is not ordered alphabetically Closes spinnaker/spinnaker#6886 * fix: Apply spotless checks to the test * fix: Fix failing test (cherry picked from commit 4aae98d) Co-authored-by: ovidiupopa07 <[email protected]>
Disable the
ORDER_MAP_ENTRIES_BY_KEYS
serialization feature since this is causing an issue in Echo : Github Digest mismatch! Pipeline NOT triggeredGithub webhook delivery

Spinnaker pipeline setup

Spinnaker pipeline triggered when the event is received
Closes spinnaker/spinnaker#6886