From dd0354de4017e3e3a9468d0a930cd45861adfecc Mon Sep 17 00:00:00 2001 From: Sai Ray Date: Mon, 29 Jun 2026 15:50:11 -0400 Subject: [PATCH 1/4] Chore: mid work --- packages/aws-cdk/lib/cli/cdk-toolkit.ts | 8 ++--- packages/aws-cdk/test/cli/cdk-toolkit.test.ts | 31 ++++++------------- 2 files changed, 14 insertions(+), 25 deletions(-) diff --git a/packages/aws-cdk/lib/cli/cdk-toolkit.ts b/packages/aws-cdk/lib/cli/cdk-toolkit.ts index 4a18336d1..228790dd4 100644 --- a/packages/aws-cdk/lib/cli/cdk-toolkit.ts +++ b/packages/aws-cdk/lib/cli/cdk-toolkit.ts @@ -960,10 +960,10 @@ export class CdkToolkit { ): Promise { this.ioHost.rewriteOnce(IO.CDK_TOOLKIT_I2901, (msg) => formatStackList(msg.data.stacks, options)); - // With `--json`, stdout must stay machine-parsable, so suppress the synth-time line (I1000). - if (options.json) { - this.ioHost.once(IO.CDK_TOOLKIT_I1000, () => ({ preventDefault: true })); - } + // cdk ls stdout is the stack listing only. Suppress the info status lines synthesis emits next + // to it: the synth-time line (I1000) and the dependency-expansion note (I1002). + this.ioHost.once(IO.CDK_TOOLKIT_I1000, () => ({ preventDefault: true })); + this.ioHost.once(IO.CDK_TOOLKIT_I1002, () => ({ preventDefault: true })); await this.toolkit.list(this.props.cloudExecutable, { stacks: selectors.length > 0 diff --git a/packages/aws-cdk/test/cli/cdk-toolkit.test.ts b/packages/aws-cdk/test/cli/cdk-toolkit.test.ts index db3cad432..dd931f52f 100644 --- a/packages/aws-cdk/test/cli/cdk-toolkit.test.ts +++ b/packages/aws-cdk/test/cli/cdk-toolkit.test.ts @@ -220,33 +220,22 @@ describe('list', () => { ]); }); - test('with --json, suppresses the synthesis-time line so stdout stays machine-parsable', async () => { - // `cdk ls --json` stdout is a machine-readable contract; the "Synthesis time" line - // (CDK_TOOLKIT_I1000) must not be written (in CI mode non-error output goes to stdout). - const toolkit = defaultToolkitSetup(); - const onceSpy = jest.spyOn(ioHost, 'once'); - - // WHEN - await toolkit.list([], { json: true }); - - // THEN - a one-shot suppressor for I1000 was registered that prevents default handling. - const i1000Call = onceSpy.mock.calls.find(([code]) => (code as any)?.code === 'CDK_TOOLKIT_I1000'); - expect(i1000Call).toBeDefined(); - const listener = i1000Call![1] as (msg: any) => any; - expect(listener({ code: 'CDK_TOOLKIT_I1000' })).toEqual({ preventDefault: true }); - }); - - test('without --json, does not suppress the synthesis-time line', async () => { - // Plain `cdk ls` is not a machine-readable contract, so the line is left alone. + test('suppresses the synth-time (I1000) and dependency-expansion (I1002) lines so stdout is only the listing', async () => { + // These info lines are emitted next to the listing and would pollute stdout in CI; cdk ls + // suppresses them so stdout carries only the stack listing. const toolkit = defaultToolkitSetup(); const onceSpy = jest.spyOn(ioHost, 'once'); // WHEN await toolkit.list([]); - // THEN - const i1000Call = onceSpy.mock.calls.find(([code]) => (code as any)?.code === 'CDK_TOOLKIT_I1000'); - expect(i1000Call).toBeUndefined(); + // THEN - a one-shot suppressor that prevents default handling is registered for each code. + for (const code of ['CDK_TOOLKIT_I1000', 'CDK_TOOLKIT_I1002']) { + const call = onceSpy.mock.calls.find(([sel]) => (sel as any)?.code === code); + expect(call).toBeDefined(); + const listener = call![1] as (msg: any) => any; + expect(listener({ code })).toEqual({ preventDefault: true }); + } }); }); From f124e016dfc393a3c6cb8786f4b2c3f6ff0346c2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 19:59:07 +0000 Subject: [PATCH 2/4] chore: self mutation Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- ...cdk_list_fails_when_stacks_have_a_circular_dependency.ndjson | 2 +- ...dk_list_lists_a_multi-level_dependency_chain_in_order.ndjson | 2 +- .../list/cdk_list_lists_full_stack_details_with_--long.ndjson | 2 +- .../list/cdk_list_lists_the_selected_stacks.ndjson | 2 +- .../cdk_list_orders_cross-stack_references_by_dependency.ndjson | 2 +- ...t_shows_nested_dependencies_addressed_by_display_name.ndjson | 2 +- .../list/cdk_list_shows_the_dependencies_between_stacks.ndjson | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_fails_when_stacks_have_a_circular_dependency.ndjson b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_fails_when_stacks_have_a_circular_dependency.ndjson index daba78b91..ae4ba3b9a 100644 --- a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_fails_when_stacks_have_a_circular_dependency.ndjson +++ b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_fails_when_stacks_have_a_circular_dependency.ndjson @@ -1,4 +1,4 @@ {"seq":0,"type":"notify","action":"list","level":"trace","code":"CDK_TOOLKIT_I1001","message":"Starting Synthesis ..."} {"seq":1,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1000","message":"Starting Synthesis ..."} {"seq":2,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1001","message":"\n✨ Synthesis time: \n"} -{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: "} +{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: ","dropped":true} diff --git a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_a_multi-level_dependency_chain_in_order.ndjson b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_a_multi-level_dependency_chain_in_order.ndjson index d783f4352..c9a7f0a74 100644 --- a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_a_multi-level_dependency_chain_in_order.ndjson +++ b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_a_multi-level_dependency_chain_in_order.ndjson @@ -1,5 +1,5 @@ {"seq":0,"type":"notify","action":"list","level":"trace","code":"CDK_TOOLKIT_I1001","message":"Starting Synthesis ..."} {"seq":1,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1000","message":"Starting Synthesis ..."} {"seq":2,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1001","message":"\n✨ Synthesis time: \n"} -{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: "} +{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: ","dropped":true} {"seq":4,"type":"notify","action":"list","level":"result","code":"CDK_TOOLKIT_I2901","message":"- id: Test-Stack-A\n dependencies: []\n- id: Test-Stack-B\n dependencies:\n - id: Test-Stack-A\n dependencies: []\n- id: Test-Stack-C\n dependencies:\n - id: Test-Stack-B\n dependencies:\n - id: Test-Stack-A\n dependencies: []\n"} diff --git a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_full_stack_details_with_--long.ndjson b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_full_stack_details_with_--long.ndjson index 1926bb2c2..0457ae7f4 100644 --- a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_full_stack_details_with_--long.ndjson +++ b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_full_stack_details_with_--long.ndjson @@ -1,5 +1,5 @@ {"seq":0,"type":"notify","action":"list","level":"trace","code":"CDK_TOOLKIT_I1001","message":"Starting Synthesis ..."} {"seq":1,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1000","message":"Starting Synthesis ..."} {"seq":2,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1001","message":"\n✨ Synthesis time: \n"} -{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: "} +{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: ","dropped":true} {"seq":4,"type":"notify","action":"list","level":"result","code":"CDK_TOOLKIT_I2901","message":"- id: Test-Stack-A\n name: Test-Stack-A\n environment:\n account: \"123456789012\"\n region: bermuda-triangle-1\n name: aws://123456789012/bermuda-triangle-1\n- id: Test-Stack-B\n name: Test-Stack-B\n environment:\n account: \"123456789012\"\n region: bermuda-triangle-1\n name: aws://123456789012/bermuda-triangle-1\n"} diff --git a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_the_selected_stacks.ndjson b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_the_selected_stacks.ndjson index f900792e5..7dee225d9 100644 --- a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_the_selected_stacks.ndjson +++ b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_the_selected_stacks.ndjson @@ -1,5 +1,5 @@ {"seq":0,"type":"notify","action":"list","level":"trace","code":"CDK_TOOLKIT_I1001","message":"Starting Synthesis ..."} {"seq":1,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1000","message":"Starting Synthesis ..."} {"seq":2,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1001","message":"\n✨ Synthesis time: \n"} -{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: "} +{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: ","dropped":true} {"seq":4,"type":"notify","action":"list","level":"result","code":"CDK_TOOLKIT_I2901","message":"Test-Stack-A\nTest-Stack-B"} diff --git a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_orders_cross-stack_references_by_dependency.ndjson b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_orders_cross-stack_references_by_dependency.ndjson index b9692af48..dae2b2719 100644 --- a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_orders_cross-stack_references_by_dependency.ndjson +++ b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_orders_cross-stack_references_by_dependency.ndjson @@ -1,5 +1,5 @@ {"seq":0,"type":"notify","action":"list","level":"trace","code":"CDK_TOOLKIT_I1001","message":"Starting Synthesis ..."} {"seq":1,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1000","message":"Starting Synthesis ..."} {"seq":2,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1001","message":"\n✨ Synthesis time: \n"} -{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: "} +{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: ","dropped":true} {"seq":4,"type":"notify","action":"list","level":"result","code":"CDK_TOOLKIT_I2901","message":"- id: Test-Stack-C\n dependencies: []\n- id: Test-Stack-A\n dependencies:\n - id: Test-Stack-C\n dependencies: []\n"} diff --git a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_shows_nested_dependencies_addressed_by_display_name.ndjson b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_shows_nested_dependencies_addressed_by_display_name.ndjson index fdfcf8650..3320c2191 100644 --- a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_shows_nested_dependencies_addressed_by_display_name.ndjson +++ b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_shows_nested_dependencies_addressed_by_display_name.ndjson @@ -1,5 +1,5 @@ {"seq":0,"type":"notify","action":"list","level":"trace","code":"CDK_TOOLKIT_I1001","message":"Starting Synthesis ..."} {"seq":1,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1000","message":"Starting Synthesis ..."} {"seq":2,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1001","message":"\n✨ Synthesis time: \n"} -{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: "} +{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: ","dropped":true} {"seq":4,"type":"notify","action":"list","level":"result","code":"CDK_TOOLKIT_I2901","message":"- id: Test-Stack-A\n dependencies: []\n- id: Test-Stack-A/Test-Stack-B\n dependencies:\n - id: Test-Stack-A\n dependencies: []\n- id: Test-Stack-A/Test-Stack-B/Test-Stack-C\n dependencies:\n - id: Test-Stack-A/Test-Stack-B\n dependencies:\n - id: Test-Stack-A\n dependencies: []\n"} diff --git a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_shows_the_dependencies_between_stacks.ndjson b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_shows_the_dependencies_between_stacks.ndjson index 29061097a..e64d6fa9e 100644 --- a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_shows_the_dependencies_between_stacks.ndjson +++ b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_shows_the_dependencies_between_stacks.ndjson @@ -1,5 +1,5 @@ {"seq":0,"type":"notify","action":"list","level":"trace","code":"CDK_TOOLKIT_I1001","message":"Starting Synthesis ..."} {"seq":1,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1000","message":"Starting Synthesis ..."} {"seq":2,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1001","message":"\n✨ Synthesis time: \n"} -{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: "} +{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: ","dropped":true} {"seq":4,"type":"notify","action":"list","level":"result","code":"CDK_TOOLKIT_I2901","message":"- id: Test-Stack-A\n dependencies: []\n- id: Test-Stack-B\n dependencies:\n - id: Test-Stack-A\n dependencies: []\n"} From 6592c6a16f357b592bef61b98e50e05f83c615f9 Mon Sep 17 00:00:00 2001 From: Sai Ray Date: Mon, 29 Jun 2026 16:29:32 -0400 Subject: [PATCH 3/4] chore: midwork --- .../cdk-cdk-ls-ci-no-synth-time-on-stdout.integtest.ts | 10 +++++----- packages/aws-cdk/test/cli/cdk-toolkit.test.ts | 9 +++++---- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/@aws-cdk-testing/cli-integ/tests/cli-integ-tests/list/cdk-cdk-ls-ci-no-synth-time-on-stdout.integtest.ts b/packages/@aws-cdk-testing/cli-integ/tests/cli-integ-tests/list/cdk-cdk-ls-ci-no-synth-time-on-stdout.integtest.ts index c346830e1..977e7678d 100644 --- a/packages/@aws-cdk-testing/cli-integ/tests/cli-integ-tests/list/cdk-cdk-ls-ci-no-synth-time-on-stdout.integtest.ts +++ b/packages/@aws-cdk-testing/cli-integ/tests/cli-integ-tests/list/cdk-cdk-ls-ci-no-synth-time-on-stdout.integtest.ts @@ -1,11 +1,11 @@ import { integTest, withDefaultFixture } from '../../../lib'; integTest( - 'cdk ls --json in CI does not print synthesis time to stdout', + 'cdk ls in CI prints only the stack listing to stdout', withDefaultFixture(async (fixture) => { - // `cdk ls --json` stdout is a machine-readable contract and is often piped (e.g. to `jq`), - // so it must be only the stack listing, not status lines like "✨ Synthesis time: ...". - const listing = await fixture.cdk(['ls', '--json'], { + // In CI, non-error output goes to stdout. `cdk ls` stdout must be only the stack listing, + // not status lines like "✨ Synthesis time: ..." or "Including dependency stacks: ...". + const listing = await fixture.cdk(['ls'], { verbose: false, // fixture defaults verbose on; turn it off so stdout is just the listing captureStderr: false, // capture stdout only; stderr is folded into the result by default modEnv: { CI: 'true' }, // CI routes non-error output to stdout (default is stderr) @@ -13,7 +13,7 @@ integTest( const lines = listing.trim().split('\n').filter(line => line.length > 0); - // every line should be a stack; a synth-time line would not carry the prefix + // every line should be a stack; a status line would not carry the stack name prefix expect(lines.length).toBeGreaterThan(0); for (const line of lines) { expect(line).toContain(fixture.stackNamePrefix); diff --git a/packages/aws-cdk/test/cli/cdk-toolkit.test.ts b/packages/aws-cdk/test/cli/cdk-toolkit.test.ts index dd931f52f..cfe79d124 100644 --- a/packages/aws-cdk/test/cli/cdk-toolkit.test.ts +++ b/packages/aws-cdk/test/cli/cdk-toolkit.test.ts @@ -220,16 +220,17 @@ describe('list', () => { ]); }); - test('suppresses the synth-time (I1000) and dependency-expansion (I1002) lines so stdout is only the listing', async () => { - // These info lines are emitted next to the listing and would pollute stdout in CI; cdk ls - // suppresses them so stdout carries only the stack listing. + test('suppresses the synth-time (I1000) and dependency-expansion (I1002) lines on the list path', async () => { + // Both are info-level lines emitted next to the listing; in CI they would land on stdout and + // pollute the parseable output. The list path registers a one-shot suppressor for each so they + // are dropped before being written. (End-to-end stdout behavior is covered by the integ test.) const toolkit = defaultToolkitSetup(); const onceSpy = jest.spyOn(ioHost, 'once'); // WHEN await toolkit.list([]); - // THEN - a one-shot suppressor that prevents default handling is registered for each code. + // THEN for (const code of ['CDK_TOOLKIT_I1000', 'CDK_TOOLKIT_I1002']) { const call = onceSpy.mock.calls.find(([sel]) => (sel as any)?.code === code); expect(call).toBeDefined(); From 6e368d9daeee28de6758cda8408eb586fba3e141 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 12:47:10 +0000 Subject: [PATCH 4/4] chore: self mutation Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- ...dk_list_fails_when_stacks_have_a_circular_dependency.ndjson | 1 - ...k_list_lists_a_multi-level_dependency_chain_in_order.ndjson | 3 +-- .../list/cdk_list_lists_full_stack_details_with_--long.ndjson | 3 +-- .../list/cdk_list_lists_the_selected_stacks.ndjson | 3 +-- ...cdk_list_orders_cross-stack_references_by_dependency.ndjson | 3 +-- ..._shows_nested_dependencies_addressed_by_display_name.ndjson | 3 +-- .../list/cdk_list_shows_the_dependencies_between_stacks.ndjson | 3 +-- 7 files changed, 6 insertions(+), 13 deletions(-) diff --git a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_fails_when_stacks_have_a_circular_dependency.ndjson b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_fails_when_stacks_have_a_circular_dependency.ndjson index ae4ba3b9a..6784b22e9 100644 --- a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_fails_when_stacks_have_a_circular_dependency.ndjson +++ b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_fails_when_stacks_have_a_circular_dependency.ndjson @@ -1,4 +1,3 @@ {"seq":0,"type":"notify","action":"list","level":"trace","code":"CDK_TOOLKIT_I1001","message":"Starting Synthesis ..."} {"seq":1,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1000","message":"Starting Synthesis ..."} {"seq":2,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1001","message":"\n✨ Synthesis time: \n"} -{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: ","dropped":true} diff --git a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_a_multi-level_dependency_chain_in_order.ndjson b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_a_multi-level_dependency_chain_in_order.ndjson index c9a7f0a74..46b2fa3a3 100644 --- a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_a_multi-level_dependency_chain_in_order.ndjson +++ b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_a_multi-level_dependency_chain_in_order.ndjson @@ -1,5 +1,4 @@ {"seq":0,"type":"notify","action":"list","level":"trace","code":"CDK_TOOLKIT_I1001","message":"Starting Synthesis ..."} {"seq":1,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1000","message":"Starting Synthesis ..."} {"seq":2,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1001","message":"\n✨ Synthesis time: \n"} -{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: ","dropped":true} -{"seq":4,"type":"notify","action":"list","level":"result","code":"CDK_TOOLKIT_I2901","message":"- id: Test-Stack-A\n dependencies: []\n- id: Test-Stack-B\n dependencies:\n - id: Test-Stack-A\n dependencies: []\n- id: Test-Stack-C\n dependencies:\n - id: Test-Stack-B\n dependencies:\n - id: Test-Stack-A\n dependencies: []\n"} +{"seq":3,"type":"notify","action":"list","level":"result","code":"CDK_TOOLKIT_I2901","message":"- id: Test-Stack-A\n dependencies: []\n- id: Test-Stack-B\n dependencies:\n - id: Test-Stack-A\n dependencies: []\n- id: Test-Stack-C\n dependencies:\n - id: Test-Stack-B\n dependencies:\n - id: Test-Stack-A\n dependencies: []\n"} diff --git a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_full_stack_details_with_--long.ndjson b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_full_stack_details_with_--long.ndjson index 0457ae7f4..9a78e1603 100644 --- a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_full_stack_details_with_--long.ndjson +++ b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_full_stack_details_with_--long.ndjson @@ -1,5 +1,4 @@ {"seq":0,"type":"notify","action":"list","level":"trace","code":"CDK_TOOLKIT_I1001","message":"Starting Synthesis ..."} {"seq":1,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1000","message":"Starting Synthesis ..."} {"seq":2,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1001","message":"\n✨ Synthesis time: \n"} -{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: ","dropped":true} -{"seq":4,"type":"notify","action":"list","level":"result","code":"CDK_TOOLKIT_I2901","message":"- id: Test-Stack-A\n name: Test-Stack-A\n environment:\n account: \"123456789012\"\n region: bermuda-triangle-1\n name: aws://123456789012/bermuda-triangle-1\n- id: Test-Stack-B\n name: Test-Stack-B\n environment:\n account: \"123456789012\"\n region: bermuda-triangle-1\n name: aws://123456789012/bermuda-triangle-1\n"} +{"seq":3,"type":"notify","action":"list","level":"result","code":"CDK_TOOLKIT_I2901","message":"- id: Test-Stack-A\n name: Test-Stack-A\n environment:\n account: \"123456789012\"\n region: bermuda-triangle-1\n name: aws://123456789012/bermuda-triangle-1\n- id: Test-Stack-B\n name: Test-Stack-B\n environment:\n account: \"123456789012\"\n region: bermuda-triangle-1\n name: aws://123456789012/bermuda-triangle-1\n"} diff --git a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_the_selected_stacks.ndjson b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_the_selected_stacks.ndjson index 7dee225d9..69cf27b00 100644 --- a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_the_selected_stacks.ndjson +++ b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_lists_the_selected_stacks.ndjson @@ -1,5 +1,4 @@ {"seq":0,"type":"notify","action":"list","level":"trace","code":"CDK_TOOLKIT_I1001","message":"Starting Synthesis ..."} {"seq":1,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1000","message":"Starting Synthesis ..."} {"seq":2,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1001","message":"\n✨ Synthesis time: \n"} -{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: ","dropped":true} -{"seq":4,"type":"notify","action":"list","level":"result","code":"CDK_TOOLKIT_I2901","message":"Test-Stack-A\nTest-Stack-B"} +{"seq":3,"type":"notify","action":"list","level":"result","code":"CDK_TOOLKIT_I2901","message":"Test-Stack-A\nTest-Stack-B"} diff --git a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_orders_cross-stack_references_by_dependency.ndjson b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_orders_cross-stack_references_by_dependency.ndjson index dae2b2719..0ad2754fb 100644 --- a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_orders_cross-stack_references_by_dependency.ndjson +++ b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_orders_cross-stack_references_by_dependency.ndjson @@ -1,5 +1,4 @@ {"seq":0,"type":"notify","action":"list","level":"trace","code":"CDK_TOOLKIT_I1001","message":"Starting Synthesis ..."} {"seq":1,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1000","message":"Starting Synthesis ..."} {"seq":2,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1001","message":"\n✨ Synthesis time: \n"} -{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: ","dropped":true} -{"seq":4,"type":"notify","action":"list","level":"result","code":"CDK_TOOLKIT_I2901","message":"- id: Test-Stack-C\n dependencies: []\n- id: Test-Stack-A\n dependencies:\n - id: Test-Stack-C\n dependencies: []\n"} +{"seq":3,"type":"notify","action":"list","level":"result","code":"CDK_TOOLKIT_I2901","message":"- id: Test-Stack-C\n dependencies: []\n- id: Test-Stack-A\n dependencies:\n - id: Test-Stack-C\n dependencies: []\n"} diff --git a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_shows_nested_dependencies_addressed_by_display_name.ndjson b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_shows_nested_dependencies_addressed_by_display_name.ndjson index 3320c2191..88086854c 100644 --- a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_shows_nested_dependencies_addressed_by_display_name.ndjson +++ b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_shows_nested_dependencies_addressed_by_display_name.ndjson @@ -1,5 +1,4 @@ {"seq":0,"type":"notify","action":"list","level":"trace","code":"CDK_TOOLKIT_I1001","message":"Starting Synthesis ..."} {"seq":1,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1000","message":"Starting Synthesis ..."} {"seq":2,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1001","message":"\n✨ Synthesis time: \n"} -{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: ","dropped":true} -{"seq":4,"type":"notify","action":"list","level":"result","code":"CDK_TOOLKIT_I2901","message":"- id: Test-Stack-A\n dependencies: []\n- id: Test-Stack-A/Test-Stack-B\n dependencies:\n - id: Test-Stack-A\n dependencies: []\n- id: Test-Stack-A/Test-Stack-B/Test-Stack-C\n dependencies:\n - id: Test-Stack-A/Test-Stack-B\n dependencies:\n - id: Test-Stack-A\n dependencies: []\n"} +{"seq":3,"type":"notify","action":"list","level":"result","code":"CDK_TOOLKIT_I2901","message":"- id: Test-Stack-A\n dependencies: []\n- id: Test-Stack-A/Test-Stack-B\n dependencies:\n - id: Test-Stack-A\n dependencies: []\n- id: Test-Stack-A/Test-Stack-B/Test-Stack-C\n dependencies:\n - id: Test-Stack-A/Test-Stack-B\n dependencies:\n - id: Test-Stack-A\n dependencies: []\n"} diff --git a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_shows_the_dependencies_between_stacks.ndjson b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_shows_the_dependencies_between_stacks.ndjson index e64d6fa9e..72f9d3dff 100644 --- a/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_shows_the_dependencies_between_stacks.ndjson +++ b/packages/aws-cdk/test/commands/__io_snapshots__/list/cdk_list_shows_the_dependencies_between_stacks.ndjson @@ -1,5 +1,4 @@ {"seq":0,"type":"notify","action":"list","level":"trace","code":"CDK_TOOLKIT_I1001","message":"Starting Synthesis ..."} {"seq":1,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1000","message":"Starting Synthesis ..."} {"seq":2,"type":"notify","action":"list","level":"trace","code":"CDK_CLI_I1001","message":"\n✨ Synthesis time: \n"} -{"seq":3,"type":"notify","action":"list","level":"info","code":"CDK_TOOLKIT_I1000","message":"✨ Synthesis time: ","dropped":true} -{"seq":4,"type":"notify","action":"list","level":"result","code":"CDK_TOOLKIT_I2901","message":"- id: Test-Stack-A\n dependencies: []\n- id: Test-Stack-B\n dependencies:\n - id: Test-Stack-A\n dependencies: []\n"} +{"seq":3,"type":"notify","action":"list","level":"result","code":"CDK_TOOLKIT_I2901","message":"- id: Test-Stack-A\n dependencies: []\n- id: Test-Stack-B\n dependencies:\n - id: Test-Stack-A\n dependencies: []\n"}