GitLab Bot
e5e0589e09
Add latest changes from gitlab-org/gitlab@master
2021-04-26 12:09:44 +00:00
GitLab Bot
bfc7eec58e
Add latest changes from gitlab-org/gitlab@master
2021-01-18 15:10:42 +00:00
GitLab Bot
afed1a4be1
Add latest changes from gitlab-org/gitlab@master
2020-09-17 09:09:32 +00:00
GitLab Bot
537882ad40
Add latest changes from gitlab-org/gitlab@master
2020-09-10 00:08:32 +00:00
GitLab Bot
71da5de44f
Add latest changes from gitlab-org/gitlab@master
2020-08-05 15:09:59 +00:00
GitLab Bot
ed73d4f207
Add latest changes from gitlab-org/gitlab@master
2019-12-06 03:08:02 +00:00
Gabriel Mazetto
d8cad8837c
Display the amount for Hashed Storage migration/rollback correctly
...
Rake script considers the specified range, if present, to calculate
the affected amount of projects correctly.
2019-07-10 22:14:50 +01:00
Mayra Cabrera
0ab89d8e36
Add a rubocop for Rails.logger
...
Suggests to use a JSON structured log instead
Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/54102
2019-07-10 19:26:47 +00:00
Gabriel Mazetto
523712d116
Fix storage migration check for non-empty queues
...
The previous code works fine when running specs, but the API
does not exist outside that environment.
2019-03-17 00:27:38 +01:00
Gabriel Mazetto
337977776a
Prevent storage migration and rollback running at the same time
...
This is a small polishing on the storage migration and storage rollback
rake tasks. By aborting a migration while a rollback is already
scheduled we want to prevent unexpected consequences.
2019-03-12 17:51:05 +01:00
Gabriel Mazetto
fc0ff92807
Added Rollbacker workers and support on the rake task
...
Rollback is done similar to Migration for the Hashed Storage.
It also shares the same ExclusiveLease key to prevent both happening
at the same time.
All Hashed Storage related workers now share the same queue namespace
which allows for assigning dedicated workers easily.
2019-03-01 15:49:20 +01:00
Gabriel Mazetto
1592b5830f
Adds Rollback functionality to HashedStorage migration
...
We are adding sidekiq workers and service classes to allow to rollback
a hashed storage migration. There are some refactoring involved as well
as part of the code can be reused by both the migration and the rollback
logic.
2019-03-01 15:49:20 +01:00
Gabriel Mazetto
7bc16889df
Refactor Storage Migration
...
Specs were reviewed and improved to better cover the current behavior.
There was some standardization done as well to facilitate the
implementation of the rollback functionality.
StorageMigratorWorker was extracted to HashedStorage namespace were
RollbackerWorker will live one as well.
2019-01-25 20:26:35 +01:00
Gabriel Mazetto
c2c34eba62
Prepare rake task for storage rollback
...
We are keeping compatibility with existing scheduled jobs.
2019-01-25 20:26:35 +01:00
gfyoung
ebf98f27c4
Enable even more frozen string in lib/gitlab
...
Enables frozen string for the following:
* lib/gitlab/fogbugz_import/**/*.rb
* lib/gitlab/gfm/**/*.rb
* lib/gitlab/git/**/*.rb
* lib/gitlab/gitaly_client/**/*.rb
* lib/gitlab/gitlab_import/**/*.rb
* lib/gitlab/google_code_import/**/*.rb
* lib/gitlab/gpg/**/*.rb
* lib/gitlab/grape_logging/**/*.rb
* lib/gitlab/graphql/**/*.rb
* lib/gitlab/graphs/**/*.rb
* lib/gitlab/hashed_storage/**/*.rb
* lib/gitlab/health_checks/**/*.rb
Partially address gitlab-org/gitlab-ce#47424 .
2018-11-13 11:42:15 -08:00
Yorick Peterse
2039c8280d
Disable existing offenses for the CodeReuse cops
...
This whitelists all existing offenses for the various CodeReuse cops, of
which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-11 17:32:00 +02:00
Valery Sizov
10df0eb7cb
Resolve "Hashed storage: extend "Enable hashed storage for all new projects" to "for all new and renamed projects""
2018-08-03 14:34:28 +00:00
Gabriel Mazetto
36c3376475
Resolve "Hashed Storage: Make possible to migrate single project"
2018-06-07 15:40:44 +00:00
Gabriel Mazetto
b384d5e544
refactor to remove duplication
2018-05-28 23:39:36 +02:00
Gabriel Mazetto
818b4d0a19
Refactor RakeHelper to reduce complexity
2018-05-28 23:39:36 +02:00
Gabriel Mazetto
78d25079f5
Extracted auxiliary methods from storage.rake into specific RakeHelper
2018-05-28 23:39:35 +02:00