From d7e87c32d067fe1efc131abfeb85920bc48323df Mon Sep 17 00:00:00 2001 From: Vinayak Kukreja Date: Mon, 26 Feb 2024 12:53:08 -0800 Subject: [PATCH 1/3] chore: testing pipeline Signed-off-by: Vinayak Kukreja --- packages/@aws-cdk/integ-runner/lib/runner/integ-test-suite.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@aws-cdk/integ-runner/lib/runner/integ-test-suite.ts b/packages/@aws-cdk/integ-runner/lib/runner/integ-test-suite.ts index 65037f481cb98..5987352e04163 100644 --- a/packages/@aws-cdk/integ-runner/lib/runner/integ-test-suite.ts +++ b/packages/@aws-cdk/integ-runner/lib/runner/integ-test-suite.ts @@ -144,7 +144,7 @@ export class LegacyIntegTestSuite extends IntegTestSuite { throw new Error('"cdk-integ" can only operate on apps with a single stack.\n\n' + ' If your app has multiple stacks, specify which stack to select by adding this to your test source:\n\n' + ` ${CDK_INTEG_STACK_PRAGMA} STACK ...\n\n` + - ` Available stacks: ${stacks.join(' ')} (wildcards are also supported)\n`); + ` Available stacks: ${stacks.join(' --NEW-STACKS-- ')} (wildcards are also supported) and Stack Length: ${stacks.length}\n`); } if (stacks.length === 1 && stacks[0] === '') { throw new Error(`No stack found for test ${config.testName}`); From 7e6d09874dfebd403468348990a75757d132046c Mon Sep 17 00:00:00 2001 From: Vinayak Kukreja Date: Mon, 26 Feb 2024 12:56:33 -0800 Subject: [PATCH 2/3] changing cli integ test for trigger Signed-off-by: Vinayak Kukreja --- .../cli-integ/tests/cli-integ-tests/cli.integtest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@aws-cdk-testing/cli-integ/tests/cli-integ-tests/cli.integtest.ts b/packages/@aws-cdk-testing/cli-integ/tests/cli-integ-tests/cli.integtest.ts index d22d636de2996..b3bfc447110be 100644 --- a/packages/@aws-cdk-testing/cli-integ/tests/cli-integ-tests/cli.integtest.ts +++ b/packages/@aws-cdk-testing/cli-integ/tests/cli-integ-tests/cli.integtest.ts @@ -814,7 +814,7 @@ integTest('deploy and test stack with lambda asset', withDefaultFixture(async (f expect(JSON.stringify(output.Payload)).toContain('dear asset'); })); -integTest('cdk ls', withDefaultFixture(async (fixture) => { +integTest('cdk list', withDefaultFixture(async (fixture) => { const listing = await fixture.cdk(['ls'], { captureStderr: false }); const expectedStacks = [ From 082fb39a484444103278a86492a63734981e933d Mon Sep 17 00:00:00 2001 From: Vinayak Kukreja Date: Mon, 26 Feb 2024 13:08:01 -0800 Subject: [PATCH 3/3] maybe this would trigger Signed-off-by: Vinayak Kukreja --- packages/aws-cdk/lib/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-cdk/lib/cli.ts b/packages/aws-cdk/lib/cli.ts index d7465e78693bf..b5a82f4cdbeb1 100644 --- a/packages/aws-cdk/lib/cli.ts +++ b/packages/aws-cdk/lib/cli.ts @@ -86,7 +86,7 @@ async function parseCommandLineArguments(args: string[]) { .option('notices', { type: 'boolean', desc: 'Show relevant notices' }) .option('no-color', { type: 'boolean', desc: 'Removes colors and other style from console output', default: false }) .option('ci', { type: 'boolean', desc: 'Force CI detection. If CI=true then logs will be sent to stdout instead of stderr', default: process.env.CI !== undefined }) - .command(['list [STACKS..]', 'ls [STACKS..]'], 'Lists all stacks in the app', (yargs: Argv) => yargs + .command(['list [STACKS..]', 'ls [STACKS..]'], 'Lists all stacks in the app and their dependencies', (yargs: Argv) => yargs .option('long', { type: 'boolean', default: false, alias: 'l', desc: 'Display environment information for each stack' }), ) .command(['synthesize [STACKS..]', 'synth [STACKS..]'], 'Synthesizes and prints the CloudFormation template for this stack', (yargs: Argv) => yargs