diff --git a/ProjectPlugins/GethPlugin/GethContainerInfoExtractor.cs b/ProjectPlugins/GethPlugin/GethContainerInfoExtractor.cs index 4fc76763..f16b7b79 100644 --- a/ProjectPlugins/GethPlugin/GethContainerInfoExtractor.cs +++ b/ProjectPlugins/GethPlugin/GethContainerInfoExtractor.cs @@ -60,7 +60,16 @@ namespace GethPlugin private static string Retry(Func fetch) { - return Time.Retry(fetch, nameof(GethContainerInfoExtractor)); + // This class is the first moment where we interact with our new geth container. + // K8s might be moving pods and/or setting up new VMs. + // So we apply a generous retry timeout. + var retry = new Retry(nameof(GethContainerInfoExtractor), + maxTimeout: TimeSpan.FromMinutes(15.0), + sleepAfterFail: TimeSpan.FromSeconds(20.0), + onFail: f => { }, + failFast: false); + + return retry.Run(fetch); } } diff --git a/Tests/CodexReleaseTests/DataTests/DataExpiryTest.cs b/Tests/CodexReleaseTests/DataTests/DataExpiryTest.cs index 03d18e34..a4e3500d 100644 --- a/Tests/CodexReleaseTests/DataTests/DataExpiryTest.cs +++ b/Tests/CodexReleaseTests/DataTests/DataExpiryTest.cs @@ -24,7 +24,7 @@ namespace CodexReleaseTests.DataTests [Test] public void DeletesExpiredData() { - var fileSize = 100.MB(); + var fileSize = 3.MB(); var node = StartCodex(s => WithFastBlockExpiry(s)); var startSpace = node.Space(); @@ -53,7 +53,7 @@ namespace CodexReleaseTests.DataTests [Test] public void DeletesExpiredDataUsedByStorageRequests() { - var fileSize = 100.MB(); + var fileSize = 3.MB(); var bootstrapNode = StartCodex(); var geth = StartGethNode(s => s.IsMiner()); diff --git a/Tests/CodexReleaseTests/Parallelism.cs b/Tests/CodexReleaseTests/Parallelism.cs index 2666122c..44731c5e 100644 --- a/Tests/CodexReleaseTests/Parallelism.cs +++ b/Tests/CodexReleaseTests/Parallelism.cs @@ -1,6 +1,6 @@ using NUnit.Framework; -[assembly: LevelOfParallelism(3)] +[assembly: LevelOfParallelism(2)] namespace CodexReleaseTests { }