@@ -406,7 +406,7 @@ func registerSysbench(r registry.Registry) {
406
406
benchname += opts .extra .nameSuffix
407
407
}
408
408
409
- spec := registry.TestSpec {
409
+ crdbSpec := registry.TestSpec {
410
410
Name : fmt .Sprintf ("%s/%s/nodes=%d/cpu=%d/conc=%d" , benchname , w , d .n , d .cpus , conc ),
411
411
Benchmark : true ,
412
412
Owner : registry .OwnerTestEng ,
@@ -418,15 +418,19 @@ func registerSysbench(r registry.Registry) {
418
418
runSysbench (ctx , t , c , opts )
419
419
},
420
420
}
421
- r .Add (spec )
421
+ r .Add (crdbSpec )
422
422
423
423
// Add a variant of the single-node tests that uses PostgreSQL instead of CockroachDB.
424
424
if d .n == 1 {
425
425
pgOpts := opts
426
426
pgOpts .usePostgres = true
427
- pgSpec := spec
427
+ pgSpec := crdbSpec
428
428
pgSpec .Name = fmt .Sprintf ("%s/%s/postgres/cpu=%d/conc=%d" , benchname , w , d .cpus , conc )
429
429
pgSpec .Suites = registry .Suites (registry .Weekly )
430
+ // Postgres installation creates a lot of directories not cleaned up by
431
+ // cluster wipe. To avoid side effects on subsequent postgres sysbench
432
+ // runs, don't reuse the cluster.
433
+ pgSpec .Cluster .ReusePolicy = spec.ReusePolicyNone {}
430
434
pgSpec .TestSelectionOptOutSuites = registry .Suites (registry .Weekly )
431
435
pgSpec .Run = func (ctx context.Context , t test.Test , c cluster.Cluster ) {
432
436
runSysbench (ctx , t , c , pgOpts )
0 commit comments