@@ -267,27 +267,31 @@ func setup(p perturbation, acceptableChange float64) variations {
267
267
return v
268
268
}
269
269
270
- func register (r registry.Registry , p perturbation ) {
271
- // Metamorphic perturbation tests are currently disabled. See
270
+ func register (r registry.Registry , p perturbation , skipReason string ) {
271
+ // All metamorphic perturbation tests are currently disabled. See
272
272
// https://github.com/cockroachdb/cockroach/issues/142148.
273
- // addMetamorphic(r, p)
274
- addFull (r , p )
273
+ addMetamorphic (r , p , "#142148" )
274
+ addFull (r , p , skipReason )
275
275
addDev (r , p )
276
276
}
277
277
278
278
func RegisterTests (r registry.Registry ) {
279
- // NB: If these tests fail because they are flaky, increase the numbers
280
- // until they pass. Additionally add the seed (from the log) that caused
281
- // them to fail as a comment in the test.
282
- register (r , restart {})
283
- register (r , partition {})
284
- register (r , addNode {})
285
- register (r , decommission {})
286
- register (r , backfill {})
287
- register (r , & slowDisk {})
288
- register (r , elasticWorkload {})
289
- register (r , intents {})
290
- register (r , backup {})
279
+ const notSkipped = ""
280
+ const skippedByBankruptcy = "#149662"
281
+
282
+ register (r , restart {}, notSkipped )
283
+ register (r , backup {}, notSkipped )
284
+
285
+ // TODO(ssd): We skipped the majority of these tests so that we can focus on
286
+ // one at a time. These are vaguely ordered by their previous pass rate
287
+ // (highest first).
288
+ register (r , intents {}, skippedByBankruptcy )
289
+ register (r , decommission {}, skippedByBankruptcy )
290
+ register (r , elasticWorkload {}, skippedByBankruptcy )
291
+ register (r , partition {}, skippedByBankruptcy )
292
+ register (r , backfill {}, notSkipped )
293
+ register (r , & slowDisk {}, skippedByBankruptcy )
294
+ register (r , addNode {}, skippedByBankruptcy )
291
295
}
292
296
293
297
func (v variations ) makeClusterSpec () spec.ClusterSpec {
@@ -385,13 +389,14 @@ func (v *variations) applyEnvOverride(key string, val string) (err error) {
385
389
}
386
390
387
391
//lint:ignore U1000 unused
388
- func addMetamorphic (r registry.Registry , p perturbation ) {
392
+ func addMetamorphic (r registry.Registry , p perturbation , skipReason string ) {
389
393
rng , seed := randutil .NewPseudoRand ()
390
394
v := p .setupMetamorphic (rng )
391
395
v .seed = seed
392
396
v = v .finishSetup ()
393
397
r .Add (registry.TestSpec {
394
398
Name : fmt .Sprintf ("perturbation/metamorphic/%s" , v .perturbationName ()),
399
+ Skip : skipReason ,
395
400
CompatibleClouds : v .cloud ,
396
401
Suites : registry .Suites (registry .Perturbation ),
397
402
Owner : registry .OwnerKV ,
@@ -402,11 +407,12 @@ func addMetamorphic(r registry.Registry, p perturbation) {
402
407
})
403
408
}
404
409
405
- func addFull (r registry.Registry , p perturbation ) {
410
+ func addFull (r registry.Registry , p perturbation , skipReason string ) {
406
411
v := p .setup ()
407
412
v = v .finishSetup ()
408
413
r .Add (registry.TestSpec {
409
414
Name : fmt .Sprintf ("perturbation/full/%s" , v .perturbationName ()),
415
+ Skip : skipReason ,
410
416
CompatibleClouds : v .cloud ,
411
417
Suites : registry .Suites (registry .Nightly ),
412
418
Owner : registry .OwnerKV ,
0 commit comments