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

merge 3.0 to ensure samples runnable #1414

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
3ab0ab6
fix: change register event chan to unbundent chan (#1330)
LaurenceLiZhixin Jul 22, 2021
0277fc3
fix: #1323 delete zk registry when set defualt consumer/provider conf…
Mulavar Jul 24, 2021
9aeb7ff
Ftr: Generic invocation supports Generalizer (#1315)
justxuewei Jul 25, 2021
86fe9e3
fix logging level (#1341)
justxuewei Jul 26, 2021
dd517d6
Ftr: add lumberjack log config (#1335)
cjphaha Jul 26, 2021
103cf14
Ftr: add json generalizer (#1343)
EnableAsync Jul 28, 2021
1643df2
style(*): format imports with dubbogo/tools/imports-formatter (#1346)
Mulavar Jul 29, 2021
ebce04e
fix Fixed the problem that the timeout period of the original method …
Threadalive Jul 29, 2021
fb0d226
fix:#1143 Feature/reduce etcd registry conn; wait group modify (#1297)
WilliamLeaves Jul 29, 2021
ff50bd2
ftr: triple multi params support (#1344)
LaurenceLiZhixin Jul 29, 2021
b2ae992
fix: remove unused getty import
LaurenceLiZhixin Jul 29, 2021
92df41c
fix: mock zk registry (#1351)
LaurenceLiZhixin Jul 30, 2021
f76b01c
优化Nacos下的ServiceName的命名风格 (#1352)
ChangedenCZD Jul 30, 2021
0376b53
remove zk test (#1357)
tydhot Aug 2, 2021
c5802c5
Use class name as the default reference name (#1339)
alchemy-lee Aug 9, 2021
495090f
Feat/upgrade getty (#1345)
Mulavar Aug 14, 2021
f192c1e
support multi pb (#1361)
Aug 14, 2021
72f87d1
修复当getty的tcp read/write timeout小于1s时panic的问题
Aug 17, 2021
0d3ba24
TCP Read/Write最小值提取为全局变量,优化parseTimeDurationByRange逻辑
Aug 17, 2021
77a8b5f
logo (#1382)
XiaoWeiKIN Aug 18, 2021
f8f38b5
Change the key of a mock EchoFilter (#1381)
alchemy-lee Aug 18, 2021
3c55f4e
Change the key of a mock EchoFilter (#1381)
alchemy-lee Aug 18, 2021
4557595
Merge branch '3.0' of https://github.com/apache/dubbo-go into 3.0
AlexStocks Aug 18, 2021
fc81e15
fix: nacos service disc error log bug (#1390)
LaurenceLiZhixin Aug 18, 2021
1af33a4
优化代码逻辑
Aug 20, 2021
24c1816
fix:registry timeout not pars (#1392)
zhaoyunxing92 Aug 20, 2021
1ac95c7
change dependabot target branch
AlexStocks Aug 20, 2021
e855fde
build(deps): bump github.com/fsnotify/fsnotify from 1.4.9 to 1.5.0 (#…
dependabot[bot] Aug 20, 2021
186dc22
build(deps): bump github.com/emicklei/go-restful/v3 from 3.4.0 to 3.5…
dependabot[bot] Aug 21, 2021
6c3e38b
更新TCP读写超时最小值命名;不再使用范围比较;
Aug 24, 2021
3906343
Merge pull request #1380 from Chans-Open-Source/feature/fix_the_excep…
zouyx Aug 24, 2021
3ac2f1c
del protoc-gen-dubbo3 & protoc-gen-dubbo (#1313)
cjphaha Aug 25, 2021
b3d62d5
fix: merge 3.0
LaurenceLiZhixin Aug 26, 2021
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
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Thanks for sending a pull request!
Read https://github.com/apache/dubbo-go/blob/master/contributing.md before commit pull request.
Read https://github.com/apache/dubbo-go/blob/master/CONTRIBUTING.md before commit pull request.
-->

**What this PR does**:
Expand Down
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
target-branch: "develop"
target-branch: "3.0"

- package-ecosystem: "github-actions"
# Workflow files stored in the
# default location of `.github/workflows`
directory: "/"
schedule:
interval: "weekly"
target-branch: "develop"
target-branch: "3.0"
4 changes: 2 additions & 2 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
push:
branches: [master, develop]
branches: [master, develop, "1.5", "3.0"]
pull_request:
branches: "*"

Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
# diff -u <(echo -n) <(gofmt -d -s .)

- name: Install go ci lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.27.0
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.41.1

- name: Run Linter
run: golangci-lint run --timeout=10m -v
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*.so
*.dylib
*.jar
*.log

# Test binary, build with `go test -c`
*.test
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ If you are using [apache/dubbo-go](https://github.com/apache/dubbo-go) and think
<img width="222px" src="https://gw.alicdn.com/tfs/TB1HPATMrrpK1RjSZTEXXcWAVXa-260-74.png">
</a>
</td>
<td align="center" valign="middle">
<a href="https://www.autohome.com.cn" target="_blank">
<img width="222px" src="https://avatars.githubusercontent.com/u/18279051?s=200&v=4">
</a>
</td>
</tr>
<tr></tr>
</tbody>
Expand Down
5 changes: 5 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ go get dubbo.apache.org/dubbo-go/v3
<img width="222px" src="https://gw.alicdn.com/tfs/TB1HPATMrrpK1RjSZTEXXcWAVXa-260-74.png">
</a>
</td>
<td align="center" valign="middle">
<a href="https://www.autohome.com.cn" target="_blank">
<img width="222px" src="https://avatars.githubusercontent.com/u/18279051?s=200&v=4">
</a>
</td>
</tr>
<tr></tr>
</tbody>
Expand Down
1 change: 1 addition & 0 deletions cluster/cluster_impl/available_cluster_invoker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (

import (
"github.com/golang/mock/gomock"

"github.com/stretchr/testify/assert"
)

Expand Down
1 change: 1 addition & 0 deletions cluster/cluster_impl/base_cluster_invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package cluster_impl

import (
perrors "github.com/pkg/errors"

"go.uber.org/atomic"
)

Expand Down
1 change: 1 addition & 0 deletions cluster/cluster_impl/broadcast_cluster_invoker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (

import (
"github.com/golang/mock/gomock"

"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 2 additions & 0 deletions cluster/cluster_impl/failback_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ import (

import (
"github.com/golang/mock/gomock"

perrors "github.com/pkg/errors"

"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 2 additions & 0 deletions cluster/cluster_impl/failfast_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ import (

import (
"github.com/golang/mock/gomock"

perrors "github.com/pkg/errors"

"github.com/stretchr/testify/assert"
)

Expand Down
5 changes: 1 addition & 4 deletions cluster/cluster_impl/failover_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (

import (
perrors "github.com/pkg/errors"

"github.com/stretchr/testify/assert"
)

Expand All @@ -40,10 +41,6 @@ import (
"dubbo.apache.org/dubbo-go/v3/protocol/invocation"
)

// ///////////////////////////
// mock invoker
// ///////////////////////////

// nolint
type MockInvoker struct {
url *common.URL
Expand Down
2 changes: 2 additions & 0 deletions cluster/cluster_impl/failsafe_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ import (

import (
"github.com/golang/mock/gomock"

perrors "github.com/pkg/errors"

"github.com/stretchr/testify/assert"
)

Expand Down
1 change: 1 addition & 0 deletions cluster/cluster_impl/forking_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (

import (
"github.com/golang/mock/gomock"

"github.com/stretchr/testify/assert"
)

Expand Down
1 change: 1 addition & 0 deletions cluster/cluster_impl/zone_aware_cluster_invoker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (

import (
"github.com/golang/mock/gomock"

"github.com/stretchr/testify/assert"
)

Expand Down
1 change: 1 addition & 0 deletions cluster/router/chain/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (

import (
perrors "github.com/pkg/errors"

"go.uber.org/atomic"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
package judger

import (
"dubbo.apache.org/dubbo-go/v3/config"
"testing"
)

Expand All @@ -27,6 +26,7 @@ import (
)

import (
"dubbo.apache.org/dubbo-go/v3/config"
"dubbo.apache.org/dubbo-go/v3/protocol/invocation"
)

Expand Down
5 changes: 4 additions & 1 deletion cluster/router/v3router/judger/bool_match_judger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,17 @@
package judger

import (
"dubbo.apache.org/dubbo-go/v3/config"
"testing"
)

import (
"github.com/stretchr/testify/assert"
)

import (
"dubbo.apache.org/dubbo-go/v3/config"
)

func TestBoolMatchJudger(t *testing.T) {
assert.True(t, newBoolMatchJudger(&config.BoolMatch{
Exact: true,
Expand Down
5 changes: 4 additions & 1 deletion cluster/router/v3router/judger/double_match_judger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,17 @@
package judger

import (
"dubbo.apache.org/dubbo-go/v3/config"
"testing"
)

import (
"github.com/stretchr/testify/assert"
)

import (
"dubbo.apache.org/dubbo-go/v3/config"
)

func TestDoubleMatchJudger(t *testing.T) {
assert.True(t, newDoubleMatchJudger(&config.DoubleMatch{
Exact: 3.14159,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,17 @@
package judger

import (
"dubbo.apache.org/dubbo-go/v3/config"
"testing"
)

import (
"github.com/stretchr/testify/assert"
)

import (
"dubbo.apache.org/dubbo-go/v3/config"
)

func TestDoubleRangeMatchJudger(t *testing.T) {
assert.True(t, newDoubleRangeMatchJudger(&config.DoubleRangeMatch{
Start: 1.0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,17 @@
package judger

import (
"dubbo.apache.org/dubbo-go/v3/config"
"testing"
)

import (
"github.com/stretchr/testify/assert"
)

import (
"dubbo.apache.org/dubbo-go/v3/config"
)

func TestListDoubleMatchJudger_Judge(t *testing.T) {
assert.True(t, newListDoubleMatchJudger(&config.ListDoubleMatch{
Oneof: []*config.DoubleMatch{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,17 @@
package judger

import (
"dubbo.apache.org/dubbo-go/v3/config"
"testing"
)

import (
"github.com/stretchr/testify/assert"
)

import (
"dubbo.apache.org/dubbo-go/v3/config"
)

func TestListStringMatchJudger(t *testing.T) {
assert.True(t, newListStringMatchJudger(&config.ListStringMatch{
Oneof: []*config.StringMatch{{Exact: "abd"}},
Expand Down
2 changes: 1 addition & 1 deletion cluster/router/v3router/judger/method_match_judger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
package judger

import (
"dubbo.apache.org/dubbo-go/v3/config"
"reflect"
"testing"
)
Expand All @@ -28,6 +27,7 @@ import (
)

import (
"dubbo.apache.org/dubbo-go/v3/config"
"dubbo.apache.org/dubbo-go/v3/protocol/invocation"
)

Expand Down
5 changes: 4 additions & 1 deletion cluster/router/v3router/judger/string_match_judger.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@
package judger

import (
"dubbo.apache.org/dubbo-go/v3/config"
"regexp"
"strings"
)

import (
"dubbo.apache.org/dubbo-go/v3/config"
)

// nolint
type StringMatchJudger struct {
config.StringMatch
Expand Down
5 changes: 4 additions & 1 deletion cluster/router/v3router/judger/string_match_judger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,17 @@
package judger

import (
"dubbo.apache.org/dubbo-go/v3/config"
"testing"
)

import (
"github.com/stretchr/testify/assert"
)

import (
"dubbo.apache.org/dubbo-go/v3/config"
)

func TestNewStringMatchJudger(t *testing.T) {
assert.True(t, NewStringMatchJudger(&config.StringMatch{
Exact: "abc",
Expand Down
4 changes: 3 additions & 1 deletion cluster/router/v3router/k8s_api/listener_handler_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@
package k8s_api

import (
"dubbo.apache.org/dubbo-go/v3/config"
metav "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/watch"

"k8s.io/client-go/kubernetes/scheme"

"k8s.io/client-go/rest"
)

import (
"dubbo.apache.org/dubbo-go/v3/cluster/router/v3router/k8s_crd"
"dubbo.apache.org/dubbo-go/v3/config"
"dubbo.apache.org/dubbo-go/v3/config_center"
"dubbo.apache.org/dubbo-go/v3/remoting"
)
Expand Down
3 changes: 3 additions & 0 deletions cluster/router/v3router/k8s_crd/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ import (
"k8s.io/apimachinery/pkg/runtime/serializer"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/apimachinery/pkg/watch"

"k8s.io/client-go/kubernetes/scheme"

"k8s.io/client-go/rest"

"k8s.io/client-go/tools/cache"
)

Expand Down
1 change: 1 addition & 0 deletions cluster/router/v3router/k8s_crd/listener_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/watch"

"k8s.io/client-go/rest"
)

Expand Down
2 changes: 1 addition & 1 deletion cluster/router/v3router/router_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
package v3router

import (
"dubbo.apache.org/dubbo-go/v3/config"
"encoding/json"
"io"
"strings"
Expand All @@ -33,6 +32,7 @@ import (
"dubbo.apache.org/dubbo-go/v3/cluster/router/v3router/k8s_api"
"dubbo.apache.org/dubbo-go/v3/common"
"dubbo.apache.org/dubbo-go/v3/common/logger"
"dubbo.apache.org/dubbo-go/v3/config"
"dubbo.apache.org/dubbo-go/v3/config_center"
"dubbo.apache.org/dubbo-go/v3/protocol"
"dubbo.apache.org/dubbo-go/v3/remoting"
Expand Down
Loading