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-09-14Merge branch 'repo-cache-fix' into 'master'Kamil Trzciński
Restore has_visible_content? to improve performance (cache) See merge request gitlab-org/gitlab-ce!14264
2017-09-07Merge branch ↵Douwe Maan
'35558-only-one-garbage-collection-should-be-running-per-project-at-once' into 'master' Adds exclusive lease to Git garbage collect worker. Closes #35558 See merge request !14036
2017-09-07Adds exclusive lease to Git garbage collect worker.Tiago Botelho
2017-09-07Removes default scope from sortableTiago Botelho
2017-09-05pass whole commit to Gitlab::Gpg::Commit againAlexis Reigel
we need the commit object for the updated verification that also checks the committer's email to match the gpg key and user's emails.
2017-09-05Improve specShinya Maeda
2017-09-05Fix enum listsShinya Maeda
2017-09-05Implement `failure_reason` on `ci_builds`Shinya Maeda
2017-09-01Move GitOperationService to Gitlab::GitJacob Vosmaer
2017-08-31Prepare GitOperationService for move to Gitlab::GitJacob Vosmaer
2017-08-28Add changelogOswaldo Ferreira
2017-08-28Merge branch '36792-inline-user-refresh-when-creating-project' into 'master'Douwe Maan
Don't wait for project authorization sidekiq jobs when creating projects Closes #36792 See merge request !13775
2017-08-25Move sidekiq-based project authorization refresh out of Projects::CreateServiceNick Thomas
If the project is in a group, the `group.refresh_members_authorized_projects` is made non-blocking, and we call `current_user.refresh_authorized_projects` directly. Projects in a personal namespace are more difficult. Rather than passing the `blocking:` parameter through the entire `add_master` chain, have the `AuthorizedProjectsWorker` automatically inline authorizations for three IDs or less. Since the maximum number of IDs in this path is 2, that has the same effect.
2017-08-25Merge branch 'master' into 'backstage/gb/rename-ci-cd-processing-sidekiq-queues'Kamil Trzciński
# Conflicts: # db/schema.rb
2017-08-24Merge branch 'backstage/gb/after-save-asynchronous-job-hooks' into 'master'Kamil Trzciński
Do not fire synchronous hooks when creating a job Closes #35286 See merge request !13734
2017-08-23Merge branch 'master' into backstage/gb/after-save-asynchronous-job-hooksGrzegorz Bizon
* master: (115 commits) Use event-based waiting in Gitlab::JobWaiter Make sure repository's removal work for legacy and hashed storages Use `@hashed` prefix for hashed paths on disk, to avoid collision with existing ones Refactor project and storage types Prevent using gitlab import task when hashed storage is enabled Some codestyle changes and fixes for GitLab pages Removed some useless code, codestyle changes and removed an index Fix repository reloading in some specs Changelog Moving away from the "extend" based factory to a more traditional one. Enable automatic hashed storage for new projects by application settings New storage is now "Hashed" instead of "UUID" Add UUID Storage to Project Move create_repository back to project model as we can use disk_path and share it Codestyle: move hooks to the same place and move dependent methods to private Use non-i18n values for setting new group-level issue/MR button text indexes external issue tracker copyedit indexes user/search/ from /user/index Correctly encode string params for Gitaly's TreeEntries RPC ...
2017-08-23Fix pipeline job worker specsGrzegorz Bizon
2017-08-22Merge branch 'master' into backstage/gb/rename-ci-cd-processing-sidekiq-queuesGrzegorz Bizon
* master: (115 commits) Use event-based waiting in Gitlab::JobWaiter Make sure repository's removal work for legacy and hashed storages Use `@hashed` prefix for hashed paths on disk, to avoid collision with existing ones Refactor project and storage types Prevent using gitlab import task when hashed storage is enabled Some codestyle changes and fixes for GitLab pages Removed some useless code, codestyle changes and removed an index Fix repository reloading in some specs Changelog Moving away from the "extend" based factory to a more traditional one. Enable automatic hashed storage for new projects by application settings New storage is now "Hashed" instead of "UUID" Add UUID Storage to Project Move create_repository back to project model as we can use disk_path and share it Codestyle: move hooks to the same place and move dependent methods to private Use non-i18n values for setting new group-level issue/MR button text indexes external issue tracker copyedit indexes user/search/ from /user/index Correctly encode string params for Gitaly's TreeEntries RPC ...
2017-08-22Migration to remove pending delete projects with non-existing namespaceToon Claes
There might be some projects where the namespace was removed, but the project wasn't. For these the projects still have a `namespace_id` set. So this adds a post-deploy migration remove all projects that are pending delete, and have a `namespace_id` that is non-existing.
2017-08-22Merge branch '34533-inline-single-authorized-projects' into 'master'Douwe Maan
Use an event-based system when waiting for AuthorizedProjectsWorker to complete See merge request !13564
2017-08-22Revert adding shared examples for every sidekiq workerGrzegorz Bizon
Since this already exists in `every_sidekiq_worker_spec.rb`.
2017-08-22Fix incorrect `let` in pipeline metrics worker specsGrzegorz Bizon
2017-08-22Fix typo in shared examples name in worker specsGrzegorz Bizon
2017-08-22Use event-based waiting in Gitlab::JobWaiterNick Thomas
2017-08-22Refactor project and storage typesGabriel Mazetto
2017-08-21Add sidekiq worker shared examples to workers specsGrzegorz Bizon
2017-08-21Remove sidekiq build queue and assign pipeline queueGrzegorz Bizon
2017-08-21Assign all pipeline workers to specific queuesGrzegorz Bizon
2017-08-21Simplify pipeline sidekiq queues naming schemeGrzegorz Bizon
2017-08-21Merge branch 'backstage/gb/migrate-stages-statuses' into 'master'Kamil Trzciński
Migrate CI/CD stages statuses Closes #33453 See merge request !12584
2017-08-21Make it possible to check if worker uses a known queueGrzegorz Bizon
2017-08-21Extend pipelines queue mixin and add a default queueGrzegorz Bizon
2017-08-17Merge branch 'ee-2628-backport-to-ce' into 'master'Douwe Maan
Backports EE mirror stuck handling feature… See merge request !13627
2017-08-17Backports EE mirror stuck handling feature ↵Tiago Botelho
(https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2628) to CE
2017-08-16Only create commit GPG signature when necessaryDouwe Maan
2017-08-16Merge branch 'master' into backstage/gb/migrate-stages-statusesGrzegorz Bizon
* master: (1000 commits) Fix username autocomplete group name with no avatar alignment Fix 'Projected tags' typo in protected_tags_spec.rb Many Repo Fixes Repo Editor Fixes Docs: New index for permissions link article from CI index link tech articles from the landing page new articles come first fix relative link fix date format Fixed changed files dropdown not being shown Update publication date Remove deprecated field from workhorse API responses Fix API responses when dealing with txt files Make sure MySQL would not use CURRENT_TIMESTAMP Add two more project templates Allow usage of any_projects? with an Array Copyedit Artifactory and GitLab article Rename Artifactory and GitLab article file Display GPG status loading spinner only when Ajax request is made ...
2017-08-10Migrate events into a new formatYorick Peterse
This commit migrates events data in such a way that push events are stored much more efficiently. This is done by creating a shadow table called "events_for_migration", and a table called "push_event_payloads" which is used for storing push data of push events. The background migration in this commit will copy events from the "events" table into the "events_for_migration" table, push events in will also have a row created in "push_event_payloads". This approach allows us to reclaim space in the next release by simply swapping the "events" and "events_for_migration" tables, then dropping the old events (now "events_for_migration") table. The new table structure is also optimised for storage space, and does not include the unused "title" column nor the "data" column (since this data is moved to "push_event_payloads"). == Newly Created Events Newly created events are inserted into both "events" and "events_for_migration", both using the exact same primary key value. The table "push_event_payloads" in turn has a foreign key to the _shadow_ table. This removes the need for recreating and validating the foreign key after swapping the tables. Since the shadow table also has a foreign key to "projects.id" we also don't have to worry about orphaned rows. This approach however does require some additional storage as we're duplicating a portion of the events data for at least 1 release. The exact amount is hard to estimate, but for GitLab.com this is expected to be between 10 and 20 GB at most. The background migration in this commit deliberately does _not_ update the "events" table as doing so would put a lot of pressure on PostgreSQL's auto vacuuming system. == Supporting Both Old And New Events Application code has also been adjusted to support push events using both the old and new data formats. This is done by creating a PushEvent class which extends the regular Event class. Using Rails' Single Table Inheritance system we can ensure the right class is used for the right data, which in this case is based on the value of `events.action`. To support displaying old and new data at the same time the PushEvent class re-defines a few methods of the Event class, falling back to their original implementations for push events in the old format. Once all existing events have been migrated the various push event related methods can be removed from the Event model, and the calls to `super` can be removed from the methods in the PushEvent model. The UI and event atom feed have also been slightly changed to better handle this new setup, fortunately only a few changes were necessary to make this work. == API Changes The API only displays push data of events in the new format. Supporting both formats in the API is a bit more difficult compared to the UI. Since the old push data was not really well documented (apart from one example that used an incorrect "action" nmae) I decided that supporting both was not worth the effort, especially since events will be migrated in a few days _and_ new events are created in the correct format.
2017-08-09Enable the Layout/SpaceBeforeBlockBraces copRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-08-08Merge branch '31207-clean-locked-merge-requests' into 'master'Stan Hu
Resolve "Store MergeWorker JID on merge request, and clean up stuck merges" Closes #31207 See merge request !13207
2017-08-08Merge branch '32844-issuables-performance' into 'master'Sean McGivern
Issuables: Move some code from create services to Sidekiq workers See merge request !13326
2017-08-07Store MergeWorker JID on merge request, and clean up stuck mergesOswaldo Ferreira
2017-08-07Move some after_create parts to worker to improve performanceJarka Kadlecova
2017-08-03Don't include EmailHelpers manually, pick with rspecLin Jen-Shin
`:mailer` is needed to pick it easily, while `type: :mailer` is needed for picking it automatically for tests located in spec/mailers/*_spec.rb It's a bit complicated in spec/services/notification_service_spec.rb but we'll leave it alone for now.
2017-08-03Merge branch '28472-ignore-auto-generated-mails' into 'master'Sean McGivern
Don't send rejection mails for all auto-generated mails Closes #28472 See merge request !13254
2017-08-03Change all `:empty_project` to `:project`Robert Speicher
2017-08-02Don't send rejection mails for all auto-generated mailsLin Jen-Shin
Also make it easier to have mailer helper
2017-08-01Ensure all project factories use `:repository` trait or `:empty_project`Robert Speicher
2017-08-01Rename ensure_dir_exist -> ensure_storage_path_existGabriel Mazetto
2017-07-31Add specs for stage update workerGrzegorz Bizon
2017-07-31Merge branch 'gitaly-398-git-garbage-collect' into 'master'Sean McGivern
Migrate GitGarbageCollectWorker to Gitaly Closes gitaly#398 See merge request !12975