summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/git/commit_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@13-4-stable-eeGitLab Bot2020-09-191-4/+4
|
* Add latest changes from gitlab-org/gitlab@13-3-stable-eeGitLab Bot2020-08-201-0/+1
|
* Add latest changes from gitlab-org/gitlab@13-2-stable-eeGitLab Bot2020-07-201-2/+30
|
* Add latest changes from gitlab-org/gitlab@13-0-stable-eeGitLab Bot2020-05-201-0/+20
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-161-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-121-0/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-071-2/+6
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-031-4/+18
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-211-3/+5
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-211-14/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-181-0/+9
|
* Use Rugged if we detect storage is NFS and we can access the diskjc-detect-nfs-for-ruggedJohn Cai2019-07-051-1/+1
| | | | | Add a module we use as a singleton to determine whether or not rails is able to access the disk
* Bring back Rugged implementation of ListCommitsByOidStan Hu2019-04-171-1/+36
| | | | | | | | | | | | | This brings back changes in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20432. For users using Gitaly on top of NFS, accessing the Git data directly via Rugged may be faster than going through than Gitaly. This merge request introduces the feature flag `rugged_list_commits_by_oid` to activate the Rugged method. For one customer, we saw that ListCommitsByOid was the second highest used endpoint that may be causing increased load.
* Autocorrect with RSpec/ExampleWording copThong Kuah2019-04-051-7/+7
| | | | | | | - rewords examples starting with 'should' - rewords examples starting with 'it' Note: I had to manually fixup "onlies" to "only"
* Enrich commits with full data in CommitCollectionLuke Duncalfe2019-03-221-0/+12
| | | | | | | | | | | | | | | | | | | | Allow incomplete commit records to load their full data from gitaly. Commits can be based on a Hash of data retrieved from PostgreSQL, and this data can be intentionally incomplete in order to save space. A new method #gitaly? has been added to Gitlab::Git::Commit, which returns true if the underlying data source of the Commit is a Gitaly::GitCommit. CommitCollection now has a method #enrich which replaces non-gitaly commits in place with commits from gitaly. CommitCollection#without_merge_commits has been updated to call this method, as in order to determine a merge commit we need to have parent data. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/58805
* Bring back Rugged implementation of find_commitStan Hu2019-03-011-1/+15
| | | | | | | | | | | | | | | | This brings back some of the changes in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20339. For users using Gitaly on top of NFS, accessing the Git data directly via Rugged is more performant than Gitaly. This merge request introduces the feature flag `rugged_find_commit` to activate Rugged paths. There are also Rake tasks `gitlab:features:enable_rugged` and `gitlab:features:disable_rugged` to enable/disable these feature flags altogether. Part of four Rugged changes identified in https://gitlab.com/gitlab-org/gitlab-ce/issues/57317.
* Send project name with Gitaly repository requestsStan Hu2019-02-051-2/+2
| | | | | | | 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
* Batch load only data from same repository when lazy object is accessedDouwe Maan2018-11-261-0/+6
| | | | | | | By specifying `key`, we get a different lazy batch loader for each repository, which means that accessing a lazy object from one repository will only result in that repository's objects being fetched, not those of other repositories, saving us some unnecessary Gitaly lookups.
* Revert "Merge branch 'revert-e2aa2177' into 'master'"Zeger-Jan van de Weg2018-11-201-111/+83
| | | This reverts merge request !23229
* Revert "Merge branch 'zj-improve-gitaly-pb' into 'master'"revert-e2aa2177Sean McGivern2018-11-201-83/+111
| | | This reverts merge request !23140
* Merge branch 'zj-improve-gitaly-pb' into 'master'Sean McGivern2018-11-201-111/+83
|\ | | | | | | | | Show what RPC is called in the performance bar See merge request gitlab-org/gitlab-ce!23140
| * Remove duplicate tests for GitalyZeger-Jan van de Weg2018-11-191-111/+83
| | | | | | | | | | The disabling of Gitaly was basically stubbing `Feature.enabled?` call, which was never triggered.
* | Fix typos in libGeorge Tsiolis2018-11-151-1/+1
|/
* Remove Gitlab::Git::Repository#rugged and Gollum codeAlejandro Rodríguez2018-10-021-19/+12
| | | | | | | | Cleanup code, and refactor tests that still use Rugged. After this, there should be no Rugged code that access the instance's repositories on non-test environments. There is still some rugged code for other tasks like the repository import task, but since it doesn't access any repository storage path it can stay.
* Refactor gitlab:import:repos task to remove direct disk accessAlejandro Rodríguez2018-07-311-1/+1
|
* Remove unreachable Git codeJacob Vosmaer (GitLab)2018-07-181-8/+10
|
* FindAllCommits mandatoryZeger-Jan van de Weg2018-06-281-66/+36
| | | | Closes https://gitlab.com/gitlab-org/gitaly/issues/326
* Make Gitaly signature RPC's mandatoryJacob Vosmaer2018-06-271-26/+4
|
* ListCommitByOid isn't called with an empty batchZeger-Jan van de Weg2018-06-131-0/+10
| | | | | | Batching commits for performance improvements, might lead to empty batches being used. This isn't the case yet, but to guard against this in future cases, a guard clause is added.
* Find and mark more Git disk access locations, part 2Jacob Vosmaer2018-06-121-5/+12
|
* Fix encoding error in Gitaly::Commit::TreeEntryKim "BKC" Carlbäcker2018-05-301-2/+2
|
* Add handling for commit/tags with big messagesAhmad Sherif2018-05-181-3/+53
|
* Workhorse to send raw diff and patch for commitsZeger-Jan van de Weg2018-05-161-14/+0
| | | | | | | | | | | | | Prior to this change, this was done through unicorn. In theory this could time out. Workhorse has been sending these raw patches and diffs for a long time and is stable in doing so. Added bonus is the fact that `Commit#to_patch` can be removed. `Commit#to_diff` too, which closes https://gitlab.com/gitlab-org/gitaly/issues/324 Closes https://gitlab.com/gitlab-org/gitaly/issues/1196
* Fetch commit signatures from Gitaly in batchesfeature/fetch-commit-signs-from-gitaly-in-batchAhmad Sherif2018-03-011-56/+86
| | | | Closes gitaly#1046
* Add unit tests for Gitaly typeszj-unit-test-gitaly-arraysZeger-Jan van de Weg2018-02-201-0/+4
|
* Retrieve commit signatures with GitalyJacob Vosmaer (GitLab)2018-01-181-0/+78
|
* Remove the Commit#tree methodremove-commit-treeJacob Vosmaer2018-01-041-1/+0
|
* Speed up generation of commit stats by using Rugged native methodssh-optimize-commit-statsStan Hu2018-01-021-0/+5
| | | | | | | | | | The previous implementation iterated across the entire patch set to determine the number of lines added, deleted, and changed. Rugged has a native method `Rugged::Diff#stat` that does this already, which appears to be a little faster and require less RAM than doing this ourselves. Improves performance in #41524
* Migrate Gitlab::Git::Commit.shas_with_signaturesgitaly-764-commit-filter-shas-with-signatureKim "BKC" Carlbäcker2017-12-051-0/+29
| | | | - Added tests for Git::Commit.shas_with_signatures
* Replaces `tag: true` into `:tag` in the specsJacopo2017-10-071-3/+3
| | | | | | Replaces all the explicit include metadata syntax in the specs (tag: true) into the implicit one (:tag). Added a cop to prevent future errors and handle autocorrection.
* Add a factory for `Gitaly::GitCommit`sAlejandro Rodríguez2017-09-301-27/+5
|
* Migrate Gitlab::Git::Repository#log to GitalyKim "BKC" Carlbäcker2017-09-251-1/+9
|
* Migrate Git::CommitStats to Gitalygitaly-519-commit-statsKim "BKC" Carlbäcker2017-09-111-1/+9
|
* Make gl_repository a G::G::Repository attributeJacob Vosmaer2017-08-231-4/+4
|
* Handle missing .gitmodules when getting submodule urlsmalformed-submoduleJacob Vosmaer2017-08-141-2/+2
|
* Incorporate Gitaly's CommitService.FindCommit RPCgitaly-find-commitAlejandro Rodríguez2017-08-071-1/+4
|
* Refactor Gitlab::Git::Commit to include a repositoryAlejandro Rodríguez2017-08-071-26/+26
|
* Remove unnecessary 'raw' aliasJacob Vosmaer2017-08-031-1/+1
|
* Migrate Gitlab::Git::Commit.find_all to Gitalyfeature/migrate-commit-find-all-to-gitalyAhmad Sherif2017-07-201-50/+66
| | | | Closes gitaly#396
* Incorporate Gitaly's Commits#between RPCAlejandro Rodríguez2017-07-181-2/+13
|