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

fix(elasticloadbalancingv2-targets): add AlbListenerTarget for NLBs, deprecate AlbTarget due to ALB listener race conditions (#17208) #30396

Merged
merged 10 commits into from
Aug 15, 2024

Conversation

stm29
Copy link
Contributor

@stm29 stm29 commented May 31, 2024

Issue # (if applicable)

Closes #17208 .

Description of changes

Description of how you validated changes

  • Added UnitTests
  • Ran integrationTests as below,
$ yarn integ aws-elasticloadbalancingv2-targets/test/integ.alb-listner-target.js --update-on-failed

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

…Bs, deprecate AlbTarget due to ALB listener race conditions (aws#17208)
@github-actions github-actions bot added the beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK label May 31, 2024
@aws-cdk-automation aws-cdk-automation requested a review from a team May 31, 2024 08:51
@github-actions github-actions bot added bug This issue is a bug. effort/small Small work item – less than a day of effort p1 labels May 31, 2024
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

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

The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.

A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.

@stm29 stm29 changed the title fix(aws-elasticloadbalancingv2-targets): add AlbListenerTarget for NLBs, deprecate AlbTarget due to ALB listener race conditions (#17208) fix(elasticloadbalancingv2-targets): add AlbListenerTarget for NLBs, deprecate AlbTarget due to ALB listener race conditions (#17208) May 31, 2024
@aws-cdk-automation aws-cdk-automation dismissed their stale review May 31, 2024 08:55

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label May 31, 2024
This was referenced Jun 1, 2024
@paulhcsun paulhcsun added p2 pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. and removed p1 pr/needs-maintainer-review This PR needs a review from a Core Team Member labels Jun 10, 2024
@stm29
Copy link
Contributor Author

stm29 commented Jun 11, 2024

@paulhcsun , I am on my initial stages of my contribution, where should I reach out to get this reviewed by community?

Copy link
Contributor

@mmuller88 mmuller88 left a comment

Choose a reason for hiding this comment

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

This looks great

Copy link
Contributor

@tmokmss tmokmss left a comment

Choose a reason for hiding this comment

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

Thanks for working on this! I (as a community reviewer) made some comments on an alternative approach. I'm not super familiar with NLB + ALB target, so sorry if my comments are irrelevant (at least I read this doc 🙏).

* @param albListener The application load balancer listener to target.
*/
constructor(private albListener: elbv2.ApplicationListener) {
super(albListener.loadBalancer.loadBalancerArn, albListener.port);
Copy link
Contributor

Choose a reason for hiding this comment

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

(memo) using albListener.port here seems a right thing to do. (previously it was not validated at all that a corresponding listener to the port exists)

the Application Load Balancer you choose from the list must have a listener on the same port as the target group you’re creating.
https://docs.aws.amazon.com/elasticloadbalancing/latest/network/application-load-balancer-target.html

Copy link
Contributor

@TheRealAmazonKendra TheRealAmazonKendra left a comment

Choose a reason for hiding this comment

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

I do love a good deprecation. Thanks for your contribution!

Copy link
Contributor

mergify bot commented Jul 25, 2024

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Jul 25, 2024
Copy link
Contributor

mergify bot commented Jul 25, 2024

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot dismissed TheRealAmazonKendra’s stale review July 25, 2024 05:42

Pull request has been modified.

@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Jul 25, 2024
@stm29
Copy link
Contributor Author

stm29 commented Jul 25, 2024

@TheRealAmazonKendra , I Merged main - branch commits in this PR.
I did this because, it was alerting current branch is not in sync unable to Merge.

Can you re-review this?

@stm29
Copy link
Contributor Author

stm29 commented Jul 28, 2024

@TheRealAmazonKendra , would you mind just re-approving this?

And regarding merging the changes, will you be merging this PR?, why because I did all these changes because I got confused with mergify messages...

@shikha372 shikha372 self-assigned this Aug 14, 2024
shikha372
shikha372 previously approved these changes Aug 14, 2024
Copy link
Contributor

mergify bot commented Aug 14, 2024

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Aug 14, 2024
Copy link
Contributor

mergify bot commented Aug 14, 2024

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@shikha372
Copy link
Contributor

@Mergifyio update

Copy link
Contributor

mergify bot commented Aug 14, 2024

update

❌ Mergify doesn't have permission to update

For security reasons, Mergify can't update this pull request. Try updating locally.
GitHub response: refusing to allow a GitHub App to create or update workflow .github/workflows/github-merit-badger.yml without workflows permission

@stm29
Copy link
Contributor Author

stm29 commented Aug 14, 2024

@shikha372 seems there is permission issue, should I add some permission?

@mergify mergify bot dismissed shikha372’s stale review August 14, 2024 19:59

Pull request has been modified.

@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Aug 14, 2024
Copy link
Contributor

mergify bot commented Aug 15, 2024

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Aug 15, 2024
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 02b4aa5
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 1fca1e5 into aws:main Aug 15, 2024
12 checks passed
Copy link
Contributor

mergify bot commented Aug 15, 2024

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

Copy link

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 15, 2024
@stm29 stm29 deleted the fix-elbv2-target-17208 branch August 15, 2024 18:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK bug This issue is a bug. effort/small Small work item – less than a day of effort p2
Projects
None yet
8 participants