You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi, it seems that the Travis CI failure caused by the test of Circuit Breaker. I compared the log on Travis CI of both PR #213 and my PR indicates it. And the test result of the PR I submitted as follows. The following tests were performed on macOS 10.15.6 and with go version 1.15.
[Test Result]
GOROOT=/usr/local/Cellar/go/1.15/libexec #gosetup
GOPATH=/Users/zhouhaowei/go #gosetup
/usr/local/Cellar/go/1.15/libexec/bin/go test -c -o /private/var/folders/xg/nmsjbptn3db3kdf9mmp_3vv80000gn/T/___go_test_github_com_alibaba_sentinel_golang_adapter_go_micro github.com/alibaba/sentinel-golang/adapter/go_micro #gosetup
/usr/local/Cellar/go/1.15/libexec/bin/go tool test2json -t /private/var/folders/xg/nmsjbptn3db3kdf9mmp_3vv80000gn/T/___go_test_github_com_alibaba_sentinel_golang_adapter_go_micro -test.v
=== RUN TestClientLimiter
INFO: log base directory is: /Users/zhouhaowei/logs/csp/
client_test.go:57: Got err when call, SentinelBlockError: FlowControl
client_test.go:57: Got err when call, SentinelBlockError: FlowControl
client_test.go:57: Got err when call, SentinelBlockError: FlowControl
client_test.go:57: Got err when call, SentinelBlockError: FlowControl
client_test.go:57: Got err when call, SentinelBlockError: FlowControl
client_test.go:57: Got err when call, {"id":"go.micro.client","code":500,"detail":"service sentinel.test.server: not found","status":"Internal Server Error"}
client_test.go:57: Got err when call, SentinelBlockError: FlowControl
client_test.go:57: Got err when call, SentinelBlockError: FlowControl
client_test.go:57: Got err when call, {"id":"go.micro.client","code":500,"detail":"service sentinel.test.server: not found","status":"Internal Server Error"}
client_test.go:57: Got err when call, {"id":"go.micro.client","code":500,"detail":"service sentinel.test.server: not found","status":"Internal Server Error"}
client_test.go:57: Got err when call, SentinelBlockError: FlowControl
client_test.go:57: Got err when call, SentinelBlockError: FlowControl
client_test.go:57: Got err when call, SentinelBlockError: FlowControl
client_test.go:57: Got err when call, SentinelBlockError: FlowControl
client_test.go:57: Got err when call, SentinelBlockError: FlowControl
client_test.go:57: Got err when call, SentinelBlockError: FlowControl
client_test.go:57: Got err when call, SentinelBlockError: FlowControl
client_test.go:57: Got err when call, SentinelBlockError: FlowControl
client_test.go:57: Got err when call, {"id":"go.micro.client","code":500,"detail":"service sentinel.test.server: not found","status":"Internal Server Error"}
client_test.go:57: Got err when call, SentinelBlockError: FlowControl
client_test.go:57: Got err when call, {"id":"go.micro.client","code":500,"detail":"service sentinel.test.server: not found","status":"Internal Server Error"}
client_test.go:57: Got err when call, {"id":"go.micro.client","code":500,"detail":"service sentinel.test.server: not found","status":"Internal Server Error"}
client_test.go:57: Got err when call, {"id":"go.micro.client","code":500,"detail":"service sentinel.test.server: not found","status":"Internal Server Error"}
client_test.go:57: Got err when call, SentinelBlockError: FlowControl
client_test.go:57: Got err when call, {"id":"go.micro.client","code":500,"detail":"service sentinel.test.server: not found","status":"Internal Server Error"}
client_test.go:57: Got err when call, {"id":"go.micro.client","code":500,"detail":"service sentinel.test.server: not found","status":"Internal Server Error"}
client_test.go:57: Got err when call, SentinelBlockError: FlowControl
client_test.go:57: Got err when call, {"id":"go.micro.client","code":500,"detail":"service sentinel.test.server: not found","status":"Internal Server Error"}
client_test.go:57: Got err when call, SentinelBlockError: FlowControl
client_test.go:57: Got err when call, SentinelBlockError: FlowControl
--- PASS: TestClientLimiter (0.00s)
=== RUN TestServerLimiter
2020-08-26 11:07:04 file=v2@v2.9.1/service.go:200 level=info Starting [service] sentinel.test.server
2020-08-26 11:07:04 file=grpc/grpc.go:864 level=info Server [grpc] Listening on [::]:49701
2020-08-26 11:07:04 file=grpc/grpc.go:697 level=info Registry [mdns] Registering node: sentinel.test.server-2d4203b1-8bc4-41c5-a0e0-0fe5f3bacf8f
server_test.go:66: Simulate call finished
server_test.go:66: Simulate call finished
server_test.go:66: Simulate call finished
server_test.go:66: Simulate call finished
server_test.go:66: Simulate call finished
server_test.go:66: Simulate call finished
server_test.go:66: Simulate call finished
server_test.go:66: Simulate call finished
server_test.go:66: Simulate call finished
server_test.go:66: Simulate call finished
server_test.go:64: Got err when call, {"id":"go.micro.client","code":500,"detail":"SentinelBlockError: FlowControl","status":"Internal Server Error"}
server_test.go:64: Got err when call, {"id":"go.micro.client","code":500,"detail":"SentinelBlockError: FlowControl","status":"Internal Server Error"}
server_test.go:64: Got err when call, {"id":"go.micro.client","code":500,"detail":"SentinelBlockError: FlowControl","status":"Internal Server Error"}
server_test.go:64: Got err when call, {"id":"go.micro.client","code":500,"detail":"SentinelBlockError: FlowControl","status":"Internal Server Error"}
server_test.go:64: Got err when call, {"id":"go.micro.client","code":500,"detail":"SentinelBlockError: FlowControl","status":"Internal Server Error"}
server_test.go:64: Got err when call, {"id":"go.micro.client","code":500,"detail":"SentinelBlockError: FlowControl","status":"Internal Server Error"}
server_test.go:64: Got err when call, {"id":"go.micro.client","code":500,"detail":"SentinelBlockError: FlowControl","status":"Internal Server Error"}
server_test.go:64: Got err when call, {"id":"go.micro.client","code":500,"detail":"SentinelBlockError: FlowControl","status":"Internal Server Error"}
server_test.go:64: Got err when call, {"id":"go.micro.client","code":500,"detail":"SentinelBlockError: FlowControl","status":"Internal Server Error"}
server_test.go:64: Got err when call, {"id":"go.micro.client","code":500,"detail":"SentinelBlockError: FlowControl","status":"Internal Server Error"}
server_test.go:64: Got err when call, {"id":"go.micro.client","code":500,"detail":"SentinelBlockError: FlowControl","status":"Internal Server Error"}
server_test.go:64: Got err when call, {"id":"go.micro.client","code":500,"detail":"SentinelBlockError: FlowControl","status":"Internal Server Error"}
server_test.go:64: Got err when call, {"id":"go.micro.client","code":500,"detail":"SentinelBlockError: FlowControl","status":"Internal Server Error"}
server_test.go:64: Got err when call, {"id":"go.micro.client","code":500,"detail":"SentinelBlockError: FlowControl","status":"Internal Server Error"}
server_test.go:64: Got err when call, {"id":"go.micro.client","code":500,"detail":"SentinelBlockError: FlowControl","status":"Internal Server Error"}
server_test.go:64: Got err when call, {"id":"go.micro.client","code":500,"detail":"SentinelBlockError: FlowControl","status":"Internal Server Error"}
server_test.go:64: Got err when call, {"id":"go.micro.client","code":500,"detail":"SentinelBlockError: FlowControl","status":"Internal Server Error"}
server_test.go:64: Got err when call, {"id":"go.micro.client","code":500,"detail":"SentinelBlockError: FlowControl","status":"Internal Server Error"}
server_test.go:64: Got err when call, {"id":"go.micro.client","code":500,"detail":"SentinelBlockError: FlowControl","status":"Internal Server Error"}
server_test.go:64: Got err when call, {"id":"go.micro.client","code":500,"detail":"SentinelBlockError: FlowControl","status":"Internal Server Error"}
--- PASS: TestServerLimiter (1.21s)
PASS
Sorry for the format problems, I haven't lint the autogenerated proto files because of the quote "// Code generated by protoc-gen-micro. DO NOT EDIT." in the last build.
area/integrationsIssue related to integrations with open-source components
4 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe what this PR does / why we need it
This PR integrate the Adapter of go-micro
Does this pull request fix one issue?
This PR add integration for go-micro, Fixes #150
Describe how you did it
Add this feature via go-micro server wrapper and intercept client call
Describe how to verify it
Run tests inside the adapter/go_micro package
Special notes for reviews