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
2019-03-20Add feature flag for build preparing stateTiger
The flag is on by default, but allows us to revert back to the old behaviour if we encounter any problems.
2019-03-20Create framework for build prerequisitesTiger
Introduces the concept of Prerequisites for a CI build. If a build has unmet prerequisites it will go through the :preparing state before being made available to a runner. There are no actual prerequisites yet, so current behaviour is unchanged.
2019-03-04Merge dev master into GitLab.com masterYorick Peterse
2019-03-04Arbitrary file read via MergeRequestDiffFrancisco Javier López
2019-03-01Merge branch '53966-make-hashed-storage-migration-safer-and-more-inviting' ↵Douglas Barbosa Alexandre
into 'master' Hashed Storage rollback mechanism See merge request gitlab-org/gitlab-ce!23955
2019-03-01Added Rollbacker workers and support on the rake taskGabriel Mazetto
Rollback is done similar to Migration for the Hashed Storage. It also shares the same ExclusiveLease key to prevent both happening at the same time. All Hashed Storage related workers now share the same queue namespace which allows for assigning dedicated workers easily.
2019-03-01Refactor ProjectMigrate and ProjectRollback workersGabriel Mazetto
Moved to HashedStorage namespace, and added them to the `:hashed_storage` queue namespace
2019-03-01Adds Rollback functionality to HashedStorage migrationGabriel Mazetto
We are adding sidekiq workers and service classes to allow to rollback a hashed storage migration. There are some refactoring involved as well as part of the code can be reused by both the migration and the rollback logic.
2019-03-01Add suffix for merge request eventShinya Maeda
Fix ok Add spec Fix ok Fix Add changelog Fix Add memoization a fix
2019-02-27Add project http fetch statistics APIJacopo
The API get projects/:id/traffic/fetches allows user with write access to the repository to get the number of clones for the last 30 days.
2019-02-21Move ChatOps to CoreJames Fargher
ChatOps used to be in the Ultimate tier.
2019-02-07Fix failing test in spec/workers/post_receive_spec.rbStan Hu
This is what was happening before: 1. `Project#set_timestamps_for_create` was called at creation time and set the `last_activity_at` and `last_repository_updated_at` to the current timestamp T. 2. The test ran `PostReceive#perform`, which then called `PostReceive#process_wiki_changes`. If less than 500 milliseconds elapsed since T, then the update would just set the timestamp to T. To fix this problem, we can just use Timecop to ensure at least one second has elapsed after attempting to process changes. Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/8871
2019-02-06Clean up Shell.fork_repositoryStan Hu
Use project models instead of a list of parameters.
2019-02-06Send project name with Gitaly repository requestsStan Hu
When hashed storage is in use, it's helpful to have the project name associated with the request. Closes https://gitlab.com/gitlab-org/gitaly/issues/1394
2019-02-05Make `ActionContorller::Parameters` serializable for sidekiq jobsPeter Leitzen
2019-01-25Refactor Storage MigrationGabriel Mazetto
Specs were reviewed and improved to better cover the current behavior. There was some standardization done as well to facilitate the implementation of the rollback functionality. StorageMigratorWorker was extracted to HashedStorage namespace were RollbackerWorker will live one as well.
2019-01-25Move MigrationService to HashedStorage moduleGabriel Mazetto
This is part of the refactor to include a RollbackService into HashedStorage module
2019-01-25Prepare rake task for storage rollbackGabriel Mazetto
We are keeping compatibility with existing scheduled jobs.
2019-01-25Merge branch 'container-repository-cleanup-api' into 'master'Grzegorz Bizon
Container repository cleanup API Closes #55978 See merge request gitlab-org/gitlab-ce!24303
2019-01-25Add Container Registry APIKamil Trzciński
This includes a set of APIs to manipulate container registry. This includes also an ability to delete tags based on requested criteria, like keep-last-n, matching-name, older-than.
2019-01-24Merge branch '56392-enable-the-layout-extraspacing-cop' into 'master'Lin Jen-Shin
Enable the Layout/ExtraSpacing cop Closes #56392 See merge request gitlab-org/gitlab-ce!24423
2019-01-24Enable the Layout/ExtraSpacing copRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-01-24Remove expired artifacts periodicallyShinya Maeda
Rename Introduce Destroy expired job artifacts service Revert a bit Add changelog Use expired Improve Fix spec Fix spec Use bang for destroy Introduce iteration limit Update comment Simplify more Refacor Remove unnecessary thing Fix comments Fix coding offence Make loop helper exception free
2019-01-15Only send one notification for failed remote mirrorStan Hu
Retries in Sidekiq and in the remote mirror scheduler can cause repeated attempts in quick succession if the sync fails. Each failure will then send an e-mail to all project maintainers, which can spam users unnecessarily. Modify the logic to send one notification the first time the mirror fails by setting `error_notification_sent` to `true` and reset the flag after a successful sync. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/56222
2019-01-14Ensure pool participants are linked before GCZeger-Jan van de Weg
In theory the case could happen that the initial linking of the pool fails and so do all the retries that Sidekiq performs. This could lead to data loss. To prevent that case, linking is done before Gits GC too. This makes sure that case doesn't happen.
2019-01-08Merge branch '49231-import-issues-csv' into 'master'Douwe Maan
Import issues from CSV Closes #49231 See merge request gitlab-org/gitlab-ce!23532
2019-01-07Import CSV BackendHeinrich Lee Yu
Process CSV uploads async using a worker then email results
2019-01-04Refactor the logic of updating head pipelinesShinya Maeda
Sort out some logic
2019-01-02Merge branch 'blackst0ne-bump-rails-cve-2018-16476' into 'master'Grzegorz Bizon
Bump Ruby on Rails to 5.0.7.1 See merge request gitlab-org/gitlab-ce!23396
2018-12-21Rename `ClusterPlatformConfigureWorker`George Tsiolis
2018-12-21Bump Ruby on Rails to 5.0.7.1blackst0ne
Fix the CVE-2018-16476 vulnerability.
2018-12-19Merge branch 'zj-pool-destruction' into 'master'Kamil Trzciński
Leave object pools when destroying projects Closes gitaly#1415 See merge request gitlab-org/gitlab-ce!23869
2018-12-19Leave object pools when destroying projectsZeger-Jan van de Weg
This action doesn't lean on reduplication, so a short call can me made to the Gitaly server to have the object pool remove its remote to the project pending deletion. https://gitlab.com/gitlab-org/gitaly/blob/f6cd55357/internal/git/objectpool/link.go#L58 When an object pool doesn't have members, this would invalidate the need for a pool. So when a project leaves the pool, the pool will be destroyed on the background. Fixes: https://gitlab.com/gitlab-org/gitaly/issues/1415
2018-12-18Adjust flaky Rails logger call testOswaldo Ferreira
2018-12-12Send a notification email on mirror update errorsAlejandro Rodríguez
The email is sent to project maintainers containing the last mirror update error. This will allow maintainers to set alarms and react accordingly.
2018-12-07Allow public forks to be deduplicatedZeger-Jan van de Weg
When a project is forked, the new repository used to be a deep copy of everything stored on disk by leveraging `git clone`. This works well, and makes isolation between repository easy. However, the clone is at the start 100% the same as the origin repository. And in the case of the objects in the object directory, this is almost always going to be a lot of duplication. Object Pools are a way to create a third repository that essentially only exists for its 'objects' subdirectory. This third repository's object directory will be set as alternate location for objects. This means that in the case an object is missing in the local repository, git will look in another location. This other location is the object pool repository. When Git performs garbage collection, it's smart enough to check the alternate location. When objects are duplicated, it will allow git to throw one copy away. This copy is on the local repository, where to pool remains as is. These pools have an origin location, which for now will always be a repository that itself is not a fork. When the root of a fork network is forked by a user, the fork still clones the full repository. Async, the pool repository will be created. Either one of these processes can be done earlier than the other. To handle this race condition, the Join ObjectPool operation is idempotent. Given its idempotent, we can schedule it twice, with the same effect. To accommodate the holding of state two migrations have been added. 1. Added a state column to the pool_repositories column. This column is managed by the state machine, allowing for hooks on transitions. 2. pool_repositories now has a source_project_id. This column in convenient to have for multiple reasons: it has a unique index allowing the database to handle race conditions when creating a new record. Also, it's nice to know who the host is. As that's a short link to the fork networks root. Object pools are only available for public project, which use hashed storage and when forking from the root of the fork network. (That is, the project being forked from itself isn't a fork) In this commit message I use both ObjectPool and Pool repositories, which are alike, but different from each other. ObjectPool refers to whatever is on the disk stored and managed by Gitaly. PoolRepository is the record in the database.
2018-12-07Merge branch 'dm-remove-prune-web-hook-logs-worker' into 'master'Robert Speicher
Remove RemoveOldWebHookLogsWorker Closes #52592 See merge request gitlab-org/gitlab-ce!23628
2018-12-07Improve PruneWebHookLogsWorker specDouwe Maan
2018-12-07Remove RemoveOldWebHookLogsWorkerDouwe Maan
2018-12-06Use BFG object maps to clean projectsNick Thomas
2018-12-06Merge branch 'deprecated-instance-find' into 'master'Rémy Coutable
Fix deprecation: You are passing an instance of ActiveRecord::Base to find See merge request gitlab-org/gitlab-ce!23369
2018-12-05Merge branch '34758-deployment-cluster' into 'master'Kamil Trzciński
Use group clusters when deploying (DeploymentPlatform) See merge request gitlab-org/gitlab-ce!22308
2018-12-05Rename project's pipelines relationFrancisco Javier López
2018-12-05Merge request pipelinesShinya Maeda
2018-12-05Create k8s namespace for project in group clustersThong Kuah
AFAIK the only relevant place is Projects::CreateService, this gets called when user creates a new project, forks a new project and does those things via the api. Also create k8s namespace for new group hierarchy when transferring project between groups Uses new Refresh service to create k8s namespaces - Ensure we use Cluster#cluster_project If a project has multiple clusters (EE), using Project#cluster_project is not guaranteed to return the cluster_project for this cluster. So switch to using Cluster#cluster_project - at this stage a cluster can only have 1 cluster_project. Also, remove rescue so that sidekiq can retry
2018-12-04CE port of Add new service to create the web ide terminalFrancisco Javier López
2018-11-30Squashed commit of the following:Shinya Maeda
commit 0c00e52d339f8471a6ea425d5a4a59751a3f4a35 Author: Shinya Maeda <shinya@gitlab.com> Date: Fri Nov 30 15:41:46 2018 +0900 Update schedules.md commit 0ae56bf5a0ba9254d2ebd4c846395113ae72d686 Merge: c143777c9f2 9ce28bf08b7 Author: Shinya Maeda <shinya@gitlab.com> Date: Fri Nov 30 15:38:01 2018 +0900 Merge branch 'master-ce' into ignore-failed-pipeline-creation-on-pipeline-schedule commit c143777c9f250c8075355ac07e9bae7b074665c3 Author: Shinya Maeda <shinya@gitlab.com> Date: Thu Nov 29 17:18:07 2018 +0900 Fix coding offence commit 7c816dfa634b5911310c67c285fc3c37d5f03517 Author: Shinya Maeda <shinya@gitlab.com> Date: Thu Nov 29 16:12:06 2018 +0900 Improve spec quality commit f78eed45e991123f8af4a7b24f041529bbb35e91 Merge: 96d20ce9144 a5f4627857b Author: Shinya Maeda <shinya@gitlab.com> Date: Thu Nov 29 15:20:16 2018 +0900 Merge branch 'master-ce' into ignore-failed-pipeline-creation-on-pipeline-schedule commit 96d20ce914458f86e68b57bc1bb88ab8d27f010b Author: Shinya Maeda <shinya@gitlab.com> Date: Tue Nov 27 16:25:42 2018 +0900 Print pipeline error commit 97842068b6cf1432cd400ead749843946b4f51ee Merge: c2b015949af 2ee8c40fc16 Author: Shinya Maeda <shinya@gitlab.com> Date: Tue Nov 27 15:51:49 2018 +0900 Merge branch 'master-ce' into ignore-failed-pipeline-creation-on-pipeline-schedule commit c2b015949afb3ecc70cb057e2d13672f378c0d03 Merge: 3435137c17b fbbe5ccd1be Author: Shinya Maeda <shinya@gitlab.com> Date: Mon Nov 26 15:26:17 2018 +0900 Merge branch 'master-ce' into ignore-failed-pipeline-creation-on-pipeline-schedule commit 3435137c17b0ef03003e39dd08c7370fe916c626 Author: Shinya Maeda <shinya@gitlab.com> Date: Tue Nov 20 17:45:38 2018 +0900 Track exception with Sentry commit 3f01f10d3b7380f0e8ceb3a379d8b6c602e9d6ca Merge: 5749c62355f 8a581d531ba Author: Shinya Maeda <shinya@gitlab.com> Date: Tue Nov 20 17:12:41 2018 +0900 Merge branch 'master-ce' into ignore-failed-pipeline-creation-on-pipeline-schedule commit 5749c62355f8de62bb4e36ba1e351a78350607c1 Author: Shinya Maeda <shinya@gitlab.com> Date: Thu Nov 1 11:14:26 2018 +0900 Create a pipeline even if it is corrupted commit e01789890b6949b346d40fadef41aa133191cc43 Author: Shinya Maeda <shinya@gitlab.com> Date: Wed Oct 31 14:26:09 2018 +0900 Improve production log message commit f20d698a535f1dc70d5437c20b629fd1d956fb27 Author: Shinya Maeda <shinya@gitlab.com> Date: Fri Oct 19 17:11:20 2018 +0900 Fix typo commit 01323b02ac41ec50bcf237409f2e3c5c214bbfc1 Author: Shinya Maeda <shinya@gitlab.com> Date: Thu Oct 18 14:46:44 2018 +0900 Update documents commit 460337bf4a7e67a35d6c342678b4cfe66710ad56 Author: Shinya Maeda <shinya@gitlab.com> Date: Wed Oct 10 13:21:26 2018 +0900 Add changelog commit a3c4711752fedebfacbdf52da94058524af3c9f4 Author: Shinya Maeda <shinya@gitlab.com> Date: Wed Oct 10 09:20:06 2018 +0900 Ignore failed pipeline creation in pipeline schedule worker. Instead, logging the event.
2018-11-29Improve commentsShinya Maeda
2018-11-29Improve specShinya Maeda
2018-11-29Squashed commit of the following:Shinya Maeda
commit 10456b1e9240886432f565dd17689080bbb133b9 Merge: 312c1a9bdf8 a5f4627857b Author: Shinya Maeda <shinya@gitlab.com> Date: Thu Nov 29 14:33:21 2018 +0900 Merge branch 'master-ce' into add-counter-for-trace-chunks commit 312c1a9bdf8efc45c3fed5ff50f05cc589bbb4ed Author: Shinya Maeda <shinya@gitlab.com> Date: Wed Nov 28 20:06:18 2018 +0900 Fix coding offence commit e397cc2ccc1b2cf7f8b3558b8fa81fe2aa0ab366 Author: Shinya Maeda <shinya@gitlab.com> Date: Wed Nov 28 14:40:24 2018 +0900 Fix tracking archive failure