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

Add mapping redirect regression fix into rel2.1 #4034

Merged
merged 2 commits into from
Jan 21, 2022

Conversation

Alice-Lilith
Copy link
Member

Description

Cherry picking a community contribution and making a small change to the tests so they actually run now so we can get this out in the next release.

Related Issues

Original Contribution: #4004
Related issues:
#3709
#4005

Testing

We already had tests that should have discovered that this regression occurred, but those tests were set to not run. I've re-enabled them and updated the gold test config to account for the fact that the redirects are now showing up in the Envoy config.

Checklist

  • I made sure to update CHANGELOG.md.

    Remember, the CHANGELOG needs to mention:

    • Any new features
    • Any changes to our included version of Envoy
    • Any non-backward-compatible changes
    • Any deprecations
  • This is unlikely to impact how Ambassador performs at scale.

    Remember, things that might have an impact at scale include:

    • Any significant changes in memory use that might require adjusting the memory limits
    • Any significant changes in CPU use that might require adjusting the CPU limits
    • Anything that might change how many replicas users should use
    • Changes that impact data-plane latency/scalability
  • My change is adequately tested.

    Remember when considering testing:

    • Your change needs to be specifically covered by tests.
      • Tests need to cover all the states where your change is relevant: for example, if you add a behavior that can be enabled or disabled, you'll need tests that cover the enabled case and tests that cover the disabled case. It's not sufficient just to test with the behavior enabled.
    • You also need to make sure that the entire area being changed has adequate test coverage.
      • If existing tests don't actually cover the entire area being changed, add tests.
      • This applies even for aspects of the area that you're not changing – check the test coverage, and improve it if needed!
    • We should lean on the bulk of code being covered by unit tests, but...
    • ... an end-to-end test should cover the integration points
  • I updated DEVELOPING.md with any any special dev tricks I had to use to work on this code efficiently.

Signed-off-by: Gabriel Féron <[email protected]>

fix redirect mappings thanks to @gferon

Signed-off-by: AliceProxy <[email protected]>

update gold-test snapshot

Signed-off-by: AliceProxy <[email protected]>

update changelog

Signed-off-by: AliceProxy <[email protected]>
@Alice-Lilith Alice-Lilith force-pushed the alicewasko/redir-regression branch from ede84f1 to 70d76e0 Compare January 21, 2022 19:54
Signed-off-by: AliceProxy <[email protected]>
@Alice-Lilith Alice-Lilith force-pushed the alicewasko/redir-regression branch from 28f1819 to 110645e Compare January 21, 2022 21:09
Copy link
Member

@kflynn kflynn left a comment

Choose a reason for hiding this comment

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

W00t! This gets everything I want, ship it! 🙂

Copy link
Contributor

@LukeShu LukeShu left a comment

Choose a reason for hiding this comment

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

Hit it!

@Alice-Lilith Alice-Lilith merged commit 73c3d81 into release/v2.1 Jan 21, 2022
@Alice-Lilith Alice-Lilith deleted the alicewasko/redir-regression branch January 21, 2022 22:30
@LukeShu LukeShu mentioned this pull request Jan 21, 2022
4 tasks
@gajus
Copy link

gajus commented Jan 25, 2022

Has this been released?

@Alice-Lilith
Copy link
Member Author

@gajus Yes, this bugfix has been released as part of 2.1.2. You can refer to the release notes for details about the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants