Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
235cb87e
Commit
235cb87e
authored
Aug 03, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CE->EE merge: resolve conflicts in gitaly support code
parent
0e4f747b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
20 deletions
+4
-20
lib/tasks/gitlab/gitaly.rake
lib/tasks/gitlab/gitaly.rake
+0
-4
scripts/gitaly-test-build
scripts/gitaly-test-build
+0
-7
spec/tasks/gitlab/gitaly_rake_spec.rb
spec/tasks/gitlab/gitaly_rake_spec.rb
+4
-9
No files found.
lib/tasks/gitlab/gitaly.rake
View file @
235cb87e
...
@@ -21,11 +21,7 @@ namespace :gitlab do
...
@@ -21,11 +21,7 @@ namespace :gitlab do
create_gitaly_configuration
create_gitaly_configuration
# In CI we run scripts/gitaly-test-build instead of this command
# In CI we run scripts/gitaly-test-build instead of this command
unless
ENV
[
'CI'
].
present?
unless
ENV
[
'CI'
].
present?
<<<<<<<
HEAD
Bundler
.
with_original_env
{
run_command!
(
%w[/usr/bin/env -u BUNDLE_GEMFILE]
+
[
command
])
}
=======
Bundler
.
with_original_env
{
run_command!
([
command
])
}
Bundler
.
with_original_env
{
run_command!
([
command
])
}
>>>>>>>
ce
/
master
end
end
end
end
end
end
...
...
scripts/gitaly-test-build
View file @
235cb87e
#!/usr/bin/env ruby
#!/usr/bin/env ruby
<<<<<<<
HEAD
=======
require
'fileutils'
require
'fileutils'
>>>>>>>
ce
/
master
# This script assumes tmp/tests/gitaly already contains the correct
# This script assumes tmp/tests/gitaly already contains the correct
# Gitaly version. We just have to compile it and run its 'bundle
# Gitaly version. We just have to compile it and run its 'bundle
# install'. We have this separate script for that because weird things
# install'. We have this separate script for that because weird things
...
@@ -12,9 +9,6 @@ require 'fileutils'
...
@@ -12,9 +9,6 @@ require 'fileutils'
# called 'bundle install' using a different Gemfile, as happens with
# called 'bundle install' using a different Gemfile, as happens with
# gitlab-ce and gitaly.
# gitlab-ce and gitaly.
<<<<<<<
HEAD
abort
'gitaly build failed'
unless
system
(
'make'
,
chdir:
'tmp/tests/gitaly'
)
=======
dir
=
'tmp/tests/gitaly'
dir
=
'tmp/tests/gitaly'
abort
'gitaly build failed'
unless
system
(
'make'
,
chdir:
dir
)
abort
'gitaly build failed'
unless
system
(
'make'
,
chdir:
dir
)
...
@@ -23,4 +17,3 @@ abort 'gitaly build failed' unless system('make', chdir: dir)
...
@@ -23,4 +17,3 @@ abort 'gitaly build failed' unless system('make', chdir: dir)
# Without this a gitaly executable created in the setup-test-env job
# Without this a gitaly executable created in the setup-test-env job
# will look stale compared to GITALY_SERVER_VERSION.
# will look stale compared to GITALY_SERVER_VERSION.
FileUtils
.
touch
(
File
.
join
(
dir
,
'gitaly'
),
mtime:
Time
.
now
+
(
1
<<
24
))
FileUtils
.
touch
(
File
.
join
(
dir
,
'gitaly'
),
mtime:
Time
.
now
+
(
1
<<
24
))
>>>>>>>
ce
/
master
spec/tasks/gitlab/gitaly_rake_spec.rb
View file @
235cb87e
...
@@ -41,11 +41,6 @@ describe 'gitlab:gitaly namespace rake task' do
...
@@ -41,11 +41,6 @@ describe 'gitlab:gitaly namespace rake task' do
end
end
describe
'gmake/make'
do
describe
'gmake/make'
do
<<<<<<<
HEAD
let
(
:command_preamble
)
{
%w[/usr/bin/env -u BUNDLE_GEMFILE]
}
=======
>>>>>>>
ce
/
master
before
(
:all
)
do
before
(
:all
)
do
@old_env_ci
=
ENV
.
delete
(
'CI'
)
@old_env_ci
=
ENV
.
delete
(
'CI'
)
end
end
...
@@ -62,12 +57,12 @@ describe 'gitlab:gitaly namespace rake task' do
...
@@ -62,12 +57,12 @@ describe 'gitlab:gitaly namespace rake task' do
context
'gmake is available'
do
context
'gmake is available'
do
before
do
before
do
expect_any_instance_of
(
Object
).
to
receive
(
:checkout_or_clone_version
)
expect_any_instance_of
(
Object
).
to
receive
(
:checkout_or_clone_version
)
allow_any_instance_of
(
Object
).
to
receive
(
:run_command!
).
with
(
command_preamble
+
[
'gmake'
]).
and_return
(
true
)
allow_any_instance_of
(
Object
).
to
receive
(
:run_command!
).
with
([
'gmake'
]).
and_return
(
true
)
end
end
it
'calls gmake in the gitaly directory'
do
it
'calls gmake in the gitaly directory'
do
expect
(
Gitlab
::
Popen
).
to
receive
(
:popen
).
with
(
%w[which gmake]
).
and_return
([
'/usr/bin/gmake'
,
0
])
expect
(
Gitlab
::
Popen
).
to
receive
(
:popen
).
with
(
%w[which gmake]
).
and_return
([
'/usr/bin/gmake'
,
0
])
expect_any_instance_of
(
Object
).
to
receive
(
:run_command!
).
with
(
command_preamble
+
[
'gmake'
]).
and_return
(
true
)
expect_any_instance_of
(
Object
).
to
receive
(
:run_command!
).
with
([
'gmake'
]).
and_return
(
true
)
run_rake_task
(
'gitlab:gitaly:install'
,
clone_path
)
run_rake_task
(
'gitlab:gitaly:install'
,
clone_path
)
end
end
...
@@ -76,12 +71,12 @@ describe 'gitlab:gitaly namespace rake task' do
...
@@ -76,12 +71,12 @@ describe 'gitlab:gitaly namespace rake task' do
context
'gmake is not available'
do
context
'gmake is not available'
do
before
do
before
do
expect_any_instance_of
(
Object
).
to
receive
(
:checkout_or_clone_version
)
expect_any_instance_of
(
Object
).
to
receive
(
:checkout_or_clone_version
)
allow_any_instance_of
(
Object
).
to
receive
(
:run_command!
).
with
(
command_preamble
+
[
'make'
]).
and_return
(
true
)
allow_any_instance_of
(
Object
).
to
receive
(
:run_command!
).
with
([
'make'
]).
and_return
(
true
)
end
end
it
'calls make in the gitaly directory'
do
it
'calls make in the gitaly directory'
do
expect
(
Gitlab
::
Popen
).
to
receive
(
:popen
).
with
(
%w[which gmake]
).
and_return
([
''
,
42
])
expect
(
Gitlab
::
Popen
).
to
receive
(
:popen
).
with
(
%w[which gmake]
).
and_return
([
''
,
42
])
expect_any_instance_of
(
Object
).
to
receive
(
:run_command!
).
with
(
command_preamble
+
[
'make'
]).
and_return
(
true
)
expect_any_instance_of
(
Object
).
to
receive
(
:run_command!
).
with
([
'make'
]).
and_return
(
true
)
run_rake_task
(
'gitlab:gitaly:install'
,
clone_path
)
run_rake_task
(
'gitlab:gitaly:install'
,
clone_path
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment