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

Make rename retry more frequently for longer, then try making a hardlink #1497

Merged
merged 6 commits into from
Sep 23, 2021

Conversation

JohnMcPMS
Copy link
Member

@JohnMcPMS JohnMcPMS commented Sep 22, 2021

Change

We already had a single retry after a 250ms wait for our rename of the installer to make it shell actionable with the correct extension. This change makes it try every 100ms for 500ms, then use copy_file with a hard link option as a fall back.

The hard link is better than a true copy, as it won't take up more space. But it won't get cleaned up on a successful install either.

Long term we should put in some background cleanup to remove old installers that were abandoned due to failures.

Microsoft Reviewers: Open in CodeFlow

@JohnMcPMS JohnMcPMS requested a review from a team as a code owner September 22, 2021 21:33
Copy link
Contributor

@yao-msft yao-msft left a comment

Choose a reason for hiding this comment

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

:shipit:

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Contributor

@sreadingMSFT sreadingMSFT left a comment

Choose a reason for hiding this comment

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

:shipit:

@JohnMcPMS JohnMcPMS merged commit e630cf7 into microsoft:master Sep 23, 2021
@JohnMcPMS JohnMcPMS deleted the retryrename branch September 23, 2021 00:48
@ghost ghost mentioned this pull request Oct 17, 2021
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

Successfully merging this pull request may close these issues.

3 participants