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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
f8f62ea5
Commit
f8f62ea5
authored
Apr 05, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename to SwapTraceChunkWorker from StashTraceChunkWorker
parent
242b4afa
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3432 additions
and
66 deletions
+3432
-66
app/models/ci/job_trace_chunk.rb
app/models/ci/job_trace_chunk.rb
+1
-1
app/workers/all_queues.yml
app/workers/all_queues.yml
+1
-1
app/workers/swap_trace_chunk_worker.rb
app/workers/swap_trace_chunk_worker.rb
+1
-1
spec/fixtures/trace/sample_trace
spec/fixtures/trace/sample_trace
+3427
-61
spec/models/ci/job_trace_chunk_spec.rb
spec/models/ci/job_trace_chunk_spec.rb
+2
-2
No files found.
app/models/ci/job_trace_chunk.rb
View file @
f8f62ea5
...
@@ -84,7 +84,7 @@ module Ci
...
@@ -84,7 +84,7 @@ module Ci
def
schedule_to_db
def
schedule_to_db
return
if
db?
return
if
db?
S
tash
TraceChunkWorker
.
perform_async
(
id
)
S
wap
TraceChunkWorker
.
perform_async
(
id
)
end
end
def
fullfilled?
def
fullfilled?
...
...
app/workers/all_queues.yml
View file @
f8f62ea5
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
-
pipeline_processing:pipeline_update
-
pipeline_processing:pipeline_update
-
pipeline_processing:stage_update
-
pipeline_processing:stage_update
-
pipeline_processing:update_head_pipeline_for_merge_request
-
pipeline_processing:update_head_pipeline_for_merge_request
-
pipeline_processing:s
tash
_trace_chunk
-
pipeline_processing:s
wap
_trace_chunk
-
repository_check:repository_check_clear
-
repository_check:repository_check_clear
-
repository_check:repository_check_single_repository
-
repository_check:repository_check_single_repository
...
...
app/workers/s
tash
_trace_chunk_worker.rb
→
app/workers/s
wap
_trace_chunk_worker.rb
View file @
f8f62ea5
class
S
tash
TraceChunkWorker
class
S
wap
TraceChunkWorker
include
ApplicationWorker
include
ApplicationWorker
include
PipelineQueue
include
PipelineQueue
...
...
spec/fixtures/trace/sample_trace
View file @
f8f62ea5
This source diff could not be displayed because it is too large. You can
view the blob
instead.
spec/models/ci/job_trace_chunk_spec.rb
View file @
f8f62ea5
...
@@ -70,7 +70,7 @@ describe Ci::JobTraceChunk, :clean_gitlab_redis_shared_state do
...
@@ -70,7 +70,7 @@ describe Ci::JobTraceChunk, :clean_gitlab_redis_shared_state do
let
(
:value
)
{
'a'
*
described_class
::
CHUNK_SIZE
}
let
(
:value
)
{
'a'
*
described_class
::
CHUNK_SIZE
}
it
'schedules stashing data'
do
it
'schedules stashing data'
do
expect
(
S
tash
TraceChunkWorker
).
to
receive
(
:perform_async
).
once
expect
(
S
wap
TraceChunkWorker
).
to
receive
(
:perform_async
).
once
subject
subject
end
end
...
@@ -107,7 +107,7 @@ describe Ci::JobTraceChunk, :clean_gitlab_redis_shared_state do
...
@@ -107,7 +107,7 @@ describe Ci::JobTraceChunk, :clean_gitlab_redis_shared_state do
context
'when fullfilled chunk size'
do
context
'when fullfilled chunk size'
do
it
'does not schedule stashing data'
do
it
'does not schedule stashing data'
do
expect
(
S
tash
TraceChunkWorker
).
not_to
receive
(
:perform_async
)
expect
(
S
wap
TraceChunkWorker
).
not_to
receive
(
:perform_async
)
subject
subject
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