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-04-03Merge branch 'osw-enable-stackdriver-profiler' into 'master'Jacob Vosmaer
Add stackdriver profiler support with LabKit See merge request gitlab-org/gitaly!1842
2020-04-03Merge branch 'sh-make-clean-fix' into 'master'Jacob Vosmaer
Change `make clean` to prune specific files See merge request gitlab-org/gitaly!2015
2020-04-03Merge branch '2421-alternates-file-inclusion' into 'master'Jacob Vosmaer
Validate content of alternates file Closes #2421 See merge request gitlab-org/gitaly!1946
2020-04-03add additional tests for GetSnapshotSami Hiltunen
During a review, we noticed that the implementation of GetSnapshot did not work with relative paths but the tests did not catch it. This commit adds additional test cases for relative paths and absolute paths that go outside the repository directory.
2020-04-03validate alternate objects directories in GetSnapshot RPCSami Hiltunen
Replaces the custom alternates parsing in GetSnapshot with a parser that validates that the alternates are inside the storage root. Previously GetSnapshot only walked the first alternate object directory. The new parser returns multiple alternates if present so this modifies GetSnapshot to walk possibly multiple alternate object directories. This fixes a potential file inclusion vulnerability if the alternates file refers to a directory outside the storage.
2020-04-03validate alternate object directory is within storageSami Hiltunen
Validates that the alternate object directory is within the storage root of the repository.
2020-04-03Merge branch 'ps-lint-default-image' into 'master'Zeger-Jan van de Weg
`lint` CI job doesn't require `image` configuration. See merge request gitlab-org/gitaly!2012
2020-04-02Merge branch 'zj-drop-go-1.12-support' into 'master'Pavlo Strokov
Drop go 1.12 support See merge request gitlab-org/gitaly!1976
2020-04-02Change `make clean` to prune specific filesStan Hu
`git clean -f` is pretty destructive and should only be run manually. I accidentally nuked config files and Terraform state files by running `make clean`.
2020-04-02Merge branch 'jv-terraform-counter' into 'master'Paul Okstad
Terraform: deduplicate gitaly instance definition See merge request gitlab-org/gitaly!2002
2020-04-02Terraform: deduplicate gitaly instance definitionJacob Vosmaer
2020-04-02Add stackdriver profiler support with LabKitOswaldo Ferreira
Bumps Labkit version in order to be able to start Gitaly / Praefect with the Go Profiler. Once Gitaly is compiled with continuous profiling, the profiler configuration can be set via GITLAB_CONTINUOUS_PROFILING environment variable: ```shell GITLAB_CONTINUOUS_PROFILING="stackdriver?service=gitaly&service_version=1.0.1&project_id=test-123 ./binary" ```
2020-04-02Merge branch 'ps-postgres-queue-switch' into 'master'Pavlo Strokov
Praefect: Postgres queue implementation in use Closes #2166 See merge request gitlab-org/gitaly!1989
2020-04-02Praefect: Postgres queue implementation in usePavlo Strokov
Implementation of the replication events queue now can be switched using `postgres_queue_enabled` between in-memory and Postgres. `Datastore` changed from interface to struct as there is no single struct implementation for it anymore. Closes: https://gitlab.com/gitlab-org/gitaly/-/issues/2166
2020-04-02Merge branch 'ps-race-job-replication' into 'master'Jacob Vosmaer
Bad test setup as a cause of the race failure Closes #2592 See merge request gitlab-org/gitaly!1988
2020-04-02`lint` CI job doesn't require `image` configuration.Pavlo Strokov
Local gitlab runner differs from one used for CI: https://gitlab.com/gitlab-org/gitlab-runner/issues/4604 So there is no reason to have `image` configuration for `lint` job. It still can be run locally with command: `gitlab-runner exec docker --docker-image registry.gitlab.com/gitlab-org/gitlab-build-images: ruby-2.6-golang-1.14-git-2.24 lint`
2020-04-02Bad test setup as a cause of the race failurePavlo Strokov
Test setup for checking of replication events processing was incorrect and it lead to failing tests from time to time (especially with a race detector). Use of properly initialized global gitay-ruby instance. Right order of binaries preparation and config setup. It is imbossible to use multiple Gitaly instances in one or multiple tests because of global Config used throw the project. gRPC services must be registered before Serve call for it. Closes: https://gitlab.com/gitlab-org/gitaly/-/issues/2592
2020-04-02Merge branch 'zj-linguist-error-wait' into 'master'Zeger-Jan van de Weg
Check for git-linguist error code See merge request gitlab-org/gitaly!1923
2020-04-02linguist: check cmd status before parsing outputZeger-Jan van de Weg
When running Git linguist on a repository, Gitaly tries to parse output which is not intended to be parsed as the exit code might be non-zero. Gitaly expect success on the command, and JSON output. On an error, the output is an error message string, not in JSON. This creates parsing errors, and issues like: https://gitlab.com/gitlab-org/gitaly/-/issues/2294. The current change checks the exit status of the command, where the expectation is that linguist will never output invalid JSON if the exit code is zero. Other cases will bubble up the error string in the error itself.
2020-04-02Merge branch 'pks-gitaly-remote-removal' into 'master'Patrick Steinhardt
Remove gitaly-remote command Closes #1706 See merge request gitlab-org/gitaly!1992
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-02Merge branch 'po-junit-reports' into 'master'Sami Hiltunen
Add JUnit style test reports See merge request gitlab-org/gitaly!2005
2020-04-02Add JUnit style test reportsPaul Okstad
2020-04-02Merge branch 'sh-fix-local-elector-monitor-bug' into 'master'John Cai
Fix timer firing too frequently for localElector See merge request gitlab-org/gitaly!2010
2020-04-02Fix timer firing too frequently for localElectorStan Hu
Somehow the timer got dropped in this refactor. This caused the Gitaly process to ping the node too frequnently.
2020-04-02Merge branch 'jv-bug-2541' into 'master'James Fargher
UserCreateTag: pass tag object to hooks when creating annotated tag Closes #2541 See merge request gitlab-org/gitaly!1956
2020-04-02UserCreateTag: pass tag object to hooks when creating annotated tagJacob Vosmaer
2020-04-01Merge branch 'ps-postgres-binary-format' into 'master'Jacob Vosmaer
Praefect: Enable Postgres binary protocol See merge request gitlab-org/gitaly!1995
2020-04-01Merge branch 'smh-bare-repository-naming' into 'master'Jacob Vosmaer
Correct bare repository naming in tests See merge request gitlab-org/gitaly!1951
2020-04-01Merge branch 'ps-internal-managed-lint' into 'master'Zeger-Jan van de Weg
Make `lint` independent from golangci-lint-alpine image See merge request gitlab-org/gitaly!2000
2020-04-01Make `lint` independent from golangci-lint-alpine imagePavlo Strokov
Docker image that contains `golangci-lint` is not versioned by Go version and does not make much sense for us by creating report. As result of moving to Go 1.14 we also need to update version of `golangci-lint`. Otherwise it won't be run correctly. Support for Go 1.14 included in https://github.com/golangci/golangci-lint/releases/tag/v1.23.8 Changed to the latest 1.24.o release.
2020-04-01Merge branch 'define-default-properties-in-gitlab-ci-yml' into 'master'Zeger-Jan van de Weg
Define default image, and tags in .gitlab-ci.yml See merge request gitlab-org/gitaly!1998
2020-04-01Merge branch 'jc-move-std-stream' into 'master'Jacob Vosmaer
Move standard stream into its own internal package See merge request gitlab-org/gitaly!1994
2020-04-01Define default image, tags, and before_script in .gitlab-ci.ymlRémy Coutable
2020-04-01Merge branch 'jc-better-bundle-error' into 'master'John Cai
Explicitly check for existing repository in CreateRepositoryFromBundle Closes #1376 See merge request gitlab-org/gitaly!1980
2020-03-31Merge branch 'sh-refactor-praefect-node-manager' into 'master'Paul Okstad
Refactor Praefect node manager See merge request gitlab-org/gitaly!1940
2020-03-31Refactor Praefect node managerStan Hu
Move logic for local-memory based elections into its own strategies in preparation for supporting SQL and Consul-based strategies.
2020-03-31Praefect: Enable Postgres binary protocolPavlo Strokov
PgBouncer limits usage of placeholders in queries, because it prepares statement first and execute it afterwards. The problem could be if statement will be prepared using one session, but executed using another session. Binary format will issue only single operation without preparing statement. Part of: https://gitlab.com/gitlab-org/gitaly/-/issues/2166
2020-03-31Move standard stream into its own internal packageJohn Cai
2020-03-31Update CHANGELOG.md for 12.9.2GitLab Release Tools Bot
[ci skip]
2020-03-31correct bare repository naming in testsSami Hiltunen
Does not append the '.git' suffix to bare repositories.
2020-03-30Explicitly check for existing repository in CreateRepositoryFromBundleJohn Cai
When a repository already exists, CreateRepositoryFromBundle returns a cryptic exit 128 error. We can check for this condition in the RPC handler itself to give a better error message.
2020-03-30Merge branch 'pks-deprecations' into 'master'Jacob Vosmaer
Make deprecation warnings a hard failure See merge request gitlab-org/gitaly!1982
2020-03-30Merge branch 'jc-enable-client-histogram' into 'master'Sami Hiltunen
Enable client prometheus histogram See merge request gitlab-org/gitaly!1987
2020-03-30golangci: Make deprecation warnings a hard failurePatrick Steinhardt
We had several deprecation warnings in our code, which is why we disabled these linting rules in our linter job and instead moved it to a warnings-only job that is allowed to fail. As all of these warnings have been fixed by now, let's remove that warnings-only job and re-enable these linting rules in the main job again, making them a hard requirement.
2020-03-30balancer: silence deprecation warningsPatrick Steinhardt
There are currently two deprecation warnings related to gRPC in the balancer code for `conn.NewAddress()` and `conn.NewServiceConfig()` which should both be replaced with calls to `conn.UpdateState()` instead. The issue with `UpdateState()` though is that you can only replace the complete state, that is both address and configuration, at the same time. As we do not have both pieces of information ready when calling `NewAddress()` and `NewServiceConfig()`, let's silence those warnings for now to allow the linter to become warning-free.
2020-03-30repository: adjust syntax to ignore linting warningsPatrick Steinhardt
Since having migrated to golangci-lint in 713d1e48 (Use golangci-lint for static code analysis, 2020-02-06), there are two linting warnings in `raw_changes_test.go` that ought to be ignored but arent due to using the old "lint:ignore" syntax instead of the new "nolint:golint" one. Adjust to use golangci-linter's syntax to fix these warnings.
2020-03-30Merge branch 'jv-use-reference-count' into 'master'Patrick Steinhardt
Use reference counting in limithandler middleware Closes #2588 and #2574 See merge request gitlab-org/gitaly!1984
2020-03-28Enable client prometheus histogramJohn Cai
In Praefect we want to instrument the client latency of requests going to the internal gitaly nodes. To do so, we must enable the client histogram explicitly.
2020-03-27Merge branch 'jc-propagate-repacks' into 'master'John Cai
Propagate GarbageCollect, RepackFull, RepackIncremental to secondary nodes See merge request gitlab-org/gitaly!1970