diff options
author | Pavlo Strokov <pstrokov@gitlab.com> | 2020-01-28 14:13:06 +0300 |
---|---|---|
committer | Pavlo Strokov <pstrokov@gitlab.com> | 2020-01-28 14:13:06 +0300 |
commit | 0bf4c282b13c2a93be3711154eafb1dda5433a1c (patch) | |
tree | 661269537624c696b3edf631871753705099888a | |
parent | fb0413be2ec0606a6fb5be79aa514e69bd5ddc2d (diff) | |
parent | caf867a98f36a863a25c1531f96c5e184c2f5f6e (diff) |
Merge branch 'sh-fix-squash-renamed-files-target-branch' into 'master'
Fix squash when target branch has a renamed file
Closes #2395
See merge request gitlab-org/gitaly!1786
-rw-r--r-- | changelogs/unreleased/sh-fix-squash-renamed-files-target-branch.yml | 5 | ||||
-rw-r--r-- | internal/service/operations/squash.go | 4 | ||||
-rw-r--r-- | internal/service/operations/squash_test.go | 94 | ||||
-rw-r--r-- | proto/go/gitalypb/operations.pb.go | 268 | ||||
-rw-r--r-- | proto/operations.proto | 3 | ||||
-rw-r--r-- | ruby/lib/gitaly_server/operations_service.rb | 1 | ||||
-rw-r--r-- | ruby/lib/gitlab/git/repository.rb | 4 | ||||
-rw-r--r-- | ruby/proto/gitaly/operations_pb.rb | 1 | ||||
-rw-r--r-- | ruby/spec/lib/gitlab/git/repository_spec.rb | 2 |
9 files changed, 204 insertions, 178 deletions
diff --git a/changelogs/unreleased/sh-fix-squash-renamed-files-target-branch.yml b/changelogs/unreleased/sh-fix-squash-renamed-files-target-branch.yml new file mode 100644 index 000000000..74a0bbb62 --- /dev/null +++ b/changelogs/unreleased/sh-fix-squash-renamed-files-target-branch.yml @@ -0,0 +1,5 @@ +--- +title: Fix squash when target repository has a renamed file +merge_request: 1786 +author: +type: fixed diff --git a/internal/service/operations/squash.go b/internal/service/operations/squash.go index 56480fc60..b51572a4a 100644 --- a/internal/service/operations/squash.go +++ b/internal/service/operations/squash.go @@ -41,10 +41,6 @@ func validateUserSquashRequest(req *gitalypb.UserSquashRequest) error { return fmt.Errorf("empty SquashId") } - if len(req.GetBranch()) == 0 { - return fmt.Errorf("empty Branch") - } - if req.GetStartSha() == "" { return fmt.Errorf("empty StartSha") } diff --git a/internal/service/operations/squash_test.go b/internal/service/operations/squash_test.go index 25e4936e0..7115f7977 100644 --- a/internal/service/operations/squash_test.go +++ b/internal/service/operations/squash_test.go @@ -43,7 +43,6 @@ func TestSuccessfulUserSquashRequest(t *testing.T) { Repository: testRepo, User: user, SquashId: "1", - Branch: []byte(branchName), Author: author, CommitMessage: commitMessage, StartSha: startSha, @@ -94,7 +93,6 @@ func TestSuccessfulUserSquashRequestWith3wayMerge(t *testing.T) { Repository: testRepo, User: user, SquashId: "1", - Branch: []byte("gitaly/squash-test"), Author: author, CommitMessage: commitMessage, // The diff between two of these commits results in some changes to files/ruby/popen.rb @@ -108,7 +106,7 @@ func TestSuccessfulUserSquashRequestWith3wayMerge(t *testing.T) { commit, err := log.GetCommit(ctx, testRepo, response.SquashSha) require.NoError(t, err) - require.Equal(t, []string{"3d05a143ac193c1a6fe4d046a6e3fe71e825258a"}, commit.ParentIds) + require.Equal(t, []string{"6f6d7e7ed97bb5f0054f2b1df789b39ca89b6ff9"}, commit.ParentIds) require.Equal(t, author.Name, commit.Author.Name) require.Equal(t, author.Email, commit.Author.Email) require.Equal(t, user.Name, commit.Committer.Name) @@ -145,7 +143,6 @@ func TestSplitIndex(t *testing.T) { Repository: testRepo, User: user, SquashId: "1", - Branch: []byte(branchName), Author: author, CommitMessage: commitMessage, StartSha: startSha, @@ -158,7 +155,69 @@ func TestSplitIndex(t *testing.T) { require.False(t, ensureSplitIndexExists(t, testRepoPath)) } -func TestFailedUserSquashRequestDueToGitError(t *testing.T) { +func TestSquashRequestWithRenamedFiles(t *testing.T) { + ctx, cancel := testhelper.Context() + defer cancel() + + server, serverSocketPath := runOperationServiceServer(t) + defer server.Stop() + + client, conn := NewOperationClient(t, serverSocketPath) + defer conn.Close() + + testRepo, testRepoPath, cleanupFn := testhelper.NewTestRepoWithWorktree(t) + defer cleanupFn() + + originalFilename := "original-file.txt" + renamedFilename := "renamed-file.txt" + + testhelper.MustRunCommand(t, nil, "git", "-C", testRepoPath, "config", "user.name", string(author.Name)) + testhelper.MustRunCommand(t, nil, "git", "-C", testRepoPath, "config", "user.email", string(author.Email)) + testhelper.MustRunCommand(t, nil, "git", "-C", testRepoPath, "checkout", "-b", "squash-rename-test", "master") + require.NoError(t, ioutil.WriteFile(filepath.Join(testRepoPath, originalFilename), []byte("This is a test"), 0644)) + testhelper.MustRunCommand(t, nil, "git", "-C", testRepoPath, "add", ".") + testhelper.MustRunCommand(t, nil, "git", "-C", testRepoPath, "commit", "-m", "test file") + + startCommitID := text.ChompBytes(testhelper.MustRunCommand(t, nil, "git", "-C", testRepoPath, "rev-parse", "HEAD")) + + testhelper.MustRunCommand(t, nil, "git", "-C", testRepoPath, "mv", originalFilename, renamedFilename) + testhelper.MustRunCommand(t, nil, "git", "-C", testRepoPath, "commit", "-a", "-m", "renamed test file") + + // Modify the original file in another branch + testhelper.MustRunCommand(t, nil, "git", "-C", testRepoPath, "checkout", "-b", "squash-rename-branch", startCommitID) + require.NoError(t, ioutil.WriteFile(filepath.Join(testRepoPath, originalFilename), []byte("This is a change"), 0644)) + testhelper.MustRunCommand(t, nil, "git", "-C", testRepoPath, "commit", "-a", "-m", "test") + + require.NoError(t, ioutil.WriteFile(filepath.Join(testRepoPath, originalFilename), []byte("This is another change"), 0644)) + testhelper.MustRunCommand(t, nil, "git", "-C", testRepoPath, "commit", "-a", "-m", "test") + + endCommitID := text.ChompBytes(testhelper.MustRunCommand(t, nil, "git", "-C", testRepoPath, "rev-parse", "HEAD")) + + request := &gitalypb.UserSquashRequest{ + Repository: testRepo, + User: user, + SquashId: "1", + Author: author, + CommitMessage: commitMessage, + StartSha: startCommitID, + EndSha: endCommitID, + } + + response, err := client.UserSquash(ctx, request) + require.NoError(t, err) + require.Empty(t, response.GetGitError()) + + commit, err := log.GetCommit(ctx, testRepo, response.SquashSha) + require.NoError(t, err) + require.Equal(t, []string{startCommitID}, commit.ParentIds) + require.Equal(t, author.Name, commit.Author.Name) + require.Equal(t, author.Email, commit.Author.Email) + require.Equal(t, user.Name, commit.Committer.Name) + require.Equal(t, user.Email, commit.Committer.Email) + require.Equal(t, commitMessage, commit.Subject) +} + +func TestSuccessfulUserSquashRequestWithMissingFileOnTargetBranch(t *testing.T) { ctx, cancel := testhelper.Context() defer cancel() @@ -172,13 +231,11 @@ func TestFailedUserSquashRequestDueToGitError(t *testing.T) { defer cleanup() conflictingStartSha := "bbd36ad238d14e1c03ece0f3358f545092dc9ca3" - branchName := "gitaly-stuff" request := &gitalypb.UserSquashRequest{ Repository: testRepo, User: user, SquashId: "1", - Branch: []byte(branchName), Author: author, CommitMessage: commitMessage, StartSha: conflictingStartSha, @@ -187,7 +244,7 @@ func TestFailedUserSquashRequestDueToGitError(t *testing.T) { response, err := client.UserSquash(ctx, request) require.NoError(t, err) - require.Contains(t, response.GitError, "error: large_diff_old_name.md: does not exist in index") + require.Empty(t, response.GetGitError()) } func TestFailedUserSquashRequestDueToValidations(t *testing.T) { @@ -211,7 +268,6 @@ func TestFailedUserSquashRequestDueToValidations(t *testing.T) { Repository: nil, User: user, SquashId: "1", - Branch: []byte("some-branch"), Author: user, CommitMessage: commitMessage, StartSha: startSha, @@ -225,7 +281,6 @@ func TestFailedUserSquashRequestDueToValidations(t *testing.T) { Repository: testRepo, User: nil, SquashId: "1", - Branch: []byte("some-branch"), Author: user, CommitMessage: commitMessage, StartSha: startSha, @@ -239,21 +294,6 @@ func TestFailedUserSquashRequestDueToValidations(t *testing.T) { Repository: testRepo, User: user, SquashId: "", - Branch: []byte("some-branch"), - Author: user, - CommitMessage: commitMessage, - StartSha: startSha, - EndSha: endSha, - }, - code: codes.InvalidArgument, - }, - { - desc: "empty Branch", - request: &gitalypb.UserSquashRequest{ - Repository: testRepo, - User: user, - SquashId: "1", - Branch: nil, Author: user, CommitMessage: commitMessage, StartSha: startSha, @@ -267,7 +307,6 @@ func TestFailedUserSquashRequestDueToValidations(t *testing.T) { Repository: testRepo, User: user, SquashId: "1", - Branch: []byte("some-branch"), Author: user, CommitMessage: commitMessage, StartSha: "", @@ -281,7 +320,6 @@ func TestFailedUserSquashRequestDueToValidations(t *testing.T) { Repository: testRepo, User: user, SquashId: "1", - Branch: []byte("some-branch"), Author: user, CommitMessage: commitMessage, StartSha: startSha, @@ -295,7 +333,6 @@ func TestFailedUserSquashRequestDueToValidations(t *testing.T) { Repository: testRepo, User: user, SquashId: "1", - Branch: []byte("some-branch"), Author: nil, CommitMessage: commitMessage, StartSha: startSha, @@ -309,7 +346,6 @@ func TestFailedUserSquashRequestDueToValidations(t *testing.T) { Repository: testRepo, User: user, SquashId: "1", - Branch: []byte("some-branch"), Author: user, CommitMessage: nil, StartSha: startSha, diff --git a/proto/go/gitalypb/operations.pb.go b/proto/go/gitalypb/operations.pb.go index 886d071c1..7cf4dedc7 100644 --- a/proto/go/gitalypb/operations.pb.go +++ b/proto/go/gitalypb/operations.pb.go @@ -2252,7 +2252,6 @@ type UserSquashRequest struct { Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` SquashId string `protobuf:"bytes,3,opt,name=squash_id,json=squashId,proto3" json:"squash_id,omitempty"` - Branch []byte `protobuf:"bytes,4,opt,name=branch,proto3" json:"branch,omitempty"` StartSha string `protobuf:"bytes,5,opt,name=start_sha,json=startSha,proto3" json:"start_sha,omitempty"` EndSha string `protobuf:"bytes,6,opt,name=end_sha,json=endSha,proto3" json:"end_sha,omitempty"` Author *User `protobuf:"bytes,7,opt,name=author,proto3" json:"author,omitempty"` @@ -2308,13 +2307,6 @@ func (m *UserSquashRequest) GetSquashId() string { return "" } -func (m *UserSquashRequest) GetBranch() []byte { - if m != nil { - return m.Branch - } - return nil -} - func (m *UserSquashRequest) GetStartSha() string { if m != nil { return m.StartSha @@ -2745,143 +2737,143 @@ func init() { func init() { proto.RegisterFile("operations.proto", fileDescriptor_1b4a5877375e491e) } var fileDescriptor_1b4a5877375e491e = []byte{ - // 2168 bytes of a gzipped FileDescriptorProto + // 2175 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0xcd, 0x6f, 0x23, 0x49, - 0x15, 0x4f, 0xdb, 0x8e, 0xe3, 0xbc, 0x38, 0x89, 0x53, 0xb3, 0x3b, 0xeb, 0xf5, 0x4c, 0x98, 0x6c, - 0x67, 0x86, 0xf1, 0x0c, 0xe0, 0xf9, 0x60, 0x05, 0x12, 0xd2, 0x82, 0x26, 0x8e, 0x43, 0x66, 0xb5, + 0x15, 0x4f, 0xdb, 0x8e, 0xe3, 0xbc, 0x38, 0x89, 0x53, 0xbb, 0x3b, 0xeb, 0xf5, 0x4c, 0x98, 0x6c, + 0x67, 0x86, 0xf1, 0x0c, 0xe0, 0xf9, 0x60, 0x05, 0x12, 0xd2, 0x82, 0x26, 0x8e, 0x43, 0x66, 0xb4, 0xf9, 0xa0, 0x93, 0x01, 0xb1, 0x42, 0x34, 0x1d, 0xbb, 0x62, 0xb7, 0xb0, 0xdd, 0xbd, 0xd5, 0xed, - 0x30, 0xe1, 0x80, 0x90, 0x90, 0x58, 0x8e, 0x9c, 0xd8, 0x13, 0x12, 0x9c, 0x90, 0x10, 0x17, 0x2e, - 0x08, 0x71, 0x40, 0x88, 0x1b, 0x5c, 0xb9, 0xf3, 0x07, 0x20, 0xc1, 0x01, 0xc4, 0x65, 0x4f, 0xa8, - 0xea, 0xbd, 0xb6, 0xbb, 0xba, 0xdb, 0xd9, 0x64, 0x49, 0xb4, 0x03, 0xda, 0x5b, 0xfc, 0xea, 0xf5, - 0xab, 0xf7, 0x7e, 0xef, 0xb3, 0xaa, 0x02, 0x15, 0xcf, 0xe7, 0xc2, 0x09, 0x5d, 0x6f, 0x18, 0x34, - 0x7c, 0xe1, 0x85, 0x1e, 0x2b, 0x76, 0xdd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xf0, 0xb4, 0x23, 0x2d, 0xa2, 0xfa, 0x46, 0x89, 0x4f, 0xf5, 0x6c, 0x2a, 0x76, 0xec, - 0x25, 0x98, 0x75, 0x7c, 0xbf, 0x7f, 0x5a, 0x2d, 0x2a, 0x08, 0xf0, 0x87, 0xf9, 0x2b, 0x4a, 0x64, - 0xcd, 0x2a, 0x02, 0x55, 0x53, 0xc0, 0x48, 0x28, 0xb0, 0x01, 0x8b, 0x94, 0xb1, 0x23, 0x55, 0x4c, - 0xc8, 0xf1, 0xab, 0x91, 0x21, 0x7b, 0x51, 0xdf, 0x41, 0xa1, 0x58, 0x71, 0xac, 0xf2, 0x51, 0xec, - 0x57, 0x36, 0xfc, 0x85, 0x4c, 0xf8, 0xdf, 0x2c, 0x94, 0x72, 0x95, 0xbc, 0xf9, 0x6e, 0x0e, 0x23, + 0x30, 0xe1, 0x80, 0x90, 0x90, 0x58, 0x8e, 0x9c, 0x98, 0x13, 0x12, 0x37, 0x24, 0xc4, 0x85, 0x0b, + 0x42, 0x1c, 0x10, 0xe2, 0x06, 0x57, 0xee, 0xfc, 0x01, 0x48, 0x70, 0x00, 0x71, 0xd9, 0x13, 0xaa, + 0x7a, 0xaf, 0xed, 0xae, 0xee, 0x76, 0x36, 0x59, 0x12, 0xed, 0x80, 0xb8, 0xc5, 0xaf, 0x5e, 0xbf, + 0x7a, 0xef, 0xf7, 0xbe, 0xaa, 0x5e, 0x05, 0x2a, 0x9e, 0xcf, 0x85, 0x13, 0xba, 0xde, 0x30, 0x68, + 0xf8, 0xc2, 0x0b, 0x3d, 0x56, 0xec, 0xba, 0xa1, 0xd3, 0x3f, 0xad, 0x95, 0x83, 0x9e, 0x23, 0x78, + 0x07, 0xa9, 0xe6, 0xaf, 0x0c, 0x78, 0xfd, 0x59, 0xc0, 0x45, 0x53, 0x70, 0x27, 0xe4, 0x1b, 0xc2, + 0x19, 0xb6, 0x7b, 0x16, 0x7f, 0x6f, 0xc4, 0x83, 0x90, 0x3d, 0x02, 0x10, 0xdc, 0xf7, 0x02, 0x37, + 0xf4, 0xc4, 0x69, 0xd5, 0x58, 0x33, 0xea, 0x0b, 0x8f, 0x58, 0x03, 0xc5, 0x34, 0xac, 0xf1, 0x8a, + 0x15, 0xe3, 0x62, 0x37, 0x61, 0xe1, 0x48, 0x09, 0xb1, 0x87, 0xce, 0x80, 0x57, 0x73, 0x6b, 0x46, + 0xbd, 0x6c, 0x01, 0x92, 0x76, 0x9d, 0x01, 0x67, 0x6b, 0x50, 0x18, 0x05, 0x5c, 0x54, 0xf3, 0x4a, + 0x5c, 0x39, 0x12, 0x27, 0x75, 0xb0, 0xd4, 0x8a, 0x14, 0x11, 0x84, 0x8e, 0x08, 0x6d, 0xdf, 0x73, + 0x87, 0x61, 0xb5, 0x80, 0x22, 0x14, 0x69, 0x5f, 0x52, 0xcc, 0x21, 0x54, 0xd3, 0x2a, 0x07, 0xbe, + 0x37, 0x0c, 0x38, 0xfb, 0x24, 0x14, 0x71, 0x33, 0xd2, 0x77, 0x29, 0xda, 0x80, 0xf8, 0x68, 0x95, + 0xdd, 0x83, 0x15, 0x5f, 0x70, 0x5b, 0xf0, 0x36, 0x77, 0x4f, 0xb8, 0xcd, 0x85, 0xf0, 0x84, 0xd2, + 0x76, 0xde, 0x5a, 0xf6, 0x05, 0xb7, 0x90, 0xde, 0x92, 0x64, 0xf3, 0xf7, 0x84, 0xd1, 0x33, 0xbf, + 0xf3, 0xb2, 0x60, 0x74, 0x0d, 0x8a, 0x43, 0xfe, 0x1d, 0xc1, 0x4f, 0x08, 0x1e, 0xfa, 0x25, 0xe9, + 0x5e, 0xbf, 0x23, 0xe9, 0xb3, 0x48, 0xc7, 0x5f, 0xe6, 0x16, 0x42, 0xa6, 0x5b, 0x40, 0x90, 0x65, + 0x42, 0x61, 0x64, 0x43, 0xf1, 0x63, 0x82, 0x62, 0x93, 0xf7, 0xf9, 0xcb, 0x01, 0x45, 0x64, 0x9a, + 0xae, 0xd1, 0x47, 0x30, 0xed, 0x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, 0x6d, 0xfd, 0x4c, 0x9e, 0x94, 0x29, 0x1b, 0x0f, 0xde, + 0x95, 0x1f, 0xf4, 0x9d, 0xa3, 0x46, 0xdb, 0x1b, 0xdc, 0xc7, 0x3f, 0x3f, 0xe3, 0x89, 0xee, 0x7d, + 0x14, 0x73, 0x5f, 0xfd, 0xaf, 0xce, 0xfd, 0xae, 0x47, 0xbf, 0xfd, 0xa3, 0xa3, 0xa2, 0x22, 0x7d, + 0xf6, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x58, 0xd0, 0x22, 0xb8, 0xe8, 0x23, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/proto/operations.proto b/proto/operations.proto index b2d2d24e5..e781e9903 100644 --- a/proto/operations.proto +++ b/proto/operations.proto @@ -396,7 +396,8 @@ message UserSquashRequest { Repository repository = 1; User user = 2; string squash_id = 3; - bytes branch = 4; + reserved 4; + reserved "branch"; string start_sha = 5; string end_sha = 6; User author = 7; diff --git a/ruby/lib/gitaly_server/operations_service.rb b/ruby/lib/gitaly_server/operations_service.rb index 0d3cb43cd..2d26ef15c 100644 --- a/ruby/lib/gitaly_server/operations_service.rb +++ b/ruby/lib/gitaly_server/operations_service.rb @@ -299,7 +299,6 @@ module GitalyServer author = Gitlab::Git::User.from_gitaly(request.author) squash_sha = repo.squash(user, request.squash_id, - branch: request.branch, start_sha: request.start_sha, end_sha: request.end_sha, author: author, diff --git a/ruby/lib/gitlab/git/repository.rb b/ruby/lib/gitlab/git/repository.rb index 2566ce4df..d443ceb77 100644 --- a/ruby/lib/gitlab/git/repository.rb +++ b/ruby/lib/gitlab/git/repository.rb @@ -383,7 +383,7 @@ module Gitlab end end - def squash(user, squash_id, branch:, start_sha:, end_sha:, author:, message:) + def squash(user, squash_id, start_sha:, end_sha:, author:, message:) worktree = Gitlab::Git::Worktree.new(path, SQUASH_WORKTREE_PREFIX, squash_id) env = git_env.merge(user.git_env).merge( 'GIT_AUTHOR_NAME' => author.name, @@ -394,7 +394,7 @@ module Gitlab %W[diff --name-only --diff-filter=ar --binary #{diff_range}] ).chomp - with_worktree(worktree, branch, sparse_checkout_files: diff_files, env: env) do + with_worktree(worktree, start_sha, sparse_checkout_files: diff_files, env: env) do # Apply diff of the `diff_range` to the worktree diff = run_git!(%W[diff --binary #{diff_range}]) run_git!(%w[apply --index --3way --whitespace=nowarn], chdir: worktree.path, env: env, include_stderr: true) do |stdin| diff --git a/ruby/proto/gitaly/operations_pb.rb b/ruby/proto/gitaly/operations_pb.rb index 537adf5ad..b40bbcee9 100644 --- a/ruby/proto/gitaly/operations_pb.rb +++ b/ruby/proto/gitaly/operations_pb.rb @@ -223,7 +223,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do optional :repository, :message, 1, "gitaly.Repository" optional :user, :message, 2, "gitaly.User" optional :squash_id, :string, 3 - optional :branch, :bytes, 4 optional :start_sha, :string, 5 optional :end_sha, :string, 6 optional :author, :message, 7, "gitaly.User" diff --git a/ruby/spec/lib/gitlab/git/repository_spec.rb b/ruby/spec/lib/gitlab/git/repository_spec.rb index 417f60501..216666e60 100644 --- a/ruby/spec/lib/gitlab/git/repository_spec.rb +++ b/ruby/spec/lib/gitlab/git/repository_spec.rb @@ -647,13 +647,11 @@ describe Gitlab::Git::Repository do # rubocop:disable Metrics/BlockLength describe '#squash' do let(:repository) { mutable_repository } let(:squash_id) { '1' } - let(:branch_name) { 'fix' } let(:start_sha) { '4b4918a572fa86f9771e5ba40fbd48e1eb03e2c6' } let(:end_sha) { '12d65c8dd2b2676fa3ac47d955accc085a37a9c1' } subject do opts = { - branch: branch_name, start_sha: start_sha, end_sha: end_sha, author: user, |