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
97775de3
Commit
97775de3
authored
Aug 13, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
ddbc9d7b
266211b9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
43 deletions
+0
-43
app/workers/all_queues.yml
app/workers/all_queues.yml
+0
-1
app/workers/build_process_worker.rb
app/workers/build_process_worker.rb
+0
-16
spec/workers/build_process_worker_spec.rb
spec/workers/build_process_worker_spec.rb
+0
-26
No files found.
app/workers/all_queues.yml
View file @
97775de3
...
@@ -88,7 +88,6 @@
...
@@ -88,7 +88,6 @@
-
pipeline_processing:ci_build_prepare
-
pipeline_processing:ci_build_prepare
-
pipeline_processing:build_queue
-
pipeline_processing:build_queue
-
pipeline_processing:build_success
-
pipeline_processing:build_success
-
pipeline_processing:build_process
-
pipeline_processing:pipeline_process
-
pipeline_processing:pipeline_process
-
pipeline_processing:pipeline_success
-
pipeline_processing:pipeline_success
-
pipeline_processing:pipeline_update
-
pipeline_processing:pipeline_update
...
...
app/workers/build_process_worker.rb
deleted
100644 → 0
View file @
ddbc9d7b
# frozen_string_literal: true
class
BuildProcessWorker
include
ApplicationWorker
include
PipelineQueue
queue_namespace
:pipeline_processing
# rubocop: disable CodeReuse/ActiveRecord
def
perform
(
build_id
)
CommitStatus
.
find_by
(
id:
build_id
).
try
do
|
build
|
build
.
pipeline
.
process!
([
build_id
])
end
end
# rubocop: enable CodeReuse/ActiveRecord
end
spec/workers/build_process_worker_spec.rb
deleted
100644 → 0
View file @
ddbc9d7b
# frozen_string_literal: true
require
'spec_helper'
describe
BuildProcessWorker
do
describe
'#perform'
do
context
'when build exists'
do
let
(
:pipeline
)
{
create
(
:ci_pipeline
)
}
let
(
:build
)
{
create
(
:ci_build
,
pipeline:
pipeline
)
}
it
'processes build'
do
expect_any_instance_of
(
Ci
::
Pipeline
).
to
receive
(
:process!
)
.
with
([
build
.
id
])
described_class
.
new
.
perform
(
build
.
id
)
end
end
context
'when build does not exist'
do
it
'does not raise exception'
do
expect
{
described_class
.
new
.
perform
(
123
)
}
.
not_to
raise_error
end
end
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