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
2022-08-22server factory: Wait for termination of all goroutinesps-flaky-server-factoryPavlo Strokov
It happens that goroutine started to Serve() doesn't terminate after test completion and that fails the test (all started goroutines must be terminated on test completion). Now the test waits for all started goroutines to be terminated. The result returned from the Server() method is also controlled now and checked for correctness. Closes: https://gitlab.com/gitlab-org/gitaly/-/issues/3916
2022-08-22server factory: Don't call Close for listenersPavlo Strokov
We don't need to call Close() for the listeners as gRPC server calls it on Stop()/Shutdown() invocation, it is called by the factory.
2022-08-22server factory: Terminate all serversPavlo Strokov
Missing Stop() calls added to terminate all running servers.
2022-08-22server factory: Drop unneeded limit middlewarePavlo Strokov
The LimiterMiddleware is not the main subject to test. It makes test harder to read and understand. It also adds additional functionality we don't want to test here. We drop it to remove all those concerns.
2022-08-22Merge branch ↵Pavlo Strokov
'qmnguyen0711/4440-repository-searchfilesbyname-doesn-t-work-well-with-non-ascii-file-names' into 'master' Fix bug that Repository SearchFilesByName doesn't work well with non-ASCII file names See merge request gitlab-org/gitaly!4827
2022-08-22Merge branch '4341-remove-dependency-on-gitlab-shell' into 'master'karthik nayak
gitlab: Copy client code from `gitlab-shell` Closes #4341 See merge request gitlab-org/gitaly!4819
2022-08-22Fix Repository SearchFilesByName not handle non-ASCII file names wellQuang-Minh Nguyen
Repository SearchFilesByName doesn't work well with non-ASCII file names. Underlying, this RPC uses git-ls-tree to get the file names. Git automatically escapes non-ASCII characters and add the quotes around the paths. Git defines this behavior with core.quotePath option. SearchFilesByName did not handle this case well. The solution is to force git-ls-tree to use NULL-byte termination. Issue: https://gitlab.com/gitlab-org/gitaly/-/issues/4440 Changelog: fixed
2022-08-21client: Fix linter issues4341-remove-dependency-on-gitlab-shellKarthik Nayak
These files were directly copied over from 'gitlab-shell' in 823a6893bb4275f7d21035a34c778317af7d3d16. Let's fix the linter issues pre-existing in these files.
2022-08-21gitlab: Use the newly created 'client' packageKarthik Nayak
Instead of using the external 'client' package from 'gitlab-shell', use the internally created one 'internal/gitlab/client'. This drops the dependency on 'gitlab-shell'. Run 'go mod tidy' to remove the dependency on 'gitlab-shell' from our 'go.{mod, sum}' files.
2022-08-21gitlab: Copy client code from 'gitlab-shell'Karthik Nayak
Currently 'gitlab-shell' contains the code for the gitlab client. We use this in our 'gitaly' code, but this causes a cyclic dependency since 'gitlab-shell' also imports parts of our code. To remove this cyclic dependency, we decided to move most of the code in-house. In this commit we do this by copying over the following files: 1. gitlabnet.go 2. httpclient.go from 'gitlab-shell' without modification to a new 'client' package under 'internal/gitlab'. We do not copy over the tests, since our repo has its own helpers for tests which we'll leverage to rewrite the tests.
2022-08-20Merge branch 'renovate/github.com-pelletier-go-toml-2.x' into 'master'Will Chandler
go: Update module github.com/pelletier/go-toml to v2 See merge request gitlab-org/gitaly!4652
2022-08-20go: Update module github.com/pelletier/go-toml to v2Toon Claes
With this change we upgrade go-toml to v2. This includes changing the import paths to include v2.
2022-08-20Extract Duration into its own packageJames Fargher
go-toml v2 forces us to use `TextMarshaller` and this means we now need the Duration wrapper in several packages. To prevent import loops, this requires moving the type to its own package.
2022-08-19Merge branch 'update-readme' into 'master'Andras Horvath
doc: Fix incorrect dashboard URLs See merge request gitlab-org/gitaly!4824
2022-08-19Merge branch 'renovate/gitlab.com-gitlab-org-gitlab-shell-v14-14.x' into ↵Toon Claes
'master' go: Update module gitlab.com/gitlab-org/gitlab-shell/v14 to v14.11.0 See merge request gitlab-org/gitaly!4832
2022-08-19Merge branch 'jt-ruby-deps' into 'master'Toon Claes
ruby: Update dependencies Closes #4430 and #4371 See merge request gitlab-org/gitaly!4826
2022-08-19Update changelog for 15.3.0GitLab Release Tools Bot
[ci skip]
2022-08-19readme: Make image hyperlinks more explicitupdate-readmeKarthik Nayak
Currently the README has two images which also serve as hyperlinks, this is confusing cause its not obvious. Let's make them explicit.
2022-08-19ruby: Update dependenciesjt-ruby-depsJustin Tobler
Update `rails-html-sanitizer` and `addressable` gems to remediate securitiy vulnerabilities.
2022-08-19Merge branch 'tnir-ruby-licensee-to-9.15.2' into 'master'John Cai
Add support for MulanPSL-2.0 in license detection See merge request gitlab-org/gitaly!4825
2022-08-19Merge branch 'jt-revert-d0e60a80' into 'master'Justin Tobler
Revert "config: Set autocrlf to false" See merge request gitlab-org/gitaly!4833
2022-08-18Revert "config: Set autocrlf to false"Justin Tobler
This reverts commit d0e60a800ddadd6531a5c4030d86b09564004a21. Due to an issue with some tests in the main GitLab project this commit needs to be reverted to unblock the update flow and allow time for further investigation.
2022-08-18Merge branch 'smh-remove-custom-duration' into 'master'Justin Tobler
Remove custom duration type See merge request gitlab-org/gitaly!4829
2022-08-18go: Update module gitlab.com/gitlab-org/gitlab-shell/v14 to v14.11.0GitLab Renovate Bot
2022-08-18Merge branch 'jt-gitaly-exit-code' into 'master'Sami Hiltunen
gitaly: Exit code 1 on error Closes #4238 See merge request gitlab-org/gitaly!4821
2022-08-18Remove custom duration typeSami Hiltunen
Back in the day, a custom duration type was added to Gitaly's config package as the TOML parser used didn't support parsing duration types natively. The TOML parser used these days supports the native time.Duration type of Go. Remove the custom type and update all sites to use the native duration type.
2022-08-17Merge branch 'sh-update-rack-and-rouge' into 'master'John Cai
Update rack and rouge gems to match GitLab Rails See merge request gitlab-org/gitaly!4817
2022-08-17Merge branch 'renovate/postgres-dependencies' into 'master'Toon Claes
go: Update Postgres dependencies See merge request gitlab-org/gitaly!4818
2022-08-17Merge branch 'sh-update-pgquery' into 'master'Toon Claes
Update pg_query gem to v2.1.3 See merge request gitlab-org/gitaly!4815
2022-08-17Merge branch 'sh-update-ffi' into 'master'Toon Claes
Update ffi gem to v1.15.5 See merge request gitlab-org/gitaly!4816
2022-08-17Add support for MulanPSL-2.0 in license detectiontnir-ruby-licensee-to-9.15.2Takuya Noguchi
Counterpart PR in gitlab: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/94948 Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com> Changelog: other
2022-08-17Merge branch 'pks-makefile-refactor-git-target' into 'master'Pavlo Strokov
Makefile: Refactor `make git` target See merge request gitlab-org/gitaly!4804
2022-08-17doc: Fix incorrect dashboard URLsKarthik Nayak
The dashboard URLs are pointing to the old gitlab.com URLs, we now use gitlab.net for dashboards. Lets change the URLs in README.md and observability.md. Signed-off-by: Karthik Nayak <knayak@gitlab.com>
2022-08-16Merge branch 'jt-update-autocrlf-config' into 'master'John Cai
config: Set autocrlf to false Closes #3476 See merge request gitlab-org/gitaly!4801
2022-08-16Merge branch 'jc-cat-file-object-size' into 'master'John Cai
repository: Use git-cat-file to calculate repository size Closes gitlab#368150 See merge request gitlab-org/gitaly!4797
2022-08-16repository: Use git-cat-file to calculate repository sizeJohn Cai
Use git-cat-file to list all objects and accumulate the sizes in order to get a number of the total size of a repository. Changelog: changed
2022-08-16config: Set autocrlf to falseJustin Tobler
Gitaly should be agnostic as a datastore and not transform line endings. Currently by default `core.autocrlf` is set to `input` which can transform line endings on commit. This change updates the default global configuration of `core.autocrlf` to `false` which stops Gitaly from transforming line endings.
2022-08-16Merge branch 'pks-gitpipe-sha256' into 'master'Toon Claes
gitpipe: Support SHA256 object hash See merge request gitlab-org/gitaly!4798
2022-08-16gitaly: Exit code 1 on errorjt-gitaly-exit-codeJustin Tobler
Currently in Gitaly when `run()` returns an error and exits the exit code returned is always 0. On error the exit code should be 1 to reflect that the process terminated due to an error. This change checks for errors returned by `run()` and exits with the appropriate error code.
2022-08-14Update rack and rouge gems to match GitLab Railssh-update-rack-and-rougeStan Hu
This matches the versions used in GitLab Rails and helps reduce some space in the Omnibus build. Changelog: changed
2022-08-14Update ffi gem to v1.15.5sh-update-ffiStan Hu
This matches the version used in GitLab Rails and helps reduce some space in the Omnibus build. Changelog: changed
2022-08-14Update pg_query gem to v2.1.3sh-update-pgqueryStan Hu
This matches the version used in GitLab Rails and helps reduce some space in the Omnibus build. Changelog: changed
2022-08-13go: Update Postgres dependenciesGitLab Renovate Bot
2022-08-12Merge branch 'smh-default-enable-replica-path' into 'master'Toon Claes
Default enable Praefect generated replica paths See merge request gitlab-org/gitaly!4809
2022-08-12Merge branch 'jt-update-git-fsck-config' into 'master'Toon Claes
fsck: Update fsck ignore rules configuration Closes #4265 and #4404 See merge request gitlab-org/gitaly!4777
2022-08-12fsck: Test ignore rules configurationjt-update-git-fsck-configJustin Tobler
Added tests to ensure correct configuration of git-fsck(1) is generated and applied to the command when executed.
2022-08-12fsck: Update fsck ignore rules configurationJustin Tobler
Currently fsck ignore rules configuration only applies to git-fetch-pack(1) and git-receive-pack(1) commands. These rules should also apply to the git-fsck(1) command itself. This change unifies the configuration.
2022-08-11Merge branch '17801_use_semantic_sort_for_tags' into 'master'John Cai
Use semantic sort for tags See merge request gitlab-org/gitaly!4336
2022-08-11Merge branch 'jc-remove-default-mr-template' into 'master'Toon Claes
Remove default MR template See merge request gitlab-org/gitaly!4811
2022-08-11Remove default MR templateJohn Cai
The default MR template creates unnecessary work since we already take pains to write a coherent and detailed commit message. Once the MR template supports automatic importing of commit messages, we can add a default template once again.