Skip to content

Commit e45fcae

Browse files
authored
chore(cli): remove CDK_INTEG_MODE hack (#32539)
This hack was used to support the previous integration test system for the monorepo. It was never publicly advertised and is not used in our setup anymore. We are removing the unused code to simplify toolkit code. ### Reason for this change Cleaning up unused code. ### Description of changes Removed the unused code block. ### Description of how you validated changes Searched our repo and public GitHub for any usage. Only comes up in forks of the AWS CDK. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent a125c24 commit e45fcae

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

packages/aws-cdk/lib/cdk-toolkit.ts

-15
Original file line numberDiff line numberDiff line change
@@ -904,21 +904,6 @@ export class CdkToolkit {
904904
return undefined;
905905
}
906906

907-
// This is a slight hack; in integ mode we allow multiple stacks to be synthesized to stdout sequentially.
908-
// This is to make it so that we can support multi-stack integ test expectations, without so drastically
909-
// having to change the synthesis format that we have to rerun all integ tests.
910-
//
911-
// Because this feature is not useful to consumers (the output is missing
912-
// the stack names), it's not exposed as a CLI flag. Instead, it's hidden
913-
// behind an environment variable.
914-
const isIntegMode = process.env.CDK_INTEG_MODE === '1';
915-
if (isIntegMode) {
916-
printSerializedObject(
917-
stacks.stackArtifacts.map((s) => obscureTemplate(s.template)),
918-
json ?? false,
919-
);
920-
}
921-
922907
// not outputting template to stdout, let's explain things to the user a little bit...
923908
success(`Successfully synthesized to ${chalk.blue(path.resolve(stacks.assembly.directory))}`);
924909
print(

0 commit comments

Comments
 (0)