gitaly 15.6.0.pre.rc3 → 15.9.0.pre.rc1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 772e2e42038fb06b25beb3e3bef80daf59e350f4409ddc0ec4091c7fe67757bd
4
- data.tar.gz: 1d5a6b6e6c9a9dc96032a086df7a21d48cdd0fdea848a31be116f287bbb280c3
3
+ metadata.gz: 4e8c1963b3fd1973b05de58a6d6938ed70ea4cd8f2a7efbdeb8efebc3913080e
4
+ data.tar.gz: 82156769e744a585c333dc8ea95b6b9cf3a1d038de47f746472c4a71d747ae28
5
5
  SHA512:
6
- metadata.gz: 2d0d468db91b14a8efe4c708d6bd0046c214b76289c6ce47e17f7b57631137aa64027225418e08bd2ff373ffc2f0e838134e0b7b15eed26476eac9d836df16b4
7
- data.tar.gz: d9603f499553f45532f389f535eca159be65e18b36020cd68bf4cdbd12f80b3721f5f7aa1fd8af2ec3b1e54972df2ac3393db35211d59831bbbdc786241b9154
6
+ metadata.gz: 6ea85a0d18525f7beb63e00a2464721cc94363a27af90068b9c9be44dc3d0acb91531f7a6871ec4fd8ac23d913c2f8e5e016a98476aafbaf13f561ae2976414f
7
+ data.tar.gz: b73b1f541eace1a9845b78f82ec200829c52e8be765017a43e868e3be1241680995eff91aea9169c49fb08f56d767f306dd51a983f4d7282778744c36ceef120
@@ -215,7 +215,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
215
215
  optional :name, :string, 1
216
216
  optional :share, :float, 2
217
217
  optional :color, :string, 3
218
- optional :file_count, :uint32, 4
219
218
  optional :bytes, :uint64, 5
220
219
  end
221
220
  add_message "gitaly.RawBlameRequest" do
@@ -23,6 +23,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
23
23
  optional :safe_max_lines, :int32, 12
24
24
  optional :safe_max_bytes, :int32, 13
25
25
  optional :diff_mode, :enum, 15, "gitaly.CommitDiffRequest.DiffMode"
26
+ map :max_patch_bytes_for_file_extension, :string, :int32, 16
26
27
  end
27
28
  add_enum "gitaly.CommitDiffRequest.DiffMode" do
28
29
  value :DEFAULT, 0
@@ -124,6 +125,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
124
125
  value :TYPE_CHANGE, 3
125
126
  value :COPIED, 4
126
127
  end
128
+ add_message "gitaly.GetPatchIDRequest" do
129
+ optional :repository, :message, 1, "gitaly.Repository"
130
+ optional :old_revision, :bytes, 2
131
+ optional :new_revision, :bytes, 3
132
+ end
133
+ add_message "gitaly.GetPatchIDResponse" do
134
+ optional :patch_id, :string, 1
135
+ end
127
136
  end
128
137
  end
129
138
 
@@ -148,4 +157,6 @@ module Gitaly
148
157
  FindChangedPathsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsResponse").msgclass
149
158
  ChangedPaths = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ChangedPaths").msgclass
150
159
  ChangedPaths::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ChangedPaths.Status").enummodule
160
+ GetPatchIDRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetPatchIDRequest").msgclass
161
+ GetPatchIDResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetPatchIDResponse").msgclass
151
162
  end
@@ -28,6 +28,11 @@ module Gitaly
28
28
  rpc :DiffStats, ::Gitaly::DiffStatsRequest, stream(::Gitaly::DiffStatsResponse)
29
29
  # Return a list of files changed along with the status of each file
30
30
  rpc :FindChangedPaths, ::Gitaly::FindChangedPathsRequest, stream(::Gitaly::FindChangedPathsResponse)
31
+ # GetPatchID computes a patch ID for a patch. Patch IDs are a unique ID computed by hashing
32
+ # a patch with some parameters like line numbers ignored. The patch ID can thus be used to compare
33
+ # whether diffs make the same change. Please refer to git-patch-id(1) for further information.
34
+ # If the difference between old and new change is empty then this RPC returns an error.
35
+ rpc :GetPatchID, ::Gitaly::GetPatchIDRequest, ::Gitaly::GetPatchIDResponse
31
36
  end
