Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-08-06Merge branch 'background-migrations-system-load' into 'master'Stan Hu
Respond to DB health in background migrations See merge request gitlab-org/gitlab-ce!20720
2018-08-06Respond to DB health in background migrationsYorick Peterse
This changes the BackgroundMigration worker so it checks for the health of the DB before performing a background migration. This in turn allows us to reduce the minimum interval, without having to worry about blowing things up if we schedule too many migrations. In this setup, the BackgroundMigration worker will reschedule jobs as long as the database is considered to be in an unhealthy state. Once the database has recovered, the migration can be performed. To determine if the database is in a healthy state, we look at the replication lag of any replication slots defined on the primary. If the lag is deemed to great (100 MB by default) for too many slots, the migration is rescheduled for a later point in time. The health checking code is hidden behind a feature flag, allowing us to disable it if necessary.
2018-08-03Resolve "Hashed storage: extend "Enable hashed storage for all new projects" ↵Valery Sizov
to "for all new and renamed projects""
2018-08-03Merge branch 'sh-fix-failing-gpg-signature-ce' into 'master'Robert Speicher
Make CreateGpgSignatureWorker backwards compatible with original method signature (CE port) See merge request gitlab-org/gitlab-ce!20998
2018-08-03Make CreateGpgSignatureWorker backwards compatible with original method ↵Stan Hu
signature Older versions of GitPushService push a single commit SHA string to the queue, but Gitaly requires that the parameters sent by CreateGpgSignatureWorker are an array. It's possible to have old workers using this original signature or jobs in the retry queue that would fail if CreateGpgSignatureWorker can't handle the string form.
2018-08-01Add repository languages for projectsZeger-Jan van de Weg
Our friends at GitHub show the programming languages for a long time, and inspired by that this commit means to create about the same functionality. Language detection is done through Linguist, as before, where the difference is that we cache the result in the database. Also, Gitaly can incrementaly scan a repository. This is done through a shell out, which creates overhead of about 3s each run. For now this won't be improved. Scans are triggered by pushed to the default branch, usually `master`. However, one exception to this rule the charts page. If we're requesting this expensive data anyway, we just cache it in the database. Edge cases where there is no repository, or its empty are caught in the Repository model. This makes use of Redis caching, which is probably already loaded. The added model is called RepositoryLanguage, which will make it harder if/when GitLab supports multiple repositories per project. However, for now I think this shouldn't be a concern. Also, Language could be confused with the i18n languages and felt like the current name was suiteable too. Design of the Project#Show page is done with help from @dimitrieh. This change is not visible to the end user unless detections are done.
2018-07-31Merge branch 'todos-visibility-change' into 'master'Sean McGivern
Delete todos when users loses target read permissions See merge request gitlab-org/gitlab-ce!20665
2018-07-31Remove todos when project feature visibility changesJarka Kadlecová
2018-07-30Fix typos in CreateGpgSignatureWorker specPeter Leitzen
2018-07-30Create GPG commit signature in bulkFrancisco Javier López
2018-07-30Delete todos when users loses target read permissionsJarka Kadlecová
2018-07-24Merge branch 'security-event-counters-private-data' into 'master'Felipe Artur Cardozo
[master] Don't expose project names in various counters See merge request gitlab/gitlabhq!2418
2018-07-23Replace 'Sidekiq::Testing.inline!' with 'perform_enqueued_jobs'blackst0ne
`perform_enqueued_jobs` is a Sidekiq method. Using this method violates the Dependency inversion principle[0]. This commit replaces `perform_enqueued_jobs` with ActiveJob's abstract method `perform_enqueued_jobs` in specs. [0]: https://en.wikipedia.org/wiki/Dependency_inversion_principle
2018-07-19Merge branch '43312-remove_user_activity_workers' into 'master'Rémy Coutable
Delete UserActivities and related workers Closes #43312 See merge request gitlab-org/gitlab-ce!20597
2018-07-19Improve email address parsingGeorge Thomas
If you enter the following RFC 2822 compliant address: `John Doe <john@doe.com>` Gitlab will attempt to send three emails: 1) John 2) Doe 3) john@doe.com With this change given the following: `John Doe <johndoe@example.com>` `Jane Doe <janedoe@example.com>` Gitlab will send emails to `johndoe@example.com` and `janedoe@example.com`
2018-07-18Delete UserActivities and related workersImre Farkas
2018-07-12Remove Repository#path memoizationJacob Vosmaer (GitLab)
2018-07-11Resolve "Rename the `Master` role to `Maintainer`" BackendMark Chao
2018-07-11Merge branch ↵Douwe Maan
'45592-nomethoderror-undefined-method-commit-for-nil-nilclass-in-sidekiq-caused-by-a-merge-commit-in-a-forked-project-with-upstream-project-deleted' into 'master' Resolve "NoMethodError: undefined method `commit' for nil:NilClass in sidekiq caused by a merge commit in a forked project with upstream project deleted." Closes #45592 See merge request gitlab-org/gitlab-ce!20534
2018-07-11Fix ArgumentError in GitGarbageCollectWorker Sidekiq jobStan Hu
When the Gitaly call failed, the exception handling failed because `method` is expected to have a parameter. Closes #49096
2018-07-10Fix ProcessCommitWorker when upstream project is deletedSean McGivern
2018-07-09Resolve Naming/UncommunicativeMethodLin Jen-Shin
2018-07-09Updates from `rubocop -a`Lin Jen-Shin
2018-07-06Add ExclusiveLease guards for RepositoryCheck::{DispatchWorker,BatchWorker}Stan Hu
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
2018-07-06Delete deprecated object_storage_upload queueJan Provaznik
2018-07-05Prevent WRITE opetaions if it's already archivedShinya Maeda
2018-07-05Fix specShinya Maeda
2018-07-04Revert "Merge branch ↵Sean McGivern
'44726-cancel_lease_upon_completion_in_project_cache_worker' into 'master'" This reverts merge request !20103
2018-07-02Prune web hook logs older than 90 daysYorick Peterse
This adds a recurring Sidekiq job that removes up to 50 000 old web hook logs per hour, if they are older than 90 days. This will prevent the web_hook_logs table from growing indefinitely. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/46120
2018-06-30Cancel ExclusiveLease upon completion in ProjectCacheWorkerImre Farkas
2018-06-29Add helper methods to stub Gitlab::ExclusiveLeaseDouglas Barbosa Alexandre
2018-06-27Add RepositoryCheck::DispatchWorker to start worker per shardToon Claes
The RepositoryCheck::DispatchWorker will start a RepositoryCheck::BatchWorker for each healthy shard. Closes gitlab-org/gitlab-ce#48042
2018-06-25Prefer `expect_next_instance_of` over `expect_any_instance_of`Lin Jen-Shin
2018-06-25Delete non-latest merge request diff files upon diffs reloadOswaldo Ferreira
2018-06-21Don't expose project names in various countersYorick Peterse
Various counters would expose either project names, or full project paths (e.g. "gitlab-org/gitlab-ce"). This commit changes various places where we use "add_event" so we no longer expose (potentially) private information.
2018-06-21Implement `expect_next_instance_of` and use itLin Jen-Shin
We need this because `expect_any_instance_of` doesn't work on prepended models. Now we could use the same code between CE/EE
2018-06-19Move forking to GitalyZeger-Jan van de Weg
Closes https://gitlab.com/gitlab-org/gitaly/issues/817 Closes https://gitlab.com/gitlab-org/gitaly/issues/1236
2018-06-18Merge branch 'rails5-queue-name' into 'master'Sean McGivern
Fix queue_name in Rails 5 Closes #47372 See merge request gitlab-org/gitlab-ce!19874
2018-06-15Fix queue_name in Rails 5Jan Provaznik
In Rails 5 DeliveryJob.queue_name may return Proc (probably if block is used for queue name definition). Instance method takes handles this already and returns string as expected.
2018-06-14Merge branch 'zj-mandatory-batch' into 'master'Sean McGivern
Move Gitaly RPCs to mandatory Closes gitaly#217, gitaly#389, gitaly#390, gitaly#220, gitaly#376, and gitaly#354 See merge request gitlab-org/gitlab-ce!19759
2018-06-14Deny repository disk access in development and testJacob Vosmaer (GitLab)
2018-06-13Move GC RPCs to mandatoryZeger-Jan van de Weg
Closes https://gitlab.com/gitlab-org/gitaly/issues/354
2018-06-12Merge branch 'gitaly-disk-access-3' into 'master'Douwe Maan
Find and mark more Git disk access locations, part 2 See merge request gitlab-org/gitlab-ce!19437
2018-06-12Find and mark more Git disk access locations, part 2Jacob Vosmaer
2018-06-11Work around limitations of expect_any_instance_of by stubbing Project.findStan Hu
2018-06-07Resolve "Hashed Storage: Make possible to migrate single project"Gabriel Mazetto
2018-06-06Support LFS objects when creating a project by importFrancisco Javier López
2018-06-06Move GC/Repack to OptOutKim Carlbäcker
2018-06-06Rename worker to ArchiveTracesCronWorkerShinya Maeda
2018-06-06Fix the query to select stale live tracesShinya Maeda