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
2017-11-13Add Gitlab::Utils::StrongMemoizeLin Jen-Shin (godfat)
2017-11-11Move update_project_counter_caches? out of issue and merge requestGeorge Andrinopoulos
2017-11-10Prevent fast forward merge when rebase is requiredFelipe Artur
2017-11-08Merge branch 'dm-notes-for-commit-id' into 'master'Rémy Coutable
Use Commit#notes and Note.for_commit_id when possible to make sure we use all indexes available to us Closes #34509 See merge request gitlab-org/gitlab-ce!15253
2017-11-08Merge branch 'github-importer-refactor' into 'master'Douwe Maan
Rewrite the GitHub importer to perform work in parallel and greatly improve performance Closes #33135, #38621, and #39361 See merge request gitlab-org/gitlab-ce!14731
2017-11-08Use Commit#notes and Note.for_commit_id when possible to make sure we use ↵Douwe Maan
all the indexes available to us
2017-11-08Merge branch 'tc-delete-merged-protected-tags-fix' into 'master'Douwe Maan
When deleting merged branches, ignore protected tags Closes #39732 See merge request gitlab-org/gitlab-ce!15252
2017-11-08Replace old GH importer with the parallel importerYorick Peterse
2017-11-08Rewrite the GitHub importer from scratchYorick Peterse
Prior to this MR there were two GitHub related importers: * Github::Import: the main importer used for GitHub projects * Gitlab::GithubImport: importer that's somewhat confusingly used for importing Gitea projects (apparently they have a compatible API) This MR renames the Gitea importer to Gitlab::LegacyGithubImport and introduces a new GitHub importer in the Gitlab::GithubImport namespace. This new GitHub importer uses Sidekiq for importing multiple resources in parallel, though it also has the ability to import data sequentially should this be necessary. The new code is spread across the following directories: * lib/gitlab/github_import: this directory contains most of the importer code such as the classes used for importing resources. * app/workers/gitlab/github_import: this directory contains the Sidekiq workers, most of which simply use the code from the directory above. * app/workers/concerns/gitlab/github_import: this directory provides a few modules that are included in every GitHub importer worker. == Stages The import work is divided into separate stages, with each stage importing a specific set of data. Stages will schedule the work that needs to be performed, followed by scheduling a job for the "AdvanceStageWorker" worker. This worker will periodically check if all work is completed and schedule the next stage if this is the case. If work is not yet completed this worker will reschedule itself. Using this approach we don't have to block threads by calling `sleep()`, as doing so for large projects could block the thread from doing any work for many hours. == Retrying Work Workers will reschedule themselves whenever necessary. For example, hitting the GitHub API's rate limit will result in jobs rescheduling themselves. These jobs are not processed until the rate limit has been reset. == User Lookups Part of the importing process involves looking up user details in the GitHub API so we can map them to GitLab users. The old importer used an in-memory cache, but this obviously doesn't work when the work is spread across different threads. The new importer uses a Redis cache and makes sure we only perform API/database calls if absolutely necessary. Frequently used keys are refreshed, and lookup misses are also cached; removing the need for performing API/database calls if we know we don't have the data we're looking for. == Performance & Models The new importer in various places uses raw INSERT statements (as generated by `Gitlab::Database.bulk_insert`) instead of using Rails models. This allows us to bypass any validations and callbacks, drastically reducing the number of SQL queries and Gitaly RPC calls necessary to import projects. To ensure the code produces valid data the corresponding tests check if the produced rows are valid according to the model validation rules.
2017-11-07Merge branch 'master' into 38464-k8s-appsShinya Maeda
2017-11-07Add Helm InstallCommandAlessio Caiazza
2017-11-07When deleting merged branches, ignore protected tagsToon Claes
In gitlab-org/gitlab-ce!13251 wildcard Protected Branches were handled properly when deleting all merged branches. But this fix wasn't that good. It also checked branch names against Protected Tags. That's not correct. This change will **only** check if there is a Protected Branch matching the merged branch, and ignores Protected Tags. Closes gitlab-org/gitlab-ce#39732.
2017-11-07Merge branch 'fix/gb/ensure-that-job-belongs-to-stage' into 'master'Kamil Trzciński
Make sure that every job has a stage assigned Closes #37979 See merge request gitlab-org/gitlab-ce!14724
2017-11-07Remove Clusters::Applications::FinalizeInstallationServiceAlessio Caiazza
2017-11-07Merge branch 'master' into 38464-k8s-appsEric Eastwood
Conflicts: db/schema.rb
2017-11-07Merge branch 'refactor-clusters' into 'master'Grzegorz Bizon
Refactor Clusters to be consisted from GcpProvider and KubernetesPlatform See merge request gitlab-org/gitlab-ce!14879
2017-11-06Resolve "DashboardController#activity.json is slow due to SQL"Francisco Javier López
2017-11-06Merge branch 'refactor-clusters' into 38464-k8s-appsAlessio Caiazza
2017-11-06Add Clusters::Applications services testsAlessio Caiazza
2017-11-06Merge branch 'jk-delete-epic-backport' into 'master'Sean McGivern
Refactor issuable destroy action See merge request gitlab-org/gitlab-ce!15203
2017-11-06Refactor issuable destroy actionJarka Kadlecova
2017-11-06Merge branch 'master' into refactor-clustersShinya Maeda
2017-11-06Merge branch 'ce-gitlab-git-backport' into 'master'Sean McGivern
CE repository mirroring changes backport See merge request gitlab-org/gitlab-ce!15184
2017-11-06Extract ensure stage service from commit status classGrzegorz Bizon
2017-11-06Merge branch 'refactor-clusters' into 38464-k8s-appsAlessio Caiazza
2017-11-06Add Clusters::Appplications::CheckInstallationProgressService testsAlessio Caiazza
2017-11-05Merge branch 'master' into refactor-clustersShinya Maeda
2017-11-03Encapsulate git operations for mirroring in Gitlab::GitAlejandro Rodríguez
2017-11-03Merge branch 'bvl-unlink-fixes' into 'master'Douwe Maan
This fixes some bugs related to forked projects of which the source was deleted. Closes #39667 See merge request gitlab-org/gitlab-ce!15150
2017-11-03 Fix typosAlessio Caiazza
2017-11-03Add system hooks user_rename and group_renameWinnie Hellmann
2017-11-03Unlink a project from a fork network when it's source was deleted.Bob Van Landuyt
We need to close all merge requests coming from the project within the entire fork network.
2017-11-03Schedule k8s application installation with a serviceAlessio Caiazza
2017-11-03Merge branch 'refactor-clusters' into 38464-k8s-appsAlessio Caiazza
2017-11-03Remove `Clusters::Applications::FetchInstallationStatusService`Alessio Caiazza
2017-11-03Rename App to ApplicationsAlessio Caiazza
2017-11-03Merge branch 'master' into refactor-clustersEric Eastwood
2017-11-03Merge branch 'master' into 38464-k8s-appsEric Eastwood
2017-11-03Merge remote-tracking branch 'origin/master' into 38464-k8s-appsKamil Trzcinski
2017-11-03Merge branch 'refactor-services-for-audit-events-ce' into 'master'Grzegorz Bizon
[CE] Refactor controller calls into services Closes gitlab-ee#3544 See merge request gitlab-org/gitlab-ce!15023
2017-11-03Fix nitpicksKamil Trzcinski
2017-11-03Merge branch 'master' into refactor-clustersShinya Maeda
2017-11-02Merge branch 'pawel/disable_nfs_metrics_checks_39730' into 'master'Stan Hu
Remove Filesystem check metrics that use too much CPU to handle requests See merge request gitlab-org/gitlab-ce!15158
2017-11-02Remove Filesystem check metrics that use too much CPU to handle requestsPawel Chojnacki
2017-11-02Extract ClusterWaitForAppInstallationWorker logic into a serviceAlessio Caiazza
2017-11-02General cleanupAlessio Caiazza
2017-11-02Merge branch 'dm-remove-private-token' into 'master'Sean McGivern
Remove Private Tokens Closes #38595 and #38447 See merge request gitlab-org/gitlab-ce!14838
2017-11-02Fix out of sync with KubernetesService. Remove namespace pramas from ↵Shinya Maeda
controller. Use time_with_zone in schema. Remove Gcp::Clusters from safe_model_attributes.ym
2017-11-02Improve backend structure of dataKamil Trzcinski
2017-11-02Merge branch 'refactor-clusters' into 38464-k8s-appsKamil Trzcinski