32
37
 
33
38
  Stub = Service.rpc_stub_class
@@ -0,0 +1,25 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: log.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("log.proto", :syntax => :proto3) do
8
+ add_message "gitaly.LogEntry" do
9
+ repeated :reference_updates, :message, 1, "gitaly.LogEntry.ReferenceUpdate"
10
+ end
11
+ add_message "gitaly.LogEntry.ReferenceUpdate" do
12
+ optional :reference_name, :bytes, 1
13
+ optional :new_oid, :bytes, 2
14
+ end
15
+ add_message "gitaly.LogIndex" do
16
+ optional :log_index, :uint64, 1
17
+ end
18
+ end
19
+ end
20
+
21
+ module Gitaly
22
+ LogEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LogEntry").msgclass
23
+ LogEntry::ReferenceUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LogEntry.ReferenceUpdate").msgclass
24
+ LogIndex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LogIndex").msgclass
25
+ end
@@ -6,10 +6,27 @@ require 'objectpool_pb'
6
6
 
7
7
  module Gitaly
8
8
  module ObjectPoolService
9
- # ObjectPoolService is a service containing RPCs to manipulate object pools.
10
- # An object pool is a separate repository that can be linked to from multiple
11
- # satellite repositories in order to deduplicate common objects between them.
12
- # This is mostly used in the contexet of repository forks.
9
+ # ObjectPoolService is a service that manages the lifetime of object pools.
10
+ #
11
+ # An object pool is a separate repository that can be linked to from multiple object pool members
12
+ # in order to deduplicate common objects between them. This is mostly used in the context of
13
+ # repository forks.
14
+ #
15
+ # The typical lifetime of an object pool is as follows:
16
+ #
17
+ # 1. An object pool is created via CreateObjectPool from its primary pool member. Typically this
18
+ # would be the repository that gets forked.
19
+ # 2. One or more repositories are linked to the object pool via LinkRepositoryToObjectPool. Each
20
+ # object pool member linked to the repository will have its objects deduplicated when its
21
+ # objects get repacked the next time.
22
+ # 3. The object pool is regularly updated via FetchIntoObjectPool. This is typically only done from
23
+ # the primary object pool member.
24
+ # 4. Repositories may leave the object pool via DisconnectGitAlternates. There is not much of a
25
+ # reason to do this for any repositories except for the primary object pool member in case it
26
+ # for example becomes private.
27
+ # 5. When the object pool does not have any members anymore it gets deleted via DeleteObjectPool.
28
+ # It is the responsibility of the caller to ensure that it really has no members left, else
29
+ # any existing member will become corrupt.
13
30
  class Service
14
31
 
15
32
  include ::GRPC::GenericService
@@ -18,22 +35,47 @@ module Gitaly
18
35
  self.unmarshal_class_method = :decode
19
36
  self.service_name = 'gitaly.ObjectPoolService'
20
37
 
21
- # This comment is left unintentionally blank.
38
+ # CreateObjectPool creates an object pool from a specific source repository. It will create the
39
+ # object pool by cloning all contents from that source repository. The source repository will not
40
+ # automatically be linked to the object pool, you need to call LinkRepositoryToObjectPool for
41
+ # this. If the object pool exists already this RPC returns an error with the FailedPrecondition
42
+ # gRPC error code.
22
43
  rpc :CreateObjectPool, ::Gitaly::CreateObjectPoolRequest, ::Gitaly::CreateObjectPoolResponse
23
- # This comment is left unintentionally blank.
44
+ # DeleteObjectPool deletes the object pool. There are no safety checks in place, so if any
45
+ # repository is still using this object pool it will become corrupted.
24
46
  rpc :DeleteObjectPool, ::Gitaly::DeleteObjectPoolRequest, ::Gitaly::DeleteObjectPoolResponse
25
- # Repositories are assumed to be stored on the same disk
47
+ # LinkRepositoryToObjectPool links the specified repository to the object pool. Objects contained
48
+ # in the object pool will be deduplicated for this repository when repacking objects.
26
49
  rpc :LinkRepositoryToObjectPool, ::Gitaly::LinkRepositoryToObjectPoolRequest, ::Gitaly::LinkRepositoryToObjectPoolResponse
