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
2023-02-09Merge branch 'jmd-fix-make-go-build-from-symlink' into 'master'qmnguyen0711/gitaly-proxy-pocSami Hiltunen
Change dir to SOURCE_DIR prior to go build Closes #4645 See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5363 Merged-by: Sami Hiltunen <shiltunen@gitlab.com> Approved-by: Sami Hiltunen <shiltunen@gitlab.com> Co-authored-by: john.mcdonnell <jmcdonnell@gitlab.com>
2023-02-09Merge branch 'pks-datastore-cleanup-increase-timeout' into 'master'Sami Hiltunen
datastore: Increase timeout for storage cleanup test See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5364 Merged-by: Sami Hiltunen <shiltunen@gitlab.com> Approved-by: Sami Hiltunen <shiltunen@gitlab.com> Co-authored-by: Patrick Steinhardt <psteinhardt@gitlab.com>
2023-02-09Merge branch 'extract_file_permissions' into 'master'Sami Hiltunen
Extract file and executable permissions to perm package See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5359 Merged-by: Sami Hiltunen <shiltunen@gitlab.com> Approved-by: karthik nayak <knayak@gitlab.com> Reviewed-by: karthik nayak <knayak@gitlab.com> Co-authored-by: James Fargher <jfargher@gitlab.com>
2023-02-09Merge branch 'pks-git-more-robust-version-parsing' into 'master'Toon Claes
git: Fix race between cancelling git-version(1) and reading its output Closes #4740 See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5344 Merged-by: Toon Claes <toon@gitlab.com> Approved-by: Pavlo Strokov <pstrokov@gitlab.com> Approved-by: Toon Claes <toon@gitlab.com> Reviewed-by: Patrick Steinhardt <psteinhardt@gitlab.com> Co-authored-by: Patrick Steinhardt <psteinhardt@gitlab.com>
2023-02-08Extract constant for the most restricted write-once private filesJames Fargher
These files are only written once and must only be read by gitaly.
2023-02-08Extract file and executable permissionsJames Fargher
Bulk update all file and executable permissions to use the new perm package. Strictly speaking changing os.ModePerm to perm.PublicFile is a permission change (it goes from executable to normal), but since ModePerm is only used in tests this should be safe.
2023-02-08perm: Add constants for files and executablesJames Fargher
This is in preparation for a bulk permission replace.
2023-02-08housekeeping: Rearrange function calls to be in correct orderJames Fargher
Since these function calls were using untyped constants, the compiler hadn't picked up that the order of the parameters is wrong. This wont work once we start using typed permission constants.
2023-02-08Change inconsistent 655 permission to non-executable 644James Fargher
655 is executable by group and other but not user. This doesn't make a lot of sense. So we change it here to non-executable-shared.
2023-02-08Convert previously missed directory permissions to use constantsJames Fargher
These directory permissions were missed in the previous MR.
2023-02-08housekeeping: Change test file permissions from 770 to 644James Fargher
These "group private executable" permissions are only used in this test. Instead of creating a constant for this, we just convert it to a more common permission.
2023-02-08Merge branch 'jc-update-onboarding-with-pto-integration' into 'master'John Cai
Onboarding Issue Template: Add PTO Calendar Integration See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5244 Merged-by: John Cai <jcai@gitlab.com> Approved-by: Andras Horvath <ahorvath@gitlab.com>
2023-02-08Merge branch 'renovate/github.com-rubenv-sql-migrate-1.x' into 'master'Justin Tobler
go: Update module github.com/rubenv/sql-migrate to v1.3.1 See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5355 Merged-by: Justin Tobler <jtobler@gitlab.com> Approved-by: Pavlo Strokov <pstrokov@gitlab.com> Approved-by: Justin Tobler <jtobler@gitlab.com> Co-authored-by: GitLab Renovate Bot <gitlab-bot@gitlab.com>
2023-02-08Merge branch 'pks-ssh-refactor-receive-pack-tests' into 'master'Justin Tobler
ssh: Refactor tests for SSHReceivePack See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5358 Merged-by: Justin Tobler <jtobler@gitlab.com> Approved-by: James Fargher <proglottis@gmail.com> Approved-by: Justin Tobler <jtobler@gitlab.com> Co-authored-by: Patrick Steinhardt <psteinhardt@gitlab.com>
2023-02-08Merge branch ↵Justin Tobler
'renovate-tools/golangci-lint/github.com-golangci-golangci-lint-1.x' into 'master' tools/golangci-lint: Update module github.com/golangci/golangci-lint to v1.51.1 See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5337 Merged-by: Justin Tobler <jtobler@gitlab.com> Approved-by: Patrick Steinhardt <psteinhardt@gitlab.com> Approved-by: Justin Tobler <jtobler@gitlab.com> Co-authored-by: GitLab Renovate Bot <gitlab-bot@gitlab.com>
2023-02-08Merge branch 'limit-handler-stats' into 'master'Will Chandler
limithandler: Log queue duration in limit.concurrency_queue_ms log field See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5333 Merged-by: Will Chandler <wchandler@gitlab.com> Approved-by: Patrick Steinhardt <psteinhardt@gitlab.com> Approved-by: Will Chandler <wchandler@gitlab.com> Reviewed-by: Patrick Steinhardt <psteinhardt@gitlab.com> Reviewed-by: Will Chandler <wchandler@gitlab.com> Co-authored-by: Igor Wiedler <iwiedler@gitlab.com>
2023-02-08Merge branch 'renovate/golang.org-x-sys-0.x' into 'master'Pavlo Strokov
go: Update module golang.org/x/sys to v0.5.0 See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5356 Merged-by: Pavlo Strokov <pstrokov@gitlab.com> Approved-by: karthik nayak <knayak@gitlab.com> Approved-by: Pavlo Strokov <pstrokov@gitlab.com> Co-authored-by: GitLab Renovate Bot <gitlab-bot@gitlab.com>
2023-02-08go: Update module golang.org/x/sys to v0.5.0GitLab Renovate Bot
2023-02-08Update VERSION filesv15.9.0-rc3GitLab Release Tools Bot
[ci skip]
2023-02-08datastore: Increase timeout for storage cleanup testPatrick Steinhardt
We've recently seen one of our tests for storage cleanup flake because it hit the timeout of two seconds. This isn't all that surprising on machines that are as slow as our CI runners. Bump the timeout to a full minute. While it would be very much preferable to refactor the code so that it doesn't need any timeouts in the first place it doesn't feel worth it to refactor the code now.
2023-02-08Change dir to SOURCE_DIR prior to go buildjohn.mcdonnell
Fixes https://gitlab.com/gitlab-org/gitaly/-/issues/4645 by avoiding situations where the working dir may be a symlink, but SOURCE_DIR is the resolved path.
2023-02-08Port changes from stats_interceptor to commandstatshandler testIgor Wiedler
2023-02-08limithandler: Add integration test for gRPC interceptorsIgor Wiedler
2023-02-08limithandler: Log queue duration in limit.queue_ms log fieldIgor Wiedler
2023-02-08Merge branch 'pks-updateref-fix-context-cancellation-races' into 'master'Quang-Minh Nguyen
updateref: Fix handling of context cancellation errors See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5345 Merged-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Approved-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Approved-by: karthik nayak <knayak@gitlab.com> Reviewed-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Reviewed-by: karthik nayak <knayak@gitlab.com> Co-authored-by: Patrick Steinhardt <psteinhardt@gitlab.com>
2023-02-08Merge branch 'pks-unseed-repos-for-sha256-testing' into 'master'Quang-Minh Nguyen
tests: Unseed repositories to enable SHA256 testing See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5353 Merged-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Approved-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Approved-by: karthik nayak <knayak@gitlab.com> Co-authored-by: Patrick Steinhardt <psteinhardt@gitlab.com>
2023-02-08go: Update module github.com/rubenv/sql-migrate to v1.3.1GitLab Renovate Bot
2023-02-08Merge branch 'pks-go-fix-downgraded-dependencies' into 'master'Quang-Minh Nguyen
go: Fix dependencies which have been inadvertently downgraded See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5354 Merged-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Approved-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Approved-by: James Fargher <proglottis@gmail.com> Co-authored-by: Patrick Steinhardt <psteinhardt@gitlab.com>
2023-02-08Merge branch 'pks-test-generic-packages-with-sha256' into 'master'Justin Tobler
global: Convert generic packages to test with SHA256 object format See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5352 Merged-by: Justin Tobler <jtobler@gitlab.com> Approved-by: Justin Tobler <jtobler@gitlab.com> Co-authored-by: Patrick Steinhardt <psteinhardt@gitlab.com>
2023-02-08tools/golangci-lint: Update module github.com/golangci/golangci-lint to v1.51.1GitLab Renovate Bot
2023-02-08Merge branch 'jt-issue-template-labels' into 'master'Andras Horvath
templates: Update issue template labels See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5342 Merged-by: Andras Horvath <ahorvath@gitlab.com> Approved-by: Andras Horvath <ahorvath@gitlab.com> Co-authored-by: Justin Tobler <jtobler@gitlab.com>
2023-02-08Merge branch 'merge-using-merge-tree' into 'master'John Cai
Implement merges using the new 'git merge-tree' command Closes #4154 See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/4479 Merged-by: John Cai <jcai@gitlab.com> Approved-by: Justin Tobler <jtobler@gitlab.com> Approved-by: karthik nayak <knayak@gitlab.com> Reviewed-by: Justin Tobler <jtobler@gitlab.com> Reviewed-by: karthik nayak <knayak@gitlab.com> Co-authored-by: Christian Couder <chriscool@tuxfamily.org>
2023-02-07Merge branch '3940-avoid-duplicate-jobs-in-the-replication-queue-2' into ↵Sami Hiltunen
'master' datastore: Do no enqueue duplicate events See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5325 Merged-by: Sami Hiltunen <shiltunen@gitlab.com> Approved-by: Will Chandler <wchandler@gitlab.com> Approved-by: Sami Hiltunen <shiltunen@gitlab.com> Reviewed-by: Sami Hiltunen <shiltunen@gitlab.com> Reviewed-by: karthik nayak <knayak@gitlab.com> Co-authored-by: Karthik Nayak <knayak@gitlab.com>
2023-02-07Merge branch 'jt-locator-test-fix' into 'master'Sami Hiltunen
backup: Resolve locator test linter error See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5349 Merged-by: Sami Hiltunen <shiltunen@gitlab.com> Approved-by: Sami Hiltunen <shiltunen@gitlab.com> Approved-by: Patrick Steinhardt <psteinhardt@gitlab.com> Co-authored-by: Justin Tobler <jtobler@gitlab.com>
2023-02-07Merge branch 'renovate/github.com-protonmail-go-crypto-digest' into 'master'Patrick Steinhardt
go: Update github.com/ProtonMail/go-crypto digest to a47887b See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5273 Merged-by: Patrick Steinhardt <psteinhardt@gitlab.com> Approved-by: Justin Tobler <jtobler@gitlab.com> Approved-by: Patrick Steinhardt <psteinhardt@gitlab.com> Co-authored-by: GitLab Renovate Bot <gitlab-bot@gitlab.com>
2023-02-07Merge branch 'pks-git-v2.39.1' into 'master'Patrick Steinhardt
git: Wire up Git v2.39 execution environment See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5339 Merged-by: Patrick Steinhardt <psteinhardt@gitlab.com> Approved-by: Pavlo Strokov <pstrokov@gitlab.com> Reviewed-by: Patrick Steinhardt <psteinhardt@gitlab.com> Reviewed-by: Pavlo Strokov <pstrokov@gitlab.com>
2023-02-07Merge branch 'qmnguyen0711/fix-dnsresolver-flake' into 'master'Patrick Steinhardt
Fix dnsresolver flakes See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5350 Merged-by: Patrick Steinhardt <psteinhardt@gitlab.com> Approved-by: Patrick Steinhardt <psteinhardt@gitlab.com> Approved-by: Pavlo Strokov <pstrokov@gitlab.com> Reviewed-by: Patrick Steinhardt <psteinhardt@gitlab.com> Co-authored-by: Quang-Minh Nguyen <qmnguyen@gitlab.com>
2023-02-07Merge branch 'pks-supervisor-goroutine-leak' into 'master'Will Chandler
supervisor: Wait for notifiers to shut down See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5346 Merged-by: Will Chandler <wchandler@gitlab.com> Approved-by: Will Chandler <wchandler@gitlab.com> Approved-by: Justin Tobler <jtobler@gitlab.com> Co-authored-by: Patrick Steinhardt <psteinhardt@gitlab.com>
2023-02-07Merge branch 'pks-ssh-remove-redundant-receive-pack-tests' into 'master'Justin Tobler
ssh: Remove duplicate and flaky tests for SSHReceivePack Closes #4777 See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5357 Merged-by: Justin Tobler <jtobler@gitlab.com> Approved-by: Justin Tobler <jtobler@gitlab.com> Co-authored-by: Patrick Steinhardt <psteinhardt@gitlab.com>
2023-02-07ssh: Rename `setupSSHClone()` and `testCloneAndPush()`Patrick Steinhardt
The helper functions `setupSSHClone()` and `testCloneAndPush()` are misleadingly named: - `setupSSHClone()` sounds as if it was setting up a clone via SSH in some way. But what it's really doing is to set up a repository from which we can push a change to a remote repository. - `testCloneAndPush()` sounds as if it was trying to clone and then push somehow. But it's simply a wrapper that handles creation of the local repository and pushing to the remote repository in one function call. Rename those functions to `setupRepoWithChange()` and `setupRepoAndPush()` to hopefully clarify the intent.
2023-02-07Onboarding Issue Template: Add PTO Calendar IntegrationJohn Cai
Add a bullet for new employees to integrate their PTO-Roots with the shared Gitaly Team Calendar.
2023-02-07ssh: Stop using seed repository for SSHReceivePack testsPatrick Steinhardt
Stop using a seed repository for SSHReceivePack tests and instead generate the two test commits at runtime.
2023-02-07ssh: Remove indirection via push parametersPatrick Steinhardt
The push parameters structure contains all information required to perform an SSH-based test push. But ultimately all it is used for is to set up the `SSHReceivePackRequest` while not even reducing the number of parameters that need to be provided. Remove the indirection and just pass requests directly.
2023-02-07ssh: Split up push parameters and clone detailsPatrick Steinhardt
The way the push parameters and clone details are set up is extremely confused: - Push parameters contain a subset of the details required to push to the remote repository. - Clone details contain details of a newly created local repo that has a change in it, as well as some additional parameters required to push to the remote repository. Disentangle this mess so that the push parameters contain everything required to push, and clone details contain only information about the local repository we've set up.
2023-02-07ssh: Remove unneeded cleanup function returned from `setupSSHClone`Patrick Steinhardt
The `setupSSHClone()` helper sets up a new Git repository that we'll use as the source of a push. It then returns both the details of that repo as well as a cleanup function to delete both the created repo's path as well as the repo we're ultimately pushing into. Given that we write these repositories into temporary directories that get cleaned up at the end of the test anyway it is not necessary to invoke the cleanup function manually. Remove it.
2023-02-07ssh: Remove redundant socket path from `testCloneAndPush()`Patrick Steinhardt
The `testCloneAndPush()` funciton accepts the socket path of the server it shall connect to as parameter. This is redundant though given that we already pass the `config.Cfg` of the server. Remove the redundant parameter.
2023-02-07ssh: Remove duplicate and flaky tests for SSHReceivePackPatrick Steinhardt
One of our tests for invalid SSHReceivePack requests is duplicated as we already test for the same condition in `TestReceivePack_validation()`. Let's merge the other local testcase into our validation tests and delete the redundant tests.
2023-02-07go: Fix dependencies which have been inadvertently downgradedPatrick Steinhardt
With 8a29ef511 (Implement basic transaction processing with write-ahead logging, 2022-10-14) we have implemented the basic logic for write-ahead logging of references. As this MR introduced a bunch of logic it has been taking a comparatively long time to get it reviewed and landed. As part of that there had seemingly be a merge conflict in the `go.mod` file that was mis-merged and that caused us to downgrade the following dependencies: - github.com/getsentry/sentry-go 0.17.0 => 0.16.0 - github.com/rubenv/sql-migrate 1.3.0 => 1.2.0 - golang.org/x/sys 0.4.0 => 0.3.0 - golang.org/x/time 0.3.0 => 0.2.0 Revert these downgrades so that we're using the intended dependency versions again. Changelog: fixed
2023-02-07Merge branch 'smh-default-enable-verifier' into 'master'Sami Hiltunen
Default enable invalid metadata deletion in Praefect Closes #4429 See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5321 Merged-by: Sami Hiltunen <shiltunen@gitlab.com> Approved-by: Toon Claes <toon@gitlab.com> Approved-by: John Cai <jcai@gitlab.com>
2023-02-07gitlab: Convert tests to work with SHA256 object formatPatrick Steinhardt
Convert tests to work with the SHA256 object format by removing the need for seed repositories.