Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gpt
large_projects
gitlabhq1
Commits
8a7654a5
Commit
8a7654a5
authored
7 years ago
by
Shinya Maeda
Browse files
Options
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
def
use_database!
in_lock
do
re
turn
if
db?
re
turn
unless
size
>
0
b
re
ak
if
db?
b
re
ak
unless
size
>
0
self
.
update!
(
raw_data:
data
,
data_store: :db
)
redis_delete_data
...
...
This diff is collapsed.
Click to expand it.
spec/lib/gitlab/ci/trace_spec.rb
View file @
8a7654a5
...
...
@@ -535,7 +535,7 @@ describe Gitlab::Ci::Trace, :clean_gitlab_redis_cache do
context
'when job does not have trace artifact'
do
context
'when trace file stored in default path'
do
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
}
before
do
...
...
This diff is collapsed.
Click to expand it.
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