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
Jérome Perrin
gitlab-ce
Commits
2eafd494
Commit
2eafd494
authored
Dec 02, 2014
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release/7.5.2' into '7-5-stable'
Fixes for 7.5.2 See merge request !1283
parents
36679b57
ede9d47a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
2 deletions
+30
-2
CHANGELOG
CHANGELOG
+4
-0
config/initializers/4_sidekiq.rb
config/initializers/4_sidekiq.rb
+2
-1
doc/development/README.md
doc/development/README.md
+1
-0
doc/sidekiq_debugging.md
doc/sidekiq_debugging.md
+14
-0
lib/backup/repository.rb
lib/backup/repository.rb
+9
-1
No files found.
CHANGELOG
View file @
2eafd494
v 7.5.1
- Add missing timestamps to 'members' table
v 7.5.2
- Don't log Sidekiq arguments by default
- Fix restore of wiki repositories from backups
v 7.5.0
- API: Add support for Hipchat (Kevin Houdebert)
- Add time zone configuration on gitlab.yml (Sullivan Senechal)
...
...
config/initializers/4_sidekiq.rb
View file @
2eafd494
...
...
@@ -14,7 +14,8 @@ Sidekiq.configure_server do |config|
}
config
.
server_middleware
do
|
chain
|
chain
.
add
Gitlab
::
SidekiqMiddleware
::
ArgumentsLogger
chain
.
add
Gitlab
::
SidekiqMiddleware
::
ArgumentsLogger
if
ENV
[
'SIDEKIQ_LOG_ARGUMENTS'
]
chain
.
add
Gitlab
::
SidekiqMiddleware
::
MemoryKiller
if
ENV
[
'SIDEKIQ_MAX_RSS'
]
end
end
...
...
doc/development/README.md
View file @
2eafd494
...
...
@@ -4,3 +4,4 @@
-
[
Shell commands
](
shell_commands.md
)
in the GitLab codebase
-
[
Rake tasks
](
rake_tasks.md
)
for development
-
[
CI setup
](
ci_setup.md
)
for testing GitLab
-
[
Sidekiq debugging
](
sidekiq_debugging.md
)
doc/sidekiq_debugging.md
0 → 100644
View file @
2eafd494
# Sidekiq debugging
## Log arguments to Sidekiq jobs
If you want to see what arguments are being passed to Sidekiq jobs you can set
the SIDEKIQ_LOG_ARGUMENTS environment variable.
```
SIDEKIQ_LOG_ARGUMENTS=1 bundle exec foreman start
```
It is not recommend to enable this setting in production because some Sidekiq
jobs (such as sending a password reset email) take secret arguments (for
example the password reset token).
lib/backup/repository.rb
View file @
2eafd494
...
...
@@ -76,10 +76,18 @@ module Backup
if
File
.
exists?
(
path_to_bundle
(
wiki
))
print
" *
#{
wiki
.
path_with_namespace
}
... "
if
system
(
*
%W(git clone --bare
#{
path_to_bundle
(
wiki
)
}
#{
path_to_repo
(
wiki
)
}
)
,
silent
)
# If a wiki bundle exists, first remove the empty repo
# that was initialized with ProjectWiki.new() and then
# try to restore with 'git clone --bare'.
FileUtils
.
rm_rf
(
path_to_repo
(
wiki
))
cmd
=
%W(git clone --bare
#{
path_to_bundle
(
wiki
)
}
#{
path_to_repo
(
wiki
)
}
)
if
system
(
*
cmd
,
silent
)
puts
" [DONE]"
.
green
else
puts
" [FAILED]"
.
red
puts
"failed:
#{
cmd
.
join
(
' '
)
}
"
abort
'Restore failed'
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