Repository navigation
Retry restore - #5187
Retry restore#5187
Conversation
|
Cool |
| info.WorkingDirectory <- FullName @"./.." | ||
| info.Arguments <- sprintf "restore %s -PackagesDirectory \"%s\" -ConfigFile \"%s\"" (FullName p) (FullName "./../packages") (FullName "./../NuGet.Config")) TimeSpan.MaxValue | ||
| |> assertExitCodeZero | ||
| let executeProcess () = |
There was a problem hiding this comment.
I think you should add a parameter "trials" and only retry 5 times
There was a problem hiding this comment.
I intended it to only retry 1 time. I figured that would be sufficient to eliminate the annoyance. And ... how is your vacation?
|
From all we learned in paket and FAKE over the years - make it retry
multiple times. ;-)
Kevin Ransom (msft) <notifications@github.com> schrieb am Mi., 13. Juni
2018, 07:36:
… ***@***.**** commented on this pull request.
------------------------------
In fcs/build.fsx
<#5187 (comment)>
:
> @@ -77,11 +77,12 @@ Target "Restore" (fun _ ->
// We assume a paket restore has already been run
runDotnet __SOURCE_DIRECTORY__ "restore FSharp.Compiler.Service.sln -v n"
for p in [ "../packages.config" ] do
- ExecProcess (fun info ->
- info.FileName <- FullName @"./../.nuget/NuGet.exe"
- info.WorkingDirectory <- FullName @"./.."
- info.Arguments <- sprintf "restore %s -PackagesDirectory \"%s\" -ConfigFile \"%s\"" (FullName p) (FullName "./../packages") (FullName "./../NuGet.Config")) TimeSpan.MaxValue
- |> assertExitCodeZero
+ let executeProcess () =
I intended it to only retry 1 time. I figured that would be sufficient to
eliminate the annoyance. And ... how is your vacation?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5187 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADgNAfQRMc_Thl49zg-ZzFItdALqhBMks5t8KT4gaJpZM4Ulakb>
.
|
|
@forki You mean retry until the stack overflows? ;) |
|
Dude! |
|
@forki, you guys are too funny :-) |
|
fsprojects/Paket#3251 |
|
Let's see how this goes, if the failure still happens an annoying amount, we can retry multiple times, and perhaps try a delay and stuff. |
|
@forki,that is too funny. Software is hard .... |
|
I agree that retrying 5 times would be good, may as well do it now rather than later |
| info.FileName <- FullName @"./../.nuget/NuGet.exe" | ||
| info.WorkingDirectory <- FullName @"./.." | ||
| info.Arguments <- sprintf "restore %s -PackagesDirectory \"%s\" -ConfigFile \"%s\"" (FullName p) (FullName "./../packages") (FullName "./../NuGet.Config")) TimeSpan.MaxValue | ||
| if result <> 0 && count > 1 then executeProcess (count - 1) else 0 |
There was a problem hiding this comment.
This should read ... else result so that if the 5 tries are exhausted the last error code is returned.
|
@brettfo Oh yeah …. |
|
Yay!
Kevin Ransom (msft) <notifications@github.com> schrieb am Do., 14. Juni
2018, 05:51:
… Merged #5187 <#5187>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5187 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADgNMfkUwvYhgDOB0bJsKuJBufCjIf4ks5t8d3egaJpZM4Ulakb>
.
|
Retry the restore