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(core): bundling skipped with --exclusively option and stacks under stage #17210

Merged
merged 4 commits into from
Nov 24, 2021

Conversation

jogold
Copy link
Contributor

@jogold jogold commented Oct 28, 2021

We were comparing bundling stacks of the form Stage/Stack with stack
names of the form Stage-Stack.

For stacks with NodejsFunctions this leads to assets containing the whole CDK project because
when bundling is skipped the asset references the source directory which is the project root.

Closes #12898
Closes #15346


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

…r stage

We were comparing bundling stacks of the form `Stage/Stack` with stack
names of the form `Stage-Stack`.

Closes aws#12898
Closes aws#15346
@gitpod-io
Copy link

gitpod-io bot commented Oct 28, 2021

@mergify
Copy link
Contributor

mergify bot commented Nov 24, 2021

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

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: dfb44b8
  • 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 cda6601 into aws:master Nov 24, 2021
@mergify
Copy link
Contributor

mergify bot commented Nov 24, 2021

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

@moltar
Copy link
Contributor

moltar commented Nov 24, 2021

@jogold you are my hero! Thank you 🙏 we've been pained by this way too long.

@slaskowski-transactionlink
Copy link

slaskowski-transactionlink commented Nov 25, 2021

@jogold What i case of glob patterns like */Stack1? It will not work. Also for custom stack names it will be even worse and can break **/* deploys if im right

@slaskowski-transactionlink

Ive resolved it locally for once and the issue is that we take stackName prop instead of the logical path of stack hence the issue. Please reconsider this solution

@jogold jogold deleted the bundling-excl-stage branch November 25, 2021 16:16
@jogold
Copy link
Contributor Author

jogold commented Nov 25, 2021

@slaskowski-transactionlink can you open an issue once this is released with the next version if you still experience problems?

@slaskowski-transactionlink

@jogold cant we just reopen #12898 since its not fixed?

@jogold
Copy link
Contributor Author

jogold commented Nov 25, 2021

@jogold cant we just reopen #12898 since its not fixed?

I can't reopen issues (no write access to this repo)

How did you test */Stack1 with the fix from this PR?

@slaskowski-transactionlink

@jogold ok i created new issue see #17717

beezly pushed a commit to beezly/aws-cdk that referenced this pull request Nov 29, 2021
…r stage (aws#17210)

We were comparing bundling stacks of the form `Stage/Stack` with stack
names of the form `Stage-Stack`.

For stacks with `NodejsFunction`s this leads to assets containing the whole CDK project because
when bundling is skipped the asset references the source directory which is the project root.

Closes aws#12898
Closes aws#15346


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
…r stage (aws#17210)

We were comparing bundling stacks of the form `Stage/Stack` with stack
names of the form `Stage-Stack`.

For stacks with `NodejsFunction`s this leads to assets containing the whole CDK project because
when bundling is skipped the asset references the source directory which is the project root.

Closes aws#12898
Closes aws#15346


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/core Related to core CDK functionality
Projects
None yet
5 participants