rigged for twoclient test with full container log download
This commit is contained in:
parent
e4b7e461e9
commit
b0610393af
|
@ -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.")]
|
[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;
|
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!;
|
public CodexDeployment CodexDeployment { get; set; } = null!;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -104,6 +104,10 @@ namespace ContinuousTests
|
||||||
Thread.Sleep(TimeSpan.FromMinutes(1));
|
Thread.Sleep(TimeSpan.FromMinutes(1));
|
||||||
|
|
||||||
var effectiveStart = testStart.Subtract(TimeSpan.FromSeconds(30));
|
var effectiveStart = testStart.Subtract(TimeSpan.FromSeconds(30));
|
||||||
|
if (config.FullContainerLogs)
|
||||||
|
{
|
||||||
|
effectiveStart = config.CodexDeployment.Metadata.DeployDateTimeUtc.Subtract(TimeSpan.FromSeconds(30));
|
||||||
|
}
|
||||||
var effectiveEnd = DateTime.UtcNow;
|
var effectiveEnd = DateTime.UtcNow;
|
||||||
var elasticSearchLogDownloader = new ElasticSearchLogDownloader(entryPoint.Tools, fixtureLog);
|
var elasticSearchLogDownloader = new ElasticSearchLogDownloader(entryPoint.Tools, fixtureLog);
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
replication=10
|
replication=5
|
||||||
|
|
||||||
echo "Deploying..."
|
echo "Deploying..."
|
||||||
cd ../../Tools/CodexNetDeployer
|
cd ../../Tools/CodexNetDeployer
|
||||||
|
@ -13,14 +13,14 @@ do
|
||||||
--nodes=5 \
|
--nodes=5 \
|
||||||
--validators=3 \
|
--validators=3 \
|
||||||
--log-level=Trace \
|
--log-level=Trace \
|
||||||
--storage-quota=2048 \
|
--storage-quota=20480 \
|
||||||
--storage-sell=1024 \
|
--storage-sell=1024 \
|
||||||
--min-price=1024 \
|
--min-price=1024 \
|
||||||
--max-collateral=1024 \
|
--max-collateral=1024 \
|
||||||
--max-duration=3600000 \
|
--max-duration=3600000 \
|
||||||
--block-ttl=180 \
|
--block-ttl=99999999 \
|
||||||
--block-mi=120 \
|
--block-mi=99999999 \
|
||||||
--block-mn=10000 \
|
--block-mn=100 \
|
||||||
--metrics=1 \
|
--metrics=1 \
|
||||||
--check-connect=1 \
|
--check-connect=1 \
|
||||||
-y
|
-y
|
||||||
|
@ -38,5 +38,8 @@ do
|
||||||
--data-path=data-$i \
|
--data-path=data-$i \
|
||||||
--keep=1 \
|
--keep=1 \
|
||||||
--stop=1 \
|
--stop=1 \
|
||||||
|
--filter=TwoClient \
|
||||||
|
--cleanup=1 \
|
||||||
|
--full-container-logs=1 \
|
||||||
--target-duration=172800 # 48 hours
|
--target-duration=172800 # 48 hours
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue