Skip to content

chore(cli): bootstrap stack downgrading is no longer an error#18378

Merged
mergify[bot] merged 3 commits intomasterfrom
huijbers/downgrade-noop
Jan 12, 2022
Merged

chore(cli): bootstrap stack downgrading is no longer an error#18378
mergify[bot] merged 3 commits intomasterfrom
huijbers/downgrade-noop

Conversation

@rix0rrr
Copy link
Copy Markdown
Contributor

@rix0rrr rix0rrr commented Jan 12, 2022

Previously, bootstrap downgrading is an error. That is, when the
bootstrap stack is currently version '9', and you're trying to run cdk bootstrap with version '8', the command will currently fail.

This makes it hard to script around, and in fact this is causing us
problems in the pipeline where we unconditionally run cdk bootstrap
and an accidentally upgraded bootstrap stack fails all tests.

This is happening for no good reason, since the bootstrap stacks are
backwards compatible.

Turn this case from an error into a successful no-op.


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

Previously, bootstrap downgrading is an error. That is, when the
bootstrap stack is currently version '9', and you're trying to run `cdk
bootstrap` with version '8', the command will currently fail.

This makes it hard to script around, and in fact this is causing us
problems in the pipeline where we unconditionally run `cdk bootstrap`
and an accidentally upgraded bootstrap stack fails all tests.

This is happening for no good reason, since the bootstrap stacks are
backwards compatible.

Turn this case from an error into a successful no-op.
@rix0rrr rix0rrr requested a review from a team January 12, 2022 13:12
@rix0rrr rix0rrr self-assigned this Jan 12, 2022
@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Jan 12, 2022

@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Jan 12, 2022
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jan 12, 2022
@iliapolo
Copy link
Copy Markdown
Contributor

@rix0rrr

This is happening for no good reason, since the bootstrap stacks are
backwards compatible.

Do we have something that validates this assertion? I realize this might be a bigish effort...but I feel we should discuss this.

Adding do-not-merge for now.

@iliapolo iliapolo added the pr/do-not-merge This PR should not be merged at this time. label Jan 12, 2022
@rix0rrr
Copy link
Copy Markdown
Contributor Author

rix0rrr commented Jan 12, 2022

Do we have something that validates this assertion? I realize this might be a bigish effort...but I feel we should discuss this.

We definitely should. It actually doesn't have bearing on the correctness of this PR though.

  • IF your bootstrap stack is at a version that's too high
  • AND it is not backwards compatible

  • THEN you are already fucked anyway, whether we make subsequent bootstrap commands throw an error or not.

@iliapolo iliapolo removed the pr/do-not-merge This PR should not be merged at this time. label Jan 12, 2022
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jan 12, 2022

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
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 1787d4a
  • 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 e2667d1 into master Jan 12, 2022
@mergify mergify bot deleted the huijbers/downgrade-noop branch January 12, 2022 14:57
TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
)

Previously, bootstrap downgrading is an error. That is, when the
bootstrap stack is currently version '9', and you're trying to run `cdk
bootstrap` with version '8', the command will currently fail.

This makes it hard to script around, and in fact this is causing us
problems in the pipeline where we unconditionally run `cdk bootstrap`
and an accidentally upgraded bootstrap stack fails all tests.

This is happening for no good reason, since the bootstrap stacks are
backwards compatible.

Turn this case from an error into a successful no-op.


----

*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

contribution/core This is a PR that came from AWS. package/tools Related to AWS CDK Tools or CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants