-
Notifications
You must be signed in to change notification settings - Fork 4k
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(core-stage): Fix stage name check to be aligned with stack name #23089
Conversation
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.
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.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Hi @yuyokk I think this makes sense, but am very concerned about the implications of introducing more restrictive checks. Could you please provide a reproduction example of how you run into this error, ideally by creating a new bug report or by linking an existing issue. |
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.
Reproduction example required.
@mrgrain the reproduction posted looks good to me. Since stack names are built in part from stage names, would there be any case in which a stage is defined with Essentially, for this to not be a breaking change that means that EVERY stage defined in any application also necessarily contains at least one stack whose name contains the stage name. |
Thanks @peterwoodworth I agree with that assessment. I just haven't had time to look into the code path to confirm yet. |
This PR has been in the CHANGES REQUESTED state for 3 weeks, and looks abandoned. To keep this PR from being closed, please continue work on it. If not, it will automatically be closed in a week. |
Okay @peterwoodworth and @yuyokk This will be a breaking change and I'm really not sure if it's a good idea to have this fixed at all. More discussions on the issue please, but here's what makes this breaking. The following code works right now but won't with the suggested change. // somewhere in the pipeline stack
pipeline.addStage(new AppStage(this, "Stage_per_acme.example.com "));
// This is the Stage, note the provided stack name
class AppStage extends Stage {
constructor(scope: Construct, id: string, props?: StageProps) {
super(scope, id, props);
new HelloCdkStack(this, "HelloCdkStack", {
stackName: "hello"
});
}
} |
This PR has been deemed to be abandoned, and will be automatically closed. Please create a new PR for these changes if you think this decision has been made in error. |
The pull request linter fails with the following errors:
PRs must pass status checks before we can provide a meaningful review. |
Hi folks,
I faced the following errors today:
I believe there is discrepancy in stage and stack names checks.
Please check changes on the PR and let me know if they make sense.
Thank you
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license