GitLab Bot
a961982252
Add latest changes from gitlab-org/gitlab@master
2020-09-02 21:10:43 +00:00
GitLab Bot
8e35232810
Add latest changes from gitlab-org/gitlab@master
2020-09-02 15:10:54 +00:00
GitLab Bot
f2eb66fef8
Add latest changes from gitlab-org/gitlab@master
2020-08-21 03:10:16 +00:00
GitLab Bot
71da5de44f
Add latest changes from gitlab-org/gitlab@master
2020-08-05 15:09:59 +00:00
GitLab Bot
8bb9ee8769
Add latest changes from gitlab-org/gitlab@master
2020-07-31 21:10:12 +00:00
GitLab Bot
1b26aaa633
Add latest changes from gitlab-org/gitlab@master
2020-07-30 18:09:39 +00:00
GitLab Bot
ed00b1a6a3
Add latest changes from gitlab-org/gitlab@master
2020-07-28 12:09:49 +00:00
GitLab Bot
3ce55b46df
Add latest changes from gitlab-org/gitlab@master
2020-07-22 18:09:27 +00:00
GitLab Bot
fe29f106cd
Add latest changes from gitlab-org/gitlab@master
2020-07-17 09:09:43 +00:00
GitLab Bot
1d3086ebb4
Add latest changes from gitlab-org/gitlab@master
2020-07-08 18:09:05 +00:00
GitLab Bot
840d5ecdbb
Add latest changes from gitlab-org/gitlab@master
2020-07-02 15:09:08 +00:00
GitLab Bot
757d2fda7e
Add latest changes from gitlab-org/gitlab@master
2020-06-26 21:08:51 +00:00
GitLab Bot
901af2a0dd
Add latest changes from gitlab-org/gitlab@master
2020-06-23 18:09:28 +00:00
GitLab Bot
1127990db8
Add latest changes from gitlab-org/gitlab@master
2020-06-22 03:08:17 +00:00
GitLab Bot
0211553b0c
Add latest changes from gitlab-org/gitlab@master
2020-06-10 12:08:58 +00:00
GitLab Bot
b64a8161c9
Add latest changes from gitlab-org/gitlab@master
2020-05-29 18:08:26 +00:00
GitLab Bot
100a5e4bea
Add latest changes from gitlab-org/gitlab@master
2020-05-25 21:08:00 +00:00
GitLab Bot
5abd2b70c8
Add latest changes from gitlab-org/gitlab@master
2020-05-21 00:08:06 +00:00
GitLab Bot
927df95cc4
Add latest changes from gitlab-org/gitlab@master
2020-05-15 12:08:28 +00:00
GitLab Bot
c7ba7b9976
Add latest changes from gitlab-org/gitlab@master
2020-05-11 09:09:45 +00:00
GitLab Bot
5f0e3773e9
Add latest changes from gitlab-org/gitlab@master
2020-05-06 21:10:00 +00:00
GitLab Bot
209bd8cf1f
Add latest changes from gitlab-org/gitlab@master
2020-04-09 15:09:29 +00:00
GitLab Bot
53b1f4eaa2
Add latest changes from gitlab-org/gitlab@master
2020-04-02 15:08:01 +00:00
GitLab Bot
0d0cddc9ce
Add latest changes from gitlab-org/gitlab@master
2020-03-31 12:08:09 +00:00
GitLab Bot
95ad46159e
Add latest changes from gitlab-org/gitlab@master
2020-03-30 21:08:01 +00:00
GitLab Bot
d2b64c37bd
Add latest changes from gitlab-org/gitlab@master
2020-03-27 06:07:47 +00:00
GitLab Bot
5064bf8c56
Add latest changes from gitlab-org/gitlab@master
2020-03-25 09:08:11 +00:00
GitLab Bot
967812838c
Add latest changes from gitlab-org/gitlab@master
2020-03-23 18:09:25 +00:00
GitLab Bot
154b9bae14
Add latest changes from gitlab-org/gitlab@master
2020-03-17 21:09:16 +00:00
GitLab Bot
9345f69894
Add latest changes from gitlab-org/gitlab@master
2020-03-17 03:09:27 +00:00
GitLab Bot
3cd08f4bf9
Add latest changes from gitlab-org/gitlab@master
2020-03-13 00:09:34 +00:00
GitLab Bot
c77fda905a
Add latest changes from gitlab-org/gitlab@master
2020-02-27 21:09:17 +00:00
GitLab Bot
619d0b6922
Add latest changes from gitlab-org/gitlab@master
2020-02-26 18:09:24 +00:00
GitLab Bot
951616a26a
Add latest changes from gitlab-org/gitlab@master
2020-02-25 18:09:02 +00:00
GitLab Bot
a8c82a6395
Add latest changes from gitlab-org/gitlab@master
2020-02-25 03:08:49 +00:00
GitLab Bot
8c4198cbe6
Add latest changes from gitlab-org/gitlab@master
2020-02-20 12:08:51 +00:00
GitLab Bot
cd3e2c7b93
Add latest changes from gitlab-org/gitlab@master
2020-02-19 12:09:13 +00:00
GitLab Bot
93d7441cc9
Add latest changes from gitlab-org/gitlab@master
2020-02-18 21:09:11 +00:00
GitLab Bot
4720b569f0
Add latest changes from gitlab-org/gitlab@master
2020-02-18 09:09:24 +00:00
GitLab Bot
cfaf1cca44
Add latest changes from gitlab-org/gitlab@master
2020-02-16 21:08:53 +00:00
GitLab Bot
d466ee5042
Add latest changes from gitlab-org/gitlab@master
2020-02-13 21:08:59 +00:00
GitLab Bot
0e9eea40b6
Add latest changes from gitlab-org/gitlab@master
2020-02-11 21:08:44 +00:00
GitLab Bot
0c6bc5443a
Add latest changes from gitlab-org/gitlab@master
2020-02-07 21:08:39 +00:00
GitLab Bot
0d6fa03312
Add latest changes from gitlab-org/gitlab@master
2020-02-06 18:08:54 +00:00
GitLab Bot
fa478f1890
Add latest changes from gitlab-org/gitlab@master
2020-02-06 06:08:52 +00:00
GitLab Bot
c8f773a859
Add latest changes from gitlab-org/gitlab@master
2020-01-30 21:08:47 +00:00
GitLab Bot
e4ea43b2b8
Add latest changes from gitlab-org/gitlab@master
2020-01-27 21:08:47 +00:00
GitLab Bot
390582e118
Add latest changes from gitlab-org/gitlab@master
2020-01-27 18:09:04 +00:00
GitLab Bot
727b1a890c
Add latest changes from gitlab-org/gitlab@master
2020-01-16 21:08:24 +00:00
GitLab Bot
c158fa8d69
Add latest changes from gitlab-org/gitlab@master
2020-01-16 12:08:32 +00:00
GitLab Bot
08ed6a867b
Add latest changes from gitlab-org/gitlab@master
2020-01-16 03:08:47 +00:00
GitLab Bot
571d993b49
Add latest changes from gitlab-org/gitlab@master
2020-01-15 18:08:34 +00:00
GitLab Bot
8b1228b0d4
Add latest changes from gitlab-org/gitlab@master
2020-01-10 15:07:47 +00:00
GitLab Bot
fb73ca3398
Add latest changes from gitlab-org/gitlab@master
2019-12-27 15:08:16 +00:00
GitLab Bot
ab7cf450ba
Add latest changes from gitlab-org/gitlab@master
2019-12-03 18:06:49 +00:00
GitLab Bot
8f1f6b374b
Add latest changes from gitlab-org/gitlab@master
2019-11-25 12:06:13 +00:00
GitLab Bot
29c01c6c91
Add latest changes from gitlab-org/gitlab@master
2019-11-14 03:06:25 +00:00
GitLab Bot
2baa63e740
Add latest changes from gitlab-org/gitlab@master
2019-11-05 18:08:34 +00:00
GitLab Bot
6791eefead
Add latest changes from gitlab-org/gitlab@master
2019-10-21 09:06:22 +00:00
GitLab Bot
4b28d5ae77
Add latest changes from gitlab-org/gitlab@master
2019-10-09 21:06:24 +00:00
GitLab Bot
9a1c545674
Add latest changes from gitlab-org/gitlab@master
2019-10-03 15:07:07 +00:00
GitLab Bot
4f4dcd3c5d
Add latest changes from gitlab-org/gitlab@master
2019-10-02 15:06:12 +00:00
GitLab Bot
80f61b4035
Add latest changes from gitlab-org/gitlab@master
2019-09-18 14:02:45 +00:00
Jan Provaznik
8d1d7b2fd9
Merge branch 'remove-unnecessary-freeze-in-lib-gitlab' into 'master'
...
Avoid calling freeze on already frozen strings in lib/gitlab
See merge request gitlab-org/gitlab-ce!32637
2019-09-05 08:16:24 +00:00
Pavel Shutsin
f089a23015
Backport EE changes for productivity analytics
...
Improve diff lines count efficiency
2019-09-04 13:01:55 +03:00
dineshpanda
e908e11776
Avoid calling freeze on already frozen strings in lib/gitlab
2019-09-04 09:52:02 +05:30
Stan Hu
291df05e43
Add Rugged calls to performance bar
...
This will help diagnose the source of excessive I/O from Rugged
calls. To implement this, we need to obtain the full list of arguments
sent to each request method.
2019-07-23 21:38:05 -07:00
Douglas Barbosa Alexandre
090ca4f7e3
Merge branch 'sh-add-rugged-logs' into 'master'
...
Add Rugged calls and duration to API and Rails logs
Closes #64676
See merge request gitlab-org/gitlab-ce!30871
2019-07-18 15:43:37 +00:00
Stan Hu
1136c0c8e9
Add Rugged calls and duration to API and Rails logs
...
This adds `rugged_duration_ms` and `rugged_calls` fields to
`api_json.log` and `production_json.log`. This will make it easier to
identify performance issues caused by excessive I/O.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64676
2019-07-18 06:53:39 -07:00
Nick Thomas
3069cb2545
Merge branch 'webide-commit-use-correct-parent' into 'master'
...
Use correct parent when committing in WebIDE
See merge request gitlab-org/gitlab-ce!29598
2019-07-18 10:47:35 +00:00
Markus Koller
f8cecafb07
Add start_sha to commits API
...
When passing start_branch on committing from the WebIDE, it's possible
that the branch has changed since editing started, which results in the
change being applied on top of the latest commit in the branch and
overwriting the new changes.
By passing the start_sha instead we can make sure that the change is
applied on top of the commit which the user started editing from.
2019-07-18 09:19:18 +02:00
Stan Hu
ddf2dcf7fd
Merge branch 'jc-wrap-rugged-calls-with-disk-access' into 'master'
...
Wrap rugged calls with access disk block
See merge request gitlab-org/gitlab-ce!30592
2019-07-17 22:23:20 +00:00
Igor
0f46886880
Added submodule links to Submodule type in GraphQL API
...
This is part of migration of Folder View to Vue
2019-07-17 13:06:19 +00:00
John Cai
8765d53737
Wrap rugged calls with access disk block
...
Whenever we use the rugged implementation, we are going straight to disk
so we want to bypass the disk access check.
2019-07-16 13:54:01 -07:00
Mayra Cabrera
0ab89d8e36
Add a rubocop for Rails.logger
...
Suggests to use a JSON structured log instead
Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/54102
2019-07-10 19:26:47 +00:00
John Cai
8152e1aa4a
Use Rugged if we detect storage is NFS and we can access the disk
...
Add a module we use as a singleton to determine whether or not rails is
able to access the disk
2019-07-05 10:31:47 -07:00
Shinya Maeda
48307fac1e
Extend MergeToRefService for creating merge ref from the other ref
...
Currently, MergeToRefService is specifically designed for
createing merge commits from source branch and target branch of
merge reqeusts. We extend this behavior to source branch and any
target ref paths.
2019-07-05 17:15:10 +07:00
Paul Okstad
7e2188a18e
Change GetRawChanges RPC to use bytes
2019-06-27 13:35:13 +00:00
GitalyBot
e7b54b9cb8
Fix broken worktree test
...
The setup was wrong, and due to Gitaly being a bit more strict it had to
match up. The test is now accurate and passing again.
2019-06-25 14:45:51 +00:00
Luke Duncalfe
dcf811ba14
CE backport for changes in EE MR 14017
...
This backports to CE changes to allow the EE model
DesignManagement::Repository to override the #attributes_at method to
provide its own git attributes.
The #attributes_at method was freely available, as it's never called by
anything in the app. It looks like the code that called it got
refactored out of existence in ca66a04f . It was still being called in a
spec
85b29c1c2f/spec/services/files/create_service_spec.rb (L40)
which I've left because with the change in Lfs::FileTransformer in fact
is now again the perfect test!
See EE MR
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14017
And these comment threads
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13894#note_178002089
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13894#note_178049984
2019-06-19 17:51:57 +00:00
Patrick Bajao
40fd0b9e40
Add client code to call GetObjectDirectorySize RPC
...
CE port of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13460
2019-06-05 20:58:46 +08:00
Zeger-Jan van de Weg
951afba624
Remove hook directory requirement from Shell
...
It used to be the case that GitLab created symlinks for each repository
to one copy of the Git hooks, so these ran when required. This changed
to set the hooks dynamically on Gitaly when invoking Git.
The side effect is that we didn't need all these symlinks anymore, which
Gitaly doesn't create anymore either. Now that means that the tests in
GitLab-Rails should test for it either.
Related: https://gitlab.com/gitlab-org/gitaly/issues/1392#note_175619926
2019-05-30 20:04:08 +02:00
Stan Hu
c1827f1c50
API: Fix recursive flag not working with Rugged get_tree_entries flag
...
Attempting to use the API endpoint
/projects/:id/repository/tree?recursive=true would only return a subset
of the results since the full recursive list wasn't actually being
returned.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/61979
2019-05-20 12:19:15 -07:00
John Cai
f86797b5a9
Omit max-count for diverging_commit_counts behind feature flag
...
We want to optimize the query for the CountDivergingCommits rpc by
removing the --max-count argument now that we have commit graphs
enabled for all repositories during housekeeping. However, we want to
test this first behind a feature flag.
2019-05-14 12:13:19 -05:00
Douwe Maan
908860087f
Merge branch '30093-apply-bfg-object-map-to-database' into 'master'
...
Remove cleaned up OIDs from database and cache
Closes #30093
See merge request gitlab-org/gitlab-ce!26555
2019-05-06 11:33:11 +00:00
Stan Hu
02ca1577ea
Merge branch 'jc-disconnect-git-alternates-client' into 'master'
...
Add client methods for DisconnectGitAlternates rpc
See merge request gitlab-org/gitlab-ce!27938
2019-05-06 10:54:16 +00:00
Nick Thomas
8973f32d42
Remove cleaned up OIDs from database and cache
2019-05-06 11:35:03 +01:00
Stan Hu
f93b2e02a5
Run rubocop -a on CE files
2019-05-05 03:24:28 -07:00
John Cai
0e033b3124
Add client methods for DisconnectGitAlternates rpc
...
DisconnectGitAlternates is a Gitaly RPC that will delete a repository's
objects/info/alternates file. This commit adds client support for that
RPC.
2019-05-03 15:59:28 -07:00
Luke Duncalfe
49cb4b3dfc
Add support for two-step Gitaly Rebase RPC
...
The new two-step Gitaly `Rebase` RPC yields the rebase commit SHA to the
client before proceeding with the rebase.
This avoids an issue where the rebase commit SHA was returned when the
RPC had fully completed, and in some cases this would be after the Rails
`post_receive` worker services had already run. In these situations,
the merge request did not yet have its rebase_commit_sha attribute set
introducing the possibility for bugs (such as previous approvals being
reset).
https://gitlab.com/gitlab-org/gitlab-ee/issues/5966
2019-05-02 17:30:07 +00:00
John Cai
5ee7876534
Add client methods for FetchIntoObjectPool RPC
...
Gitaly's FetchIntoObjectPool RPC will idempotently fetch objects into an
object pool. If the pool doesn't exist, it will create an empty pool
before attempting the fetch. This change adds client code as well as
specs to cover this behavior.
2019-04-30 08:28:56 -07:00
Bob Van Landuyt
33cf8edae1
Port changes for design management to CE
...
This ports the changes from
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10462/
to CE
2019-04-29 08:28:43 +02:00
Francisco Javier López
dde69bfb2a
Added list_pages method to avoid loading all wiki pages content
...
Inside a wiki, when we show the sidebar or browse to the `pages`,
all page contents are retrieved from Gitaly and that is a waste
of resources, since no content from that pages are going to be
showed.
This MR introduces the method `ProjectWiki#list_pages`,
which uses new wiki_list_pages RPC call to retrieve
pages without content
Also in the `WikisController` we're using the method to show
pages in the sidebar and also on the `pages` page.
2019-04-25 04:19:07 +00:00
Oswaldo Ferreira
976d373ac1
Make use of local ref if it is reachable
2019-04-19 16:01:49 -03:00
Stan Hu
54d64ec9f6
Remove source_branch_name commit check
...
This should already be done in Gitlab::Git:Compare.
2019-04-18 22:01:51 -03:00
Stan Hu
26653eb035
Don't create a temp reference for branch comparisons within project
...
A temp reference is only needed to fetch a branch from another project,
as in the case for forked repositories. For branch comparisons within
the same project, we can just use the existing branch names to do the
comparison.
Relates to https://gitlab.com/gitlab-org/gitlab-ce/issues/38689#note_126107862
2019-04-18 22:01:51 -03:00
Douwe Maan
6a72ab22c8
Merge branch 'sh-backport-list-commits-by-oid-rugged' into 'master'
...
Bring back Rugged implementation of ListCommitsByOid
See merge request gitlab-org/gitlab-ce!27441
2019-04-17 13:16:51 +00:00
Stan Hu
2fc4de6ab6
Bring back Rugged implementation of ListCommitsByOid
...
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.
2019-04-17 05:09:18 -07:00
Nick Thomas
2845e8d973
Revert "Revert "Merge branch '24704-download-repository-path' into 'master'""
...
This reverts commit 171818df0a .
2019-04-16 15:16:23 +01:00
Rémy Coutable
51119395e6
Merge branch 'revert-24704-download-repository-path' into 'master'
...
Revert "Merge branch '24704-download-repository-path' into 'master'"
See merge request gitlab-org/gitlab-ce!27249
2019-04-11 10:01:52 +00:00