rigged for twoclient test with full container log download

This commit is contained in:
benbierens 2023-10-08 19:11:31 +02:00
parent e4b7e461e9
commit b0610393af
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
3 changed files with 16 additions and 5 deletions

View File

@ -33,6 +33,10 @@ namespace ContinuousTests
[Uniform("cleanup", "cl", "CLEANUP", false, "If set to 1 or 'true', the kubernetes namespace will be deleted after the test run has finished.")]
public bool Cleanup { get; set; } = false;
[Uniform("full-container-logs", "fcl", "FULLCONTAINERLOGS", false, "If set to 1 or 'true', container logs downloaded on test failure will download from" +
" the timestamp of the start of the network deployment. Otherwise, logs will start from the test start timestamp.")]
public bool FullContainerLogs { get; set; } = false;
public CodexDeployment CodexDeployment { get; set; } = null!;
}

View File

@ -104,6 +104,10 @@ namespace ContinuousTests
Thread.Sleep(TimeSpan.FromMinutes(1));
var effectiveStart = testStart.Subtract(TimeSpan.FromSeconds(30));
if (config.FullContainerLogs)
{
effectiveStart = config.CodexDeployment.Metadata.DeployDateTimeUtc.Subtract(TimeSpan.FromSeconds(30));
}
var effectiveEnd = DateTime.UtcNow;
var elasticSearchLogDownloader = new ElasticSearchLogDownloader(entryPoint.Tools, fixtureLog);

View File

@ -1,6 +1,6 @@
set -e
replication=10
replication=5
echo "Deploying..."
cd ../../Tools/CodexNetDeployer
@ -13,14 +13,14 @@ do
--nodes=5 \
--validators=3 \
--log-level=Trace \
--storage-quota=2048 \
--storage-quota=20480 \
--storage-sell=1024 \
--min-price=1024 \
--max-collateral=1024 \
--max-duration=3600000 \
--block-ttl=180 \
--block-mi=120 \
--block-mn=10000 \
--block-ttl=99999999 \
--block-mi=99999999 \
--block-mn=100 \
--metrics=1 \
--check-connect=1 \
-y
@ -38,5 +38,8 @@ do
--data-path=data-$i \
--keep=1 \
--stop=1 \
--filter=TwoClient \
--cleanup=1 \
--full-container-logs=1 \
--target-duration=172800 # 48 hours
done