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

Try and make ScriptWorkspace.Delete more reliable #752

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

nathanwoctopusdeploy
Copy link
Contributor

Background

Try and make ScriptWorkspace.Delete more reliable

It appears that the FileSystem.DeleteDirectory method can fail to delete the directory in cases where Directory.Delete(recursive: true) can be successful.

Leaving the existing code as we would need to understand more about the intent of the logic before changing it but adding in another best effort attempt to delete the directory.

This has been observed in Workspace Cleaner tests

image

How to review this PR

Quality ✔️

Pre-requisites

  • I have read How we use GitHub Issues for help deciding when and where it's appropriate to make an issue.
  • I have considered informing or consulting the right people, according to the ownership map.
  • I have considered appropriate testing for my change.

@nathanwoctopusdeploy nathanwoctopusdeploy merged commit 325fb78 into main Dec 20, 2023
2 checks passed
@nathanwoctopusdeploy nathanwoctopusdeploy deleted the sast/improve-scriptworkspace-delete branch December 20, 2023 02:34
@nathanwoctopusdeploy
Copy link
Contributor Author

[sc-67444]

Copy link

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.

2 participants