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
9d75d01f
Commit
9d75d01f
authored
Nov 22, 2018
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into ce-to-ee-2018-11-22
parents
ee5be26d
a033faa2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
4 deletions
+28
-4
app/models/clusters/applications/runner.rb
app/models/clusters/applications/runner.rb
+1
-1
changelogs/unreleased/dm-batch-loader-sidekiq.yml
changelogs/unreleased/dm-batch-loader-sidekiq.yml
+5
-0
changelogs/unreleased/update-gitlab-runner-helm-chart-version.yml
...gs/unreleased/update-gitlab-runner-helm-chart-version.yml
+5
-0
config/initializers/sidekiq.rb
config/initializers/sidekiq.rb
+1
-0
lib/gitlab/sidekiq_middleware/batch_loader.rb
lib/gitlab/sidekiq_middleware/batch_loader.rb
+13
-0
spec/models/clusters/applications/runner_spec.rb
spec/models/clusters/applications/runner_spec.rb
+3
-3
No files found.
app/models/clusters/applications/runner.rb
View file @
9d75d01f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
module
Clusters
module
Clusters
module
Applications
module
Applications
class
Runner
<
ActiveRecord
::
Base
class
Runner
<
ActiveRecord
::
Base
VERSION
=
'0.1.3
5
'
.
freeze
VERSION
=
'0.1.3
8
'
.
freeze
self
.
table_name
=
'clusters_applications_runners'
self
.
table_name
=
'clusters_applications_runners'
...
...
changelogs/unreleased/dm-batch-loader-sidekiq.yml
0 → 100644
View file @
9d75d01f
---
title
:
Clear BatchLoader context between Sidekiq jobs
merge_request
:
23308
author
:
type
:
fixed
changelogs/unreleased/update-gitlab-runner-helm-chart-version.yml
0 → 100644
View file @
9d75d01f
---
title
:
Update used version of Runner Helm Chart to 0.1.38
merge_request
:
23304
author
:
type
:
other
config/initializers/sidekiq.rb
View file @
9d75d01f
...
@@ -20,6 +20,7 @@ Sidekiq.configure_server do |config|
...
@@ -20,6 +20,7 @@ Sidekiq.configure_server do |config|
chain
.
add
Gitlab
::
SidekiqMiddleware
::
ArgumentsLogger
if
ENV
[
'SIDEKIQ_LOG_ARGUMENTS'
]
&&
!
enable_json_logs
chain
.
add
Gitlab
::
SidekiqMiddleware
::
ArgumentsLogger
if
ENV
[
'SIDEKIQ_LOG_ARGUMENTS'
]
&&
!
enable_json_logs
chain
.
add
Gitlab
::
SidekiqMiddleware
::
Shutdown
chain
.
add
Gitlab
::
SidekiqMiddleware
::
Shutdown
chain
.
add
Gitlab
::
SidekiqMiddleware
::
RequestStoreMiddleware
unless
ENV
[
'SIDEKIQ_REQUEST_STORE'
]
==
'0'
chain
.
add
Gitlab
::
SidekiqMiddleware
::
RequestStoreMiddleware
unless
ENV
[
'SIDEKIQ_REQUEST_STORE'
]
==
'0'
chain
.
add
Gitlab
::
SidekiqMiddleware
::
BatchLoader
chain
.
add
Gitlab
::
SidekiqStatus
::
ServerMiddleware
chain
.
add
Gitlab
::
SidekiqStatus
::
ServerMiddleware
end
end
...
...
lib/gitlab/sidekiq_middleware/batch_loader.rb
0 → 100644
View file @
9d75d01f
# frozen_string_literal: true
module
Gitlab
module
SidekiqMiddleware
class
BatchLoader
def
call
(
worker
,
job
,
queue
)
yield
ensure
::
BatchLoader
::
Executor
.
clear_current
end
end
end
end
spec/models/clusters/applications/runner_spec.rb
View file @
9d75d01f
...
@@ -18,7 +18,7 @@ describe Clusters::Applications::Runner do
...
@@ -18,7 +18,7 @@ describe Clusters::Applications::Runner do
let
(
:application
)
{
create
(
:clusters_applications_runner
,
:scheduled
,
version:
'0.1.30'
)
}
let
(
:application
)
{
create
(
:clusters_applications_runner
,
:scheduled
,
version:
'0.1.30'
)
}
it
'updates the application version'
do
it
'updates the application version'
do
expect
(
application
.
reload
.
version
).
to
eq
(
'0.1.3
5
'
)
expect
(
application
.
reload
.
version
).
to
eq
(
'0.1.3
8
'
)
end
end
end
end
end
end
...
@@ -46,7 +46,7 @@ describe Clusters::Applications::Runner do
...
@@ -46,7 +46,7 @@ describe Clusters::Applications::Runner do
it
'should be initialized with 4 arguments'
do
it
'should be initialized with 4 arguments'
do
expect
(
subject
.
name
).
to
eq
(
'runner'
)
expect
(
subject
.
name
).
to
eq
(
'runner'
)
expect
(
subject
.
chart
).
to
eq
(
'runner/gitlab-runner'
)
expect
(
subject
.
chart
).
to
eq
(
'runner/gitlab-runner'
)
expect
(
subject
.
version
).
to
eq
(
'0.1.3
5
'
)
expect
(
subject
.
version
).
to
eq
(
'0.1.3
8
'
)
expect
(
subject
).
not_to
be_rbac
expect
(
subject
).
not_to
be_rbac
expect
(
subject
.
repository
).
to
eq
(
'https://charts.gitlab.io'
)
expect
(
subject
.
repository
).
to
eq
(
'https://charts.gitlab.io'
)
expect
(
subject
.
files
).
to
eq
(
gitlab_runner
.
files
)
expect
(
subject
.
files
).
to
eq
(
gitlab_runner
.
files
)
...
@@ -64,7 +64,7 @@ describe Clusters::Applications::Runner do
...
@@ -64,7 +64,7 @@ describe Clusters::Applications::Runner do
let
(
:gitlab_runner
)
{
create
(
:clusters_applications_runner
,
:errored
,
runner:
ci_runner
,
version:
'0.1.13'
)
}
let
(
:gitlab_runner
)
{
create
(
:clusters_applications_runner
,
:errored
,
runner:
ci_runner
,
version:
'0.1.13'
)
}
it
'should be initialized with the locked version'
do
it
'should be initialized with the locked version'
do
expect
(
subject
.
version
).
to
eq
(
'0.1.3
5
'
)
expect
(
subject
.
version
).
to
eq
(
'0.1.3
8
'
)
end
end
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