Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-11-11Ref tx hook overridepo-ref-hook-tx-overridePaul Okstad
2020-11-11Remove redundant server struct fieldsPaul Okstad
2020-11-11Inject config in FetchInternalRemotePaul Okstad
2020-11-11Add and remove ref hooks as neededPaul Okstad
Once the cache middleware was removed, it created new failures in CI that alert us to where ref hook options are needed. This updates those places and removes places where it is no longer needed due to updates in internal/git/subcommand.go
2020-11-11More read-only subcommandsPaul Okstad
2020-11-11Inject config into object poolPaul Okstad
2020-11-10Add ref hook option to SmartHTTP receive-packPaul Okstad
2020-11-10Add ref hooks to SSH receive-packPaul Okstad
2020-11-10Recognize upload subcommands as read-onlyPaul Okstad
2020-11-10Remove ref hook context markerPaul Okstad
2020-11-10Worktree requires ref hookPaul Okstad
2020-11-10DeleteRef RPC unit test fixPaul Okstad
2020-11-10SSH invoke helper whitespace trimPaul Okstad
2020-11-10Add ref hooks where neededPaul Okstad
2020-11-10Repo converter helperPaul Okstad
2020-11-10Add commands causing test failuresPaul Okstad
2020-11-09Merge branch 'avar/bundler-with-unbundled-env' into 'master'Toon Claes
ruby: rename deprecated with_clean_env method See merge request gitlab-org/gitaly!2757
2020-11-09Merge branch 'pks-operations-user-merge-to-ref-errmsg' into 'master'Sami Hiltunen
operations: Fix error message when UserMergeToRef conflicts See merge request gitlab-org/gitaly!2756
2020-11-09operations: Fix error message when UserMergeToRef conflictsPatrick Steinhardt
When creating the merge commit in UserMergeToRef fails with a conflicf, then we create an error messages "Failed to create merge commit" with some details filled in. The error message currently confuses the target SHA and target reference though. Fix the error message and add a test to verify we got it correct.
2020-11-09ruby: rename deprecated with_clean_env methodÆvar Arnfjörð Bjarmason
The with_clean_env method is deprecated since bundler 2.1.0. Now calling it emits: [DEPRECATED] `Bundler.wi th_clean_env` has been deprecated in favor of `Bundler.with_unbundled_env`. If you instead want the environment before bundler was originally loaded, use `Bundler.with_original_env` (called at /home/avar/g.gl/gd k/gitlab-development-kit/gitaly/ruby/lib/gitlab/git/hook.rb:34 We've been warning on 'bundle exec rspec' in the ruby/ directory since 6b8f365b ("Update to Ruby bundler v2.1.4", 2020-10-30). Let's just rename the method. See [1] for the relevant upstream code. 1. https://github.com/rubygems/bundler/commit/c77f26d53bb56e753c9c612b62d25e6f54fed6b8
2020-11-09Merge branch 'sh-add-lfs-smudge-logging' into 'master'Patrick Steinhardt
Log LFS smudge activity to gitaly_lfs_smudge.log See merge request gitlab-org/gitaly!2734
2020-11-09Merge branch 'toon-test-pipelines' into 'master'Patrick Steinhardt
Group CI yaml template includes together See merge request gitlab-org/gitaly!2754
2020-11-08Move GITALY_LOG_DIR into a constantStan Hu
2020-11-08Bump gitlab-shell versionStan Hu
2020-11-08Use gitlab-shell log message for Content-LengthStan Hu
2020-11-08Log LFS smudge activity to gitaly_lfs_smudge.logStan Hu
This commit improves the observabiilty of the Gitaly LFS smudge filter by writing JSON-formatted log messages into `gitaly_lfs_smudge.log`. For example: ``` { "content_length_bytes": 1277812, "correlation_id": "12345", "gl_repository": "project-206", "level": "info", "msg": "completed HTTP request", "oid": "943b4ffc85218949ba11e45e079d407124c28a36dd172af64450f592fe947761", "path": "/lfs?oid=943b4ffc85218949ba11e45e079d407124c28a36dd172af64450f592fe947761&gl_repository=project-206", "status_code": 200, "time": "2020-11-01T00:29:19-07:00" } ```
2020-11-06Merge branch 'pks-operations-hook-gl-protocol' into 'master'Paul Okstad
operations: Always set GL_PROTOCOL in hooks Closes #3271 See merge request gitlab-org/gitaly!2753
2020-11-06Group CI yaml template includes togetherToon Claes
There were two statements of `include:` in `.gitlab-ci.yml`, the latter ruled out the first. So bring them together and keep them closer to the top for better visibility. Related issue: https://gitlab.com/gitlab-org/gitaly/-/issues/3264
2020-11-06Merge branch 'ps-locator-for-ruby-set-header' into 'master'Toon Claes
Resolve dependency on global state in rubyserver.SetHeaders See merge request gitlab-org/gitaly!2745
2020-11-06operations: Always set GL_PROTOCOL in hooksPatrick Steinhardt
When updating references via `updateReferenceWithHooks`, then we need to assemble the envvars to post to the service. But one envvar actually got lost in the conversion from Ruby to Go, which is the `GL_PROTOCOL` variable. Not setting this variable may cause GitLab to misinterpret a change's source and thus fail to correctly apply access control rules. Add the missing variable. As the function will only ever be called from other RPCs in the OperationsService, its safe to assume that it'll always we "web".
2020-11-06Merge branch 'zj-ff-template-update' into 'master'Patrick Steinhardt
templates: Add feature roll out scoped label See merge request gitlab-org/gitaly!2752
2020-11-06Merge branch 'smh-per-repository-router-impl' into 'master'Paul Okstad
Implement a router on the per repository elector stack See merge request gitlab-org/gitaly!2731
2020-11-05Merge branch 'pks-ff-merge-template' into 'master'Zeger-Jan van de Weg
issues: Remove inaccurate step in feature flag rollout template See merge request gitlab-org/gitaly!2751
2020-11-05Merge branch 'smh-variable-replication-factor' into 'master'Pavlo Strokov
Store repository host node assignments See merge request gitlab-org/gitaly!2737
2020-11-05templates: Add feature roll out scoped labelZeger-Jan van de Weg
To understand the issue roll out status faster, and to make the roll out issues appear on the issue board, the template was updated for new issues.
2020-11-05issues: Remove inaccurate step in feature flag rollout templatePatrick Steinhardt
The feature flag rollout template has a step which instructs the user to enable the fflag for individual groups or projects. Given that Gitaly doesn't support scoped feature flags at all, this step doesn't make a lot of sense. Remove it to avoid any confusion.
2020-11-05Merge branch 'jv-labkit-ruby-0.13.2' into 'master'James Fargher
Use labkit-ruby 0.13.2 Closes gitlab-com/gl-infra/scalability#634 See merge request gitlab-org/gitaly!2743
2020-11-05Use labkit-ruby 0.13.2Jacob Vosmaer
2020-11-04Merge branch 'pks-featureset-refactoring' into 'master'Paul Okstad
Quality of life improvements for feature sets See merge request gitlab-org/gitaly!2740
2020-11-04Merge branch 'pks-remove-reftx-hook-workaround' into 'master'Toon Claes
hooks: Remove reftx arguments workaround Closes #3250 See merge request gitlab-org/gitaly!2736
2020-11-04Merge branch 'pks-git-env-options' into 'master'Toon Claes
Refactor passing of Git envvars to use options See merge request gitlab-org/gitaly!2735
2020-11-04Merge branch 'pks-readme-git-v2.29.0' into 'master'Zeger-Jan van de Weg
README: Fix supported Git versions See merge request gitlab-org/gitaly!2748
2020-11-04Merge branch 'id-move-cmd-conflicts-into-separate-package' into 'master'Patrick Steinhardt
Move cmd conflicts in a separate package See merge request gitlab-org/gitaly!2673
2020-11-04implement a router on the per repository elector stackSami Hiltunen
This commit adds a router implementation based on the per repository elector stack. The behavior deviates in few ways from the current nodeManager router: 1. RouteStorageMutator is unimplemented as it doesn't appear we should receive such requests any more with hashed storage. All mutators should be repository scoped given repository scoped primaries. 2. RouteStorageAccessor routes the requests to any healthy node. We can't match the behavior of nodeManagerRouter as we don't have a primary for a virtual storage. This should be fine though, as the only RPC that is scoped like this only makes a remote call and doesn't depend on any state on the server. 3. Repository scoped messages respect repository specific primaries as opposed to virtual storage scoped primaries in the nodeManagerRouter. This commit does not yet hook up the router to the rest of the code.
2020-11-04split nodeManagerRouter in to its own fileSami Hiltunen
Splits nodeManagerRouter's implementation in its own file in preparation for adding other router implementations.
2020-11-04README: Fix supported Git versionsPatrick Steinhardt
While our minimum required Git version was bumped to v2.29.0, the README claims that we support v2.26.x and v2.27.x. Fix this inconsistency.
2020-11-04Merge branch 'smh-restrict-node-interface-in-coordinator' into 'master'Toon Claes
Restrict node interface in coordinator See merge request gitlab-org/gitaly!2730
2020-11-04Merge branch 'po-document-protos' into 'master'Zeger-Jan van de Weg
Require documenting gRPC-protobuf interface See merge request gitlab-org/gitaly!2722
2020-11-04Require documenting gRPC-protobuf interfacePaul Okstad
2020-11-04featureset: Add tests for feature setsPatrick Steinhardt
The featureset helper currently doesn't have any tests, but it has grown to be a widely used helper which did have bugs. This commit adds a few tests to verify it behaves as expected.