Ease up timeouts and resource usage in attempt to run tests in cluster.

This commit is contained in:
ThatBen 2025-07-09 10:49:13 +02:00
parent 8817ce56ae
commit 16bf9d466b
No known key found for this signature in database
GPG Key ID: 62C543548433D43E
3 changed files with 13 additions and 4 deletions

View File

@ -60,7 +60,16 @@ namespace GethPlugin
private static string Retry(Func<string> 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);
}
}

View File

@ -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());

View File

@ -1,6 +1,6 @@
using NUnit.Framework;
[assembly: LevelOfParallelism(3)]
[assembly: LevelOfParallelism(2)]
namespace CodexReleaseTests
{
}