From 454612c8e290f307dec6b9891b4d12487bcf5462 Mon Sep 17 00:00:00 2001 From: Harsha Nalluru Date: Mon, 23 Jan 2023 10:38:08 -0800 Subject: [PATCH] [Perf] Console.logs that are part of the test are not being propagated (#24519) * Update sdk/test-utils/perf/src/multicore.ts * changelog --- sdk/test-utils/perf/CHANGELOG.md | 8 +++++++- sdk/test-utils/perf/src/multicore.ts | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/sdk/test-utils/perf/CHANGELOG.md b/sdk/test-utils/perf/CHANGELOG.md index f0e12be7b821..5f03d7dcbac8 100644 --- a/sdk/test-utils/perf/CHANGELOG.md +++ b/sdk/test-utils/perf/CHANGELOG.md @@ -2,6 +2,12 @@ ## 1.0.0 (Unreleased) +### 2023-01-18 + +- [#24518](https://github.com/Azure/azure-sdk-for-js/issues/24518) Fixes the issue where the `console.logs` that are part of the test are not being propagated as expected from the child process(test instance). + + [#23819](https://github.com/Azure/azure-sdk-for-js/pull/23819) + ### 2022-02-04 - [#19920](https://github.com/Azure/azure-sdk-for-js/pull/19920) Added support for adding polices as part of the client options with the new "additionalPolicies" array. @@ -9,7 +15,7 @@ [#20175](https://github.com/Azure/azure-sdk-for-js/pull/20175) - - With the support from the new `PerfTest#configureClientOptions` method, we no longer need the `PerfTest#configureClient` that used to access the private "pipeline" object internal to the client to add/modify the policies. + - With the support from the new `PerfTest#configureClientOptions` method, we no longer need the `PerfTest#configureClient` that used to access the private "pipeline" object internal to the client to add/modify the policies. - [#20175](https://github.com/Azure/azure-sdk-for-js/pull/20175) removes the `PerfTest#configureClient` along with the new addition. ### 2021-11-24 diff --git a/sdk/test-utils/perf/src/multicore.ts b/sdk/test-utils/perf/src/multicore.ts index a1edbe0575f3..4cf19cc9c3b0 100644 --- a/sdk/test-utils/perf/src/multicore.ts +++ b/sdk/test-utils/perf/src/multicore.ts @@ -117,7 +117,8 @@ const createChildProcess = (data: WorkerData): WorkerLike => [JSON.stringify(data)], { // Configure an IPC channel so that messages can be sent via process.send. - stdio: [0, 0, 0, "ipc"], + // https://nodejs.org/api/child_process.html#optionsstdio + stdio: ["inherit", "inherit", "inherit", "ipc"], } );