Skip to content

Added Log Line : Python extensions listens on port 9003 #22064

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/client/testing/testController/common/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ export class PythonTestServer implements ITestServer, Disposable {
resource: options.workspaceFolder,
};
const execService = await this.executionFactory.createActivatedEnvironment(creationOptions);
traceInfo(`Test Port Number: ${this.getPort()}`);

// Add the generated UUID to the data to be sent (expecting to receive it back).
// first check if we have testIds passed in (in case of execution) and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class PytestTestDiscoveryAdapter implements ITestDiscoveryAdapter {
},
outputChannel: this.outputChannel,
};

traceInfo(`Test Port Number: ${ this.testServer.getPort().toString()}`);
// Create the Python environment in which to execute the command.
const creationOptions: ExecutionFactoryCreateWithEnvironmentOptions = {
allowEnvironmentFetchExceptions: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export class PytestTestExecutionAdapter implements ITestExecutionAdapter {
outputChannel: this.outputChannel,
stdinStr: testIds.toString(),
};
traceInfo(`Test Port Number: ${ this.testServer.getPort().toString()}`);

// Create the Python environment in which to execute the command.
const creationOptions: ExecutionFactoryCreateWithEnvironmentOptions = {
Expand All @@ -139,6 +140,7 @@ export class PytestTestExecutionAdapter implements ITestExecutionAdapter {
}

const pytestRunTestIdsPort = await utils.startTestIdServer(testIds);
traceInfo(`Test Ids Port Number: ${pytestRunTestIdsPort.toString()}`);
if (spawnOptions.extraVariables)
spawnOptions.extraVariables.RUN_TEST_IDS_PORT = pytestRunTestIdsPort.toString();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export class UnittestTestExecutionAdapter implements ITestExecutionAdapter {
traceLog(`Running UNITTEST execution for the following test ids: ${testIds}`);

const runTestIdsPort = await startTestIdServer(testIds);
traceInfo(`Test Ids Port Number: ${runTestIdsPort.toString()}`);

await this.testServer.sendCommand(options, runTestIdsPort.toString(), runInstance, testIds, () => {
deferredTillEOT?.resolve();
Expand Down