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(cli): stop processing on metadata errors #3168

Merged
merged 5 commits into from
Jul 3, 2019
Merged

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Jul 2, 2019

The new stack selection short circuiting broke stack error checking,
which happened further down in that function. Move that functionality
out as an explicit step to the CLI, as opposed to doing it implicitly
as part of 'selectStacks'.

NOTE: no test here, should be an integration test but the test will fail
on the previous release so created a ticket for it.


Please read the contribution guidelines and follow the pull-request checklist.

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

The new stack selection short circuiting broke stack error checking,
which happened further down in that function. Move that functionality
out as an explicit step to the CLI, as opposed to doing it implicitly
as part of 'selectStacks'.

NOTE: no test here, should be an integration test but the test will fail
on the previous release so created a ticket for it.
@rix0rrr rix0rrr requested a review from a team as a code owner July 2, 2019 11:39
@ghost ghost requested a review from shivlaks July 2, 2019 11:39
@@ -269,7 +266,7 @@ export class AppStacks {
/**
* Extracts 'aws:cdk:warning|info|error' metadata entries from the stack synthesis
*/
private processMessages(stacks: cxapi.CloudFormationStackArtifact[]) {
public processMetadata(stacks: cxapi.CloudFormationStackArtifact[]) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not call this processMessages, isn't it more accurate?

@eladb eladb merged commit 0936bde into master Jul 3, 2019
@eladb eladb deleted the huijbers/deploy-errors branch July 3, 2019 08:17
Kaixiang-AWS pushed a commit to Kaixiang-AWS/aws-cdk that referenced this pull request Jul 3, 2019
The new stack selection short circuiting broke stack error checking,
which happened further down in that function. Move that functionality
out as an explicit step to the CLI, as opposed to doing it implicitly
as part of 'selectStacks'.

NOTE: no test here, should be an integration test but the test will fail
on the previous release so created a ticket for it.
@NGL321 NGL321 added the contribution/core This is a PR that came from AWS. label Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants