Flaky unit test

Open
#320,952 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
node.js, typescript
Domain
backend, testing

Research direction

Start with the linked GitHub Actions run and inspect out/vs/platform/agentHost/test/node/agentService.test.js around line 134, where cleanup fails with EPERM on Windows. Reproduce the dispatchAction test on Windows and verify that repeated runs complete without the permission-denied failure.

Written by the indexing model from the issue text.

Description

unit-test-failure

Spotted in https://github.com/microsoft/vscode/actions/runs/27349152755/job/80805862065?pr=320950#step:15:29438


  1) AgentService (node dispatcher)
       dispatchAction
         applies and persists root config changes from clients:

      
      + expected - actual


  Error: EPERM, Permission denied: \\?\c:\Users\CLOUDT~1\AppData\Local\Temp\agent-host-config-PDKDMT '\\?\c:\Users\CLOUDT~1\AppData\Local\Temp\agent-host-config-PDKDMT'
      at rmSync (node:fs:1222:18)
      at Context.<anonymous> (file:///D:/a/_work/vscode/vscode/out/vs/platform/agentHost/test/node/agentService.test.js:134:9)



errorlevel: 1
Dominant language
TypeScript
Stars
193k
Forks
42.9k
PR merge metrics
PR metrics pending

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/vscode

All issues in microsoft/vscode

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.