summaryrefslogtreecommitdiff
path: root/spec/lib
Commit message (Collapse)AuthorAgeFilesLines
* Ensure that Blob.raw returns always returns a valid blob objectsh-blob-raw-checkStan Hu2017-09-211-0/+3
| | | | | | | In gitlab-org/gitlab-ee!2976, we saw that a given OID could point to a commit, which would cause the delta size check to fail. Gitaly already returns nil if the OID isn't a blob, so this change makes the Rugged implementation consistent.
* Merge branch 'gitlab-git-popen' into 'master'Douwe Maan2017-09-203-5/+5
|\ | | | | | | | | | | | | Use Gitlab::Git's Popen on that module's code Closes gitaly#597 See merge request gitlab-org/gitlab-ce!14237
| * Use Gitlab::Git's Popen on that module's codegitlab-git-popenAlejandro Rodríguez2017-09-203-5/+5
| | | | | | | | | | This allows the current Gitaly migration to depend on less code outside of the Gitlab::Git module
* | Merge branch '32796-tighten-up-remove-old-while-backing-up-gitlab' into 'master'Rémy Coutable2017-09-201-9/+37
|\ \ | | | | | | | | | | | | | | | | | | Tighten up remove_old regex from gitlab backup manager. Closes #32796 See merge request gitlab-org/gitlab-ce!14333
| * | Tighten up remove_old regex from gitlab backup manager.32796-tighten-up-remove-old-while-backing-up-gitlabTiago Botelho2017-09-201-9/+37
| | |
* | | Fix rewriting issue references with group milestonesGrzegorz Bizon2017-09-202-15/+48
| |/ |/|
* | Merge branch 'fix/gitaly-commit-diff-rpc-encoding-error' into 'master'Robert Speicher2017-09-201-0/+4
|\ \ | | | | | | | | | | | | | | | | | | Encode paths properly for Gitaly Commit{Diff,Delta} Closes gitaly#589 See merge request gitlab-org/gitlab-ce!14361
| * | Encode paths properly for Gitaly Commit{Diff,Delta}fix/gitaly-commit-diff-rpc-encoding-errorAhmad Sherif2017-09-191-0/+4
| | | | | | | | | | | | Fixes gitaly#589
* | | Merge branch 'backstage/gb/jobs-triggering-policy-specifications' into 'master'Kamil Trzciński2017-09-194-117/+288
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Implement job policy specifications Closes #37280 See merge request gitlab-org/gitlab-ce!14265
| * | Fix closing braces in YAML processor specsbackstage/gb/jobs-triggering-policy-specificationsGrzegorz Bizon2017-09-191-1/+2
| | |
| * | Raise exception when initializing unknown policyGrzegorz Bizon2017-09-181-5/+2
| | |
| * | Use parentheses in CI/CD kubernetes policy specsGrzegorz Bizon2017-09-181-1/+1
| | |
| * | Do not initialize YAML processor with project full pathGrzegorz Bizon2017-09-181-60/+59
| | |
| * | Do not pass project path from YAML processorGrzegorz Bizon2017-09-182-12/+27
| | | | | | | | | | | | Use project full path that can be received from a pipeline object
| * | Add specs for CI/CD job policy refs specificationGrzegorz Bizon2017-09-181-0/+87
| | |
| * | Add specs for CI/CD job policy factory methodGrzegorz Bizon2017-09-181-0/+40
| | |
| * | Fix Rubocop offenses in YAML processor classesGrzegorz Bizon2017-09-181-1/+1
| | |
| * | Remove YAML processor refactoring stubs and fix specsGrzegorz Bizon2017-09-181-53/+55
| | |
| * | Implement CI/CD kubernetes policy specificationGrzegorz Bizon2017-09-181-0/+30
| | |
* | | Detect n+1 issues involving GitalyAndrew Newdigate2017-09-191-0/+124
| | |
* | | Merge branch '37789-followup-for-read-registry-change' into 'master'Rémy Coutable2017-09-181-5/+5
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Clean up read_registry scope changes Closes #37789 See merge request gitlab-org/gitlab-ce!14307
| * | Clean up read_registry scope changesRobin Bobbitt2017-09-181-5/+5
| | | | | | | | | | | | Closes #37789
* | | Merge branch 'operation-service-merge' into 'master'Rémy Coutable2017-09-181-9/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Prepare Repository#merge for migration to Gitaly Closes gitaly#559 See merge request gitlab-org/gitlab-ce!14154
| * | | Prepare Repository#merge for migration to Gitalyoperation-service-mergeJacob Vosmaer2017-09-151-9/+1
| |/ /
* | | Merge branch 'mk-delete-conflicting-redirects-mysql' into 'master'Douwe Maan2017-09-182-0/+162
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Clean up redirect routes that conflict with regular routes Closes #36229 See merge request gitlab-org/gitlab-ce!13783
| * | | Spread out the work a littleMichael Kozono2017-09-141-6/+66
| | | |
| * | | Extract helper for queuing background jobsMichael Kozono2017-09-141-0/+62
| | | |
| * | | Add specs for deleting conflicting redirectsMichael Kozono2017-09-141-0/+40
| |/ /
* | | Fix setting share_with_group_lockfix-share-with-group-lock-updateYorick Peterse2017-09-151-0/+15
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this commit running Namespace#force_share_with_group_lock_on_descendants would result in updating _all_ namespaces in the namespaces table, not just the descendants. This is the result of ActiveRecord::Relation#update_all not taking into account the CTE. To work around this we use the CTE query as a sub-query instead of directly calling #update_all. To prevent this from happening the relations returned by Gitlab::GroupHierarchy are now marked as read-only, resulting in an error being raised when methods such as #update_all are used. Fortunately on GitLab.com our statement timeouts appear to have prevented this query from actually doing any damage other than causing a very large amount of dead tuples. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/37916
* | Merge branch 'gitlab-git-user' into 'master'Rémy Coutable2017-09-142-5/+5
|\ \ | | | | | | | | | | | | Rename Gitlab::Git::Committer to User See merge request gitlab-org/gitlab-ce!14254
| * | Rename Gitlab::Git::Committer to UserJacob Vosmaer2017-09-142-5/+5
| | |
* | | Don't force the encoding of the OAuth provider in ↵37845-fix-oauth-provider-forced-encodingRémy Coutable2017-09-141-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Gitlab::OAuth::AuthHash#provider Some providers freeze their name (e.g. https://github.com/zquestz/omniauth-google-oauth2/blob/414c43ef3ffec37d473321f262e80f1e46dda89f/lib/omniauth/strategies/google_oauth2.rb#L1), so trying to modify the string would fail with a `can't modify frozen String` exception (see https://gitlab.com/gitlab-org/gitlab-ce/issues/37845#note_40308148). In this case, we can just stop trying to force the encoding of the provider name as they should always be in utf8 by default. Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | Merge branch 'backport-ee-changes-to-url-sanitizer' into 'master'Rémy Coutable2017-09-131-0/+9
|\ \ \ | |/ / |/| | | | | | | | Backport more EE changes to Gitlab::UrlSanitizer See merge request !14150
| * | Backport more EE changes to Gitlab::UrlSanitizerNick Thomas2017-09-111-0/+9
| |/
* | Merge branch ↵Douwe Maan2017-09-131-0/+14
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | '37629-lazy-image-loading-breaks-notification-mails-for-an-added-screenshot' into 'master' Resolve "Lazy image loading breaks notification mails for an added screenshot" Closes #37629 See merge request !14161
| * | Remove ImageLazyLoadFilter from EmailPipeline37629-lazy-image-loading-breaks-notification-mails-for-an-added-screenshotRobert Speicher2017-09-121-0/+14
| | |
* | | Merge branch 'zj-usage-data-auto-devops' into 'master'Kamil Trzciński2017-09-131-0/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Add usage ping for Auto DevOps Closes #37648 See merge request !14162
| * | | Add auto devops enabled/disabled to usage pingZeger-Jan van de Weg2017-09-121-0/+2
| | | |
| * | | Add usage ping for Auto DevOpsZeger-Jan van de Weg2017-09-081-0/+2
| | | | | | | | | | | | | | | | Fixes gitlab-org/gitlab-ce#37648
* | | | Merge branch '5836-move-lib-ci-into-gitlab-namespace' into 'master'Grzegorz Bizon2017-09-136-1702/+1704
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolve "Move `lib/ci` to `lib/gitlab/ci`" Closes #5836 See merge request !14078
| * | | | adds changelogMaxim Rydkin2017-09-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix CI fix CI
| * | | | move `lib/ci/mask_secret.rb` into `lib/gitlab/ci/mask_secret.rb`Maxim Rydkin2017-09-121-1/+1
| | | | |
| * | | | move `lib/ci/gitlab_ci_yaml_processor.rb` into `lib/gitlab/ci/yaml_processor.rb`Maxim Rydkin2017-09-122-1697/+1699
| | | | |
| * | | | move `lib/ci/charts.rb` into `lib/gitlab/ci/charts.rb`Maxim Rydkin2017-09-121-2/+2
| | | | |
| * | | | move `lib/ci/ansi2html.rb` into `lib/gitlab/ci/ansi2html.rb`Maxim Rydkin2017-09-121-1/+1
| | | | |
* | | | | Merge branch 'revert-2f46c3a8' into 'master'Robert Speicher2017-09-122-2/+58
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | Revert "Merge branch 'revert-f2421b2b' into 'master'" See merge request !14190
| * | | | Revert "Merge branch 'revert-f2421b2b' into 'master'"revert-2f46c3a8Annabel Dunstone Gray2017-09-112-2/+58
| | |_|/ | |/| | | | | | This reverts merge request !14148
* | | | Merge branch 'gitaly-519-commit-stats' into 'master'Robert Speicher2017-09-122-1/+34
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | Migrate Git::CommitStats to Gitaly Closes gitaly#519 See merge request !14077
| * | | Migrate Git::CommitStats to Gitalygitaly-519-commit-statsKim "BKC" Carlbäcker2017-09-112-1/+34
| |/ /
* | | Resolve "Error 500 in non-UTF8 branch names"Micael Bergeron2017-09-122-1/+10
| | |