Skip to content

Commit 6a12891

Browse files
committed
diagnostics logging for flaky test
1 parent aa8b2b8 commit 6a12891

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/test/integration/pythonProjects.integration.test.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,11 @@ suite('Integration: Python Projects', function () {
339339
const project = projects[0];
340340
const env = environments[0];
341341

342+
// Log diagnostic info for CI debugging
343+
console.log(`[Test] Setting environment for project: ${project.uri.fsPath}`);
344+
console.log(`[Test] Environment to set: ${env.envId.id} (manager: ${env.envId.managerId})`);
345+
console.log(`[Test] Environment path: ${env.environmentPath?.fsPath}`);
346+
342347
// Set environment for project
343348
await api.setEnvironment(project.uri, env);
344349

@@ -347,10 +352,13 @@ suite('Integration: Python Projects', function () {
347352
await waitForCondition(
348353
async () => {
349354
const retrieved = await api.getEnvironment(project.uri);
355+
if (retrieved) {
356+
console.log(`[Test] Retrieved environment: ${retrieved.envId.id}`);
357+
}
350358
return retrieved !== undefined && retrieved.envId.id === env.envId.id;
351359
},
352360
15_000,
353-
'Environment was not set for project',
361+
`Environment was not set for project. Expected: ${env.envId.id} (manager: ${env.envId.managerId})`,
354362
);
355363

356364
// Create a hypothetical file path inside the project

0 commit comments

Comments
 (0)