Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server: make CI faster #26546

Merged
merged 5 commits into from
Jul 27, 2021
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import (
"github.com/pingcap/tidb/config"
"github.com/pingcap/tidb/errno"
"github.com/pingcap/tidb/kv"
"github.com/pingcap/tidb/session"
"github.com/pingcap/tidb/util/logutil"
"github.com/pingcap/tidb/util/versioninfo"
"github.com/tikv/client-go/v2/tikv"
Expand All @@ -57,6 +58,10 @@ func TestT(t *testing.T) {
if !reflect.DeepEqual(defaultConfig, globalConfig) {
t.Fatalf("%#v != %#v\n", defaultConfig, globalConfig)
}

// AsyncCommit will make DDL wait 2.5s before changing to the next state.
// Set schema lease to avoid it from making CI slow.
session.SetSchemaLease(0)
CustomVerboseFlag = true
logLevel := os.Getenv("log_level")
err := logutil.InitLogger(logutil.NewLogConfig(logLevel, logutil.DefaultLogFormat, "", logutil.EmptyFileLogConfig, false))
Expand Down