summaryrefslogtreecommitdiff
path: root/config
Commit message (Collapse)AuthorAgeFilesLines
* Consistently schedule Sidekiq jobsdm-application-workerDouwe Maan2017-12-051-10/+9
|
* Add ApplicationWorker and make every worker include itDouwe Maan2017-12-051-4/+4
|
* Merge branch 'gollum-initializer-warning' into 'master'Rémy Coutable2017-12-041-0/+4
|\ | | | | | | | | Add notice to Gollum initializer See merge request gitlab-org/gitlab-ce!15713
| * Add notice to gollum initializergollum-initializer-warningJacob Vosmaer2017-12-041-0/+4
| |
* | Merge branch 'master' into multi-file-editor-dirty-diff-indicatorPhil Hughes2017-11-301-0/+1
|\ \ | |/
| * BE for automatic pipeline when enabling Auto DevOpsMatija Čupić2017-11-281-0/+1
| | | | | | | | Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/38962
* | fixed web worker performancePhil Hughes2017-11-281-0/+4
|/ | | | [ci skip]
* Update svg external dependencyfl-upgrade-svgFilipa Lacerda2017-11-241-2/+2
|
* Merge branch 'pawel/update_prometheus_gem_to_well_tested_version' into 'master'Douwe Maan2017-11-242-9/+8
|\ | | | | | | | | | | | | Update Prometheus Gem version and disable Prometheus method call instrumentation by default. Closes gitlab-ee#4139 and #40457 See merge request gitlab-org/gitlab-ce!15558
| * Rename wip to worker_idPawel Chojnacki2017-11-231-3/+3
| |
| * Move prometheus middle ware to prometheus initialized.Pawel Chojnacki2017-11-232-6/+5
| |
* | Allow password authentication to be disabled entirelyMarkus Koller2017-11-231-1/+1
|/
* Speed up Unicorn specs by using a dummy Rack application instead of GitLabNick Thomas2017-11-222-4/+0
|
* Merge branch 'feature_add_mermaid' into 'master'Phil Hughes2017-11-222-4/+0
|\ | | | | | | | | | | | | Add support of Mermaid Closes #3711 See merge request gitlab-org/gitlab-ce!15107
| * Add support of MermaidVitaliy @blackst0ne Klachkov2017-11-222-4/+0
| |
* | Set the default gitlab-shell timeout to 3 hoursNick Thomas2017-11-212-3/+3
| |
* | Batchload blobs for diff generationZeger-Jan van de Weg2017-11-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After installing a new gem, batch-loader, a construct can be used to queue data to be fetched in bulk. The gem was also introduced in both gitlab-org/gitlab-ce!14680 and gitlab-org/gitlab-ce!14846, but those mrs are not merged yet. For the generation of diffs, both the old blob and the new blob need to be loaded. This for every file in the diff, too. Now we collect all these so we do 1 fetch. Three `.allow_n_plus_1_calls` have been removed, which I expect to be valid, but this needs to be confirmed by a full CI run. Possibly closes: - https://gitlab.com/gitlab-org/gitlab-ce/issues/37445 - https://gitlab.com/gitlab-org/gitlab-ce/issues/37599 - https://gitlab.com/gitlab-org/gitlab-ce/issues/37431
* | Fix offense to the LineBreakAfterGuardClauses cop40335-master-is-broken-due-to-static-analysisRémy Coutable2017-11-201-0/+2
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch '18040-rubocop-line-break-after-guard-clause' into 'master'Rémy Coutable2017-11-204-0/+5
|\ \ | |/ |/| | | | | | | | | Adds Rubocop rule for line break after guard clause Closes #18040 See merge request gitlab-org/gitlab-ce!15188
| * Adds Rubocop rule for line break after guard clauseJacopo2017-11-164-0/+5
| | | | | | | | Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
* | Merge branch 'mk-add-user-rate-limits' into 'master'Douwe Maan2017-11-172-1/+62
|\ \ | | | | | | | | | | | | | | | | | | Add request rate limits Closes #30053 See merge request gitlab-org/gitlab-ce!14708
| * | Don't add methods to Rack::AttackMichael Kozono2017-11-171-10/+12
| | |
| * | Fix OAuth API and RSS rate limitingMichael Kozono2017-11-171-11/+1
| | |
| * | Allow throttling code in test environmentMichael Kozono2017-11-171-18/+14
| | | | | | | | | | | | This code should not break other tests because the rate limits are off by default.
| * | Add request throttlesMichael Kozono2017-11-172-1/+74
| | |
* | | Resolve "Performance issues when loading large number of wiki pages"Francisco Javier López2017-11-171-0/+26
|/ /
* | Update license_finder to 3.1.1Winnie Hellmann2017-11-161-0/+32
| |
* | Resolve "npm list errors for gitlab-svgs and node-pre-gyp"Tim Zallmann2017-11-151-2/+2
|/
* Change label to be more consistent, not a series.Joshua Lambert2017-11-121-4/+2
|
* Fix CPU metricJoshua Lambert2017-11-121-2/+2
|
* Fix to use variableJoshua Lambert2017-11-121-1/+1
|
* Adjust metrics to ignore Job tag to support k8s 1.7+Joshua Lambert2017-11-121-2/+2
|
* Revert "Merge branch 'add-typescript' into 'master'"Jacob Schatz2017-11-101-5/+1
| | | This reverts merge request !15264
* Merge branch '32059-fix-oauth-phishing' into 'security-10-1'Douwe Maan2017-11-101-1/+9
| | | | | | Prevent OAuth phishing attack by presenting detailed wording about app to user during authorization See merge request gitlab/gitlabhq!2205
* Merge branch 'github-importer-refactor' into 'master'Douwe Maan2017-11-081-0/+2
|\ | | | | | | | | | | | | 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
| * Rewrite the GitHub importer from scratchYorick Peterse2017-11-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch 'feature-change-signout-route' into 'master'Douwe Maan2017-11-081-1/+1
|\ \ | | | | | | | | | | | | | | | | | | Change Sign Out route from a DELETE to a GET Closes #39708 See merge request gitlab-org/gitlab-ce!15231
| * | Change Sign Out route from a DELETE to a GETJoe Marty2017-11-061-1/+1
| | | | | | | | | | | | Closes #39708
* | | Merge branch 'bvl-free-paths' into 'master'Douwe Maan2017-11-081-21/+31
|\ \ \ | | | | | | | | | | | | | | | | Free some reserved group routes See merge request gitlab-org/gitlab-ce!15052
| * | | Free up some group reserved wordsBob Van Landuyt2017-11-071-27/+30
| | | |
| * | | Free up `avatar`, `group_members` and `milestones` as pathsBob Van Landuyt2017-11-071-15/+16
| | | |
| * | | Free up `labels` as a group nameBob Van Landuyt2017-11-071-4/+10
| | |/ | |/|
* | | Merge branch 'jivl-fix-karma-config-file' into 'master'Mike Greiling2017-11-081-9/+0
|\ \ \ | | | | | | | | | | | | | | | | fix karma config file See merge request gitlab-org/gitlab-ce!15263
| * | | fix karma config filejivl-fix-karma-config-fileJose Ivan Vargas2017-11-071-9/+0
| |/ /
* | | Adds typescript support in webpack. With Mike G.Jacob Schatz2017-11-071-1/+5
|/ /
* | Fix wildcard route and use param styleShinya Maeda2017-11-071-1/+1
| |
* | Merge branch 'master' into 38464-k8s-appsShinya Maeda2017-11-072-2/+3
|\ \
| * \ Merge branch '35616-move-gke-form-1st-iteration' into 'master'Grzegorz Bizon2017-11-071-0/+1
| |\ \ | | | | | | | | | | | | | | | | First iteration of Move Kubernetes from service to Cluster page See merge request gitlab-org/gitlab-ce!15061
| | * \ Merge remote-tracking branch 'origin/master' into ↵Kamil Trzcinski2017-11-063-11/+19
| | |\ \ | | | | | | | | | | | | | | | 35616-move-gke-form-1st-iteration
| | * \ \ Merge branch 'refactor-clusters' into ↵Shinya Maeda2017-11-051-0/+1
| | |\ \ \ | | | | | | | | | | | | | | | | | | move-kubernetes-from-service-to-clusters-page-10-2-ver