Skip to content

Commit e30d04f

Browse files
cdeckerclaude
andcommitted
ci: Set workspace root as cwd for gltestserver spawn
uv run needs to execute from the workspace root so it can resolve gl-testing and other workspace dependencies from the top-level pyproject.toml. Without this, the process starts but immediately crashes on import errors, never writing the .env file. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a0966a6 commit e30d04f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

libs/gl-sdk-napi/tests/jest.globalSetup.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,17 @@ export default async function globalSetup(): Promise<void> {
5959

6060
console.log('\n🚀 Starting gltestserver...');
6161

62+
// Run from the workspace root so uv resolves gl-testing and other
63+
// workspace dependencies from the top-level pyproject.toml.
64+
const workspaceRoot = path.resolve(__dirname, '..', '..', '..');
65+
6266
const server: ChildProcess = spawn(
6367
'uv',
6468
['run', 'python', path.join(__dirname, 'test_setup.py')],
6569
{
70+
cwd: workspaceRoot,
6671
detached: true,
67-
stdio: verbose ? ['ignore', 'pipe', 'pipe'] : 'ignore',
72+
stdio: ['ignore', 'pipe', 'pipe'],
6873
}
6974
);
7075

0 commit comments

Comments
 (0)