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
8a7654a5
Commit
8a7654a5
authored
Apr 23, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix statis analysys
parent
bc43588c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/models/ci/job_trace_chunk.rb
app/models/ci/job_trace_chunk.rb
+2
-2
spec/lib/gitlab/ci/trace_spec.rb
spec/lib/gitlab/ci/trace_spec.rb
+1
-1
No files found.
app/models/ci/job_trace_chunk.rb
View file @
8a7654a5
...
@@ -79,8 +79,8 @@ module Ci
...
@@ -79,8 +79,8 @@ module Ci
def
use_database!
def
use_database!
in_lock
do
in_lock
do
return
if
db?
break
if
db?
return
unless
size
>
0
break
unless
size
>
0
self
.
update!
(
raw_data:
data
,
data_store: :db
)
self
.
update!
(
raw_data:
data
,
data_store: :db
)
redis_delete_data
redis_delete_data
...
...
spec/lib/gitlab/ci/trace_spec.rb
View file @
8a7654a5
...
@@ -535,7 +535,7 @@ describe Gitlab::Ci::Trace, :clean_gitlab_redis_cache do
...
@@ -535,7 +535,7 @@ describe Gitlab::Ci::Trace, :clean_gitlab_redis_cache do
context
'when job does not have trace artifact'
do
context
'when job does not have trace artifact'
do
context
'when trace file stored in default path'
do
context
'when trace file stored in default path'
do
let
(
:build
)
{
create
(
:ci_build
,
:success
,
:trace_live
)
}
let
(
:build
)
{
create
(
:ci_build
,
:success
,
:trace_live
)
}
let
(
:src_path
)
{
trace
.
read
{
|
s
|
return
s
.
path
}
}
let
(
:src_path
)
{
trace
.
read
{
|
s
|
s
.
path
}
}
let
(
:src_checksum
)
{
Digest
::
SHA256
.
file
(
src_path
).
hexdigest
}
let
(
:src_checksum
)
{
Digest
::
SHA256
.
file
(
src_path
).
hexdigest
}
before
do
before
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