27
- # This comment is left unintentionally blank.
50
+ # ReduplicateRepository will repack the objects in the object pool member so that the repository
51
+ # does not depend on the pool member anymore and can be removed from it. Note that this function
52
+ # is not safe for use.
53
+ #
54
+ # This RPC is deprecated. Please use DisconnectGitAlternates instead. It will be removed in
55
+ # Gitaly v16.0, refer to https://gitlab.com/gitlab-org/gitaly/-/issues/4655.
28
56
  rpc :ReduplicateRepository, ::Gitaly::ReduplicateRepositoryRequest, ::Gitaly::ReduplicateRepositoryResponse
29
- # This comment is left unintentionally blank.
57
+ # DisconnectGitAlternates will disconnect the object pool member from its object pool. It will:
58
+ #
59
+ # 1. Link all objects from the object pool into the member repository. This essenitally
60
+ # reduplicates previously-duplicated objects so that the repository will continue to function
61
+ # after being unlinked.
62
+ # 2. Remove the alternates link to the object pool.
63
+ # 3. Perform a consistency check to assert that the repository is indeed fully functional after
64
+ # unlinking it from its pool. If the consistency check fails the alternates link is restored
65
+ # an the RPC fails.
66
+ #
67
+ # If successful, the object pool member is disconnected from the object pool and does not depend
68
+ # on it anymore.
69
+ #
70
+ # This RPC does not return an error in case the repository is not linked to any object pool.
30
71
  rpc :DisconnectGitAlternates, ::Gitaly::DisconnectGitAlternatesRequest, ::Gitaly::DisconnectGitAlternatesResponse
31
72
  # FetchIntoObjectPool fetches all references from a pool member into an object pool so that
32
73
  # objects shared between this repository and other pool members can be deduplicated. This RPC
33
74
  # will perform housekeeping tasks after the object pool has been updated to ensure that the pool
34
75
  # is in an optimal state.
35
76
  rpc :FetchIntoObjectPool, ::Gitaly::FetchIntoObjectPoolRequest, ::Gitaly::FetchIntoObjectPoolResponse
36
- # This comment is left unintentionally blank.
77
+ # GetObjectPool returns the object pool a repository is connected to. If the repository is not
78
+ # connected to a pool then this RPC returns successfully with an empty response.
37
79
  rpc :GetObjectPool, ::Gitaly::GetObjectPoolRequest, ::Gitaly::GetObjectPoolResponse
38
80
  end
39
81
 
@@ -198,6 +198,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
198
198
  repeated :patterns, :bytes, 2
199
199
  optional :head, :bool, 3
200
200
  optional :sort_by, :message, 4, "gitaly.ListRefsRequest.SortBy"
201
+ repeated :pointing_at_oids, :bytes, 5
202
+ optional :peel_tags, :bool, 6
201
203
  end
202
204
  add_message "gitaly.ListRefsRequest.SortBy" do
203
205
  optional :key, :enum, 1, "gitaly.ListRefsRequest.SortBy.Key"
@@ -215,6 +217,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
215
217
  add_message "gitaly.ListRefsResponse.Reference" do
216
218
  optional :name, :bytes, 1
217
219
  optional :target, :string, 2
220
+ optional :peeled_target, :string, 3
218
221
  end
219
222
  add_message "gitaly.FindRefsByOIDRequest" do
220
223
  optional :repository, :message, 1, "gitaly.Repository"
@@ -17,9 +17,13 @@ module Gitaly
17
17
 
18
18
  # This comment is left unintentionally blank.
19
19
  rpc :FindDefaultBranchName, ::Gitaly::FindDefaultBranchNameRequest, ::Gitaly::FindDefaultBranchNameResponse
20
- # This comment is left unintentionally blank.
20
+ # FindAllBranchNames is deprecated in favor of ListRefs
21
+ #
22
+ # https://gitlab.com/gitlab-org/gitaly/-/issues/3966
21
23
  rpc :FindAllBranchNames, ::Gitaly::FindAllBranchNamesRequest, stream(::Gitaly::FindAllBranchNamesResponse)
22
- # This comment is left unintentionally blank.
24
+ # FindAllTagNames is deprecated in favor of ListRefs
25
+ #
26
+ # https://gitlab.com/gitlab-org/gitaly/-/issues/3966
23
27
  rpc :FindAllTagNames, ::Gitaly::FindAllTagNamesRequest, stream(::Gitaly::FindAllTagNamesResponse)
