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
6791eefe
Commit
6791eefe
authored
Oct 21, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@master
parent
8e39b3a3
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
23 additions
and
39 deletions
+23
-39
doc/administration/gitaly/index.md
doc/administration/gitaly/index.md
+5
-0
lib/gitlab/git/commit.rb
lib/gitlab/git/commit.rb
+0
-4
lib/gitlab/gitaly_client/commit_service.rb
lib/gitlab/gitaly_client/commit_service.rb
+0
-19
scripts/review_apps/base-config.yaml
scripts/review_apps/base-config.yaml
+2
-2
spec/lib/gitlab/git/commit_spec.rb
spec/lib/gitlab/git/commit_spec.rb
+4
-14
spec/mailers/abuse_report_mailer_spec.rb
spec/mailers/abuse_report_mailer_spec.rb
+2
-0
spec/mailers/emails/merge_requests_spec.rb
spec/mailers/emails/merge_requests_spec.rb
+2
-0
spec/mailers/emails/pages_domains_spec.rb
spec/mailers/emails/pages_domains_spec.rb
+2
-0
spec/mailers/emails/profile_spec.rb
spec/mailers/emails/profile_spec.rb
+2
-0
spec/mailers/notify_spec.rb
spec/mailers/notify_spec.rb
+2
-0
spec/mailers/repository_check_mailer_spec.rb
spec/mailers/repository_check_mailer_spec.rb
+2
-0
No files found.
doc/administration/gitaly/index.md
View file @
6791eefe
...
...
@@ -222,6 +222,11 @@ Check the directory layout on your Gitaly server to be sure.
[auth]
token
=
'abc123secret'
[logging]
format
=
'json'
level
=
'info'
dir
=
'/var/log/gitaly'
```
1.
Append the following to
`/home/git/gitaly/config.toml`
for each respective server:
...
...
lib/gitlab/git/commit.rb
View file @
6791eefe
...
...
@@ -155,10 +155,6 @@ module Gitlab
end
end
def
extract_signature
(
repository
,
commit_id
)
repository
.
gitaly_commit_client
.
extract_signature
(
commit_id
)
end
def
extract_signature_lazily
(
repository
,
commit_id
)
BatchLoader
.
for
(
commit_id
).
batch
(
key:
repository
)
do
|
commit_ids
,
loader
,
args
|
batch_signature_extraction
(
args
[
:key
],
commit_ids
).
each
do
|
commit_id
,
signature_data
|
...
...
lib/gitlab/gitaly_client/commit_service.rb
View file @
6791eefe
...
...
@@ -348,25 +348,6 @@ module Gitlab
end
end
def
extract_signature
(
commit_id
)
request
=
Gitaly
::
ExtractCommitSignatureRequest
.
new
(
repository:
@gitaly_repo
,
commit_id:
commit_id
)
response
=
GitalyClient
.
call
(
@repository
.
storage
,
:commit_service
,
:extract_commit_signature
,
request
,
timeout:
GitalyClient
.
fast_timeout
)
signature
=
+
''
.
b
signed_text
=
+
''
.
b
response
.
each
do
|
message
|
signature
<<
message
.
signature
signed_text
<<
message
.
signed_text
end
return
if
signature
.
blank?
&&
signed_text
.
blank?
[
signature
,
signed_text
]
rescue
GRPC
::
InvalidArgument
=>
ex
raise
ArgumentError
,
ex
end
def
get_commit_signatures
(
commit_ids
)
request
=
Gitaly
::
GetCommitSignaturesRequest
.
new
(
repository:
@gitaly_repo
,
commit_ids:
commit_ids
)
response
=
GitalyClient
.
call
(
@repository
.
storage
,
:commit_service
,
:get_commit_signatures
,
request
,
timeout:
GitalyClient
.
fast_timeout
)
...
...
scripts/review_apps/base-config.yaml
View file @
6791eefe
...
...
@@ -75,10 +75,10 @@ gitlab:
workhorse
:
resources
:
requests
:
cpu
:
175
m
cpu
:
300
m
memory
:
100M
limits
:
cpu
:
35
0m
cpu
:
60
0m
memory
:
200M
readinessProbe
:
initialDelaySeconds
:
5
# Default is 0
...
...
spec/lib/gitlab/git/commit_spec.rb
View file @
6791eefe
...
...
@@ -428,7 +428,9 @@ describe Gitlab::Git::Commit, :seed_helper do
end
end
shared_examples
'extracting commit signature'
do
describe
'.extract_signature_lazily'
do
subject
{
described_class
.
extract_signature_lazily
(
repository
,
commit_id
).
itself
}
context
'when the commit is signed'
do
let
(
:commit_id
)
{
'0b4bc9a49b562e85de7cc9e834518ea6828729b9'
}
...
...
@@ -492,10 +494,8 @@ describe Gitlab::Git::Commit, :seed_helper do
expect
{
subject
}.
to
raise_error
(
ArgumentError
)
end
end
end
describe
'.extract_signature_lazily'
do
describe
'loading signatures in batch once'
do
context
'when loading signatures in batch once'
do
it
'fetches signatures in batch once'
do
commit_ids
=
%w[0b4bc9a49b562e85de7cc9e834518ea6828729b9 4b4918a572fa86f9771e5ba40fbd48e1eb03e2c6]
signatures
=
commit_ids
.
map
do
|
commit_id
|
...
...
@@ -516,16 +516,6 @@ describe Gitlab::Git::Commit, :seed_helper do
2
.
times
{
signatures
.
each
(
&
:itself
)
}
end
end
subject
{
described_class
.
extract_signature_lazily
(
repository
,
commit_id
).
itself
}
it_behaves_like
'extracting commit signature'
end
describe
'.extract_signature'
do
subject
{
described_class
.
extract_signature
(
repository
,
commit_id
)
}
it_behaves_like
'extracting commit signature'
end
end
...
...
spec/mailers/abuse_report_mailer_spec.rb
View file @
6791eefe
# frozen_string_literal: true
require
'spec_helper'
describe
AbuseReportMailer
do
...
...
spec/mailers/emails/merge_requests_spec.rb
View file @
6791eefe
# frozen_string_literal: true
require
'spec_helper'
require
'email_spec'
...
...
spec/mailers/emails/pages_domains_spec.rb
View file @
6791eefe
# frozen_string_literal: true
require
'spec_helper'
require
'email_spec'
...
...
spec/mailers/emails/profile_spec.rb
View file @
6791eefe
# frozen_string_literal: true
require
'spec_helper'
require
'email_spec'
...
...
spec/mailers/notify_spec.rb
View file @
6791eefe
# frozen_string_literal: true
require
'spec_helper'
require
'email_spec'
...
...
spec/mailers/repository_check_mailer_spec.rb
View file @
6791eefe
# frozen_string_literal: true
require
'spec_helper'
describe
RepositoryCheckMailer
do
...
...
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