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
parent
commit
7175960556
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      build/JetBrains.dotMemoryUnit.props
  2. 12
      nukebuild/Build.cs

2
build/JetBrains.dotMemoryUnit.props

@ -1,5 +1,5 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup> <ItemGroup>
<PackageReference Include="JetBrains.dotMemoryUnit" Version="3.0.20171219.105559" /> <PackageReference Include="JetBrains.DotMemoryUnit" Version="3.1.20200127.214830" />
</ItemGroup> </ItemGroup>
</Project> </Project>

12
nukebuild/Build.cs

@ -253,10 +253,14 @@ partial class Build : NukeBuild
.DependsOn(Compile) .DependsOn(Compile)
.Executes(() => .Executes(() =>
{ {
var testAssembly = "tests\\Avalonia.LeakTests\\bin\\Release\\net461\\Avalonia.LeakTests.dll"; void DoMemoryTest()
DotMemoryUnit( {
$"{XunitPath.DoubleQuoteIfNeeded()} --propagate-exit-code -- {testAssembly}", var testAssembly = "tests\\Avalonia.LeakTests\\bin\\Release\\net461\\Avalonia.LeakTests.dll";
timeout: 120_000); DotMemoryUnit(
$"{XunitPath.DoubleQuoteIfNeeded()} --propagate-exit-code -- {testAssembly}",
timeout: 120_000);
}
ControlFlow.ExecuteWithRetry(DoMemoryTest, waitInSeconds: 3);
}); });
Target ZipFiles => _ => _ Target ZipFiles => _ => _

Loading…
Cancel
Save