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

gundeck: Fix SNS endpoint parser #3894

Merged
merged 14 commits into from
Feb 26, 2024

Conversation

supersven
Copy link
Contributor

@supersven supersven commented Feb 20, 2024

This PR contains two things:

  1. Add fields to the log message such that mismatches between stored and app-provided data become more obvious.
  2. Fix an AWS SNS Endpoint parsing bug: We parsed the environment up to the first dash. But, environment names may contain dashes themselves, thus we must accumulate them up to the last dash.

Tickets:

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Feb 20, 2024
@supersven supersven force-pushed the sventennie/gundeck-push_user-inconsistency branch from 4c523f0 to 425911a Compare February 20, 2024 15:23
@supersven supersven changed the title Sventennie/gundeck push user inconsistency gundeck push user inconsistency Feb 21, 2024
The env part can include '-' characters as well.
Hoping that the parser bug was the only cause for this check to fail.
We only want to log the value, not the containing data structure.
@supersven supersven force-pushed the sventennie/gundeck-push_user-inconsistency branch from 4cb91f1 to 23bb40a Compare February 23, 2024 07:09
Just to check the variations.
@supersven supersven marked this pull request as ready for review February 23, 2024 07:31
@supersven supersven changed the title gundeck push user inconsistency gundeck: Fix SNS endpoint parser Feb 23, 2024
Copy link
Contributor

@smatting smatting left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍 for the unit tests covering both cases

@supersven supersven merged commit 19c3fda into develop Feb 26, 2024
8 checks passed
@supersven supersven deleted the sventennie/gundeck-push_user-inconsistency branch February 26, 2024 14:56
akshaymankar pushed a commit that referenced this pull request Mar 6, 2024
This commit contains two things:

1. Add fields to the log message such that mismatches between stored and app-provided data become more obvious.
2. Fix an AWS SNS Endpoint parsing bug: We parsed the environment up to the first dash. But, environment names may contain dashes themselves, thus we must accumulate them up to the last dash.
akshaymankar added a commit that referenced this pull request Mar 11, 2024
This commit contains two things:

1. Add fields to the log message such that mismatches between stored and app-provided data become more obvious.
2. Fix an AWS SNS Endpoint parsing bug: We parsed the environment up to the first dash. But, environment names may contain dashes themselves, thus we must accumulate them up to the last dash.

Backports #3894 

Co-authored-by: Sven Tennie <sven.tennie@wire.com>
@echoes-hq echoes-hq bot added the echoes: unplanned Any work item that isn’t part of the product or technical roadmap. label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: unplanned Any work item that isn’t part of the product or technical roadmap. ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants