summaryrefslogtreecommitdiff
path: root/app/workers/repository_check
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-07-291-1/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-07-214-0/+8
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-07-121-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-05-112-2/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-04-304-0/+8
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-06-242-3/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-06-121-0/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-04-122-4/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-194-4/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-101-1/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-041-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-181-0/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-132-0/+4
|
* Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-113-0/+10
| | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* Enable frozen string in newly added filesgfyoung2018-07-211-0/+2
| | | | | | | | Enables frozen string for new files in directories that had been previously covered in previous MR's. Partially addresses #47424.
* Add ExclusiveLease guards for RepositoryCheck::{DispatchWorker,BatchWorker}Stan Hu2018-07-062-4/+29
| | | | | | | | | | | | | We saw in production that DispatchWorker was running about twice an hour, which would schedule twice as many jobs as it should. For some reason, BatchWorker was running 1000 times per hour, possibly due to Sidekiq RSS kills that caused these jobs to restart. Adding an ExclusiveLease prevents these jobs from running more than they should. Relates to https://gitlab.com/gitlab-com/infrastructure/issues/4526
* Rename method to #each_eligible_shardToon Claes2018-06-271-1/+1
|
* Add RepositoryCheck::DispatchWorker to start worker per shardToon Claes2018-06-272-4/+28
| | | | | | | The RepositoryCheck::DispatchWorker will start a RepositoryCheck::BatchWorker for each healthy shard. Closes gitlab-org/gitlab-ce#48042
* Enable frozen string for app/workers/**/*.rbgfyoung2018-06-273-0/+6
| | | | Partially addresses #47424.
* Use push events again to determine if repo needs checkingToon Claes2018-05-072-18/+16
|
* Rename methods to make it more clear what they doToon Claes2018-05-072-12/+14
|
* Refactor RepositoryCheck::BatchWorkerToon Claes2018-05-071-8/+23
| | | | For easier overriding methods.
* Pass the result as a positive boolToon Claes2018-05-071-3/+4
|
* Fix incorrect break statementToon Claes2018-05-071-1/+1
|
* Due to caching, there is no need to check the settings every loopToon Claes2018-05-071-1/+2
|
* Make it easier to override how to save the resultsToon Claes2018-05-071-3/+8
|
* Refactor RepositoryCheck::SingleRepositoryWorkerToon Claes2018-05-071-12/+18
| | | | | | | | | | A repo does not need pushes before it will be repo-checked. There are other sources where commits can come from (e.g. import or webIDE). In the test I made the method of breaking a repo more robust. And added a few test examples. See also gitlab-org/gitlab-ce#45046.
* Remove `Rails.env.test?` from production codeToon Claes2018-05-071-12/+1
|
* Look for rugged with static analysislint-ruggedJacob Vosmaer2018-01-251-4/+1
|
* Add ApplicationWorker and make every worker include itDouwe Maan2017-12-053-3/+3
|
* Move SingleRepositoryWorker#fsck into Gitlab::Git::RepositoryKim "BKC" Carlbäcker2017-12-041-9/+7
|
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-4/+4
|
* Enable the Style/TrailingCommaInArguments copRémy Coutable2017-05-102-2/+2
| | | | | | Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Re-organize queues to use for Sidekiqseparate-sidekiq-queuesYorick Peterse2016-10-213-15/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Dumping too many jobs in the same queue (e.g. the "default" queue) is a dangerous setup. Jobs that take a long time to process can effectively block any other work from being performed given there are enough of these jobs. Furthermore it becomes harder to monitor the jobs as a single queue could contain jobs for different workers. In such a setup the only reliable way of getting counts per job is to iterate over all jobs in a queue, which is a rather time consuming process. By using separate queues for various workers we have better control over throughput, we can add weight to queues, and we can monitor queues better. Some workers still use the same queue whenever their work is related. For example, the various CI pipeline workers use the same "pipeline" queue. This commit includes a Rails migration that moves Sidekiq jobs from the old queues to the new ones. This migration also takes care of doing the inverse if ever needed. This does require downtime as otherwise new jobs could be scheduled in the old queues after this migration completes. This commit also includes an RSpec test that blacklists the use of the "default" queue and ensures cron workers use the "cronjob" queue. Fixes gitlab-org/gitlab-ce#23370
* Do not check repos without push eventsJacob Vosmaer2016-06-151-1/+5
|
* Merge branch 'create-wikis-during-check' into 'master' Douwe Maan2016-05-041-11/+23
|\ | | | | | | | | | | | | | | | | Initialize wikis on legacy projects during check Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/4173 Helps https://gitlab.com/gitlab-org/gitlab-ce/issues/15423 See merge request !3931
| * Initialize wikis on legacy projects during checkJacob Vosmaer2016-04-261-11/+23
| |
* | Do not fsck projects less than a day oldJacob Vosmaer2016-04-261-2/+2
|/ | | | This should bring the number of false positives down.
* When a project wiki is disabled skip it for fsckJacob Vosmaer2016-04-181-3/+3
|
* Shut up, RubocopRobert Speicher2016-04-141-3/+3
|
* Use more conservative limitsJacob Vosmaer2016-04-132-3/+3
|
* Clear repository check columns asynchronouslyJacob Vosmaer2016-04-133-0/+116