24
28
  # Return a stream so we can divide the response in chunks of branches
25
29
  rpc :FindLocalBranches, ::Gitaly::FindLocalBranchesRequest, stream(::Gitaly::FindLocalBranchesResponse)
@@ -86,6 +86,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
86
86
  add_message "gitaly.CreateRepositoryRequest" do
87
87
  optional :repository, :message, 1, "gitaly.Repository"
88
88
  optional :default_branch, :bytes, 2
89
+ optional :object_format, :enum, 3, "gitaly.ObjectFormat"
89
90
  end
90
91
  add_message "gitaly.CreateRepositoryResponse" do
91
92
  end
@@ -43,7 +43,8 @@ module Gitaly
43
43
  # FetchSourceBranch fetches a branch from a second (potentially remote)
44
44
  # repository into the given repository.
45
45
  rpc :FetchSourceBranch, ::Gitaly::FetchSourceBranchRequest, ::Gitaly::FetchSourceBranchResponse
46
- # This comment is left unintentionally blank.
46
+ # Fsck checks the repository for consistency via git-fsck(1). This can be used to check for
47
+ # repository corruption.
47
48
  rpc :Fsck, ::Gitaly::FsckRequest, ::Gitaly::FsckResponse
48
49
  # This comment is left unintentionally blank.
49
50
  rpc :WriteRef, ::Gitaly::WriteRefRequest, ::Gitaly::WriteRefResponse
@@ -67,7 +68,8 @@ module Gitaly
67
68
  # GetConfig reads the target repository's gitconfig and streams its contents
68
69
  # back. Returns a NotFound error in case no gitconfig was found.
69
70
  rpc :GetConfig, ::Gitaly::GetConfigRequest, stream(::Gitaly::GetConfigResponse)
70
- # This comment is left unintentionally blank.
71
+ # FindLicense looks in the given repository and attempts to detect all the
72
+ # details about the license used in the repository.
71
73
  rpc :FindLicense, ::Gitaly::FindLicenseRequest, ::Gitaly::FindLicenseResponse
72
74
  # This comment is left unintentionally blank.
73
75
  rpc :GetInfoAttributes, ::Gitaly::GetInfoAttributesRequest, stream(::Gitaly::GetInfoAttributesResponse)
@@ -85,7 +87,9 @@ module Gitaly
85
87
  rpc :SearchFilesByContent, ::Gitaly::SearchFilesByContentRequest, stream(::Gitaly::SearchFilesByContentResponse)
86
88
  # This comment is left unintentionally blank.
87
89
  rpc :SearchFilesByName, ::Gitaly::SearchFilesByNameRequest, stream(::Gitaly::SearchFilesByNameResponse)
88
- # This comment is left unintentionally blank.
90
+ # RestoreCustomHooks sets the git hooks for a repository. The hooks are sent
91
+ # in a tar archive containing a `custom_hooks` directory. This directory is
92
+ # ultimately extracted to the repository.
89
93
  rpc :RestoreCustomHooks, stream(::Gitaly::RestoreCustomHooksRequest), ::Gitaly::RestoreCustomHooksResponse
90
94
  # This comment is left unintentionally blank.
91
95
  rpc :BackupCustomHooks, ::Gitaly::BackupCustomHooksRequest, stream(::Gitaly::BackupCustomHooksResponse)
