Skip to content

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

Merged
JohnMcPMS merged 6 commits into
microsoft:masterfrom
JohnMcPMS:retryrename
Sep 23, 2021
Merged

JohnMcPMS merged 6 commits into
microsoft:masterfrom
JohnMcPMS:retryrename

Conversation

@JohnMcPMS

@JohnMcPMS JohnMcPMS commented Sep 22, 2021 •

Copy link
Copy Markdown
Member

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

@yao-msft yao-msft left a comment

Copy link
Copy Markdown
Contributor

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.

@sreadingMSFT sreadingMSFT left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

:shipit:

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