diff options
author | Paul Okstad <pokstad@gitlab.com> | 2019-08-06 20:02:15 +0300 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2019-08-06 20:02:15 +0300 |
commit | fe5149e5548966c1c93c1f820aa0e61e299ef961 (patch) | |
tree | 8be75adffad8245540b4fc2cfaaae63d4039ee8a | |
parent | 7f1e11018f45e578c9ae2692963617b0c401193d (diff) |
Add gRPC method scope to protoregistry
-rw-r--r-- | changelogs/unreleased/po-method-info-scope.yml | 5 | ||||
-rw-r--r-- | internal/praefect/protoregistry/protoregistry.go | 27 | ||||
-rw-r--r-- | internal/praefect/protoregistry/protoregistry_test.go | 32 | ||||
-rw-r--r-- | proto/README.md | 2 | ||||
-rw-r--r-- | proto/REVISION | 2 | ||||
-rw-r--r-- | proto/VERSION | 2 | ||||
-rw-r--r-- | proto/go/gitalypb/namespace.pb.go | 42 | ||||
-rw-r--r-- | proto/go/gitalypb/shared.pb.go | 123 | ||||
-rw-r--r-- | proto/go/gitalypb/storage.pb.go | 36 | ||||
-rw-r--r-- | proto/namespace.proto | 8 | ||||
-rw-r--r-- | proto/shared.proto | 8 | ||||
-rw-r--r-- | proto/storage.proto | 8 | ||||
-rw-r--r-- | ruby/proto/gitaly/shared_pb.rb | 1 |
13 files changed, 183 insertions, 113 deletions
diff --git a/changelogs/unreleased/po-method-info-scope.yml b/changelogs/unreleased/po-method-info-scope.yml new file mode 100644 index 000000000..c5da5c265 --- /dev/null +++ b/changelogs/unreleased/po-method-info-scope.yml @@ -0,0 +1,5 @@ +--- +title: Add gRPC method scope to protoregistry +merge_request: 1397 +author: +type: performance diff --git a/internal/praefect/protoregistry/protoregistry.go b/internal/praefect/protoregistry/protoregistry.go index 811b56140..28610ae8b 100644 --- a/internal/praefect/protoregistry/protoregistry.go +++ b/internal/praefect/protoregistry/protoregistry.go @@ -43,11 +43,32 @@ const ( OpMutator ) +// Scope represents the intended scope of an RPC method +type Scope int + +const ( + // ScopeUnknown is the default scope until determined otherwise + ScopeUnknown = iota + // ScopeRepository indicates an RPC's scope is limited to a repository + ScopeRepository = iota + // ScopeStorage indicates an RPC is scoped to an entire storage location + ScopeStorage + // ScopeServer indicates an RPC is scoped to an entire server + ScopeServer +) + +var protoScope = map[gitalypb.OperationMsg_Scope]Scope{ + gitalypb.OperationMsg_SERVER: ScopeServer, + gitalypb.OperationMsg_REPOSITORY: ScopeRepository, + gitalypb.OperationMsg_STORAGE: ScopeStorage, +} + // MethodInfo contains metadata about the RPC method. Refer to documentation // for message type "OperationMsg" shared.proto in gitlab-org/gitaly-proto for // more documentation. type MethodInfo struct { Operation OpType + Scope Scope targetRepo []int requestName string // protobuf message name for input type requestFactory protoFactory @@ -189,8 +210,14 @@ func parseMethodInfo(methodDesc *descriptor.MethodDescriptorProto) (MethodInfo, return MethodInfo{}, err } + scope, ok := protoScope[opMsg.GetScopeLevel()] + if !ok { + return MethodInfo{}, fmt.Errorf("encountered unknown method scope %d", opMsg.GetScopeLevel()) + } + return MethodInfo{ Operation: opCode, + Scope: scope, targetRepo: targetRepo, requestName: requestName, requestFactory: reqFactory, diff --git a/internal/praefect/protoregistry/protoregistry_test.go b/internal/praefect/protoregistry/protoregistry_test.go index ff8480b3b..569c304e1 100644 --- a/internal/praefect/protoregistry/protoregistry_test.go +++ b/internal/praefect/protoregistry/protoregistry_test.go @@ -171,7 +171,7 @@ func TestPopulatesProtoRegistry(t *testing.T) { "SSHUploadArchive": protoregistry.OpMutator, }, "StorageService": map[string]protoregistry.OpType{ - "ListDirectories": protoregistry.OpMutator, + "ListDirectories": protoregistry.OpAccessor, "DeleteAllRepositories": protoregistry.OpMutator, }, "WikiService": map[string]protoregistry.OpType{ @@ -208,3 +208,33 @@ func TestRequestFactory(t *testing.T) { require.Exactly(t, &gitalypb.RepositoryExistsRequest{}, pb) } + +func TestMethodInfoScope(t *testing.T) { + r := protoregistry.New() + require.NoError(t, r.RegisterFiles(protoregistry.GitalyProtoFileDescriptors...)) + + for _, tt := range []struct { + method string + scope protoregistry.Scope + }{ + { + method: "/gitaly.RepositoryService/RepositoryExists", + scope: protoregistry.ScopeRepository, + }, + { + method: "/gitaly.StorageService/ListDirectories", + scope: protoregistry.ScopeStorage, + }, + { + method: "/gitaly.ServerService/ServerInfo", + scope: protoregistry.ScopeServer, + }, + } { + t.Run(tt.method, func(t *testing.T) { + mInfo, err := r.LookupMethod(tt.method) + require.NoError(t, err) + + require.Exactly(t, tt.scope, mInfo.Scope) + }) + } +} diff --git a/proto/README.md b/proto/README.md index 03db88256..c398d0c49 100644 --- a/proto/README.md +++ b/proto/README.md @@ -1,6 +1,6 @@ # Vendored copy of gitaly-proto -Vendored from gitlab.com/gitlab-org/gitaly-proto at 617898b9c0c4c8a55c7b0abe95144109a3836270. +Vendored from gitlab.com/gitlab-org/gitaly-proto at a1e8074ed11a176e964c505dc30d153cbe8fed4d. Migration in progress, see https://gitlab.com/gitlab-org/gitaly/issues/1761. Do not edit files in diff --git a/proto/REVISION b/proto/REVISION index f49415ca6..365cbf9b1 100644 --- a/proto/REVISION +++ b/proto/REVISION @@ -1 +1 @@ -v1.38.0
\ No newline at end of file +v1.39.0
\ No newline at end of file diff --git a/proto/VERSION b/proto/VERSION index ebeef2f2d..5edffce6d 100644 --- a/proto/VERSION +++ b/proto/VERSION @@ -1 +1 @@ -1.38.0 +1.39.0 diff --git a/proto/go/gitalypb/namespace.pb.go b/proto/go/gitalypb/namespace.pb.go index 21c711034..aa49ccb42 100644 --- a/proto/go/gitalypb/namespace.pb.go +++ b/proto/go/gitalypb/namespace.pb.go @@ -367,27 +367,27 @@ func init() { proto.RegisterFile("namespace.proto", fileDescriptor_ecb1e126f615f var fileDescriptor_ecb1e126f615f5dd = []byte{ // 340 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xcd, 0x4e, 0xc2, 0x40, - 0x10, 0xc7, 0xd3, 0x42, 0x08, 0x8e, 0x44, 0xc8, 0x6a, 0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0, 0x1d, 0xc3, 0xef, + 0x1e, 0xba, 0xcd, 0xf4, 0xea, 0xda, 0xf7, 0x57, 0xaf, 0x52, 0x2b, 0x35, 0x09, 0x7d, 0x82, 0x46, + 0xa1, 0x3e, 0x7a, 0xb4, 0xf8, 0xd4, 0xbd, 0x06, 0xdd, 0xe3, 0x8d, 0xbe, 0x9b, 0x9e, 0xfb, 0xc5, + 0x2c, 0xdd, 0xb5, 0x13, 0x59, 0xba, 0xb3, 0x37, 0x79, 0x7a, 0x61, 0x4c, 0x2b, 0xba, 0x7b, 0x21, + 0x56, 0xf4, 0x0d, 0xf3, 0x4d, 0xe9, 0xa4, 0x49, 0x6e, 0xce, 0x1f, 0x75, 0xee, 0x94, 0x0d, 0xfd, + 0x11, 0x8f, 0x03, 0x1b, 0x9e, 0x71, 0x11, 0x05, 0x96, 0x10, 0x98, 0xb7, 0x17, 0x44, 0x3c, 0x3d, + 0x27, 0xc3, 0x61, 0xd5, 0x48, 0x57, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa4, 0x03, 0xa2, 0x6d, 0xb7, 0x03, 0x00, 0x00, } diff --git a/proto/go/gitalypb/shared.pb.go b/proto/go/gitalypb/shared.pb.go index 711b5b28d..05bd72e83 100644 --- a/proto/go/gitalypb/shared.pb.go +++ b/proto/go/gitalypb/shared.pb.go @@ -89,16 +89,19 @@ type OperationMsg_Scope int32 const ( OperationMsg_REPOSITORY OperationMsg_Scope = 0 OperationMsg_SERVER OperationMsg_Scope = 1 + OperationMsg_STORAGE OperationMsg_Scope = 2 ) var OperationMsg_Scope_name = map[int32]string{ 0: "REPOSITORY", 1: "SERVER", + 2: "STORAGE", } var OperationMsg_Scope_value = map[string]int32{ "REPOSITORY": 0, "SERVER": 1, + "STORAGE": 2, } func (x OperationMsg_Scope) String() string { @@ -111,9 +114,10 @@ func (OperationMsg_Scope) EnumDescriptor() ([]byte, []int) { type OperationMsg struct { Op OperationMsg_Operation `protobuf:"varint,1,opt,name=op,proto3,enum=gitaly.OperationMsg_Operation" json:"op,omitempty"` - // Scope level indicates how a mutating RPC affects Gitaly: - // - REPOSITORY: mutation is scoped to only a single repo - // - SERVER: mutation affects the entire server and potentially all repos + // Scope level indicates what level an RPC interacts with a server: + // - REPOSITORY: scoped to only a single repo + // - SERVER: affects the entire server and potentially all repos + // - STORAGE: scoped to a specific storage location and all repos within ScopeLevel OperationMsg_Scope `protobuf:"varint,2,opt,name=scope_level,json=scopeLevel,proto3,enum=gitaly.OperationMsg_Scope" json:"scope_level,omitempty"` // If this operation modifies a repository, this field will // specify the location of the Repository field within the @@ -716,61 +720,62 @@ func init() { func init() { proto.RegisterFile("shared.proto", fileDescriptor_d8a4e87e678c5ced) } var fileDescriptor_d8a4e87e678c5ced = []byte{ - // 890 bytes of a gzipped FileDescriptorProto + // 899 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0xdd, 0x6e, 0xe3, 0x44, - 0x14, 0x5e, 0x3b, 0xce, 0xdf, 0x89, 0x5b, 0xcc, 0x50, 0x84, 0x55, 0xb4, 0xbb, 0xc1, 0x2b, 0xa1, - 0x0a, 0x41, 0xba, 0xea, 0x4a, 0x7b, 0x01, 0x37, 0x24, 0x25, 0x54, 0x5d, 0x36, 0x75, 0x35, 0x71, - 0x41, 0x70, 0x63, 0x4d, 0xe2, 0xe9, 0x64, 0x90, 0x9d, 0xb1, 0xc6, 0x93, 0x8a, 0xee, 0x25, 0xf7, - 0xbc, 0x0a, 0x4f, 0xc2, 0x7b, 0xf0, 0x18, 0xa0, 0x99, 0xb1, 0xd3, 0x6c, 0xb7, 0xa0, 0xbd, 0x9b, - 0x73, 0xce, 0x77, 0xfe, 0xcf, 0x67, 0x83, 0x5f, 0xad, 0x88, 0xa4, 0xd9, 0xa8, 0x94, 0x42, 0x09, - 0xd4, 0x61, 0x5c, 0x91, 0xfc, 0xf6, 0xf0, 0x29, 0x13, 0x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+ 0x38, 0xb6, 0xcf, 0x2f, 0x85, 0x64, 0xc7, 0xd6, 0xc9, 0xfe, 0x63, 0x8e, 0x99, 0xa8, 0xe5, 0x72, + 0xb1, 0xe8, 0x18, 0xd5, 0x8b, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x2f, 0xad, 0xe3, 0x2d, 0xbd, + 0x06, 0x00, 0x00, } diff --git a/proto/go/gitalypb/storage.pb.go b/proto/go/gitalypb/storage.pb.go index 5058414c1..5d4770406 100644 --- a/proto/go/gitalypb/storage.pb.go +++ b/proto/go/gitalypb/storage.pb.go @@ -190,25 +190,25 @@ func init() { func init() { proto.RegisterFile("storage.proto", fileDescriptor_0d2c4ccf1453ffdb) } var fileDescriptor_0d2c4ccf1453ffdb = []byte{ - // 284 bytes of a gzipped FileDescriptorProto + // 287 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x51, 0xdd, 0x4a, 0xc3, 0x30, - 0x14, 0x26, 0xfe, 0x8c, 0xed, 0xb8, 0xa9, 0x04, 0x7f, 0x46, 0x51, 0x57, 0x8b, 0x42, 0x6f, 0x6c, - 0x87, 0x3e, 0xc1, 0x64, 0x97, 0x22, 0x98, 0xdd, 0x79, 0xa1, 0xa4, 0xdd, 0xa1, 0x0d, 0xa4, 0x4d, - 0x4c, 0xa2, 0xe0, 0x93, 0xf8, 0x7a, 0x3e, 0x87, 0x57, 0x62, 0x53, 0x6f, 0xe6, 0xa6, 0x78, 0x97, - 0xef, 0x4b, 0xbe, 0x9f, 0x9c, 0x03, 0x03, 0xeb, 0x94, 0xe1, 0x05, 0x26, 0xda, 0x28, 0xa7, 0x68, - 0xa7, 0x10, 0x8e, 0xcb, 0xd7, 0xa0, 0x6f, 0x4b, 0x6e, 0x70, 0xee, 0xd9, 0xe8, 0x0e, 0x0e, 0x6e, - 0x84, 0x75, 0x53, 0x61, 0x30, 0x77, 0xca, 0x08, 0x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, 0x3d, 0xe9, 0x51, 0xec, 0x86, 0x14, 0x2f, 0x9f, + 0x89, 0x3f, 0x5e, 0x79, 0xef, 0x62, 0xc2, 0xee, 0xdb, 0x4b, 0xb4, 0xde, 0xf5, 0x86, 0xde, 0x84, + 0xd0, 0x1a, 0x76, 0x97, 0x76, 0xa2, 0x27, 0x9f, 0x2e, 0xbf, 0xfd, 0xda, 0x3f, 0xfd, 0xe3, 0xd5, + 0x97, 0x44, 0x32, 0xf4, 0x2e, 0x27, 0xb7, 0x1f, 0x0a, 0xc1, 0xb2, 0x38, 0x97, 0x55, 0xe2, 0x8e, + 0x67, 0x52, 0x17, 0x89, 0xf3, 0x49, 0x9a, 0x85, 0x27, 0x85, 0x6c, 0xb1, 0xca, 0xb2, 0x4e, 0x43, + 0x5d, 0xbc, 0x07, 0x00, 0x00, 0xff, 0xff, 0x66, 0xad, 0x6a, 0x34, 0x2a, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/proto/namespace.proto b/proto/namespace.proto index 4b5ba45d7..54ce1ceaa 100644 --- a/proto/namespace.proto +++ b/proto/namespace.proto @@ -10,25 +10,25 @@ service NamespaceService { rpc AddNamespace(AddNamespaceRequest) returns (AddNamespaceResponse) { option (op_type) = { op: MUTATOR - scope_level: SERVER, + scope_level: STORAGE, }; } rpc RemoveNamespace(RemoveNamespaceRequest) returns (RemoveNamespaceResponse) { option (op_type) = { op: MUTATOR - scope_level: SERVER, + scope_level: STORAGE, }; } rpc RenameNamespace(RenameNamespaceRequest) returns (RenameNamespaceResponse) { option (op_type) = { op: MUTATOR - scope_level: SERVER, + scope_level: STORAGE, }; } rpc NamespaceExists(NamespaceExistsRequest) returns (NamespaceExistsResponse) { option (op_type) = { op: ACCESSOR - scope_level: SERVER, + scope_level: STORAGE, }; } } diff --git a/proto/shared.proto b/proto/shared.proto index c252349c9..b4c3dbac4 100644 --- a/proto/shared.proto +++ b/proto/shared.proto @@ -19,11 +19,13 @@ message OperationMsg { enum Scope { REPOSITORY = 0; SERVER = 1; + STORAGE = 2; } - // Scope level indicates how a mutating RPC affects Gitaly: - // - REPOSITORY: mutation is scoped to only a single repo - // - SERVER: mutation affects the entire server and potentially all repos + // Scope level indicates what level an RPC interacts with a server: + // - REPOSITORY: scoped to only a single repo + // - SERVER: affects the entire server and potentially all repos + // - STORAGE: scoped to a specific storage location and all repos within Scope scope_level = 2; // If this operation modifies a repository, this field will diff --git a/proto/storage.proto b/proto/storage.proto index 903c8137c..74d753267 100644 --- a/proto/storage.proto +++ b/proto/storage.proto @@ -9,14 +9,14 @@ import "shared.proto"; service StorageService { rpc ListDirectories(ListDirectoriesRequest) returns (stream ListDirectoriesResponse) { option (op_type) = { - op: MUTATOR - scope_level: SERVER, + op: ACCESSOR, + scope_level: STORAGE, }; } rpc DeleteAllRepositories(DeleteAllRepositoriesRequest) returns (DeleteAllRepositoriesResponse) { option (op_type) = { - op: MUTATOR - scope_level: SERVER, + op: MUTATOR, + scope_level: STORAGE, }; } } diff --git a/ruby/proto/gitaly/shared_pb.rb b/ruby/proto/gitaly/shared_pb.rb index 8fa21f0bf..9b4294067 100644 --- a/ruby/proto/gitaly/shared_pb.rb +++ b/ruby/proto/gitaly/shared_pb.rb @@ -18,6 +18,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do add_enum "gitaly.OperationMsg.Scope" do value :REPOSITORY, 0 value :SERVER, 1 + value :STORAGE, 2 end add_message "gitaly.Repository" do optional :storage_name, :string, 2 |