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

Add timer sequence UT #2715

Merged
merged 10 commits into from
Oct 24, 2019
Merged
Show file tree
Hide file tree
Changes from all 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
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,13 @@ cadence-server: $(ALL_SRC)
@echo "compiling cadence-server with OS: $(GOOS), ARCH: $(GOARCH)"
go build -ldflags '$(GO_BUILD_LDFLAGS)' -i -o cadence-server cmd/server/cadence.go cmd/server/server.go

bins_nothrift: lint copyright cadence-cassandra-tool cadence-sql-tool cadence cadence-server
go-generate:
GO111MODULE=off go get -u github.com/myitcv/gobin
GOOS= GOARCH= gobin -mod=readonly github.com/golang/mock/mockgen
@echo "running go generate ./..."
@go generate ./...

bins_nothrift: go-generate lint copyright cadence-cassandra-tool cadence-sql-tool cadence cadence-server

bins: thriftc bins_nothrift

Expand Down
4 changes: 3 additions & 1 deletion cmd/server/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@

package tools

// the 2 dependency below are used for yarpc / thriftrw compatible code generation
import (
// thriftrw code gen
_ "go.uber.org/thriftrw"
// yarpc plugin for thriftrw code gen
_ "go.uber.org/yarpc/encoding/thrift/thriftrw-plugin-yarpc"

// mockgen for generating mocks
_ "github.com/golang/mock/mockgen"
)
2 changes: 1 addition & 1 deletion common/archiver/filestore/queryParser_mock.go

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

131 changes: 131 additions & 0 deletions common/domain/handler_mock.go

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

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ require (
golang.org/x/net v0.0.0-20190628185345-da137c7871d7
golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb // indirect
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
golang.org/x/tools v0.0.0-20190703183924-abb7e64e8926 // indirect
golang.org/x/tools v0.0.0-20191024220359-3d91e92cde03 // indirect
google.golang.org/appengine v1.6.1 // indirect
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
Expand Down
7 changes: 3 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,6 @@ github.com/xwb1989/sqlparser v0.0.0-20180606152119-120387863bf2/go.mod h1:hzfGeI
go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
go.uber.org/atomic v1.4.0 h1:cxzIVoETapQEqDhQu3QfnvXAV4AlzcvUCxkVUFw3+EU=
go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
go.uber.org/cadence v0.9.1-0.20191001004132-413d13621ce8 h1:jVXUp+67eDxA4q8IHhB0NOkkcd9jJV9UWnLd50zkBww=
go.uber.org/cadence v0.9.1-0.20191001004132-413d13621ce8/go.mod h1:PiFcLWavoyXegBeV0TEjHyGZU7M4dcAHWWS34DVaQpA=
go.uber.org/cadence v0.9.1-0.20191023030824-883f86358883 h1:ButK6pnL86on3rpVojWnuGIKVOhB7c4/vWtnTjE4/VQ=
go.uber.org/cadence v0.9.1-0.20191023030824-883f86358883/go.mod h1:PiFcLWavoyXegBeV0TEjHyGZU7M4dcAHWWS34DVaQpA=
go.uber.org/config v1.3.1 h1:XlXqnaD0HTGVq5Ad+sfxA/18XVG1v4mfEelYOkbKwcY=
Expand Down Expand Up @@ -328,8 +326,9 @@ golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBn
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
golang.org/x/tools v0.0.0-20190529203303-fb6c8ffd2207/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20190703183924-abb7e64e8926 h1:v5pMR6zsD2rll13Xft5rZHW4FfgANxSSAA+Q81043Xo=
golang.org/x/tools v0.0.0-20190703183924-abb7e64e8926/go.mod h1:jcCCGcm9btYwXyDqrUWc6MKQKKGJCWEQ3AfLSRIbEuI=
golang.org/x/tools v0.0.0-20191024220359-3d91e92cde03 h1:4gtJXHJ9ud0q8MNSDxJsRU/WH+afypbe4Vk4zq+8qow=
golang.org/x/tools v0.0.0-20191024220359-3d91e92cde03/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.6.1 h1:QzqyMA1tlu6CgqCDUtU9V+ZKhLFT2dkJuANu5QaxI3I=
google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0=
Expand Down
27 changes: 16 additions & 11 deletions service/frontend/workflowHandler_mock.go

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

2 changes: 1 addition & 1 deletion service/history/mutableStateDecisionTaskManager_mock.go

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

5 changes: 2 additions & 3 deletions service/history/mutableStateTaskGenerator_mock.go

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

3 changes: 1 addition & 2 deletions service/history/mutableStateTaskRefresher_mock.go

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

9 changes: 4 additions & 5 deletions service/history/nDCActivityReplicator_mock.go

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

8 changes: 4 additions & 4 deletions service/history/nDCBranchMgr_mock.go

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

3 changes: 1 addition & 2 deletions service/history/nDCConflictResolver_mock.go

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

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

11 changes: 5 additions & 6 deletions service/history/nDCTransactionMgrForNewWorkflow_mock.go

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

Loading