Skip to content

Commit 6379ad8

Browse files
chore: update pt-testnet-load check (#455)
* chore: update pt-testnet-load check * chore: update pt-testnet-load check * fix: increase timeout for pt-testnet-load * chore(load): increase load duration to month and add postage label
1 parent 6033cb5 commit 6379ad8

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

config/public-testnet.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,21 +131,21 @@ checks:
131131
pt-testnet-load:
132132
options:
133133
content-size: 50000000
134-
postage-amount: 1000000000 # 1024/15*60*60*24*7
134+
postage-amount: 6120360000 # (28335/12)*60*60*24*30
135135
postage-depth: 24
136-
duration: 12h
136+
postage-label: test-label
137+
duration: 720h
137138
uploader-count: 2
138139
downloader-count: 0
139-
max-use-batch: 1h
140-
max-committed-depth: 3
140+
max-committed-depth: 2
141141
committed-depth-check-wait: 5m
142142
upload-groups:
143143
- bee-1
144144
- bee-2
145145
download-groups:
146146
- bee-3
147147
- bee-4
148-
timeout: 12h
148+
timeout: 721h
149149
type: load
150150
pt-feed:
151151
options:

pkg/check/smoke/load.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ func (c *LoadCheck) Run(ctx context.Context, cluster orchestration.Cluster, opts
5454

5555
c.logger.Infof("random seed: %v", o.RndSeed)
5656
c.logger.Infof("content size: %v", o.ContentSize)
57-
c.logger.Infof("max batch lifespan: %v", o.MaxUseBatch)
5857
c.logger.Infof("max committed depth: %v", o.MaxCommittedDepth)
5958
c.logger.Infof("committed depth check wait time: %v", o.CommittedDepthCheckWait)
6059

@@ -124,7 +123,7 @@ func (c *LoadCheck) Run(ctx context.Context, cluster orchestration.Cluster, opts
124123
var duration time.Duration
125124
c.logger.Infof("uploading to: %s", txName)
126125

127-
batchID, err := clients[txName].GetOrCreateMutableBatch(ctx, o.PostageAmount, o.PostageDepth, "load-test")
126+
batchID, err := clients[txName].GetOrCreateMutableBatch(ctx, o.PostageAmount, o.PostageDepth, o.PostageLabel)
128127
if err != nil {
129128
c.logger.Errorf("create new batch: %v", err)
130129
return

pkg/check/smoke/smoke.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ type Options struct {
2222
RndSeed int64
2323
PostageAmount int64
2424
PostageDepth uint64
25+
PostageLabel string
2526
TxOnErrWait time.Duration
2627
RxOnErrWait time.Duration
2728
NodesSyncWait time.Duration
@@ -33,7 +34,6 @@ type Options struct {
3334
UploadGroups []string
3435
DownloaderCount int
3536
DownloadGroups []string
36-
MaxUseBatch time.Duration
3737
MaxCommittedDepth uint8
3838
CommittedDepthCheckWait time.Duration
3939
IterationWait time.Duration
@@ -46,13 +46,13 @@ func NewDefaultOptions() Options {
4646
RndSeed: time.Now().UnixNano(),
4747
PostageAmount: 50_000_000,
4848
PostageDepth: 24,
49+
PostageLabel: "test-label",
4950
TxOnErrWait: 10 * time.Second,
5051
RxOnErrWait: 10 * time.Second,
5152
NodesSyncWait: time.Minute,
5253
Duration: 12 * time.Hour,
5354
UploadTimeout: 60 * time.Minute,
5455
DownloadTimeout: 60 * time.Minute,
55-
MaxUseBatch: 12 * time.Hour,
5656
MaxCommittedDepth: 2,
5757
CommittedDepthCheckWait: 5 * time.Minute,
5858
IterationWait: 5 * time.Minute,
@@ -160,7 +160,7 @@ func (c *Check) Run(ctx context.Context, cluster orchestration.Cluster, opts int
160160

161161
c.metrics.BatchCreateAttempts.Inc()
162162

163-
batchID, err = clients[txName].GetOrCreateMutableBatch(txCtx, o.PostageAmount, o.PostageDepth, "smoke-test")
163+
batchID, err = clients[txName].GetOrCreateMutableBatch(txCtx, o.PostageAmount, o.PostageDepth, o.PostageLabel)
164164
if err != nil {
165165
c.logger.Errorf("create new batch: %v", err)
166166
c.metrics.BatchCreateErrors.Inc()

pkg/config/check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ var Checks = map[string]CheckType{
411411
RndSeed *int64 `yaml:"rnd-seed"`
412412
PostageAmount *int64 `yaml:"postage-amount"`
413413
PostageDepth *uint64 `yaml:"postage-depth"`
414+
PostageLabel *string `yaml:"postage-label"`
414415
GasPrice *string `yaml:"gas-price"`
415416
TxOnErrWait *time.Duration `yaml:"tx-on-err-wait"`
416417
RxOnErrWait *time.Duration `yaml:"rx-on-err-wait"`
@@ -420,7 +421,6 @@ var Checks = map[string]CheckType{
420421
UploadGroups *[]string `yaml:"upload-groups"`
421422
DownloaderCount *int `yaml:"downloader-count"`
422423
DownloadGroups *[]string `yaml:"download-groups"`
423-
MaxUseBatch *time.Duration `yaml:"max-use-batch"`
424424
MaxCommittedDepth *uint8 `yaml:"max-committed-depth"`
425425
CommittedDepthCheckWait *time.Duration `yaml:"committed-depth-check-wait"`
426426
})

0 commit comments

Comments
 (0)