Skip to content

Commit 5ac76e0

Browse files
committed
roachtest/sqlsmith: only skip tpch and tpcc setups
In 1d29ae8 by mistake we skipped all sqlsmith setups even though only tpch and tpcc ones are affected. Release note: None
1 parent 0fed78c commit 5ac76e0

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

pkg/cmd/roachtest/tests/sqlsmith.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,19 @@ import (
2929

3030
func registerSQLSmith(r registry.Registry) {
3131
const numNodes = 4
32+
const tpchName = "tpch-sf1"
33+
const tpccName = "tpcc"
3234
setups := map[string]sqlsmith.Setup{
3335
"empty": sqlsmith.Setups["empty"],
3436
"seed": sqlsmith.Setups["seed"],
3537
sqlsmith.RandTableSetupName: sqlsmith.Setups[sqlsmith.RandTableSetupName],
36-
"tpch-sf1": func(r *rand.Rand) []string {
38+
tpchName: func(r *rand.Rand) []string {
3739
return []string{`
3840
RESTORE TABLE tpch.* FROM '/' IN 'gs://cockroach-fixtures-us-east1/workload/tpch/scalefactor=1/backup?AUTH=implicit'
3941
WITH into_db = 'defaultdb', unsafe_restore_incompatible_version;
4042
`}
4143
},
42-
"tpcc": func(r *rand.Rand) []string {
44+
tpccName: func(r *rand.Rand) []string {
4345
const version = "version=2.1.0,fks=true,interleaved=false,seed=1,warehouses=1"
4446
var stmts []string
4547
for _, t := range []string{
@@ -310,6 +312,11 @@ WITH into_db = 'defaultdb', unsafe_restore_incompatible_version;
310312
}
311313

312314
register := func(setup, setting string) {
315+
var skip string
316+
switch setup {
317+
case tpchName, tpccName:
318+
skip = "153489. uses ancient fixture"
319+
}
313320
var clusterSpec spec.ClusterSpec
314321
if strings.Contains(setting, "multi-region") {
315322
clusterSpec = r.MakeClusterSpec(numNodes, spec.Geo())
@@ -328,7 +335,7 @@ WITH into_db = 'defaultdb', unsafe_restore_incompatible_version;
328335
Leases: registry.MetamorphicLeases,
329336
NativeLibs: registry.LibGEOS,
330337
Timeout: time.Minute * 20,
331-
Skip: "153489. uses ancient fixture",
338+
Skip: skip,
332339
// NB: sqlsmith failures should never block a release.
333340
NonReleaseBlocker: true,
334341
Run: func(ctx context.Context, t test.Test, c cluster.Cluster) {

0 commit comments

Comments
 (0)