Commit Graph

63 Commits

Author SHA1 Message Date
GitLab Bot a3e6d34643 Add latest changes from gitlab-org/gitlab@master 2023-11-21 21:14:46 +00:00
GitLab Bot 15c1cc886c Add latest changes from gitlab-org/gitlab@master 2023-11-14 15:09:52 +00:00
GitLab Bot 43d1fef975 Add latest changes from gitlab-org/gitlab@master 2023-11-10 12:09:27 +00:00
GitLab Bot 98638cd5e4 Add latest changes from gitlab-org/gitlab@master 2023-05-12 15:13:54 +00:00
GitLab Bot e348fb4c1b Add latest changes from gitlab-org/gitlab@master 2023-05-11 09:09:11 +00:00
GitLab Bot 64ed14f3c5 Add latest changes from gitlab-org/gitlab@master 2023-02-12 21:07:52 +00:00
GitLab Bot 4df596fc09 Add latest changes from gitlab-org/gitlab@master 2023-01-13 00:07:19 +00:00
GitLab Bot 7696069049 Add latest changes from gitlab-org/gitlab@master 2022-11-11 18:07:37 +00:00
GitLab Bot e38a99eb07 Add latest changes from gitlab-org/gitlab@master 2022-11-09 15:07:50 +00:00
GitLab Bot 4b41b57abf Add latest changes from gitlab-org/gitlab@master 2022-07-15 06:09:57 +00:00
GitLab Bot 962711501f Add latest changes from gitlab-org/gitlab@master 2022-07-14 03:08:51 +00:00
GitLab Bot 811f549164 Add latest changes from gitlab-org/gitlab@master 2021-10-19 09:09:54 +00:00
GitLab Bot b794758ce4 Add latest changes from gitlab-org/gitlab@master 2021-05-20 09:10:30 +00:00
GitLab Bot b4e854a900 Add latest changes from gitlab-org/gitlab@master 2021-02-16 15:09:50 +00:00
GitLab Bot 89b770bb38 Add latest changes from gitlab-org/gitlab@master 2021-02-08 18:09:49 +00:00
GitLab Bot df40cd1c38 Add latest changes from gitlab-org/gitlab@master 2020-11-19 21:09:07 +00:00
GitLab Bot 8d96319c80 Add latest changes from gitlab-org/gitlab@master 2020-07-01 00:09:02 +00:00
GitLab Bot c59765a50a Add latest changes from gitlab-org/gitlab@master 2020-06-24 18:09:03 +00:00
GitLab Bot 5abd2b70c8 Add latest changes from gitlab-org/gitlab@master 2020-05-21 00:08:06 +00:00
GitLab Bot e33f87ac0f Add latest changes from gitlab-org/gitlab@master 2020-04-21 15:21:10 +00:00
GitLab Bot 411cc77938 Add latest changes from gitlab-org/gitlab@master 2020-01-24 18:09:00 +00:00
GitLab Bot a5ab3467a7 Add latest changes from gitlab-org/gitlab@master 2020-01-13 15:07:53 +00:00
GitLab Bot 3ad11f24ca Add latest changes from gitlab-org/gitlab@master 2019-12-22 09:07:51 +00:00
GitLab Bot 9763c08170 Add latest changes from gitlab-org/gitlab@master 2019-12-17 03:07:45 +00:00
GitLab Bot d10a462fed Add latest changes from gitlab-org/gitlab@master 2019-12-16 12:07:43 +00:00
GitLab Bot 8cc5f27909 Add latest changes from gitlab-org/gitlab@master 2019-12-13 12:07:41 +00:00
GitLab Bot 175b4fa261 Add latest changes from gitlab-org/gitlab@master 2019-12-11 18:08:10 +00:00
GitLab Bot 4e375367b7 Add latest changes from gitlab-org/gitlab@master 2019-12-07 00:07:51 +00:00
GitLab Bot 18a102a5b9 Add latest changes from gitlab-org/gitlab@master 2019-11-08 03:06:48 +00:00
GitLab Bot f7a13c56bf Add latest changes from gitlab-org/gitlab@master 2019-11-01 09:06:47 +00:00
GitLab Bot e95a97594a Add latest changes from gitlab-org/gitlab@master 2019-10-25 21:06:20 +00:00
GitLab Bot 81f7adf08b Add latest changes from gitlab-org/gitlab@master 2019-09-19 18:06:18 +00:00
Ash McKenzie 124bad7bd8
Use stub_rails_env for Rails.env stubbing
RailsHelpers.stub_rails_env takes care of
stubbing Rails.env
2019-09-05 12:54:03 +10:00
John Cai ebbd2aeb5f Handle when server info doesn't have the storage in question 2019-08-23 08:42:00 -07:00
Stan Hu 3b76d2982f Fix exception handling in Gitaly autodetection
In SELinux, the file cannot be written, and `Errno::EACCES`, not
`Errno::ACCESS` is thrown.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/65328
2019-07-30 07:03:45 -07:00
Stan Hu ec5ceae623 Fix Gitaly auto-detection caching
If `GitalyClient#can_use_disk?` returned `false`, it was never cached
properly and led to excessive number of Gitaly calls. Instead of using
`cached_value.present?`, we need to check `cached_value.nil?`.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64802
2019-07-19 10:03:41 -07:00
John Cai c77d7837bb Remove catfile cache feature flag 2019-07-15 11:32:56 -07:00
Zeger-Jan van de Weg 968674e417
Move Gitaly feature flag logic to Feature::Gitaly
The GitalyClient held a lot of logic which was all very tightly coupled.
In this instance the feature logic was extracted to make it do just a
little less and create a bit more focus in the GitalyClient's
responsibilies.
2019-06-18 13:18:18 +02:00
John Cai fe31f63ce8 Add gitaly session id & catfile-cache feature flag 2019-04-29 07:21:36 +00:00
Mark Lapierre b3f54b3d8e Add feature flag to enforce gitaly request limits
We typically don't want to enforce request limits in production
However, we have some production-like test environments, i.e., ones
where `Rails.env.production?` returns `true`. We do want to be able
to check if the limit is being exceeded while testing in those
environments.
2019-03-11 21:15:03 +00:00
Valery Sizov e3cacb95a8 Add connection_data method to Gitaly client
Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/7434
2019-01-25 14:16:42 +02:00
Ahmad Hassan 907f0ce8a2 More tls gitaly docs 2018-12-21 18:06:46 +02:00
Ahmad Hassan d975074e1f Log certificate loading errors into sentry 2018-12-20 18:24:53 +02:00
Ahmad Hassan 32c4f70aa5 Followups on review 2018-12-19 15:19:43 +02:00
Ahmad Hassan dfc54352c0 Merge remote-tracking branch 'origin/master' into support-gitaly-tls 2018-12-11 16:48:26 +02:00
Zeger-Jan van de Weg 5c131dac5e
Fix bug where ID is not set
On HEAD~ we remove the ID from the class, which created a bug. Given we
don't need the ID anymore, it has been removed and simplified.
2018-11-20 13:40:45 +01:00
Zeger-Jan van de Weg 16346eb5b9 Revert "Merge branch 'revert-e2aa2177' into 'master'"
This reverts merge request !23229
2018-11-20 12:29:56 +00:00
Sean McGivern 2742b871fe Revert "Merge branch 'zj-improve-gitaly-pb' into 'master'"
This reverts merge request !23140
2018-11-20 10:36:52 +00:00
Zeger-Jan van de Weg 4ca5eadddb
Remove duplicate tests for Gitaly
The disabling of Gitaly was basically stubbing `Feature.enabled?` call,
which was never triggered.
2018-11-19 14:40:53 +01:00
Ahmad Hassan 08a57fe828 Add more specs 2018-10-31 15:43:05 +02:00