Commit Graph

89 Commits

Author SHA1 Message Date
Jacob Vosmaer 723f74d49d Remove last flags from Blob and Workhorse 2018-07-11 12:59:15 +02:00
Jacob Vosmaer (GitLab) 3082b7d1c2 Make blob and other RPC's mandatory 2018-07-09 10:02:02 +00:00
Jacob Vosmaer b012abee8b Make all Gitaly diff flags mandatory 2018-07-06 12:01:15 +02:00
Zeger-Jan van de Weg 94b209b32c
Move git archives downloading to Gitaly 2018-05-17 09:31:50 +02:00
Nick Thomas 672733aa66
Add an API endpoint to download git repository snapshots 2018-04-19 17:25:01 +01:00
Douwe Maan 44f4a674e2 Merge branch 'jramsay-38830-tarball' into 'master'
Add alternative archive route

Closes #38830

See merge request gitlab-org/gitlab-ce!17225
2018-04-06 14:14:39 +00:00
James Ramsay 07f517d441 Add new repository archive route
Repository archives are always named `<project>-<ref>-<sha>` even if
the ref is a commit. A consequence of always including the sha even
for tags is that packaging a release is more difficult because both
the ref and sha must be known by the packager.

- add `<project>/-/archive/<ref>/<filename>.<format>` route using the
`-` separator to prevent namespace collisions. If the filename is
`<project>-<ref>` or the ref is a sha, the sha will be omitted,
otherwise the default filename will be used.
- deprecate previous archive route `repository/<ref>/archive`
2018-04-06 08:45:17 -04:00
Kamil Trzciński 678620cce6 Add `direct_upload` setting for artifacts 2018-04-05 15:01:14 +02:00
James Ramsay 0b1b9c409d Add option to suppress archive commit sha
Repository archives are always named `<project>-<ref>-<sha>` even if
the ref is a commit. A consequence of always including the sha even
for tags is that packaging a release is more difficult because both
the ref and sha must be known by the packager.

- add append_sha option (defaults true) to provide a method for
toggling this feature.

Support added to GitLab Workhorse by gitlab-org/gitlab-workhorse!232
2018-04-04 16:56:18 -04:00
Jacob Vosmaer (GitLab) e5e4cd96cf Gitlab-workhorse still needs RepoPath on Git HTTP 2018-03-29 08:35:33 +00:00
Jacob Vosmaer 23936ff20d Make all workhorse gitaly calls opt-out, take 2 2018-03-28 14:13:06 +02:00
Sean McGivern 06afa5a3ff Revert "Merge branch 'workhorse-gitaly-mandatory' into 'master'"
This reverts merge request !18002
2018-03-28 09:53:42 +00:00
Jacob Vosmaer (GitLab) c43e18fc49 Remove some easy cases of 'path_to_repo' use 2018-03-28 09:21:32 +00:00
Kamil Trzciński 949d1b37e7 Merge branch 'ac/lfs-direct-upload-ee-to-ce' into 'master'
LFS direct upload port to CE

Closes #44548

See merge request gitlab-org/gitlab-ce!17752
2018-03-28 07:57:29 +00:00
Jacob Vosmaer (GitLab) f432fb9a4f Make all workhorse gitaly calls opt-out 2018-03-27 10:47:15 +00:00
Alessio Caiazza 04c5e637f8
Port LFS direct_upload from EE 2018-03-27 10:32:48 +02:00
Kim "BKC" Carlbäcker d4bd245acb naming things 2018-03-07 16:22:37 +01:00
Kim "BKC" Carlbäcker 3c0f6da546 Make git push mandatory 2018-03-06 15:17:00 +01:00
Kamil Trzciński 11f882ca43 Upgrade GitLab Workhorse to v3.6.0 2018-02-06 15:34:44 +01:00
Micaël Bergeron 2057a6acde port of 594e6a0a625^..f74c90f68c6 2018-02-01 12:14:46 -05:00
Jacob Vosmaer (GitLab) 583cff8d61 Default to Gitaly for 'git push' HTTP/SSH, and make Gitaly mandatory for SSH pull 2018-01-22 16:51:47 +00:00
🙈 jacopo beschi 🙉 729f05f0e3 Adds Rubocop rule for line break around conditionals 2018-01-11 16:34:01 +00:00
Jacob Vosmaer d805cd3606 Add option to disable git archive caching in workhorse 2018-01-09 16:59:46 +01:00
Zeger-Jan van de Weg f5d3b92155 Remove Ci::Build#artifacts_file? 2017-12-03 12:04:49 +01:00
Kamil Trzcinski 871de0f185 Rename artifacts_* to legacy_artifacts_* 2017-12-03 12:04:49 +01:00
Jacopo 181cd299f9 Adds Rubocop rule for line break after guard clause
Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
2017-11-16 17:58:29 +01:00
Nick Thomas 527f87dfdb
Support show-all-refs for git over HTTP 2017-10-30 15:20:36 +00:00
Ahmad Sherif 618dd9e4b2 Migrate Workhorse Send{Diff,Patch} to Gitaly 2017-10-09 14:18:05 +02:00
Alejandro Rodríguez fce708c154 Send extra Gitaly params for `send_git_archive` if needed 2017-10-02 12:39:42 -03:00
David Turner 01ce58bde4 add username to authorized result, so that gitlab-shell can pass it to hooks 2017-09-29 18:16:55 -04:00
Rémy Coutable 572e90125f
Backport the EE signature of Gitlab::Workhorse#send_artifacts_entry
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-09-08 14:04:44 +02:00
Grzegorz Bizon 52e52f4a17 Make it explicit that workhorse needs artifact path 2017-09-05 12:20:09 +02:00
Jacob Vosmaer (GitLab) 35acc4cbbe Make Gitaly PostUploadPack mandatory 2017-09-01 08:45:19 +00:00
Jacob Vosmaer 4405c8e393 Remove deprecated field from workhorse API responses 2017-08-15 16:39:31 +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
Jacob Vosmaer 78089d1153 Remove option to disable Gitaly completely 2017-07-07 12:48:34 +02:00
Jacob Vosmaer 4f8af50b61 Rubocop and comment fixes 2017-06-20 17:31:49 +02:00
Jacob Vosmaer 7bda1030a5 Send gitaly token to workhorse when needed 2017-06-20 16:19:43 +02:00
Rémy Coutable 4cfa5ce4a9
Enable the Style/PreferredHashMethods cop
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-02 19:11:26 +02: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 3db37e0562 Enable the Style/TrailingCommaInArguments cop
Use the EnforcedStyleForMultiline: no_comma option.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-10 18:25:45 +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
Jakub Jirutka 6cb65c8c34 Make location of gitlab_workhorse_secret configurable
Hard-coding location of configuration files is very bad practice. This
patch applies the same approach as currently used for
gitlab_shell_secret file.
2017-04-19 20:04:31 +02:00
Jacob Vosmaer e4ac948c70 Send more Gitaly::Repository fields 2017-04-07 12:53:30 +02:00