Jacob Vosmaer
d805cd3606
Add option to disable git archive caching in workhorse
2018-01-09 16:59:46 +01:00
Nick Thomas
527f87dfdb
Support show-all-refs for git over HTTP
2017-10-30 15:20:36 +00:00
Ahmad Sherif
03f3cee0c7
Fix a liniting error introduced by !14652
2017-10-10 14:58:31 +02:00
Robert Speicher
377c10b493
Merge branch 'feature/migrate-workhorse-send-git-diff-patch-to-gitaly' into 'master'
...
Migrate Workhorse Send{Diff,Patch} to Gitaly
See merge request gitlab-org/gitlab-ce!14652
2017-10-10 11:02:25 +00:00
Ahmad Sherif
618dd9e4b2
Migrate Workhorse Send{Diff,Patch} to Gitaly
2017-10-09 14:18:05 +02:00
Jacopo
0ce6785851
Replaces `tag: true` into `:tag` in the specs
...
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.
2017-10-07 13:57:54 +02:00
Alejandro Rodríguez
40060b18c7
[ci skip] Fix archive spec descrptions
2017-10-02 15:33:31 -03:00
Alejandro Rodríguez
fce708c154
Send extra Gitaly params for `send_git_archive` if needed
2017-10-02 12:39:42 -03:00
Sean McGivern
0a69abdb28
Merge branch 'gitaly-add-branch' into 'master'
...
Implement OperationService.UserAddBranch Gitaly RPC
Closes gitaly#544
See merge request gitlab-org/gitlab-ce!14522
2017-10-02 09:27:23 +00:00
Alejandro Rodríguez
16f850033f
Populate `Gitlay::Repository`'s `gl_repository` field
2017-09-30 00:58:56 -03:00
David Turner
dbcf48af8b
Add username as GL_USERNAME in hooks (http)
...
When calling pre-receive, post-receive, and update hooks, add the GitLab
username as the GL_USERNAME environment variable.
This patch only handles cases where pushes are over http, or via
the web interface. Later, we will address the ssh case.
2017-09-29 18:12:03 -04:00
Jacob Vosmaer
e5fecc3a37
Create repositories via Gitaly
2017-09-29 18:27:06 +02:00
Ahmad Sherif
3944e16b4b
Migrate Git::Repository#rm_tag to Gitaly
...
Closes gitaly#562
2017-09-28 23:36:40 +02:00
Jacob Vosmaer (GitLab)
35acc4cbbe
Make Gitaly PostUploadPack mandatory
2017-09-01 08:45:19 +00:00
Douwe Maan
97b768508c
Merge branch 'workhorse-deprecate-gitaly-address' into 'master'
...
Remove deprecated field from workhorse API responses
See merge request !13567
2017-08-15 15:56:02 +00:00
Jacob Vosmaer
4405c8e393
Remove deprecated field from workhorse API responses
2017-08-15 16:39:31 +02:00
Ahmad Sherif
daa0137b41
Migrate force push check to Gitaly
2017-08-11 19:42:17 +02:00
Rémy Coutable
cddc5cacfb
Use described_class when possible
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27 14:31:53 +02:00
Rémy Coutable
ddccd24c13
Remove superfluous lib: true, type: redis, service: true, models: true, services: true, no_db: true, api: true
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27 14:31:53 +02:00
Jacob Vosmaer
a78306e7fa
Enable gitaly_post_upload_pack by default
2017-07-25 15:23:41 +02:00
Ahmad Sherif
1300736850
Use a unique feature name for Workhorse send blob migration
2017-07-24 07:07:20 +02:00
Robert Speicher
9bfe49c2b1
Merge branch 'migrate-workhorse-send-blob-to-gitaly' into 'master'
...
Migrate Workhorse SendBlob to Gitaly
Closes gitaly#356
See merge request !12313
2017-07-12 16:57:57 +00:00
Ahmad Sherif
08ce213c41
Migrate Workhorse SendBlob to Gitaly
2017-07-11 16:55:00 +02:00
Paul Charlton
cb3b4a15e6
Support multiple Redis instances based on queue type
2017-07-11 03:35:47 +00:00
Ahmad Sherif
0284f01716
Migrate Gitlab::Git::Blob.find to Gitaly
2017-06-21 17:31:20 +02:00
Jacob Vosmaer
7bda1030a5
Send gitaly token to workhorse when needed
2017-06-20 16:19:43 +02:00
Alejandro Rodríguez
58821ebbb4
Stop using deprecated `path` field on Gitaly messages
...
This revealed an error in our configuration generation in
gitlab:gitaly:install rake task. The fix is included
2017-06-14 19:33:43 -04:00
Alejandro Rodríguez
870a8bbbdd
Allow PostReceivePack to be enabled with Gitaly
2017-05-30 22:16:43 -04:00
Jacob Vosmaer
43f037c903
Don't reuse gRPC channels
...
It seems that bad things happen when two gRPC stubs share one gRPC
channel so let's stop doing that. The downside of this is that we
create more gRPC connections; one per stub.
2017-05-15 10:52:33 +02:00
Rémy Coutable
d40e1f547e
Enable the Style/TrailingCommaInLiteral cop
...
Use the EnforcedStyleForMultiline: no_comma option.
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-10 18:25:45 +02:00
Alejandro Rodríguez
8bc381db90
Pass GL_REPOSITORY in Workhorse responses
2017-05-05 10:52:06 -03:00
Jacob Vosmaer
5077079faa
Remove deprecated field from workhorse response
2017-04-05 16:29:56 +02:00
Sean McGivern
20e3ed6093
Merge branch 'workhorse-gitaly-address' into 'master'
...
Pass GitalyAddress to workhorse
See merge request !10447
2017-04-04 15:48:24 +00:00
Jacob Vosmaer
ca94d20013
Pass GitalyAddress to workhorse
2017-04-04 15:41:50 +02:00
Ahmad Sherif
d56e422257
Disable support for Gitaly PostReceivePack
...
See https://gitlab.com/gitlab-org/gitaly/issues/172
2017-04-04 13:31:33 +02:00
Ahmad Sherif
39753bfb9c
Add feature flags for enabling (Upload|Receive)Pack for Gitaly
...
Closes gitaly#168
2017-04-03 18:44:57 +02:00
Jacob Vosmaer
13487809c7
Pass Gitaly Repository messages to workhorse
2017-04-03 13:58:29 +02:00
Jacob Vosmaer
1904c80f3d
Change socket_path to gitaly_address
2017-03-29 14:48:05 +02:00
Kamil Trzcinski
8ab17a5305
Use set_key_and_notify
2017-03-06 14:22:23 +01:00
Kamil Trzcinski
2d652fcf5a
Update notification code
2017-03-06 11:44:45 +01:00
Kamil Trzcinski
3f5191de6d
Add specs for notifications
2017-03-03 13:51:49 +01:00
Adam Niedzielski
5d3816652e
Introduce maximum session time for terminal websocket connection
...
Store the value in application settings.
Expose the value to Workhorse.
2017-02-06 11:49:30 +01:00
Robert Speicher
80a6d2fda2
Use `:empty_project` where possible throughout spec/lib
2017-01-25 12:25:42 -05:00
Ahmad Sherif
0a1c8bb37c
Pass Gitaly resource path to gitlab-workhorse if Gitaly is enabled
2017-01-18 19:43:17 +02:00
Nick Thomas
c3d972f4e8
Add terminals to the Kubernetes deployment service
2016-12-19 19:53:04 +00:00
Nick Thomas
a8829f25d3
Use base SHA for patches and diffs
...
This commit changes the revisions used for diffs. The current behaviour is
to show all changes between current tip of master and tip of the MR, rather
than matching the output of the web frontend (which just shows the changes
in the MR). Switching from start_sha to base_sha fixes this.
2016-09-22 18:49:31 +01:00
Jacob Vosmaer
11f54caada
Allow trailing newline in secret base64 data
2016-09-13 19:45:02 +02:00
Jacob Vosmaer
8e97323d49
Constants in specs
2016-09-06 17:26:16 +02:00
Jacob Vosmaer
c87540ed46
Verify JWT messages from gitlab-workhorse
2016-09-05 15:05:31 +02:00
Douwe Maan
8c3ba8d6c9
Add workhorse controller and API helpers
2016-06-06 13:16:30 +02:00