summaryrefslogtreecommitdiff
path: root/spec/lib
Commit message (Collapse)AuthorAgeFilesLines
* Track and act upon the number of executed queriesquery-countsYorick Peterse2018-02-014-0/+300
| | | | | | | | | | | This ensures that we have more visibility in the number of SQL queries that are executed in web requests. The current threshold is hardcoded to 100 as we will rarely (maybe once or twice) change it. In production and development we use Sentry if enabled, in the test environment we raise an error. This feature is also only enabled in production/staging when running on GitLab.com as it's not very useful to other users.
* Merge branch '42497-rubocop-style-regexpliteral' into 'master'Rémy Coutable2018-02-0110-20/+20
|\ | | | | | | | | | | | | Enable Style/RegexpLiteral cop Closes #42497 See merge request gitlab-org/gitlab-ce!16752
| * Enable RuboCop Style/RegexpLiteralTakuya Noguchi2018-02-0110-20/+20
| |
* | Merge branch 'repository-log-disable-walk' into 'master'Douwe Maan2018-01-311-38/+0
|\ \ | | | | | | | | | | | | Remove Rugged::Walk implementation of #log See merge request gitlab-org/gitlab-ce!16798
| * | Remove Rugged::Walk implementation of #logrepository-log-disable-walkJacob Vosmaer2018-01-311-38/+0
| | |
* | | Merge branch 'rugged-reference-cache-rescue' into 'master'Sean McGivern2018-01-311-12/+8
|\ \ \ | |_|/ |/| | | | | | | | Stop rescuing Rugged::Reference in Repository cache See merge request gitlab-org/gitlab-ce!16770
| * | Remove Rugged exception in cache rescuerugged-reference-cache-rescueJacob Vosmaer2018-01-301-12/+8
| | |
* | | Merge branch 'zj-gitaly-server-info' into 'master'Sean McGivern2018-01-311-0/+30
|\ \ \ | |_|/ |/| | | | | | | | Gitaly Server info for admin panel See merge request gitlab-org/gitlab-ce!16794
| * | Gitaly Server info for admin panelZeger-Jan van de Weg2018-01-311-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements the client side for gitlab-org/gitaly#819. Which is a server info command. This checks the server version and git binairy version on the server. A small UI was added for administrators, so they can check the status of the Gitaly server. This is done for each storage the monolith knows. Because of this commit, gitlab-org/gitlab-ce!15580 is now closed. That MR removed the Git version too, but didn't replace it with anything.
* | | Merge branch 'feature/migrate-delete-refs-to-gitaly' into 'master'Robert Speicher2018-01-302-21/+25
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Migrate Git::Repository#delete_refs to Gitaly Closes gitaly#967 See merge request gitlab-org/gitlab-ce!16723
| * | | Migrate Git::Repository#delete_refs to Gitalyfeature/migrate-delete-refs-to-gitalyAhmad Sherif2018-01-302-21/+25
| | | | | | | | | | | | | | | | Closes gitaly#967
* | | | Merge branch '41771-reduce-cardinality-of-metrics' into 'master'Grzegorz Bizon2018-01-307-49/+167
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | Reduce the cardinality of GitLab metrics Closes #41771 See merge request gitlab-org/gitlab-ce!16443
| * | | Rename Concern -> Methods41771-reduce-cardinality-of-metricsPawel Chojnacki2018-01-291-2/+2
| | | |
| * | | use public_send where appropriatePawel Chojnacki2018-01-291-3/+3
| | | |
| * | | before -> afterPawel Chojnacki2018-01-292-2/+2
| | | |
| * | | use define_method to define devine_metric_method. (couldn't resist)Pawel Chojnacki2018-01-291-15/+12
| | | |
| * | | Fix ruby sampler specPawel Chojnacki2018-01-291-12/+10
| | | |
| * | | Convert InfluxDB to concern. Fix uninitialized metrics when metrics code is ↵Pawel Chojnacki2018-01-291-2/+5
| | | | | | | | | | | | | | | | inherited.
| * | | Cleanup rspecPawel Chojnacki2018-01-291-14/+20
| | | |
| * | | NullMetric as a singletonPawel Chojnacki2018-01-291-1/+3
| | | |
| * | | Avoid cascading lockingPawel Chojnacki2018-01-291-1/+1
| | | |
| * | | Test if feature is respectedPawel Chojnacki2018-01-291-19/+52
| | | |
| * | | Small Concern_spec cleanupPawel Chojnacki2018-01-291-3/+1
| | | |
| * | | Add Tests for Metrics::ConcernPawel Chojnacki2018-01-291-0/+101
| | | |
| * | | Fix testsPawel Chojnacki2018-01-291-1/+1
| | | |
| * | | Convert active recordPawel Chojnacki2018-01-291-1/+1
| | | |
| * | | Fix code after refactoringPawel Chojnacki2018-01-291-1/+1
| | | |
| * | | cleanup method callPawel Chojnacki2018-01-291-32/+12
| | | |
* | | | Merge branch '21554-mark-new-user-as-external' into 'master'Douwe Maan2018-01-301-9/+21
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | Login via OAuth marked as "external" should only mark new users as "external", not existing ones Closes #21554 See merge request gitlab-org/gitlab-ce!16672
| * | | Only new users get marked as external21554-mark-new-user-as-externalTiago Botelho2018-01-301-9/+21
| | | |
* | | | Decouple more of Repository from RuggedJacob Vosmaer (GitLab)2018-01-301-0/+25
| |_|/ |/| |
* | | Merge branch '41972-make-sure-no-warnings' into 'master'Robert Speicher2018-01-292-2/+153
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Fail static-analysis if there's output to stderr Closes #41972 See merge request gitlab-org/gitlab-ce!16648
| * | | Use Process::Status rather than an integerLin Jen-Shin2018-01-262-9/+9
| | | | | | | | | | | | | | | | However keep backward compatibility
| * | | Fail static-analysis if there's output to stderrLin Jen-Shin2018-01-262-2/+153
| | | | | | | | | | | | | | | | TODO: fix offenders
* | | | Don't allow Repository#log with limit zeroJacob Vosmaer (GitLab)2018-01-291-0/+10
| |_|/ |/| |
* | | fix specJames Lopez2018-01-261-1/+1
| | |
* | | add an extra specJames Lopez2018-01-261-1/+5
| | |
* | | fix validation error on servicesJames Lopez2018-01-261-1/+1
|/ /
* | Fix rubocop offenses introduced in !16623Ahmad Sherif2018-01-251-2/+7
| |
* | Merge branch 'feature/migrate-repo-restorer-to-gitaly' into 'master'Robert Speicher2018-01-251-0/+36
|\ \ | | | | | | | | | | | | | | | | | | Migrate restoring repo from bundle to Gitaly Closes gitaly#946 See merge request gitlab-org/gitlab-ce!16623
| * | Migrate restoring repo from bundle to Gitalyfeature/migrate-repo-restorer-to-gitalyAhmad Sherif2018-01-241-0/+36
| | | | | | | | | | | | Closes gitaly#946
* | | Merge branch 'lint-rugged' into 'master'Rémy Coutable2018-01-251-3/+3
|\ \ \ | | | | | | | | | | | | | | | | Add a lint check to restrict use of Rugged See merge request gitlab-org/gitlab-ce!16656
| * | | Look for rugged with static analysislint-ruggedJacob Vosmaer2018-01-251-3/+3
| | |/ | |/|
* | | Merge branch 'fix/batch-lfs-pointers-accepting-lazy-enum' into 'master'Grzegorz Bizon2018-01-251-0/+15
|\ \ \ | |/ / |/| | | | | | | | Fix .batch_lfs_pointers accepting a lazy enumerator See merge request gitlab-org/gitlab-ce!16701
| * | Fix .batch_lfs_pointers accepting a lazy enumeratorfix/batch-lfs-pointers-accepting-lazy-enumAhmad Sherif2018-01-251-0/+15
| | |
* | | Merge branch 'revert-430b3f0e' into 'master'Douwe Maan2018-01-251-0/+38
|\ \ \ | | | | | | | | | | | | | | | | Revert "Merge branch 'remove-rugged-walk' into 'master'" See merge request gitlab-org/gitlab-ce!16676
| * | | Revert "Merge branch 'remove-rugged-walk' into 'master'"revert-430b3f0eJacob Vosmaer (GitLab)2018-01-251-0/+38
| |/ / | | | | | | This reverts merge request !16525
* | | Merge branch 'jej/gitattributes-check-at-ref' into 'master'Rémy Coutable2018-01-253-25/+99
|\ \ \ | |/ / |/| | | | | | | | Can parse root .gitattributes file for a ref See merge request gitlab-org/gitlab-ce!16418
| * | Can parse root .gitattributes file for a refjej/gitattributes-check-at-refJames Edwards-Jones2018-01-243-25/+99
| | |
* | | Merge branch ↵Rémy Coutable2018-01-251-0/+23
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '42161-gitaly-commitservice-encoding-undefinedconversionerror-u-c124-from-utf-8-to-ascii-8bit' into 'master' Resolve "Gitaly::CommitService: Encoding::UndefinedConversionError: U+C124 from UTF-8 to ASCII-8BIT" Closes #42161 See merge request gitlab-org/gitlab-ce!16637