Skip to content
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

wip #6248

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

wip #6248

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
3 changes: 2 additions & 1 deletion agent/src/TestClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@
// To see the full error, run this file in isolation:
//
// pnpm test agent/src/index.test.ts
execSync('pnpm run build:for-tests ', {

Check failure on line 105 in agent/src/TestClient.ts

View workflow job for this annotation

GitHub Actions / test-unit (windows, 20)

src/custom-commands.test.ts

Error: Command failed: pnpm run build:for-tests X [ERROR] Failed to write to output file: open D:\a\cody\cody\agent\dist\noxide.win32-x64-msvc-MVMDLGLL.node: The process cannot access the file because it is being used by another process. Could not build the agent. Build failed with 1 error: error: Failed to write to output file: open D:\a\cody\cody\agent\dist\noxide.win32-x64-msvc-MVMDLGLL.node: The process cannot access the file because it is being used by another process. ❯ buildAgentBinary src/TestClient.ts:105:5 ❯ Function.create src/TestClient.ts:139:9 ❯ src/custom-commands.test.ts:14:31 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 1, signal: null, output: [ null, '\n> @sourcegraph/[email protected] build:for-tests D:\a\cody\cody\agent\n> pnpm run -s build:root && pnpm run -s build:agent\n\n ELIFECYCLE  Command failed with exit code 1.\n', 'X [ERROR] Failed to write to output file: open D:\a\cody\cody\agent\dist\noxide.win32-x64-msvc-MVMDLGLL.node: The process cannot access the file because it is being used by another process.\n\nCould not build the agent. Build failed with 1 error:\nerror: Failed to write to output file: open D:\a\cody\cody\agent\dist\noxide.win32-x64-msvc-MVMDLGLL.node: The process cannot access the file because it is being used by another process.\n' ], pid: 6296, stdout: '\n> @sourcegraph/[email protected] build:for-tests D:\a\cody\cody\agent\n> pnpm run -s build:root && pnpm run -s build:agent\n\n ELIFECYCLE  Command failed with exit code 1.\n', stderr: 'X [ERROR] Failed to write to output file: open D:\a\cody\cody\agent\dist\noxide.win32-x64-msvc-MVMDLGLL.node: The process cannot access the file because it is being used by another process.\n\nCould not build the agent. Build failed with 1 error:\nerror: Failed to write to output file: open D:\a\cody\cody\agent\dist\noxide.win32-x64-msvc-MVMDLGLL.node: The process cannot access the file because it is being used by another process.\n' }

Check failure on line 105 in agent/src/TestClient.ts

View workflow job for this annotation

GitHub Actions / test-unit (windows, 20)

src/enterprise-s2.test.ts

Error: Command failed: pnpm run build:for-tests X [ERROR] Failed to write to output file: open D:\a\cody\cody\agent\dist\noxide.win32-x64-msvc-MVMDLGLL.node: The process cannot access the file because it is being used by another process. Could not build the agent. Build failed with 1 error: error: Failed to write to output file: open D:\a\cody\cody\agent\dist\noxide.win32-x64-msvc-MVMDLGLL.node: The process cannot access the file because it is being used by another process. ❯ buildAgentBinary src/TestClient.ts:105:5 ❯ Function.create src/TestClient.ts:139:9 ❯ src/enterprise-s2.test.ts:16:43 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 1, signal: null, output: [ null, '\n> @sourcegraph/[email protected] build:for-tests D:\a\cody\cody\agent\n> pnpm run -s build:root && pnpm run -s build:agent\n\n ELIFECYCLE  Command failed with exit code 1.\n', 'X [ERROR] Failed to write to output file: open D:\a\cody\cody\agent\dist\noxide.win32-x64-msvc-MVMDLGLL.node: The process cannot access the file because it is being used by another process.\n\nCould not build the agent. Build failed with 1 error:\nerror: Failed to write to output file: open D:\a\cody\cody\agent\dist\noxide.win32-x64-msvc-MVMDLGLL.node: The process cannot access the file because it is being used by another process.\n' ], pid: 5188, stdout: '\n> @sourcegraph/[email protected] build:for-tests D:\a\cody\cody\agent\n> pnpm run -s build:root && pnpm run -s build:agent\n\n ELIFECYCLE  Command failed with exit code 1.\n', stderr: 'X [ERROR] Failed to write to output file: open D:\a\cody\cody\agent\dist\noxide.win32-x64-msvc-MVMDLGLL.node: The process cannot access the file because it is being used by another process.\n\nCould not build the agent. Build failed with 1 error:\nerror: Failed to write to output file: open D:\a\cody\cody\agent\dist\noxide.win32-x64-msvc-MVMDLGLL.node: The process cannot access the file because it is being used by another process.\n' }
cwd: getAgentDir(),
stdio: 'inherit',
stdio: 'pipe',
encoding: 'utf-8',
})

const mayRecord =
Expand Down
Loading