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-24gitignore: Remove now unneeded testdata patternsPatrick Steinhardt
Our gitignore files contain quite a lot of rules for testdata. As we shouldn't generate any data inside of the repository during tests anymore, this commit cleans up our gitignore files to get rid of them.
2020-11-20Makefile: Don't write proto.diff into source directoryPatrick Steinhardt
The no-proto-changes target checks whether there's any changes to either our generated Go or Ruby proto files. To do so, it's currently writing into "proto.diff" in the repo's root directory. Let's instead write it into our build directory to keep our repo as clean as possible.
2020-11-11gitignore: Ignore gitlab-shell data created by testsPatrick Steinhardt
We've got some tests which set up gitlab-shell, which includes both writing a config file as well as writing the secret. We typically do so in the respective test's testdata directory, but that directory isn't generally ignored by our gitignore. Naturally enough, there's been a file which has been added by accident. Furthermore, we still have two gitkeep files around for the hooks directy, which isn't used anymore today. This commit thus removes all `testdata/gitlab-shell` files and adds it to our gitignore. The testdirectory is now created ad-hoc.
2020-10-26Add JSON request logging for gitaly-rubyJacob Vosmaer
2020-10-23gitlab-shell: Remove vendored filesZeger-Jan van de Weg
GitLab-Shell used to implement the Git hooks that performed authorization and authentication. These were ported to Go, and since 61dcdf969231954c06f16a6222a7540460f4b4f0 these are merged, meaning that the code this change removes isn't ever called. As such, we should remove it. Removing these files required updates to the Makefile as some make targets are no longer needed as the gitlab-shell tests aren't executed anymore.
2020-10-13gitignore: Add gitaly-lfs-smudge executablePatrick Steinhardt
We've recently grown a new executable "gitaly-lfs-smudge". As it hasn't been added to our gitignore file, it's currently getting displayed as ignored every time one builds Gitaly. Add the missing executable to have it be ignored.
2020-10-13gitignore: Clean up and group exclude patternsPatrick Steinhardt
Our gitignore file has grown over time and became quite hard to read. It's carrying patterns for things which have been removed meanwhile and the remaining patterns aren't grouped in any logical way. Improve the file by grouping together related ignore patterns and stripping those which aren't needed anymore.
2020-09-30hooks: Remove Ruby execution path for postreceiveZeger-Jan van de Weg
Currently the only hook in production running their Ruby implementation is the postreceive hook. For GitLab.com the feature flag was toggled, and performs very well. As such the feature will be expose to all GitLab installs, as the feature flag is removed in this change.
2020-09-14Protobuf generates different code locally and on CIPavlo Strokov
As it is hard to reason about what is the difference between local run and run on CI in the Docker container the first step to identify what is the actual difference between two. If it is only a formatting then it is possible that locally generated version was formatted and committed. To see the difference a new artifact 'proto.diff' would be available after failed execution of the 'no-changes' task. It will show delta between locally generated and committed files vs files generated on CI during verification. Part of: https://gitlab.com/gitlab-org/gitaly/-/issues/2855
2020-08-25Reintroduce gitaly-git2go supportPatrick Steinhardt
With commit a6091637 (Merge branch 'pks-revert-git2go' into 'master', 2020-07-31), our new Git2Go dependency was reverted again due to several issues: - Some distributions didn't have a recent enough version of CMake available. As a result, building libgit2 failed. This was fixed by bumping the build images' CMake version. - Build tags didn't work as expected and thus we ended up not using them at all. This was fixed by passing build flags via the Makefile. As this causes e.g. `go test ./...` to fail with a linking error due to build tags not being specified and the PKG_CONFIG_PATH not being set up as required. To work around this issue and not break developer workflows, gitaly-git2go will now only be built if build tags required for git2go are set. - Invalidation of libgit2.a didn't work as required. E.g. if the Makefile changes, it wasn't rebuilt and it was thus impossible to provide fixes for any broken setups if libgit2.a was built already. This was fixed by adding a build dependency on the Makefile. All in all, this should fix all currently known problems with building libgit2.
2020-07-31Revert "Merge branch 'pks-git2go' into 'master'"Patrick Steinhardt
This reverts commit 4f3253e9758affac7b7a8e7f74e97117299c4002, reversing changes made to 40b90823b0d55561059d27249e02db426b428786.
2020-07-29cmd: Add gitaly-git2go commandPatrick Steinhardt
This adds a new gitaly-git2go command that is currently intended as a proof-of-concept for our Git2Go build framework. It thus doesn't do much except demonstrating it's possible to link against Git2Go and its bundled lbigit2 static archive and use its functionality. At a later point, this is going to be the entrypoint for any Git functionality that we want to implement via Git2Go.
2020-07-01Makefile: Allow overriding defaults via a config filePatrick Steinhardt
While it's possible to override quite some different things of our Makefiles, doing so is burdensome as the developer needs to keep in mind to always pass those parameters to any calls of make(1). So let's make this configurable in a persistent way by including an optional "config.mak" file that may contain options set up by the developer. All the developer now needs to do is write all variables he wants to override into that file and then he's good to go.
2020-04-22JUnit even on test failuresPaul Okstad
2020-04-02Remove gitaly-remote commandPatrick Steinhardt
Since the gitaly-remote command was added in 22eb30d2 (Add gitaly-remote binary to add or update remote URL, 2019-03-27), it didn't catch much interest and is not really used anywhere. It does require us to do quite some build hacks, though, because of its dependency on git2go and thus indirectly on libgit2, and in fact building gitaly-remote does not currently work. Furthermore, it breaks our gosec-sast job that performs scanning for security vulnerabilities. So given that we'd require additional hacks to keep gitaly-remote while nobody really uses it, let's instead remove it and the git2go/libgit2 dependencies altogether.
2020-04-02Add JUnit style test reportsPaul Okstad
2020-03-19Add gitaly-blackbox prometheus exporterJacob Vosmaer
2019-12-04Ignore all .toml files in GitJacob Vosmaer
2019-11-20Validate that hook files are reachable and executablejramsay
2019-10-01Migrate hooks to use go binaryJohn Cai
2019-08-07Publish Ruby stubs as 'gitaly' gemJacob Vosmaer
2019-06-05Replace govendor with 'go mod'Jacob Vosmaer
2019-04-13Add gitaly-remote binary to add or update remote URLMateusz Nowotyński
Signed-off-by: Mateusz Nowotyński <maxmati4@gmail.com>
2019-04-13Add git2goMateusz Nowotyński
Signed-off-by: Mateusz Nowotyński <maxmati4@gmail.com>
2019-04-05Zero downtime deploymentAlessio Caiazza
2019-02-28Merge branch 'zj-praefect' into 'master'John Cai
Create Praefect binary for proxy server execution Closes #1483 See merge request gitlab-org/gitaly!1068
2019-02-22Support distributed tracing in gitaly-sshAndrew Newdigate
2019-02-22Create Praefect commandZeger-Jan van de Weg
By introducting a new command, the pass through proxy gets an execution path. To allow for manual testing, but also for, probably more important; getting started with integrating into the GitLab architecture. For logging we default to logrus, but these aren't structured yet. Which should be improved later. Config is added too, by parsing a TOML file. The path to this file is passed as first argument to the praefect binary. The output is JSON by default and not yet configurable. OS signals are handled too, and allow for a Shutdown of the server. The basic observability was added too, but on the proxy layer this will not yield too much, other than tracing.
2018-11-20Add gitaly-debug production debugging toolJacob Vosmaer
2018-10-05Add Git protocol v2James Lopez
Sending Git-Protocol: version=2 will make Gitaly set an environment variable GIT_PROTOCOL that Git should interpret as to using Git v2.
2018-01-04Add rspec unit and integration testsJacob Vosmaer (GitLab)
2017-12-27Implement RepositoryService.ChangeStorage RPCAlejandro Rodríguez
2017-10-03Add gitaly-ssh binary to gitignoreKim "BKC" Carlbäcker
2017-09-29Implement cmd/gitaly-ssh commandKim "BKC" Carlbäcker
2017-08-04Ignore the ruby/.bundle directoryJacob Vosmaer
2017-08-04Install gems into vendor/bundleJacob Vosmaer (GitLab)
2017-07-27Provide a way to bypass 'bundle install'Jacob Vosmaer (GitLab)
2017-06-27SSH Upload/ReceivePack Integration TestsKim "BKC" Carlbäcker
2017-04-06Add config.toml.exampleJacob Vosmaer
2017-03-24Clone gitlab-test repo only onceAhmad Sherif
Closes #103
2017-02-14Remove cruft from gitignoreJacob Vosmaer
2017-02-14LintingAndrew Newdigate
See merge request !63
2017-02-14Use protocols from external gitaly-proto repoJacob Vosmaer
2017-01-26Put gitaly.gemspec in the root directoryJacob Vosmaer
This allows Bundler to fetch development versions of the 'gitaly' gem using git: directives.
2017-01-25Remove old client referencesJacob Vosmaer
2017-01-25Put _package under _supportJacob Vosmaer
2017-01-23Add foundation for using gRPC and ProtobufJacob Vosmaer
2017-01-14Add "make package" targetJacob Vosmaer
2016-12-23Just build everything in ./cmdJacob Vosmaer
Also simplify 'make test' via 'go test ./...'.
2016-12-21Put /vendor in source controlJacob Vosmaer