Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
137067: roachtest: update mt-upgrade test owner to db-server r=rimadeodhar a=rimadeodhar

This PR updates the test ownership for the multitenant-upgrade test to the DB Server team. All future test failures will be routed to `t-db-server` for triage.

Epic: none
Release note: none

137094: roachtest: better triage schema workload flakes in backup-restore tests r=dt a=msbutler

Informs #136709

Release note: none

137107: release: advance version to 25.1.0-alpha.1 r=celiala a=cockroach-teamcity


Release note: None
Epic: None
Release justification: non-production (release infra) change.


Co-authored-by: rimadeodhar <[email protected]>
Co-authored-by: Michael Butler <[email protected]>
Co-authored-by: Justin Beaver <[email protected]>
  • Loading branch information
4 people committed Dec 10, 2024
4 parents 4b31b16 + 139bbcd + b0632b9 + 18e6931 commit fe33ac6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/build/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v25.1.0-alpha.00000000
v25.1.0-alpha.1
2 changes: 1 addition & 1 deletion pkg/cmd/roachtest/registry/owners.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const (
OwnerAdmissionControl Owner = `admission-control`
OwnerObservability Owner = `obs-prs`
OwnerObservabilityIndia Owner = `obs-india-prs`
OwnerServer Owner = `server` // not currently staffed
OwnerServer Owner = `server`
OwnerSQLFoundations Owner = `sql-foundations`
OwnerMigrations Owner = `migrations`
OwnerProductSecurity Owner = `product-security`
Expand Down
16 changes: 13 additions & 3 deletions pkg/cmd/roachtest/tests/backup_restore_roundtrip.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
gosql "database/sql"
"fmt"
"math/rand"
"strings"
"time"

"github.com/cockroachdb/cockroach/pkg/cmd/roachtest/cluster"
Expand Down Expand Up @@ -254,17 +255,26 @@ func startBackgroundWorkloads(
if err != nil {
return nil, err
}

handleChemaChangeError := func(err error) error {
// If the UNEXPECTED ERROR detail appears, the workload likely flaked.
// Otherwise, the workload could have failed due to other reasons like a node
// crash.
if err != nil && strings.Contains(errors.FlattenDetails(err), "UNEXPECTED ERROR") {
return registry.ErrorWithOwner(registry.OwnerSQLFoundations, errors.Wrapf(err, "schema change workload failed"))
}
return err
}
err = c.RunE(ctx, option.WithNodes(workloadNode), scInit.String())
if err != nil {
return nil, registry.ErrorWithOwner(registry.OwnerSQLFoundations, errors.Wrapf(err, "failed to init schema change workload"))
return nil, handleChemaChangeError(err)
}

run := func() (func(), error) {
tables, err := testUtils.loadTablesForDBs(ctx, l, testRNG, dbs...)
if err != nil {
return nil, err
}

stopBank := workloadWithCancel(m, func(ctx context.Context) error {
return c.RunE(ctx, option.WithNodes(workloadNode), bankRun.String())
})
Expand All @@ -274,7 +284,7 @@ func startBackgroundWorkloads(
})
stopSC := workloadWithCancel(m, func(ctx context.Context) error {
if err := c.RunE(ctx, option.WithNodes(workloadNode), scRun.String()); err != nil {
return registry.ErrorWithOwner(registry.OwnerSQLFoundations, errors.Wrapf(err, "failed to run schema change workload"))
return handleChemaChangeError(err)
}
return nil
})
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/roachtest/tests/multitenant_upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func registerMultiTenantUpgrade(r registry.Registry) {
Cluster: r.MakeClusterSpec(7),
CompatibleClouds: registry.CloudsWithServiceRegistration,
Suites: registry.Suites(registry.Nightly),
Owner: registry.OwnerDisasterRecovery,
Owner: registry.OwnerServer,
Run: func(ctx context.Context, t test.Test, c cluster.Cluster) {
runMultitenantUpgrade(ctx, t, c)
},
Expand Down

0 comments on commit fe33ac6

Please sign in to comment.