summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Move the circuitbreaker check out in a separate processbvl-circuitbreaker-processBob Van Landuyt2017-12-0811-118/+396
| | | | | | | | | | | | | | | | | | | | | | | | | | Moving the check out of the general requests, makes sure we don't have any slowdown in the regular requests. To keep the process performing this checks small, the check is still performed inside a unicorn. But that is called from a process running on the same server. Because the checks are now done outside normal request, we can have a simpler failure strategy: The check is now performed in the background every `circuitbreaker_check_interval`. Failures are logged in redis. The failures are reset when the check succeeds. Per check we will try `circuitbreaker_access_retries` times within `circuitbreaker_storage_timeout` seconds. When the number of failures exceeds `circuitbreaker_failure_count_threshold`, we will block access to the storage. After `failure_reset_time` of no checks, we will clear the stored failures. This could happen when the process that performs the checks is not running.
* Migrate Git::Repository#fsck to GitalyKim Carlbäcker2017-12-082-2/+27
|
* Merge branch '40825-use-relative-path-urls' into 'master'Robert Speicher2017-12-071-0/+3
|\ | | | | | | | | | | | | Use relative _path helper URLs in the GitLab UI Closes #40825 See merge request gitlab-org/gitlab-ce!15738
| * Use relative _path helper URLs in the GitLab UI40825-use-relative-path-urlsEric Eastwood2017-12-071-0/+3
| | | | | | | | Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/40825
* | Merge branch 'fix_39233' into 'master'Sean McGivern2017-12-071-1/+1
|\ \ | | | | | | | | | | | | | | | | | | fix #39233 - 500 in merge request Closes #39233 See merge request gitlab-org/gitlab-ce!15774
| * | fix #39233 - 500 in merge requestMartin Nowak2017-12-071-1/+1
| | | | | | | | | | | | - handle unchanged empty lines in inline diff
* | | Merge branch 'pawel/update-prometheus_gem_to_highly_optimized_version' into ↵Stan Hu2017-12-071-3/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 'master' Update prometheus-client-mmap gem to highly optimized version See merge request gitlab-org/gitlab-ce!15796
| * | | Update prometheus-client-mmap gem to highly optimized versionPawel Chojnacki2017-12-071-3/+3
| |/ / | | | | | | | | | | | | + change string concatenation to help with GC pressure. + fix metric producing incompatible label sets
* | | Merge branch 'fix/push-read-only-message-ce' into 'master'Douwe Maan2017-12-072-2/+10
|\ \ \ | |_|/ |/| | | | | | | | [CE] Fix message when pushing to Geo secondary See merge request gitlab-org/gitlab-ce!15793
| * | refactor code to match EE changesJames Lopez2017-12-072-2/+10
| | |
* | | Merge branch 'dm-commit-diff-discussions-in-mr-context' into 'master'Douwe Maan2017-12-075-27/+54
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Allow commenting on individual commits inside an MR Closes #31847 See merge request gitlab-org/gitlab-ce!12148
| * | fix the missing reference to #references_per_projectmicael.bergeron2017-12-071-1/+1
| | |
| * | adding view and feature specsmicael.bergeron2017-12-071-0/+1
| | |
| * | add support for the commit reference filtermicael.bergeron2017-12-075-35/+51
| | |
| * | add support for commit (in mr) to reference filtermicael.bergeron2017-12-072-10/+20
| | |
* | | Remove Rugged::Repository#empty?Zeger-Jan van de Weg2017-12-075-32/+19
|/ /
* | Merge branch 'jej/per-user-protected-branches-api-ce' into 'master'Sean McGivern2017-12-071-10/+8
|\ \ | | | | | | | | | | | | CE backport of "ProtectedBranches API handles per user/group granularity" See merge request gitlab-org/gitlab-ce!15747
| * | CE backport of ProtectedBranches API changesJames Edwards-Jones2017-12-071-10/+8
| | | | | | | | | | | | | | | In EE we now allow individual users/groups to be set on POST, which required some refactoring. See https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3516
* | | Merge branch 'ce-backport-3615' into 'master'Sean McGivern2017-12-0714-133/+164
|\ \ \ | | | | | | | | | | | | | | | | Refactor banzai to support referencing from group context See merge request gitlab-org/gitlab-ce!15766
| * | | Refactor banzai to support referencing from group contextce-backport-3615Jarka Kadlecova2017-12-0614-133/+164
| | | |
* | | | Support uploads for groupsJarka Kadlecova2017-12-071-2/+16
| | | |
* | | | Merge branch 'metrics/gb/add-tmp-stage-creation-metrics' into 'master'Kamil Trzciński2017-12-071-0/+16
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Add invalid builds counter metric to stage seeds class See merge request gitlab-org/gitlab-ce!15764
| * | | | Update pipeline create chain Prometheus metricmetrics/gb/add-tmp-stage-creation-metricsGrzegorz Bizon2017-12-071-4/+3
| | | | |
| * | | | Move invalid builds counter out of the transactionGrzegorz Bizon2017-12-062-13/+17
| | | | |
| * | | | Add invalid builds counter metric to stage seeds classGrzegorz Bizon2017-12-061-0/+13
| | | | |
* | | | | Merge branch 'gitaly-prevent-dup' into 'master'Sean McGivern2017-12-072-6/+10
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Prevent dups when using StringIO for binary reads See merge request gitlab-org/gitlab-ce!15771
| * | | | | Prevent dups when using StringIO for binary readsgitaly-prevent-dupJacob Vosmaer2017-12-062-6/+10
| | |_|_|/ | |/| | |
* | | | | The API isn't using the appropriate services for managing forksFrancisco Javier López2017-12-071-10/+11
| | | | |
* | | | | Merge branch 'mk-add-old-attachments-to-uploads-table' into 'master'Stan Hu2017-12-074-2/+447
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | Add old files to uploads table See merge request gitlab-org/gitlab-ce!15270
| * | | | Process normal paths in batch containing bad pathsMichael Kozono2017-12-051-4/+25
| | | | |
| * | | | Follow symlinksMichael Kozono2017-12-041-1/+1
| | | | | | | | | | | | | | | | | | | | In particular, the Omnibus uploads directory is generally a symlink.
| * | | | Handle race conditionMichael Kozono2017-12-011-1/+2
| | | | |
| * | | | Address Rubocop offensesMichael Kozono2017-12-012-39/+82
| | | | |
| * | | | Ensure consistent column orderMichael Kozono2017-12-011-1/+1
| | | | |
| * | | | Don’t quote `NOW()` for created_at columnMichael Kozono2017-12-012-3/+9
| | | | | | | | | | | | | | | | | | | | To fix for MySQL.
| * | | | RefactorMichael Kozono2017-12-011-6/+6
| | | | |
| * | | | Don’t recreate deleted uploadsMichael Kozono2017-12-011-5/+35
| | | | |
| * | | | Get rid of timestamps on untracked files tableMichael Kozono2017-12-011-3/+2
| | | | | | | | | | | | | | | | | | | | `updated_at` is now unnecessary and `created_at` is less useful due to removing the tracked field.
| * | | | Bulk insert uploadsMichael Kozono2017-12-011-49/+14
| | | | |
| * | | | Filter existing uploads with one queryMichael Kozono2017-12-011-38/+42
| | | | |
| * | | | RefactorMichael Kozono2017-12-011-13/+10
| | | | |
| * | | | Get rid of tracked fieldMichael Kozono2017-12-012-13/+3
| | | | | | | | | | | | | | | | | | | | It makes a debugging slightly easier, but is not necessary, and is a waste of resources.
| * | | | RefactorMichael Kozono2017-12-011-10/+3
| | | | |
| * | | | Fix datetime inserts on MySQLMichael Kozono2017-12-011-3/+1
| | | | |
| * | | | Fix Rubocop offenseMichael Kozono2017-12-011-0/+1
| | | | |
| * | | | Use bulk insertsMichael Kozono2017-12-011-20/+35
| | | | |
| * | | | Use ionice absolute pathMichael Kozono2017-12-011-2/+3
| | | | |
| * | | | Log the find command usedMichael Kozono2017-12-011-0/+2
| | | | |
| * | | | Move temp table creation into the prepare jobMichael Kozono2017-12-011-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | * Hopefully fixes spec failures in which the table doesn’t exist * Decouples the background migration from the post-deploy migration, e.g. we could easily run it again even though the table is dropped when finished.
| * | | | Fix migration for pre-Postgres 9.5Michael Kozono2017-12-011-1/+15
| | | | |