Merge branch 'master' into feature/continuous-testing

This commit is contained in:
benbierens 2023-06-26 11:12:53 +02:00
commit 125c3715a8
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
2 changed files with 15 additions and 9 deletions

View File

@ -26,6 +26,7 @@ namespace ContinuousTests
foreach (var t in testStarters)
{
t.Begin();
Thread.Sleep(TimeSpan.FromMinutes(5));
}
while (true) Thread.Sleep((2 ^ 31) - 1);

View File

@ -3,6 +3,7 @@ using DistTestCore;
using Logging;
using Utils;
using KubernetesWorkflow;
using NUnit.Framework.Internal;
namespace ContinuousTests
{
@ -16,6 +17,7 @@ namespace ContinuousTests
private readonly CodexNode[] nodes;
private readonly FileManager fileManager;
private readonly FixtureLog fixtureLog;
private readonly string testName;
private readonly string dataFolder;
public SingleTestRun(Configuration config, BaseLog overviewLog, TestHandle handle)
@ -24,7 +26,7 @@ namespace ContinuousTests
this.overviewLog = overviewLog;
this.handle = handle;
var testName = handle.Test.GetType().Name;
testName = handle.Test.GetType().Name;
fixtureLog = new FixtureLog(new LogConfig(config.LogPath, false), testName);
nodes = CreateRandomNodes(handle.Test.RequiredNumberOfNodes);
@ -89,6 +91,8 @@ namespace ContinuousTests
}
private void RunMoment(int t)
{
using (var context = new TestExecutionContext.IsolatedContext())
{
try
{
@ -99,6 +103,7 @@ namespace ContinuousTests
Log($" > TestMoment yielded exception: " + ex);
exceptions.Add(ex);
}
}
DecommissionTest();
}
@ -122,7 +127,7 @@ namespace ContinuousTests
private void OverviewLog(string msg)
{
Log(msg);
overviewLog.Log(msg);
overviewLog.Log(testName + ": " + msg);
}
private CodexNode[] CreateRandomNodes(int number)