Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into simulate-import
Browse files Browse the repository at this point in the history
  • Loading branch information
nolouch committed Oct 11, 2018
2 parents e6912da + 36b88f9 commit 61d6777
Show file tree
Hide file tree
Showing 127 changed files with 23,373 additions and 1,811 deletions.
60 changes: 55 additions & 5 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
[[constraint]]
name = "google.golang.org/grpc"
source = "https://github.com/grpc/grpc-go.git"
version = "1.12.0"
version = "=1.12.2"

[[constraint]]
name = "github.com/chzyer/readline"
branch = "master"

[[constraint]]
name = "github.com/pingcap/kvproto"
source = "https://github.com/pingcap/kvproto.git"
branch = "master"

[[constraint]]
Expand All @@ -40,6 +41,10 @@
name = "github.com/pkg/errors"
version = ">= 0.8.0"

[[constraint]]
name = "github.com/pingcap/errcode"
version = ">= 0.1.0"

[[override]]
name = "github.com/BurntSushi/toml"
revision = "3012a1dbe2e4bd1391d42b32f0577cb7bbc7f005"
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ all: dev

dev: build check test

ci: build check basic_test
ci: build check basic-test

build:
ifeq ("$(WITH_RACE)", "1")
Expand All @@ -46,7 +46,7 @@ test: retool-setup
CGO_ENABLED=1 go test -race -cover $(TEST_PKGS) || { $(GOFAIL_DISABLE); exit 1; }
@$(GOFAIL_DISABLE)

basic_test:
basic-test:
@$(GOFAIL_ENABLE)
go test $(BASIC_TEST_PKGS) || { $(GOFAIL_DISABLE); exit 1; }
@$(GOFAIL_DISABLE)
Expand Down Expand Up @@ -103,6 +103,11 @@ endif
simulator:
CGO_ENABLED=0 go build -o bin/pd-simulator tools/pd-simulator/main.go

clean-test:
rm -rf /tmp/test_pd*
rm -rf /tmp/pd-integration-test*
rm -rf /tmp/test_etcd*

gofail-enable:
# Converting gofail failpoints...
@$(GOFAIL_ENABLE)
Expand Down
2 changes: 1 addition & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ Consider that raml2html depends on various npm packages and can only be run unde

## Error responses

Error responses from the server are switching to using [error codes](../pkg/error_code/error_code.go).
Error responses from the server are switching to using [errcode codes](https://github.com/pingcap/errcode).
The should use the `errorResp` function. Please look at other places in the codebase that use `errorResp`.
Loading

0 comments on commit 61d6777

Please sign in to comment.