@@ -0,0 +1,54 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: service_config.proto
3
+
4
+ require 'google/protobuf/duration_pb'
5
+ require 'google/protobuf/wrappers_pb'
6
+ require 'google/protobuf'
7
+
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("service_config.proto", :syntax => :proto3) do
10
+ add_message "gitaly.ServiceConfig" do
11
+ repeated :load_balancing_config, :message, 1, "gitaly.LoadBalancingConfig"
12
+ repeated :method_config, :message, 2, "gitaly.MethodConfig"
13
+ end
14
+ add_message "gitaly.LoadBalancingConfig" do
15
+ oneof :policy do
16
+ optional :pick_first, :message, 1, "gitaly.PickFirstConfig", json_name: "pick_first"
17
+ optional :round_robin, :message, 2, "gitaly.RoundRobinConfig", json_name: "round_robin"
18
+ end
19
+ end
20
+ add_message "gitaly.PickFirstConfig" do
21
+ end
22
+ add_message "gitaly.RoundRobinConfig" do
23
+ end
24
+ add_message "gitaly.MethodConfig" do
25
+ repeated :name, :message, 1, "gitaly.MethodConfig.Name"
26
+ optional :wait_for_ready, :message, 2, "google.protobuf.BoolValue"
27
+ optional :timeout, :message, 3, "google.protobuf.Duration"
28
+ optional :max_request_message_bytes, :message, 4, "google.protobuf.UInt32Value"
29
+ optional :max_response_message_bytes, :message, 5, "google.protobuf.UInt32Value"
30
+ optional :retry_policy, :message, 6, "gitaly.MethodConfig.RetryPolicy"
31
+ end
32
+ add_message "gitaly.MethodConfig.Name" do
33
+ optional :service, :string, 1
34
+ optional :method, :string, 2
35
+ end
36
+ add_message "gitaly.MethodConfig.RetryPolicy" do
37
+ optional :max_attempts, :uint32, 1
38
+ optional :initial_backoff, :message, 2, "google.protobuf.Duration"
39
+ optional :max_backoff, :message, 3, "google.protobuf.Duration"
40
+ optional :backoff_multiplier, :float, 4
41
+ repeated :retryable_status_codes, :string, 5
42
+ end
43
+ end
44
+ end
45
+
46
+ module Gitaly
47
+ ServiceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ServiceConfig").msgclass
48
+ LoadBalancingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LoadBalancingConfig").msgclass
49
+ PickFirstConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PickFirstConfig").msgclass
50
+ RoundRobinConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RoundRobinConfig").msgclass
51
+ MethodConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MethodConfig").msgclass
52
+ MethodConfig::Name = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MethodConfig.Name").msgclass
53
+ MethodConfig::RetryPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MethodConfig.RetryPolicy").msgclass
54
+ end
@@ -86,6 +86,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
86
86
  value :TREE, 3
87
87
  value :TAG, 4
88
88
  end
89
+ add_enum "gitaly.ObjectFormat" do
90
+ value :OBJECT_FORMAT_UNSPECIFIED, 0
91
+ value :OBJECT_FORMAT_SHA1, 1
92
+ value :OBJECT_FORMAT_SHA256, 2
93
+ end
89
94
  add_enum "gitaly.SignatureType" do
90
95
  value :NONE, 0
91
96
  value :PGP, 1
@@ -114,6 +119,7 @@ module Gitaly
114
119
  PaginationCursor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PaginationCursor").msgclass
115
120
  GlobalOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GlobalOptions").msgclass
116
121
  ObjectType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ObjectType").enummodule
122
+ ObjectFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ObjectFormat").enummodule
117
123
  SignatureType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SignatureType").enummodule
118
124
  SortDirection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SortDirection").enummodule
119
125
  end
@@ -1,4 +1,4 @@
1
1
  # This file is generated by build-proto-gem. Do not edit.
2
2
  module Gitaly
3
- VERSION = '15.6.0-rc3'
3
+ VERSION = '15.9.0-rc1'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitaly
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.6.0.pre.rc3
4
+ version: 15.9.0.pre.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Vosmaer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-15 00:00:00.000000000 Z
11
+ date: 2023-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -48,6 +48,7 @@ files:
48
48
  - ruby/proto/gitaly/internal_pb.rb
49
49
  - ruby/proto/gitaly/internal_services_pb.rb
50
50
  - ruby/proto/gitaly/lint_pb.rb
51
+ - ruby/proto/gitaly/log_pb.rb
51
52
  - ruby/proto/gitaly/namespace_pb.rb
52
53
  - ruby/proto/gitaly/namespace_services_pb.rb
53
54
  - ruby/proto/gitaly/objectpool_pb.rb
@@ -64,6 +65,7 @@ files:
64
65
  - ruby/proto/gitaly/repository_services_pb.rb
65
66
  - ruby/proto/gitaly/server_pb.rb
66
67
  - ruby/proto/gitaly/server_services_pb.rb
68
+ - ruby/proto/gitaly/service_config_pb.rb
67
69
  - ruby/proto/gitaly/shared_pb.rb
68
70
  - ruby/proto/gitaly/smarthttp_pb.rb
69
71
  - ruby/proto/gitaly/smarthttp_services_pb.rb