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

CLI should have backwards compatibility test on CX protocol version #4475

Closed
rix0rrr opened this issue Oct 11, 2019 · 0 comments · Fixed by #4625
Closed

CLI should have backwards compatibility test on CX protocol version #4475

rix0rrr opened this issue Oct 11, 2019 · 0 comments · Fixed by #4625
Assignees
Labels
ops-excellence Operational Excellence p1 package/tools Related to AWS CDK Tools or CLI

Comments

@rix0rrr
Copy link
Contributor

rix0rrr commented Oct 11, 2019

To avoid a repeat of #4294, we should check that an old CX assembly can be read by all new CLIs.

A simple implementation of this would be generating a CX assembly today once, and writing an integ test that uses a bash script as CX app that copies that CX assembly's files into cdk.out.

cdk synth should parse that assembly without errors.

Internal reference: coe/116228


This is 🐛 Bug Report

@rix0rrr rix0rrr added ops-excellence Operational Excellence package/tools Related to AWS CDK Tools or CLI needs-triage This issue or PR still needs to be triaged. p1 labels Oct 11, 2019
@NGL321 NGL321 removed the needs-triage This issue or PR still needs to be triaged. label Oct 11, 2019
rix0rrr added a commit that referenced this issue Oct 22, 2019
Make sure that the CLI will continue to be able to load old cloud
assemblies. We do this by using the CLI feature that it can directly
load Cloud Assemblies through its `--app` argument, hard copying
a couple of cloud assemblies into the test set and trying to synth
those.

In addition to adding a test for loading v0.36.0 assemblies, also
add tests for 2 common context provider requests (AZs and VPC),
to make sure new CLIs will continue to be able to handle these
context lookup requests.

Fixes #4475, pre-emptively adds a regression test for #4544.
@mergify mergify bot closed this as completed in #4625 Oct 25, 2019
mergify bot pushed a commit that referenced this issue Oct 25, 2019
* fix(cli): add Cloud Assembly backwards compat tests

Make sure that the CLI will continue to be able to load old cloud
assemblies. We do this by using the CLI feature that it can directly
load Cloud Assemblies through its `--app` argument, hard copying
a couple of cloud assemblies into the test set and trying to synth
those.

In addition to adding a test for loading v0.36.0 assemblies, also
add tests for 2 common context provider requests (AZs and VPC),
to make sure new CLIs will continue to be able to handle these
context lookup requests.

Fixes #4475, pre-emptively adds a regression test for #4544.

* Address review comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ops-excellence Operational Excellence p1 package/tools Related to AWS CDK Tools or CLI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants