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
2023-01-18Add latest changes from gitlab-org/gitlab@15-8-stable-eev15.8.0-rc42GitLab Bot
2022-11-17Add latest changes from gitlab-org/gitlab@15-6-stable-eev15.6.0-rc42GitLab Bot
2020-12-17Add latest changes from gitlab-org/gitlab@13-7-stable-eev13.7.0-rc42GitLab Bot
2020-08-20Add latest changes from gitlab-org/gitlab@13-3-stable-eeGitLab Bot
2020-07-20Add latest changes from gitlab-org/gitlab@13-2-stable-eeGitLab Bot
2020-01-18Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-04-01Add frozen_string_literal to spec/workersThong Kuah
Adds `# frozen_string_literal: true` to spec/workers ruby files
2018-11-27Removes all the irrelevant import related code and columnsTiago Botelho
Clears the import related columns and code from the Project model over to the ProjectImportState model
2018-07-09Updates from `rubocop -a`Lin Jen-Shin
2018-06-11Work around limitations of expect_any_instance_of by stubbing Project.findStan Hu
2018-05-04Backports every CE related change from ee-44542 to CETiago Botelho
2018-01-26update code based on feedbackJames Lopez
2018-01-26add specJames Lopez
2018-01-06Protected branch is now created for default branch on importTiago Botelho
2017-12-15Fork and Import jobs only get marked as failed when the number of Sidekiq ↵Tiago Botelho
retries were exhausted
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-10-10Backports EE 38771 changes to CE.Tiago Botelho
2017-08-17Backports EE mirror stuck handling feature ↵Tiago Botelho
(https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2628) to CE
2017-08-03Change all `:empty_project` to `:project`Robert Speicher
2017-06-21Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon
2017-06-06backports changed import logic from pull mirroring feature into CETiago Botelho
2017-04-05Periodically mark projects that are stuck in importing as failedJames Lopez
Adds import jid to projects Refactor middleware to set custom expiration time via sidekiq options Add completed_jids option to sidekiq status and a few other changes
2017-03-28Use `:empty_project` where possible in worker specsRobert Speicher
2017-02-23Revert "Prefer leading style for Style/DotPosition"Douwe Maan
This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
2017-02-23Revert "Enable Style/BarePercentLiterals"Douwe Maan
This reverts commit 96bef54154e669f9a3e92c3a4bc76c0be3a52e48.
2017-02-23Prefer leading style for Style/DotPositionDouwe Maan
2017-02-23Enable Style/BarePercentLiteralsDouwe Maan
2016-05-19Mask credentials from URL when import of project has failed.Rubén Dávila
2016-02-17Expire caches after forking/importing a repositoryYorick Peterse
This ensures the caches for Repository#empty? and Repository#has_visible_content? are flushed after a repository has been imported or forked. Fixes gitlab-org/gitlab-ce#13505