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
2024-01-11Refactor transaction manager's packed-refs assertionQuang-Minh Nguyen
In some prior commits, we added pack-refs housekeeping task support to the transaction manager. We introduced a new assertion helper to verify the content of packed-refs file. That helper reads the content and compares with the expected packed-refs text. That approach makes the test setup hard because the expected packed-refs must match the actual content of packed-refs on disk, line by line. This commit enhances that helper. It now parses the content of packed-refs file. The expected value becomes a map of ref name to its object ID.
2024-01-11Update changelog for 16.1.6GitLab Release Tools Bot
[ci skip]
2024-01-11Update changelog for 16.2.9GitLab Release Tools Bot
[ci skip]
2024-01-11Update changelog for 16.3.7GitLab Release Tools Bot
[ci skip]
2024-01-11Update changelog for 16.4.5GitLab Release Tools Bot
[ci skip]
2024-01-11Update changelog for 16.5.6GitLab Release Tools Bot
[ci skip]
2024-01-11Update changelog for 16.6.4GitLab Release Tools Bot
[ci skip]
2024-01-11Update changelog for 16.7.2GitLab Release Tools Bot
[ci skip]
2024-01-11Automatic merge of gitlab-org/gitaly masterGitLab Bot
2024-01-10Update VERSION filesv16.8.0-rc1GitLab Release Tools Bot
2024-01-10Automatic merge of gitlab-org/gitaly masterGitLab Bot
2024-01-10Merge branch 'ej-5671_FindCommits-structured-error-proto-definition' into ↵Eric Ju
'master' proto: Add structured error proto message definitions for FindCommits grpc See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6589 Merged-by: Eric Ju <eju@gitlab.com> Approved-by: Justin Tobler <jtobler@gitlab.com> Reviewed-by: Patrick Steinhardt <psteinhardt@gitlab.com> Reviewed-by: Will Chandler <wchandler@gitlab.com> Reviewed-by: Sami Hiltunen <shiltunen@gitlab.com> Reviewed-by: Justin Tobler <jtobler@gitlab.com> Reviewed-by: Eric Ju <eju@gitlab.com>
2024-01-10Automatic merge of gitlab-org/gitaly masterGitLab Bot
2024-01-10Merge branch 'toon-bundle-uri-fix' into 'master'Toon Claes
smarthttp: Fix upload-pack using bundle-URI with missing backup Closes #5740 See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6591 Merged-by: Toon Claes <toon@gitlab.com> Approved-by: James Liu <jliu@gitlab.com> Reviewed-by: James Liu <jliu@gitlab.com>
2024-01-10Automatic merge of gitlab-org/gitaly masterGitLab Bot
2024-01-10Merge branch 'jt/remove-ff-atomic-fetch-remote' into 'master'Justin Tobler
featureflag: Remove `AtomicFetchRemote` See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6605 Merged-by: Justin Tobler <jtobler@gitlab.com> Approved-by: James Liu <jliu@gitlab.com>
2024-01-09smarthttp: Fix upload-pack using bundle-URI with missing backupToon Claes
When `bundleuri.UploadPackGitConfig()` returns an empty slice, we see the `PostUploadPackWithSidechannel` RPC fail with `FailedPrecondition`. The git-upload-pack(1) process started here quits with the error: fatal: invalid command 'bundle-uri' Looking at the source code of Git, we see when git-upload-pack(1) receives the 'bundle-uri' command, it checks if the that capability should be advertised. To query for this, Git checks if the config `uploadpack.advertiseBundleURIs` is set to `true`. When Gitaly could not build a bundle URI to pass to the git-upload-pack(1), this config was not set, and Git did not accept this command. For the SmartHTTP protocol Gitaly uses separate processes to handle 'GET info/refs' and 'POST upload-pack', using option `--stateless-rpc`. Due to this, the server advertised to the client it supports 'bundle-uri' in the 'GET info/refs' response, but in the consecutive requests we might spawn git-upload-pack(1) without this config, and Git will not accept the 'bundle-uri' command. Inject the config `uploadpack.advertiseBundleURIs=true` into all calls to git-upload-pack(1), even when the bundle-URI cannot be built. Label: bug::availability
2024-01-09proto: Add proto message definition for FindCommits grpcEric Ju
Add new proto definition for the structured errors of FindCommits.
2024-01-09Merge branch 'revert-7de65fabe6eaf803771cf0dd5d53dbaf1e628d56' into 'master'Ahmad Tolba
Revert "Merge branch 'jliu-track-restored-repos-2' into 'master'" See merge request https://gitlab.com/gitlab-org/security/gitaly/-/merge_requests/95 Merged-by: Ahmad Tolba <atolba@gitlab.com> Approved-by: James Fargher <jfargher@gitlab.com> Approved-by: Justin Tobler <jtobler@gitlab.com> Co-authored-by: James Liu <jliu@gitlab.com>
2024-01-09featureflag: Remove `AtomicFetchRemote`Justin Tobler
The `AtomicFetchRemote` feature flag enables atomic fetches for a repository. Since the feature flag is default enabled, remove the flag.
2024-01-09Revert "Merge branch 'jliu-track-restored-repos-2' into 'master'"James Liu
This reverts commit 7de65fabe6eaf803771cf0dd5d53dbaf1e628d56, reversing changes made to 0ffc495be9bb5a8f4ff60764b545443d54210e56.
2024-01-09Merge branch 'jt/revert-fix-user-revert-return-structured-error' into 'master'Jenny Kim
Revert "Merge branch 'fix-user-revert-return-structured-error' into 'master'" See merge request https://gitlab.com/gitlab-org/security/gitaly/-/merge_requests/94 Merged-by: Jenny Kim <yjeankim@gitlab.com> Approved-by: Will Chandler <wchandler@gitlab.com> Approved-by: John Cai <jcai@gitlab.com> Co-authored-by: Justin Tobler <jtobler@gitlab.com>
2024-01-08Revert "Merge branch 'fix-user-revert-return-structured-error' into 'master'"Justin Tobler
This reverts commit 7f019337fb51305215538a793cf80171111b6e29, reversing changes made to 82dcc6a7a5692244932c4f6d4d92b3fa615aeb85.
2024-01-08Merge branch 'security-signature-validation-master' into 'master'Jenny Kim
commit: Fix bug in commit signature parsing See merge request https://gitlab.com/gitlab-org/security/gitaly/-/merge_requests/92 Merged-by: Jenny Kim <yjeankim@gitlab.com> Approved-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Co-authored-by: Karthik Nayak <knayak@gitlab.com>
2024-01-08Automatic merge of gitlab-org/gitaly masterGitLab Bot
2024-01-08Merge branch 'qmnguyen0711/enable-pack-refs-support-in-transaction' into ↵Quang-Minh Nguyen
'master' Add pack-refs housekeeping task support to the transaction manager See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6551 Merged-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Approved-by: Patrick Steinhardt <psteinhardt@gitlab.com> Reviewed-by: Patrick Steinhardt <psteinhardt@gitlab.com> Reviewed-by: Sami Hiltunen <shiltunen@gitlab.com> Reviewed-by: Quang-Minh Nguyen <qmnguyen@gitlab.com>
2024-01-08Automatic merge of gitlab-org/gitaly masterGitLab Bot
2024-01-08Merge branch 'wc/update-ruby' into 'master'Quang-Minh Nguyen
ruby: Update to 3.2.2 See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6601 Merged-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Approved-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Co-authored-by: Will Chandler <wchandler@gitlab.com>
2024-01-08Automatic merge of gitlab-org/gitaly masterGitLab Bot
2024-01-08Merge branch 'jliu-track-restored-repos-2' into 'master'James Liu
backup: Only delete repositories missing from a restore See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6579 Merged-by: James Liu <jliu@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>
2024-01-08Automatic merge of gitlab-org/gitaly masterGitLab Bot
2024-01-08Merge branch 'smh-fix-incorrect-error-report' into 'master'James Liu
Report stat failures correctly when creating a repository Closes #5751 See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6597 Merged-by: James Liu <jliu@gitlab.com> Approved-by: Toon Claes <toon@gitlab.com> Approved-by: James Liu <jliu@gitlab.com> Co-authored-by: Sami Hiltunen <shiltunen@gitlab.com>
2024-01-05ruby: Update to 3.2.2Will Chandler
Update to Ruby v3.2.2 to match GitLab.
2024-01-05Automatic merge of gitlab-org/gitaly masterGitLab Bot
2024-01-05Merge branch 'smh-default-enable-clone-into-cgroup' into 'master'Quang-Minh Nguyen
Default enable CLONE_INTO_CGROUP support See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6598 Merged-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Approved-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Approved-by: Will Chandler <wchandler@gitlab.com> Reviewed-by: Will Chandler <wchandler@gitlab.com> Co-authored-by: Sami Hiltunen <shiltunen@gitlab.com>
2024-01-05Automatic merge of gitlab-org/gitaly masterGitLab Bot
2024-01-05praefect: Intercept WalkRepos RPCJames Liu
Adds a handler to Praefect to intercept calls to the WalkRepos RPC. The handler provides an alternate implementation of listing repositories in a storage, which queries the Praefect DB rather than walking the filesystem on disk. This is required so when the RPC is invoked via Praefect, the DB is used as the source of truth rather than a random Gitaly node. The only user-facing difference between this and the original implementation is that the `modification_time` attribute of the response message is left empty, as this cannot be determined via the DB.
2024-01-05proto: Deprecate RemoveAllJames Liu
Now that we've adjusted the restore mechanism to delete individual repos as needed, this RPC is no longer required. See the following issues for more context: - https://gitlab.com/gitlab-org/gitaly/-/issues/5357 - https://gitlab.com/gitlab-org/gitaly/-/issues/5269 Changelog: deprecated
2024-01-05backup: Delete RemoveAllRepositories from StrategyJames Liu
This is now deprecated in favour of removing individual repos.
2024-01-05backup: Only remove "dangling" repositoriesJames Liu
Instead of invoking the RemoveAll() RPC prior to the restore, we instead compare the set of existing repositories to the set of repositories contained in the backup being restored. The difference between the two sets -- the set of "dangling" repositories -- are removed individually. This is done to ensure the state of repos in Gitaly matches the worldview held by the Rails DB after a GitLab instance restore.
2024-01-05backup: Stop sending invalid requestsJames Liu
Modifies the Restore CLI tests so we stop sending an invalid restore command as the final JSON object into stdin. This is required as a subsequent commit will move the repository removal logic to execute after the Pipeline completes successfully. If the tests purposely cause the pipeline to fail, the restore logic will never execute. Coverage of the Pipeline's error messaging is covered separately in the Pipeline's unit tests.
2024-01-05backup: Add ListRepositories to the strategyJames Liu
Adds a new method to the Strategy interface used by regular and server-side backups for performing repository backups and restores. This new method calls the internal WalkRepos() RPC to fetch a list of repos in a given storage.
2024-01-05backup: Add RemoveRepository to the strategyJames Liu
Adds a new method to the Strategy interface used by regular and server-side backups for performing repository backups and restores. This new method removes a single repository from its storage, and will eventually replace the existing RemoveAllRepositories method.
2024-01-05Merge branch 'qmnguyen0711/publish-development-gem' into 'master'Quang-Minh Nguyen
Enhance developing workflow with Ruby gem in Gitlab Rails See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6593 Merged-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Approved-by: Toon Claes <toon@gitlab.com> Approved-by: Eric Ju <eju@gitlab.com> Reviewed-by: Toon Claes <toon@gitlab.com> Reviewed-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Reviewed-by: Eric Ju <eju@gitlab.com>
2024-01-05Automatic merge of gitlab-org/gitaly masterGitLab Bot
2024-01-05Merge branch 'toon-protoc-gen-deps' into 'master'Will Chandler
protoc-gen-doc: Update github.com/gogo/protobuf Closes #5746 See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6600 Merged-by: Will Chandler <wchandler@gitlab.com> Approved-by: Will Chandler <wchandler@gitlab.com> Reviewed-by: Will Chandler <wchandler@gitlab.com> Co-authored-by: Toon Claes <toon@gitlab.com>
2024-01-05Automatic merge of gitlab-org/gitaly masterGitLab Bot
2024-01-04Merge branch 'sselhorn-master-patch-51343' into 'master'John Cai
Updating link because I removed Pajamas page See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6599 Merged-by: John Cai <jcai@gitlab.com> Approved-by: John Cai <jcai@gitlab.com> Co-authored-by: Suzanne Selhorn <sselhorn@gitlab.com>
2024-01-04Updating link because I removed Pajamas pageSuzanne Selhorn
2024-01-04protoc-gen-doc: Update github.com/gogo/protobufToon Claes
There is a known vulnerability in protoc-gen-doc. Fix this by updating to v1.3.2.