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

VS Code tests flaky on CI: ENOTEMPTY #961

Open
strager opened this issue Mar 31, 2023 · 6 comments
Open

VS Code tests flaky on CI: ENOTEMPTY #961

strager opened this issue Mar 31, 2023 · 6 comments

Comments

@strager
Copy link
Collaborator

strager commented Mar 31, 2023

https://github.com/quick-lint/quick-lint-js/actions/runs/4571012290/jobs/8069098140

[snip]
OK      enabling then disabling then enabling logging reuses output channel
Running Linux: inotify watch error shows pop-up ...
called: vscode.window.showWarningMessage("failed to watch /tmp for changes: No space left on device", ...)
OK      Linux: inotify watch error shows pop-up
Running Linux: inotify init error shows pop-up ...
called: vscode.window.showWarningMessage("failed to watch  for changes: Too many open files", ...)
OK      Linux: inotify init error shows pop-up
Running watch error only shows pop-up once ...
called: vscode.window.showWarningMessage("failed to watch /tmp for changes: No space left on device", ...)
OK      watch error only shows pop-up once
Exit code:   0
Done

Error: ENOTEMPTY: directory not empty, rmdir '/tmp/GT54Mn/CachedData/e790b931385d72cf5669fcefc51cdf65990efa5d'
    at Object.rmdirSync (node:fs:1227:10)
    at _rmdirSync (node:internal/fs/rimraf:260:21)
    at rimrafSync (node:internal/fs/rimraf:193:7)
    at node:internal/fs/rimraf:253:9
    at Array.forEach (<anonymous>)
    at _rmdirSync (node:internal/fs/rimraf:250:7)
    at rimrafSync (node:internal/fs/rimraf:193:7)
    at node:internal/fs/rimraf:253:9
    at Array.forEach (<anonymous>)
    at _rmdirSync (node:internal/fs/rimraf:250:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@strager
Copy link
Collaborator Author

strager commented Jul 27, 2023

Another failure, this time on macOS:

[snip]
Running enabling then disabling then enabling logging reuses output channel ...
called: vscode.window.createOutputChannel("quick-lint-js")
OK      enabling then disabling then enabling logging reuses output channel
Running BSD: directory watch error shows pop-up ...
called: vscode.window.showWarningMessage("failed to watch /private for changes: Too many open files", ...)
OK      BSD: directory watch error shows pop-up
Running watch error only shows pop-up once ...
called: vscode.window.showWarningMessage("failed to watch /private for changes: Too many open files", ...)
OK      watch error only shows pop-up once
Exit code:   0
Done

Error: ENOTEMPTY: directory not empty, rmdir '/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/4FOkl3/CachedData/e790b931385d72cf5669fcefc51cdf65990efa5d'
    at Object.rmdirSync (node:fs:1227:10)
    at _rmdirSync (node:internal/fs/rimraf:260:21)
    at rimrafSync (node:internal/fs/rimraf:193:7)
    at node:internal/fs/rimraf:253:9
    at Array.forEach (<anonymous>)
    at _rmdirSync (node:internal/fs/rimraf:250:7)
    at rimrafSync (node:internal/fs/rimraf:193:7)
    at node:internal/fs/rimraf:253:9
    at Array.forEach (<anonymous>)
    at _rmdirSync (node:internal/fs/rimraf:250:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.

https://github.com/quick-lint/quick-lint-js/actions/runs/5684750660/job/15408573245

@strager
Copy link
Collaborator Author

strager commented Jul 28, 2023

Possibly related failure on Windows: https://github.com/quick-lint/quick-lint-js/actions/runs/5685039232/job/15409388221

Running output channel gets messages if logging is enabled after loading extension ...
called: vscode.window.createOutputChannel("quick-lint-js")
OK      output channel gets messages if logging is enabled after loading extension
Running output channel gets no more messages if logging is disabled after loading extension ...
called: vscode.window.createOutputChannel("quick-lint-js")
OK      output channel gets no more messages if logging is disabled after loading extension
Running enabling then disabling then enabling logging reuses output channel ...
called: vscode.window.createOutputChannel("quick-lint-js")
OK      enabling then disabling then enabling logging reuses output channel
Exit code:   0
Done

Error: EBUSY: resource busy or locked, unlink '\\?\C:\Users\RUNNER~1\AppData\Local\Temp\Zb9pi3\Crashpad\reports\73ca0a3c-1178-418e-8d71-4e7b2177c7cc.dmp'
    at unlinkSync (node:fs:1883:3)
    at _unlinkSync (node:internal/fs/rimraf:214:14)
    at rimrafSync (node:internal/fs/rimraf:195:7)
    at node:internal/fs/rimraf:253:9
    at Array.forEach (<anonymous>)
    at _rmdirSync (node:internal/fs/rimraf:250:7)
    at rimrafSync (node:internal/fs/rimraf:193:7)
    at node:internal/fs/rimraf:253:9
    at Array.forEach (<anonymous>)
    at _rmdirSync (node:internal/fs/rimraf:250:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.

@strager
Copy link
Collaborator Author

strager commented Aug 13, 2023

@strager
Copy link
Collaborator Author

strager commented Sep 3, 2023

In commit 246d60a, I upgrade VS Code to work around the flakiness. However, the flakiness persists:

https://github.com/quick-lint/quick-lint-js/actions/runs/6063806561/job/16451737521

Error: EBUSY: resource busy or locked, unlink '\?\C:\Users\RUNNER~1\AppData\Local\Temp\fV2YVz\logs\20230903T102658\sharedprocess.log'

@strager
Copy link
Collaborator Author

strager commented Oct 28, 2023

@strager
Copy link
Collaborator Author

strager commented Dec 20, 2023

macOS AArch64 failure: https://github.com/quick-lint/quick-lint-js/actions/runs/7271415920/job/19812142029

Error: ENOTEMPTY: directory not empty, rmdir '/var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/1PoXcL/CachedData/3c4e3df9e89829dce27b7b5c24508306b151f30d'
    at Object.rmdirSync (node:fs:1229:10)
    at _rmdirSync (node:internal/fs/rimraf:260:21)
    at rimrafSync (node:internal/fs/rimraf:193:7)
    at node:internal/fs/rimraf:253:9
    at Array.forEach (<anonymous>)
    at _rmdirSync (node:internal/fs/rimraf:250:7)
    at rimrafSync (node:internal/fs/rimraf:193:7)
    at node:internal/fs/rimraf:253:9
    at Array.forEach (<anonymous>)
    at _rmdirSync (node:internal/fs/rimraf:250:7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant