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

Retry TFVC Gets #2972

Merged
merged 4 commits into from
May 14, 2020
Merged

Retry TFVC Gets #2972

merged 4 commits into from
May 14, 2020

Conversation

damccorm
Copy link

Add in retries on Tfvc gets to fix https://dev.azure.com/mseng/AzureDevOps/_workitems/edit/1717568/. We can add it in more places as needed

@damccorm damccorm merged commit 59bab1c into master May 14, 2020
@damccorm damccorm deleted the users/damccorm/tfvcRetry branch May 14, 2020 16:49
@lg2de
Copy link

lg2de commented Jun 8, 2020

We can add it in more places as needed

How about adding it to "git clone" too?

We often hit the following issue:

##[section]Starting: Initialize job
Current agent version: '2.153.1'
##[debug]Primary repository: ***. repository type: Git
Prepare build directory.
##[debug]Delete existing build directory: 'C:\agent\_work\3'
##[debug]Deleting build directory: 'C:\agent\_work\3'
##[error]The directory is not empty : 'C:\agent\_work\3'
##[debug]System.IO.IOException: The directory is not empty : 'C:\agent\_work\3'
   at System.IO.FileSystem.RemoveDirectoryInternal(String fullPath, Boolean topLevel, Boolean allowDirectoryNotEmpty)
   at System.IO.FileSystem.RemoveDirectory(String fullPath, Boolean recursive)
   at System.IO.DirectoryInfo.Delete()
   at Microsoft.VisualStudio.Services.Agent.Util.IOUtil.DeleteDirectory(String path, Boolean contentsOnly, Boolean continueOnContentDeleteError, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildDirectoryManager.CreateDirectory(IExecutionContext executionContext, String description, String path, Boolean deleteExisting)
   at Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildDirectoryManager.PrepareDirectory(IExecutionContext executionContext, RepositoryResource repository, WorkspaceOptions workspace)
   at Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildJobExtension.InitializeJobExtension(IExecutionContext executionContext, IList`1 steps, WorkspaceOptions workspace)
   at Microsoft.VisualStudio.Services.Agent.Worker.JobExtension.InitializeJob(IExecutionContext jobContext, AgentJobRequestMessage message)
##[section]Finishing: Initialize job

Running build on the machine once again, the action can be completed.
It is unclear when this happens. It is not yet reproducible.
Already discussed here: https://developercommunity.visualstudio.com/content/problem/598106/build-fails-frequently-with-the-directory-is-not-e.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants