Browse Source
Merge pull request #7067 from workgroupengineering/features/Build/Reatry_LeakTests
feat(Build): Add 3 retry when the LeakTests fails
pull/7183/head
Steven Kirk
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
9 additions and
5 deletions
-
build/JetBrains.dotMemoryUnit.props
-
nukebuild/Build.cs
|
|
|
@ -1,5 +1,5 @@ |
|
|
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|
|
|
<ItemGroup> |
|
|
|
<PackageReference Include="JetBrains.dotMemoryUnit" Version="3.0.20171219.105559" /> |
|
|
|
<PackageReference Include="JetBrains.DotMemoryUnit" Version="3.1.20200127.214830" /> |
|
|
|
</ItemGroup> |
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -253,10 +253,14 @@ partial class Build : NukeBuild |
|
|
|
.DependsOn(Compile) |
|
|
|
.Executes(() => |
|
|
|
{ |
|
|
|
var testAssembly = "tests\\Avalonia.LeakTests\\bin\\Release\\net461\\Avalonia.LeakTests.dll"; |
|
|
|
DotMemoryUnit( |
|
|
|
$"{XunitPath.DoubleQuoteIfNeeded()} --propagate-exit-code -- {testAssembly}", |
|
|
|
timeout: 120_000); |
|
|
|
void DoMemoryTest() |
|
|
|
{ |
|
|
|
var testAssembly = "tests\\Avalonia.LeakTests\\bin\\Release\\net461\\Avalonia.LeakTests.dll"; |
|
|
|
DotMemoryUnit( |
|
|
|
$"{XunitPath.DoubleQuoteIfNeeded()} --propagate-exit-code -- {testAssembly}", |
|
|
|
timeout: 120_000); |
|
|
|
} |
|
|
|
ControlFlow.ExecuteWithRetry(DoMemoryTest, waitInSeconds: 3); |
|
|
|
}); |
|
|
|
|
|
|
|
Target ZipFiles => _ => _ |
|
|
|
|