GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — win,test: try again if file unlink fails by piscisaureus · Pull Request #284 · nodejs/node

Conversation

@piscisaureus

@piscisaureus piscisaureus commented Jan 10, 2015

Copy link
Copy Markdown
Contributor

Now that parallel tests are enabled, the test runner spits out a ton of
'access denied' errors while running the tests. These happen because a
virus scanner or the indexing service temporarily open the file after it
has been updated, and the test runner tries to unlink() them at the same
time.

This patch resolves this issue by attempting to unlink the file until it
succeeds.

R=@bnoordhuis

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@piscisaureus
piscisaureus force-pushed the test-fix-unlink branch from cba0c03 to b05d30a Compare January 10, 2015 23:23
@piscisaureus piscisaureus changed the title Test fix unlink win,test: try again if file unlink fails Jan 10, 2015
bnoordhuis
bnoordhuis reviewed Jan 11, 2015
View reviewed changes
Comment thread tools/test.py Outdated

@bnoordhuis bnoordhuis Jan 11, 2015

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sys.platform == 'win32' is slightly more idiomatic. Maybe the comment could mention that 'another process' means a virus scanner or an indexer because the only two calls to CheckedUnlink() are for temp files. An unwitting reader could easily assume that the loop is not in fact necessary.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@piscisaureus
piscisaureus force-pushed the test-fix-unlink branch from b05d30a to 44644a1 Compare January 11, 2015 00:54
@piscisaureus
win,test: try again if file unlink fails
b57e9a9
Now that parallel tests are enabled, the test runner spits out a ton of
'access denied' errors while running the tests. These happen because a
virus scanner or the indexing service temporarily open the file after it
has been updated, and the test runner tries to unlink() them at the same
time.

This patch resolves this issue by attempting to unlink the file until it
succeeds.

PR-URL: nodejs#284
Reviewed-by: Ben Noordhuis <[email protected]>
@piscisaureus
piscisaureus force-pushed the test-fix-unlink branch from 44644a1 to b57e9a9 Compare January 11, 2015 00:55
@piscisaureus
piscisaureus merged commit b57e9a9 into nodejs:v1.x Jan 11, 2015
@piscisaureus
piscisaureus deleted the test-fix-unlink branch January 11, 2015 00:55
@bnoordhuis

bnoordhuis commented Jan 11, 2015

Copy link
Copy Markdown
Member

LGTM even if makes me feel a little squeamish.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@snyk-bot snyk-bot mentioned this pull request Feb 22, 2020
[Snyk] Upgrade uuid from 3.1.0 to 3.4.0 saurabharch/node#3
Open
This was referenced Nov 28, 2023
[Snyk] Security upgrade xo from 0.16.0 to 0.20.0 leonardoadame/node#207
Open
[Snyk] Security upgrade xo from 0.11.2 to 0.20.0 leonardoadame/node#209
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@piscisaureus @bnoordhuis
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.