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): deployments are skipped if stack is in a _failed state #10847

Merged
merged 2 commits into from
Nov 9, 2020

Conversation

eswets
Copy link

@eswets eswets commented Oct 13, 2020

fixes #10784


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

@gitpod-io
Copy link

gitpod-io bot commented Oct 13, 2020

@eswets eswets force-pushed the eswets/dont-skip-deploy-on-failed-state branch from 14bddd7 to 400daeb Compare October 14, 2020 08:44
}).catch(e => err = e);

// THEN
expect(err).toEqual(Error('The stack named withouterrors failed to deploy: DELETE_FAILED'));
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not clear to me why this is the correct test for this behavior change.

Don't we want to assert that "createChangeSet" is called, or something to that effect?

Copy link
Author

Choose a reason for hiding this comment

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

I've pushed a change to the test asserting a call on createChangeSet, however i'm not sure that in that case the expected behaviour is fully captured by the test.

Currently, the stack will actually deploy, after which waitForStackDeploy will throw an error due to the stack not being in a success state.

@rix0rrr rix0rrr changed the title fix(aws-cdk): don't skip deployment if stack is in a _failed state fix(aws-cdk): deployments are skipped if stack is in a _failed state Oct 19, 2020
@rix0rrr rix0rrr changed the title fix(aws-cdk): deployments are skipped if stack is in a _failed state fix(cli): deployments are skipped if stack is in a _failed state Oct 19, 2020
@eswets eswets force-pushed the eswets/dont-skip-deploy-on-failed-state branch from 400daeb to 095a663 Compare October 30, 2020 08:40
@mergify mergify bot dismissed rix0rrr’s stale review October 30, 2020 08:40

Pull request has been modified.

@mergify
Copy link
Contributor

mergify bot commented Nov 9, 2020

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: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 10600b9
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@mergify
Copy link
Contributor

mergify bot commented Nov 9, 2020

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).

@mergify mergify bot merged commit 4887ba6 into aws:master Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[cli] cdk diff and cdk deploy ignore DELETE_FAILED state of existing CloudFormation stack
3 participants