-
Notifications
You must be signed in to change notification settings - Fork 4.3k
fix(core): AssetStaging - make skip flag use stack id instead of stack name #16714
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
Conversation
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
A not related test is failing. Can we restart the test job? |
|
Thanks, good catch. I'm curious how you validated this change, and I'd also like to see a test added that shows the difference. |
That seems excellent, thanks |
rix0rrr
left a comment
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.
Changes requested according to discussion
| // Check if we actually have to bundle for this stack | ||
| const bundlingStacks: string[] = this.node.tryGetContext(cxapi.BUNDLING_STACKS) ?? ['*']; | ||
| skip = !bundlingStacks.find(pattern => minimatch(Stack.of(this).stackName, pattern)); | ||
| skip = !bundlingStacks.find(pattern => minimatch(Stack.of(this).node.id, pattern)); |
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.
Using node.id drops the stage name
+ another issue is that bundlingStacks is of the form Stage/Stack while stackName is of the form Stage-Stack.
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.
|
This PR has been in CHANGES REQUESTED for 21 days, and looks abandoned. It will be closed in 10 days if no further commits are pushed to it. |
|
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. |
Fixes: #16713
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license