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

Smoke test: unable to create file app.js: Permission denied #132218

Closed
bpasero opened this issue Sep 3, 2021 · 5 comments
Closed

Smoke test: unable to create file app.js: Permission denied #132218

bpasero opened this issue Sep 3, 2021 · 5 comments
Assignees
Labels
insiders-released Patch has been released in VS Code Insiders search Search widget and operation issues smoke-test-failure windows VS Code on Windows issues
Milestone

Comments

@bpasero
Copy link
Member

bpasero commented Sep 3, 2021

Quite often I see the smoke tests fail in this step:

after(function () {
const app = this.app as Application;
cp.execSync('git checkout . --quiet', { cwd: app.workspacePathOrFolder });
cp.execSync('git reset --hard HEAD --quiet', { cwd: app.workspacePathOrFolder });
});

Which then seems to prevent the app from quitting:

await app.stop();

And then all following smoke tests fail:

image

The error seems to be: error: unable to create file app.js: Permission denied

As seen in:

There could be a few reasons:

  • the search process (RipGrep) holds onto the files (?)
  • the file watcher (or any extension watcher) locks the file (?)

I wonder if we need to add some retry logic to the git command there.

@bpasero bpasero added windows VS Code on Windows issues smoke-test-failure labels Sep 3, 2021
@bpasero bpasero added this to the September 2021 milestone Sep 3, 2021
@joaomoreno joaomoreno assigned roblourens and unassigned joaomoreno Sep 3, 2021
@joaomoreno joaomoreno added the search Search widget and operation issues label Sep 3, 2021
@bpasero
Copy link
Member Author

bpasero commented Sep 6, 2021

I have disabled the search smoke tests on Windows.

@roblourens
Copy link
Member

the search process (RipGrep) holds onto the files (?)

I would not expect that to happen, so we can see if this helps

@roblourens
Copy link
Member

Did the error go away after this? Could do a basic retry on those commands but I don't understand why search would break it

@bpasero
Copy link
Member Author

bpasero commented Oct 1, 2021

Yes, I have not seen that error a single time since then.

@roblourens
Copy link
Member

Added a retry. I guess that error can happen if there is another git operation happening at the same time. Dunno why that would happen. Please reopen if you see it again.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 27, 2021
lemanschik pushed a commit to code-oss-dev/code that referenced this issue Nov 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
insiders-released Patch has been released in VS Code Insiders search Search widget and operation issues smoke-test-failure windows VS Code on Windows issues
Projects
None yet
Development

No branches or pull requests

4 participants
@joaomoreno @roblourens @bpasero and others