BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
ac6eb51b
Commit
ac6eb51b
authored
Apr 24, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename SwapTraceChunkWorker to BuildTraceSwapChunkWorker
parent
8a7654a5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
job_trace_chunk.rb
app/models/ci/job_trace_chunk.rb
+1
-1
all_queues.yml
app/workers/all_queues.yml
+1
-1
build_trace_swap_chunk_worker.rb
app/workers/build_trace_swap_chunk_worker.rb
+1
-1
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 @
ac6eb51b
...
...
@@ -92,7 +92,7 @@ module Ci
def
schedule_to_db
return
if
db?
SwapTrace
ChunkWorker
.
perform_async
(
id
)
BuildTraceSwap
ChunkWorker
.
perform_async
(
id
)
end
def
fullfilled?
...
...
app/workers/all_queues.yml
View file @
ac6eb51b
...
...
@@ -65,7 +65,7 @@
-
pipeline_processing:pipeline_update
-
pipeline_processing:stage_update
-
pipeline_processing:update_head_pipeline_for_merge_request
-
pipeline_processing:
swap_trace
_chunk
-
pipeline_processing:
build_trace_swap
_chunk
-
repository_check:repository_check_clear
-
repository_check:repository_check_single_repository
...
...
app/workers/
swap_trace
_chunk_worker.rb
→
app/workers/
build_trace_swap
_chunk_worker.rb
View file @
ac6eb51b
class
SwapTrace
ChunkWorker
class
BuildTraceSwap
ChunkWorker
include
ApplicationWorker
include
PipelineQueue
...
...
spec/models/ci/job_trace_chunk_spec.rb
View file @
ac6eb51b
...
...
@@ -71,7 +71,7 @@ describe Ci::JobTraceChunk, :clean_gitlab_redis_shared_state do
let
(
:value
)
{
'a'
*
described_class
::
CHUNK_SIZE
}
it
'schedules stashing data'
do
expect
(
SwapTrace
ChunkWorker
).
to
receive
(
:perform_async
).
once
expect
(
BuildTraceSwap
ChunkWorker
).
to
receive
(
:perform_async
).
once
subject
end
...
...
@@ -108,7 +108,7 @@ describe Ci::JobTraceChunk, :clean_gitlab_redis_shared_state do
context
'when fullfilled chunk size'
do
it
'does not schedule stashing data'
do
expect
(
SwapTrace
ChunkWorker
).
not_to
receive
(
:perform_async
)
expect
(
BuildTraceSwap
ChunkWorker
).
not_to
receive
(
:perform_async
)
subject
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