Description
What is the problem?
v1.139.0 synthesizes Cloud Assembly Schema Version 16.0.0, but the latest CLI doesn't support it. In CDK Pipelines, without explicitly setting cliVersion: '1'
, the self-mutation step currently fails.
I'm sure that v2's CLI will be released soon, but given that the latest CLI may continue to be released out of step with (and later than) v1 schema version bumps, I wonder if many Pipelines users will get caught by this issue whenever v1 gets the schema bump first, like until the user sets cliVersion explicitly.
Reproduction Steps
What did you expect to happen?
Pipelines should use CDK CLI v1 to self-mutate.
What actually happened?
Pipelines used CDK CLI v2 (latest) which doesn't yet support the latest Cloud Assembly Schema Version, so it threw an error.
CDK CLI Version
2.5.0
Framework Version
1.139.0
Node.js Version
N/A
OS
Linux
Language
Typescript
Language Version
TypeScript (4.5.4)
Other information
Would it make the user's life easier if the Pipelines construct defaulted cliVersion to "1" rather than blank when synthesizing a v1 app? The changes would be here:
Activity
[-](pipelines): later-released v2 CDK CLI breaks pipelines when schema version bumps[/-][+](pipelines): v1 Cloud Assembly Schema version bumps break pipelines until v2 CDK CLI is released[/+]polothy commentedon Jan 12, 2022
@rix0rrr and CDK team friends - it would be helpful to make it clear if CDK CLI v2 is supposed to work with CDK v1 Apps. When I read the "CDK Toolkit compatibility" section of the migration doc, I thought CDK CLI v2 could work with either v1 or v2 CDK apps (I could be totally wrong 😄). Thanks for your help on this! 🍻
rix0rrr commentedon Jan 13, 2022
Yes, CLIv2 works with v1 apps. It's just that the way our release train works, the statement "the CLI must have equal version or higher" becomes a bit inscrutable.
This situation is an artifact of us still supporting (and developing on) v1 for the next 6 months. Once we drop support for v1, all future changes will go into v2 directly and any inconsistency windows will disappear.
fix(pipelines): "Maximum schema version supported" error
fix(pipelines): "Maximum schema version supported" error (#18404)
github-actions commentedon Jan 13, 2022
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
1 remaining item