summaryrefslogtreecommitdiff
path: root/spec/lib
Commit message (Collapse)AuthorAgeFilesLines
* Implement OperationService.UserAddBranch Gitaly RPCgitaly-add-branchAlejandro Rodríguez2017-09-301-0/+55
|
* Populate `Gitlay::Repository`'s `gl_repository` fieldAlejandro Rodríguez2017-09-302-1/+45
|
* Add a factory for `Gitaly::GitCommit`sAlejandro Rodríguez2017-09-301-27/+5
|
* Create repositories via GitalyJacob Vosmaer2017-09-292-24/+33
|
* Merge branch ↵Rémy Coutable2017-09-291-20/+102
|\ | | | | | | | | | | | | | | | | '36631-activerecord-statementinvalid-pg-querycanceled-error-canceling-statement-due-to-statement-timeout' into 'master' Insert at most 1,000 rows at once in MR diff background migration Closes #36631 et #37505 See merge request gitlab-org/gitlab-ce!13661
| * Make MR diff background migration less likely to time outSean McGivern2017-09-291-22/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This version does not use transactions, but individual statements. As we have unique constraints on the target tables for the inserts, we can just ignore uniqueness violations there (as long as we always insert the same batch size, in the same order). This means the spec now must use truncation, not a transaction, as the uniqueness violation means that the whole transaction for that spec would be invalid, which isn't what we'd want. In real-world use, this isn't run in a transaction anyway. This commit also wraps unhandled exceptions, for easier finding in Sentry, and logs with a consistent format, for easier searching.
| * Insert at most 1,000 rows at once in MR diff background migrationSean McGivern2017-09-291-2/+30
| | | | | | | | | | | | We were hitting the statement timeout for very large MR diffs. Now we insert at most 1,000 rows to `merge_request_diff_commits` in a single statement, or 100 rows to `merge_request_diff_files`.
* | Make Repository#has_visible_content more efficientJacob Vosmaer (GitLab)2017-09-291-0/+34
| |
* | Fix notes type created from importLin Jen-Shin (godfat)2017-09-292-0/+18
|/
* Merge branch 'feature/migrate-repository-rm-tag-to-gitaly' into 'master'Robert Speicher2017-09-281-1/+2
|\ | | | | | | | | | | | | Migrate Git::Repository#rm_tag to Gitaly Closes gitaly#562 See merge request gitlab-org/gitlab-ce!14388
| * Migrate Git::Repository#rm_tag to GitalyAhmad Sherif2017-09-281-1/+2
| | | | | | | | Closes gitaly#562
* | Merge branch 'hashed-storage-migration-path' into 'master'Douwe Maan2017-09-281-10/+31
|\ \ | | | | | | | | | | | | | | | | | | Hashed storage migration path Closes gitlab-ee#3118 See merge request gitlab-org/gitlab-ce!14067
| * | [Backported from EE] Readonly flag for ProjectsGabriel Mazetto2017-09-281-10/+31
| |/ | | | | | | | | This is used in EE for the storage migration, and we want to use this in CE as well to be able to migrate projects to hashed_storage.
* | Handle error when fetching ref for MR with deleted source branch38319-nomethoderror-undefined-method-sha-for-nil-nilclassSean McGivern2017-09-281-0/+78
|/ | | | | | If the ref doesn't exist, and the source branch is deleted, we can't get it back easily. Previously, we ignored this error by shelling out, so replicate that behaviour.
* Merge branch 'backstage/gb/refactor-pipeline-create-service' into 'master'Kamil Trzciński2017-09-277-3/+537
|\ | | | | | | | | | | | | Refactor a service responsible for creating a pipeline Closes #37563 and #34415 See merge request gitlab-org/gitlab-ce!14482
| * Add specs for pipeline chain builder sequence classGrzegorz Bizon2017-09-261-0/+55
| |
| * Fix some code style offenses in pipeline chain classesGrzegorz Bizon2017-09-261-3/+2
| |
| * Add missing tests for pipeline chain access validatorGrzegorz Bizon2017-09-261-0/+13
| |
| * Add specs for pipeline builder that validates configGrzegorz Bizon2017-09-261-0/+127
| |
| * Add specs for pipeline builder repository validatorGrzegorz Bizon2017-09-261-0/+60
| |
| * Add specs for builder chain that persist a pipelineGrzegorz Bizon2017-09-261-0/+66
| |
| * Add specs for builder chain step that skipps pipelinesGrzegorz Bizon2017-09-261-0/+85
| |
| * Add specs for pipeline builder abilities validatorGrzegorz Bizon2017-09-261-10/+29
| |
| * Move pipeline builder validation chain to a moduleGrzegorz Bizon2017-09-261-1/+1
| |
| * Split pipeline chain builder validation classGrzegorz Bizon2017-09-261-1/+1
| |
| * Extract pipeline chain builder classes from serviceGrzegorz Bizon2017-09-251-0/+110
| |
| * Move related pipeline class to new pipeline moduleGrzegorz Bizon2017-09-251-3/+3
| |
* | Add a spec for Github::Client and revert an `if !` to `unless`38198-fetch-github-api-per-100Rémy Coutable2017-09-261-0/+34
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch 'dm-bitbucket-import-truncated-shas' into 'master'Robert Speicher2017-09-262-0/+93
|\ \ | |/ |/| | | | | | | | | Fix bug that caused merge requests with diff notes imported from Bitbucket to raise errors Closes #38100 See merge request gitlab-org/gitlab-ce!14438
| * Add specsdm-bitbucket-import-truncated-shasDouwe Maan2017-09-252-0/+93
| |
* | Migrate Gitlab::Git::Repository#log to GitalyKim "BKC" Carlbäcker2017-09-251-1/+9
|/
* Merge branch '38280-undefined-run_command-when-running-rake-gitlab-check' ↵Douwe Maan2017-09-251-0/+17
|\ | | | | | | | | | | | | | | | | into 'master' Resolve "Undefined run_command when running rake gitlab:check" Closes #38280 See merge request gitlab-org/gitlab-ce!14469
| * Fixed few gitlab:check tasks that were failing with exception38280-undefined-run_command-when-running-rake-gitlab-checkGabriel Mazetto2017-09-251-0/+17
| |
* | Merge branch 'rs-allow-name-on-anchors' into 'master'Douwe Maan2017-09-251-2/+6
|\ \ | |/ |/| | | | | | | | | Re-allow `name` attribute on user-provided anchor HTML Closes #38196 See merge request gitlab-org/gitlab-ce!14452
| * Make the "customizes the whitelist only once" spec less brittlers-allow-name-on-anchorsRobert Speicher2017-09-221-1/+3
| |
| * Re-allow `name` attribute on user-provided anchor HTMLRobert Speicher2017-09-221-1/+3
| |
* | Merge branch '36549-circuit-breaker-handles-missing-storages' into 'master'Douwe Maan2017-09-223-11/+97
|\ \ | |/ |/| | | | | | | | | Allow the git circuit breaker to correctly handle missing repository storages Closes #36549 See merge request gitlab-org/gitlab-ce!14417
| * Allow the git circuit breaker to correctly handle missing repository storagesNick Thomas2017-09-223-11/+97
| |
* | Merge branch '33328-usage-ping-for-gitlab-features-and-components' into 'master'Rémy Coutable2017-09-221-0/+36
|\ \ | | | | | | | | | | | | | | | | | | Adds gitlab features and components to usage ping data. Closes #33328 See merge request gitlab-org/gitlab-ce!14305
| * | Adds gitlab features and components to usage ping data.33328-usage-ping-for-gitlab-features-and-componentsTiago Botelho2017-09-211-0/+36
| | |
* | | Merge branch 'sh-blob-raw-check' into 'master'Douwe Maan2017-09-221-0/+3
|\ \ \ | |_|/ |/| | | | | | | | Ensure that Blob.raw returns always returns a valid blob object See merge request gitlab-org/gitlab-ce!14412
| * | 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 'fix-multi-line-hook-output' into 'master'Rémy Coutable2017-09-221-1/+2
|\ \ | | | | | | | | | | | | | | | | | | Display full pre-receive and post-receive hook output in GitLab UI Closes #25214 See merge request gitlab-org/gitlab-ce!14222
| * | Display full pre-receive and post-receive hook output in GitLab UIRobin Bobbitt2017-09-211-1/+2
| |/
* | Merge branch 'dm-closing-issue-urls' into 'master'Robert Speicher2017-09-211-2/+2
|\ \ | | | | | | | | | | | | | | | | | | Correctly detect multiple issue URLs after 'Closes...' in MR descriptions Closes #33745 See merge request gitlab-org/gitlab-ce!14411
| * | Correctly detect multiple issue URLs after 'Closes...' in MR descriptionsdm-closing-issue-urlsDouwe Maan2017-09-211-2/+2
| |/
* | Adds EE tag detection to remove_old in gitlab backup.Tiago Botelho2017-09-211-5/+11
|/
* 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