Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2020-07-22 10:17:27 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2020-07-22 10:17:27 +0300
commitf6960a449e57bd890d7400f09e35facc55b982ec (patch)
treec692adf0c2903fdbacfc8b7a82f1a99c15451ac7
parent29f630062d82065606a1d4f64d52f39833d44767 (diff)
parentdcc1fe0504f87feb1d7a239e742db3abd5e20693 (diff)
Merge branch 'rs-cherry-pick-revert-dry-run' into 'master'
Support dry-run cherry-picks and reverts See merge request gitlab-org/gitaly!2382
-rw-r--r--changelogs/unreleased/rs-cherry-pick-revert-dry-run.yml5
-rw-r--r--internal/service/operations/cherry_pick_test.go68
-rw-r--r--internal/service/operations/revert_test.go68
-rw-r--r--proto/go/gitalypb/operations.pb.go283
-rw-r--r--proto/operations.proto2
-rw-r--r--ruby/lib/gitaly_server/operations_service.rb6
-rw-r--r--ruby/lib/gitlab/git/repository.rb65
-rw-r--r--ruby/proto/gitaly/operations_pb.rb2
8 files changed, 334 insertions, 165 deletions
diff --git a/changelogs/unreleased/rs-cherry-pick-revert-dry-run.yml b/changelogs/unreleased/rs-cherry-pick-revert-dry-run.yml
new file mode 100644
index 000000000..18b3632be
--- /dev/null
+++ b/changelogs/unreleased/rs-cherry-pick-revert-dry-run.yml
@@ -0,0 +1,5 @@
+---
+title: Support dry-run cherry-picks and reverts
+merge_request: 2382
+author:
+type: added
diff --git a/internal/service/operations/cherry_pick_test.go b/internal/service/operations/cherry_pick_test.go
index 6bbb68acb..1af9c5974 100644
--- a/internal/service/operations/cherry_pick_test.go
+++ b/internal/service/operations/cherry_pick_test.go
@@ -34,9 +34,11 @@ func TestSuccessfulUserCherryPickRequest(t *testing.T) {
cherryPickedCommit, err := log.GetCommit(ctxOuter, testRepo, "8a0f2ee90d940bfb0ba1e14e8214b0649056e4ab")
require.NoError(t, err)
- testRepoCopy, _, cleanup := testhelper.NewTestRepo(t)
+ testRepoCopy, testRepoCopyPath, cleanup := testhelper.NewTestRepo(t) // read-only repo
defer cleanup()
+ testhelper.MustRunCommand(t, nil, "git", "-C", testRepoCopyPath, "branch", destinationBranch, "master")
+
testCases := []struct {
desc string
request *gitalypb.UserCherryPickRequest
@@ -90,6 +92,58 @@ func TestSuccessfulUserCherryPickRequest(t *testing.T) {
},
branchUpdate: &gitalypb.OperationBranchUpdate{BranchCreated: true},
},
+ {
+ desc: "branch exists with dry run",
+ request: &gitalypb.UserCherryPickRequest{
+ Repository: testRepoCopy,
+ User: testhelper.TestUser,
+ Commit: cherryPickedCommit,
+ BranchName: []byte(destinationBranch),
+ Message: []byte("Cherry-picking " + cherryPickedCommit.Id),
+ DryRun: true,
+ },
+ branchUpdate: &gitalypb.OperationBranchUpdate{},
+ },
+ {
+ desc: "nonexistent branch + start_repository == repository with dry run",
+ request: &gitalypb.UserCherryPickRequest{
+ Repository: testRepoCopy,
+ User: testhelper.TestUser,
+ Commit: cherryPickedCommit,
+ BranchName: []byte("to-be-cherry-picked-into-1"),
+ Message: []byte("Cherry-picking " + cherryPickedCommit.Id),
+ StartBranchName: []byte("master"),
+ DryRun: true,
+ },
+ branchUpdate: &gitalypb.OperationBranchUpdate{BranchCreated: true},
+ },
+ {
+ desc: "nonexistent branch + start_repository != repository with dry run",
+ request: &gitalypb.UserCherryPickRequest{
+ Repository: testRepoCopy,
+ User: testhelper.TestUser,
+ Commit: cherryPickedCommit,
+ BranchName: []byte("to-be-cherry-picked-into-2"),
+ Message: []byte("Cherry-picking " + cherryPickedCommit.Id),
+ StartRepository: testRepoCopy,
+ StartBranchName: []byte("master"),
+ DryRun: true,
+ },
+ branchUpdate: &gitalypb.OperationBranchUpdate{BranchCreated: true},
+ },
+ {
+ desc: "nonexistent branch + empty start_repository with dry run",
+ request: &gitalypb.UserCherryPickRequest{
+ Repository: testRepoCopy,
+ User: testhelper.TestUser,
+ Commit: cherryPickedCommit,
+ BranchName: []byte("to-be-cherry-picked-into-3"),
+ Message: []byte("Cherry-picking " + cherryPickedCommit.Id),
+ StartBranchName: []byte("master"),
+ DryRun: true,
+ },
+ branchUpdate: &gitalypb.OperationBranchUpdate{BranchCreated: true},
+ },
}
for _, testCase := range testCases {
@@ -100,7 +154,7 @@ func TestSuccessfulUserCherryPickRequest(t *testing.T) {
response, err := client.UserCherryPick(ctx, testCase.request)
require.NoError(t, err)
- headCommit, err := log.GetCommit(ctx, testRepo, string(testCase.request.BranchName))
+ headCommit, err := log.GetCommit(ctx, testCase.request.Repository, string(testCase.request.BranchName))
require.NoError(t, err)
expectedBranchUpdate := testCase.branchUpdate
@@ -109,8 +163,14 @@ func TestSuccessfulUserCherryPickRequest(t *testing.T) {
require.Equal(t, expectedBranchUpdate, response.BranchUpdate)
require.Empty(t, response.CreateTreeError)
require.Empty(t, response.CreateTreeErrorCode)
- require.Equal(t, testCase.request.Message, headCommit.Subject)
- require.Equal(t, masterHeadCommit.Id, headCommit.ParentIds[0])
+
+ if testCase.request.DryRun {
+ require.Equal(t, masterHeadCommit.Subject, headCommit.Subject)
+ require.Equal(t, masterHeadCommit.Id, headCommit.Id)
+ } else {
+ require.Equal(t, testCase.request.Message, headCommit.Subject)
+ require.Equal(t, masterHeadCommit.Id, headCommit.ParentIds[0])
+ }
})
}
}
diff --git a/internal/service/operations/revert_test.go b/internal/service/operations/revert_test.go
index 392255087..0a2af6296 100644
--- a/internal/service/operations/revert_test.go
+++ b/internal/service/operations/revert_test.go
@@ -34,9 +34,11 @@ func TestSuccessfulUserRevertRequest(t *testing.T) {
revertedCommit, err := log.GetCommit(ctxOuter, testRepo, "d59c60028b053793cecfb4022de34602e1a9218e")
require.NoError(t, err)
- testRepoCopy, _, cleanup := testhelper.NewTestRepo(t)
+ testRepoCopy, testRepoCopyPath, cleanup := testhelper.NewTestRepo(t) // read-only repo
defer cleanup()
+ testhelper.MustRunCommand(t, nil, "git", "-C", testRepoCopyPath, "branch", destinationBranch, "master")
+
testCases := []struct {
desc string
request *gitalypb.UserRevertRequest
@@ -90,6 +92,58 @@ func TestSuccessfulUserRevertRequest(t *testing.T) {
},
branchUpdate: &gitalypb.OperationBranchUpdate{BranchCreated: true},
},
+ {
+ desc: "branch exists with dry run",
+ request: &gitalypb.UserRevertRequest{
+ Repository: testRepoCopy,
+ User: testhelper.TestUser,
+ Commit: revertedCommit,
+ BranchName: []byte(destinationBranch),
+ Message: []byte("Reverting " + revertedCommit.Id),
+ DryRun: true,
+ },
+ branchUpdate: &gitalypb.OperationBranchUpdate{},
+ },
+ {
+ desc: "nonexistent branch + start_repository == repository with dry run",
+ request: &gitalypb.UserRevertRequest{
+ Repository: testRepoCopy,
+ User: testhelper.TestUser,
+ Commit: revertedCommit,
+ BranchName: []byte("to-be-reverted-into-1"),
+ Message: []byte("Reverting " + revertedCommit.Id),
+ StartBranchName: []byte("master"),
+ DryRun: true,
+ },
+ branchUpdate: &gitalypb.OperationBranchUpdate{BranchCreated: true},
+ },
+ {
+ desc: "nonexistent branch + start_repository != repository with dry run",
+ request: &gitalypb.UserRevertRequest{
+ Repository: testRepoCopy,
+ User: testhelper.TestUser,
+ Commit: revertedCommit,
+ BranchName: []byte("to-be-reverted-into-2"),
+ Message: []byte("Reverting " + revertedCommit.Id),
+ StartRepository: testRepoCopy,
+ StartBranchName: []byte("master"),
+ DryRun: true,
+ },
+ branchUpdate: &gitalypb.OperationBranchUpdate{BranchCreated: true},
+ },
+ {
+ desc: "nonexistent branch + empty start_repository with dry run",
+ request: &gitalypb.UserRevertRequest{
+ Repository: testRepoCopy,
+ User: testhelper.TestUser,
+ Commit: revertedCommit,
+ BranchName: []byte("to-be-reverted-into-3"),
+ Message: []byte("Reverting " + revertedCommit.Id),
+ StartBranchName: []byte("master"),
+ DryRun: true,
+ },
+ branchUpdate: &gitalypb.OperationBranchUpdate{BranchCreated: true},
+ },
}
for _, testCase := range testCases {
@@ -100,7 +154,7 @@ func TestSuccessfulUserRevertRequest(t *testing.T) {
response, err := client.UserRevert(ctx, testCase.request)
require.NoError(t, err)
- headCommit, err := log.GetCommit(ctx, testRepo, string(testCase.request.BranchName))
+ headCommit, err := log.GetCommit(ctx, testCase.request.Repository, string(testCase.request.BranchName))
require.NoError(t, err)
expectedBranchUpdate := testCase.branchUpdate
@@ -109,8 +163,14 @@ func TestSuccessfulUserRevertRequest(t *testing.T) {
require.Equal(t, expectedBranchUpdate, response.BranchUpdate)
require.Empty(t, response.CreateTreeError)
require.Empty(t, response.CreateTreeErrorCode)
- require.Equal(t, testCase.request.Message, headCommit.Subject)
- require.Equal(t, masterHeadCommit.Id, headCommit.ParentIds[0])
+
+ if testCase.request.DryRun {
+ require.Equal(t, masterHeadCommit.Subject, headCommit.Subject)
+ require.Equal(t, masterHeadCommit.Id, headCommit.Id)
+ } else {
+ require.Equal(t, testCase.request.Message, headCommit.Subject)
+ require.Equal(t, masterHeadCommit.Id, headCommit.ParentIds[0])
+ }
})
}
}
diff --git a/proto/go/gitalypb/operations.pb.go b/proto/go/gitalypb/operations.pb.go
index f32b0bfa9..d71383d22 100644
--- a/proto/go/gitalypb/operations.pb.go
+++ b/proto/go/gitalypb/operations.pb.go
@@ -1109,6 +1109,7 @@ type UserCherryPickRequest struct {
Message []byte `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
StartBranchName []byte `protobuf:"bytes,6,opt,name=start_branch_name,json=startBranchName,proto3" json:"start_branch_name,omitempty"`
StartRepository *Repository `protobuf:"bytes,7,opt,name=start_repository,json=startRepository,proto3" json:"start_repository,omitempty"`
+ DryRun bool `protobuf:"varint,8,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
@@ -1188,6 +1189,13 @@ func (m *UserCherryPickRequest) GetStartRepository() *Repository {
return nil
}
+func (m *UserCherryPickRequest) GetDryRun() bool {
+ if m != nil {
+ return m.DryRun
+ }
+ return false
+}
+
type UserCherryPickResponse struct {
BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate,proto3" json:"branch_update,omitempty"`
CreateTreeError string `protobuf:"bytes,2,opt,name=create_tree_error,json=createTreeError,proto3" json:"create_tree_error,omitempty"`
@@ -1267,6 +1275,7 @@ type UserRevertRequest struct {
Message []byte `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
StartBranchName []byte `protobuf:"bytes,6,opt,name=start_branch_name,json=startBranchName,proto3" json:"start_branch_name,omitempty"`
StartRepository *Repository `protobuf:"bytes,7,opt,name=start_repository,json=startRepository,proto3" json:"start_repository,omitempty"`
+ DryRun bool `protobuf:"varint,8,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
@@ -1346,6 +1355,13 @@ func (m *UserRevertRequest) GetStartRepository() *Repository {
return nil
}
+func (m *UserRevertRequest) GetDryRun() bool {
+ if m != nil {
+ return m.DryRun
+ }
+ return false
+}
+
type UserRevertResponse struct {
BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate,proto3" json:"branch_update,omitempty"`
CreateTreeError string `protobuf:"bytes,2,opt,name=create_tree_error,json=createTreeError,proto3" json:"create_tree_error,omitempty"`
@@ -2587,140 +2603,141 @@ func init() {
func init() { proto.RegisterFile("operations.proto", fileDescriptor_1b4a5877375e491e) }
var fileDescriptor_1b4a5877375e491e = []byte{
- // 2116 bytes of a gzipped FileDescriptorProto
+ // 2132 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0xcd, 0x73, 0x1b, 0x49,
- 0x15, 0xf7, 0x48, 0xb2, 0x2c, 0x3f, 0x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, 0x6f, 0x20, 0xc6, 0xc2, 0xde, 0x43,
+ 0x17, 0x4e, 0x4e, 0x33, 0xdd, 0x85, 0xa9, 0xb3, 0x5d, 0x77, 0x61, 0xfa, 0x10, 0x8c, 0xc1, 0xdc,
+ 0xc1, 0xf7, 0x8a, 0x44, 0x49, 0x67, 0x66, 0xba, 0xea, 0x24, 0x8f, 0xb9, 0xda, 0xc6, 0x99, 0x3c,
+ 0xfa, 0x4e, 0x5b, 0x6f, 0x7d, 0x57, 0x72, 0xf7, 0x9d, 0xe3, 0x7a, 0xcb, 0x1b, 0xdc, 0xc7, 0x3f,
+ 0xbf, 0xe8, 0x89, 0xee, 0x7d, 0x94, 0x71, 0x5f, 0xfd, 0xf3, 0xc7, 0xfd, 0xae, 0x47, 0xdf, 0xfe,
+ 0xf1, 0x71, 0x51, 0x91, 0xbe, 0xf4, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xeb, 0x39, 0xc9, 0x90,
+ 0x45, 0x22, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/proto/operations.proto b/proto/operations.proto
index 8bfd352a6..30305d289 100644
--- a/proto/operations.proto
+++ b/proto/operations.proto
@@ -219,6 +219,7 @@ message UserCherryPickRequest {
bytes message = 5;
bytes start_branch_name = 6;
Repository start_repository = 7;
+ bool dry_run = 8;
}
message UserCherryPickResponse {
@@ -243,6 +244,7 @@ message UserRevertRequest {
bytes message = 5;
bytes start_branch_name = 6;
Repository start_repository = 7;
+ bool dry_run = 8;
}
message UserRevertResponse {
diff --git a/ruby/lib/gitaly_server/operations_service.rb b/ruby/lib/gitaly_server/operations_service.rb
index a6cd3f13d..f85ba5c9c 100644
--- a/ruby/lib/gitaly_server/operations_service.rb
+++ b/ruby/lib/gitaly_server/operations_service.rb
@@ -168,7 +168,8 @@ module GitalyServer
branch_name: request.branch_name,
message: request.message.dup,
start_branch_name: request.start_branch_name.presence,
- start_repository: start_repository
+ start_repository: start_repository,
+ dry_run: request.dry_run
)
branch_update = branch_update_result(result)
@@ -196,7 +197,8 @@ module GitalyServer
branch_name: request.branch_name,
message: request.message.dup,
start_branch_name: request.start_branch_name.presence,
- start_repository: start_repository
+ start_repository: start_repository,
+ dry_run: request.dry_run
)
branch_update = branch_update_result(result)
diff --git a/ruby/lib/gitlab/git/repository.rb b/ruby/lib/gitlab/git/repository.rb
index 540e61a18..43c0b2a85 100644
--- a/ruby/lib/gitlab/git/repository.rb
+++ b/ruby/lib/gitlab/git/repository.rb
@@ -321,7 +321,7 @@ module Gitlab
raise ArgumentError, 'Invalid merge source'
end
- def revert(user:, commit:, branch_name:, message:, start_branch_name:, start_repository:)
+ def revert(user:, commit:, branch_name:, message:, start_branch_name:, start_repository:, dry_run: false)
OperationService.new(user, self).with_branch(
branch_name,
start_branch_name: start_branch_name,
@@ -330,24 +330,35 @@ module Gitlab
revert_tree_id = check_revert_content(commit, start_commit.sha)
- committer = user_to_committer(user)
-
- create_commit(message: message,
- author: committer,
- committer: committer,
- tree: revert_tree_id,
- parents: [start_commit.sha])
+ if dry_run
+ # At this point the tree has been written to the object database but
+ # not committed, so we'll leave it to be cleaned up by `gc`.
+ #
+ # The response expects a SHA, so just return the starting one.
+ start_commit.sha
+ else
+ committer = user_to_committer(user)
+
+ create_commit(
+ message: message,
+ author: committer,
+ committer: committer,
+ tree: revert_tree_id,
+ parents: [start_commit.sha]
+ )
+ end
end
end
- def cherry_pick(user:, commit:, branch_name:, message:, start_branch_name:, start_repository:)
+ def cherry_pick(user:, commit:, branch_name:, message:, start_branch_name:, start_repository:, dry_run: false)
args = {
user: user,
commit: commit,
branch_name: branch_name,
message: message,
start_branch_name: start_branch_name,
- start_repository: start_repository
+ start_repository: start_repository,
+ dry_run: dry_run
}
rugged_cherry_pick(args)
@@ -822,7 +833,7 @@ module Gitlab
raise GitError, "Could not delete refs #{ref_names}: #{message}" unless status.zero?
end
- def rugged_cherry_pick(user:, commit:, branch_name:, message:, start_branch_name:, start_repository:)
+ def rugged_cherry_pick(user:, commit:, branch_name:, message:, start_branch_name:, start_repository:, dry_run: false)
OperationService.new(user, self).with_branch(
branch_name,
start_branch_name: start_branch_name,
@@ -831,17 +842,27 @@ module Gitlab
cherry_pick_tree_id = check_cherry_pick_content(commit, start_commit.sha)
- committer = user_to_committer(user)
-
- create_commit(message: message,
- author: {
- email: commit.author_email,
- name: commit.author_name,
- time: commit.authored_date
- },
- committer: committer,
- tree: cherry_pick_tree_id,
- parents: [start_commit.sha])
+ if dry_run
+ # At this point the tree has been written to the object database but
+ # not committed, so we'll leave it to be cleaned up by `gc`.
+ #
+ # The response expects a SHA, so just return the starting one.
+ start_commit.sha
+ else
+ committer = user_to_committer(user)
+
+ create_commit(
+ message: message,
+ author: {
+ email: commit.author_email,
+ name: commit.author_name,
+ time: commit.authored_date
+ },
+ committer: committer,
+ tree: cherry_pick_tree_id,
+ parents: [start_commit.sha]
+ )
+ end
end
end
diff --git a/ruby/proto/gitaly/operations_pb.rb b/ruby/proto/gitaly/operations_pb.rb
index f021c8817..993eb5c56 100644
--- a/ruby/proto/gitaly/operations_pb.rb
+++ b/ruby/proto/gitaly/operations_pb.rb
@@ -103,6 +103,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :message, :bytes, 5
optional :start_branch_name, :bytes, 6
optional :start_repository, :message, 7, "gitaly.Repository"
+ optional :dry_run, :bool, 8
end
add_message "gitaly.UserCherryPickResponse" do
optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate"
@@ -124,6 +125,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :message, :bytes, 5
optional :start_branch_name, :bytes, 6
optional :start_repository, :message, 7, "gitaly.Repository"
+ optional :dry_run, :bool, 8
end
add_message "gitaly.UserRevertResponse" do
optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate"