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-10-20Update VERSION filesv16.5.0-rc43GitLab Release Tools Bot
2023-10-19Update VERSION filesv16.5.0-rc42GitLab Release Tools Bot
2023-10-13Merge branch 'smh-test-wal-sha256' into 'master'Toon Claes
Test WAL with SHA256 in CI See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6468 Merged-by: Toon Claes <toon@gitlab.com> Approved-by: karthik nayak <knayak@gitlab.com> Co-authored-by: Sami Hiltunen <shiltunen@gitlab.com>
2023-10-13Merge branch 'smh-remove-snapshot' into 'master'Sami Hiltunen
Standardize on referring to log positions with LSN See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6467 Merged-by: Sami Hiltunen <shiltunen@gitlab.com> Approved-by: Will Chandler <wchandler@gitlab.com> Approved-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Reviewed-by: Quang-Minh Nguyen <qmnguyen@gitlab.com>
2023-10-13Merge branch 'jc/remove-dataloss-unary' into 'master'karthik nayak
praefect: Remove DatalossCheck RPC and messages Closes #5556 See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6466 Merged-by: karthik nayak <knayak@gitlab.com> Approved-by: Justin Tobler <jtobler@gitlab.com> Co-authored-by: John Cai <jcai@gitlab.com>
2023-10-13Merge branch 'wc/dedup-temp-cleaner' into 'master'Justin Tobler
tempdir: Deduplicate storage paths before cleaning See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6398 Merged-by: Justin Tobler <jtobler@gitlab.com> Approved-by: James Fargher <jfargher@gitlab.com> Approved-by: Justin Tobler <jtobler@gitlab.com> Co-authored-by: Will Chandler <wchandler@gitlab.com>
2023-10-13Merge branch 'jliu-doc-operations-proto' into 'master'James Fargher
proto: Improve docs in operations.proto See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6443 Merged-by: James Fargher <jfargher@gitlab.com> Approved-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Approved-by: James Fargher <jfargher@gitlab.com> Reviewed-by: James Fargher <jfargher@gitlab.com> Reviewed-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Co-authored-by: James Liu <jliu@gitlab.com>
2023-10-12Merge branch 'jc/document-diff-service' into 'master'Justin Tobler
proto: Document Diff Service See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6192 Merged-by: Justin Tobler <jtobler@gitlab.com> Approved-by: Justin Tobler <jtobler@gitlab.com> Reviewed-by: Patrick Steinhardt <psteinhardt@gitlab.com> Reviewed-by: Evan Read <eread@gitlab.com> Co-authored-by: John Cai <jcai@gitlab.com>
2023-10-12README: Add link to generated RPC documentationJohn Cai
2023-10-12proto: Document Diff ServiceJohn Cai
2023-10-12Merge branch '5114-docs-document-commit-proto-rpcs-and-messages-3' into 'master'Sami Hiltunen
proto: Add more documentation Closes #5114 See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6441 Merged-by: Sami Hiltunen <shiltunen@gitlab.com> Approved-by: Sami Hiltunen <shiltunen@gitlab.com> Reviewed-by: Sami Hiltunen <shiltunen@gitlab.com> Reviewed-by: John Cai <jcai@gitlab.com> Reviewed-by: karthik nayak <knayak@gitlab.com> Co-authored-by: Karthik Nayak <knayak@gitlab.com>
2023-10-12Standardize on referring to log positions with LSNSami Hiltunen
LSN or log sequence number is the usual term used to refer to a given position in a log. Our code is currently using log index in most places. This commit standardizes the name to LSN by renaming each use of log index to LSN. This way we'll have easier time also writing documentation later that refers to LSNs.
2023-10-12Refactor Snapshot as SnapshotLSNSami Hiltunen
The Snapshot type contained previously more fields. With the introduction of the file system level snapshots, we no longer had to track for example the version of the hooks that should be used in the transaction. Nowadays the Snapshot only contains the read index field, which is the log index the transaction is reading the partition's state at. Simplify by removing the Snapshot type and replacing it with snapshotLSN field that directly records the LSN the transaction is reading at.
2023-10-12commit.proto: Add comments for remaining RPCsKarthik Nayak
Add missing comments for the definitions in commit.proto. Delete definitions which aren't in use anymore.
2023-10-12proto: Add documentation for PaginationParams and PaginationCursorKarthik Nayak
The documentation for PaginationParams and PaginationCursor is not consistent at this point. So let's make it consistent and also point to the documentation for the messages themselves to centralize the documenation.
2023-10-12proto: Remove mentions of `internal/allowed`James Liu
Remove mentions of the `internal/allowed` endpoint from the comments for error responses as this functionality may be handled differently in the near future.
2023-10-12proto: Consistent docs for the user fieldJames Liu
The user field shares the same semantics across RPCs in operations.proto: - It defines the actor to execute the action as, such as merging or creating a branch. - It's used for external authentication and authorization checks, e.g via the Rails' `internal/allowed` endpoint. Since this field is used in the same way, make the comments consistent across all usages.
2023-10-12proto: Add missing docs for UserUpdateSubmoduleJames Liu
2023-10-12proto: Add missing docs for UserApplyPatchJames Liu
2023-10-12proto: Fix docs for UserSquashJames Liu
2023-10-12proto: Deprecate UserRebaseConfirmable errorsJames Liu
The `pre_receive_error` and `git_error` fields in the `UserRebaseConfirmableResponse` are no longer being used by the implementing code. Deprecate these fields and add a comment explaining that a structured error will be returned. Changelog: deprecated
2023-10-12proto: Add missing docs for UserCommitFilesActionHeaderJames Liu
2023-10-12proto: Add missing docs for UserRevert*James Liu
2023-10-12proto: Add missing docs for UserCherryPick*James Liu
2023-10-12proto: Add missing docs for UserFFBranchJames Liu
2023-10-12proto: Add missing docs for UserMergeToRef*James Liu
2023-10-12proto: Mark `branch` as a deprecated fieldJames Liu
As suggested by the documentation, `branch` is no longer used and should be considered deprecated. Add the protobuf field option to solidify this. Changelog: deprecated
2023-10-12proto: Add missing docs for UserMergeBranchJames Liu
2023-10-12proto: Add missing docs for UserDeleteTagJames Liu
2023-10-12Merge branch 'renovate-tools/goimports/golang.org-x-tools-0.x' into 'master'Quang-Minh Nguyen
tools/goimports: Update module golang.org/x/tools to v0.14.0 See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6452 Merged-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Approved-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Approved-by: Christian Couder <chriscool@tuxfamily.org> Co-authored-by: GitLab Renovate Bot <gitlab-bot@gitlab.com>
2023-10-12Merge branch 'jliu-add-local-grpc-invocation-docs' into 'master'Will Chandler
doc: Add instructions on invoking gRPC endpoints locally See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6456 Merged-by: Will Chandler <wchandler@gitlab.com> Approved-by: Will Chandler <wchandler@gitlab.com> Approved-by: Evan Read <eread@gitlab.com> Reviewed-by: Will Chandler <wchandler@gitlab.com> Reviewed-by: Evan Read <eread@gitlab.com> Co-authored-by: Evan Read <eread@gitlab.com> Co-authored-by: James Liu <jliu@gitlab.com>
2023-10-12tempdir: Deduplicate storage paths before cleaningWill Chandler
Currently we run the tempdir against every storage configured for Gitaly. However, some installations may list every storage present in rails in the Gitaly config, using the same path for all of them. This allows admins to share a Gitaly config across all Gitaly servers, but means that we cannot assume that each storage configured is unique. To cut down on duplicate cleaning runs, let's deduplicate the configured storages by path. This will have a relatively small performance impact, as the first cleaning run against a path will have done all the work, but it will cut down on duplicate entries that clutter Gitaly's logs during startup.
2023-10-12Merge branch 'pks-log-replace-ctxlogrus-pt4' into 'master'Justin Tobler
global: Replace use of ctxlogrus with injected logger (pt.4) See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6464 Merged-by: Justin Tobler <jtobler@gitlab.com> Approved-by: Justin Tobler <jtobler@gitlab.com> Reviewed-by: karthik nayak <knayak@gitlab.com> Co-authored-by: Patrick Steinhardt <psteinhardt@gitlab.com>
2023-10-11Test WAL with SHA256 in CISami Hiltunen
We're currently running TransactionManager's tests with SHA256 as part of the SHA256 enabled tests. We're not running the `test-wal` and `test-with-praefect-wal` jobs with SHA256. Those jobs will wire up transaction management into the test server and run all of our service tests with WAL enabled. Let's run them also as part of the SHA256 tests to ensure the service tests work fine with WAL and SHA256.
2023-10-11praefect: Remove DatalossCheck RPC and messagesJohn Cai
The DatalossCheck RPC has been replaced by the Dataloss RPC. Let's remove the code, the RPC definition, and associated messages.
2023-10-11Merge branch 'smh-fix-ptn-mgr-flake' into 'master'Justin Tobler
Fix flaky PartitionManager test See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6457 Merged-by: Justin Tobler <jtobler@gitlab.com> Approved-by: Justin Tobler <jtobler@gitlab.com> Co-authored-by: Sami Hiltunen <shiltunen@gitlab.com>
2023-10-11Merge branch 'renovate/google.golang.org-grpc-1.x' into 'master'Quang-Minh Nguyen
go: Update module google.golang.org/grpc to v1.58.3 See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6463 Merged-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Approved-by: Christian Couder <chriscool@tuxfamily.org> Approved-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Co-authored-by: GitLab Renovate Bot <gitlab-bot@gitlab.com>
2023-10-11Fix flaky PartitionManager testSami Hiltunen
TestPartitionManager/starting_transaction_failed_due_to_cancelled_context is asserting that context cancellation is taken into account while beginning a transaction. The test is currently flaky as it may be that the TransactionManager finishes initializing before Begin() is called. This then triggers indeterministic behavior in Begin(). Either the transaction begins successfully, or the context cancelation is noticed and it errors out. Fix this flake by preventing the TransactionManager from running in the test so it never initializes and the Begin will time out.
2023-10-11Take in the interface of TransactionManager into PartitionManagerSami Hiltunen
PartitionManager currently depends on the concrete TransactionManager type. This makes testing some scenarios difficult as we can't mock out TransactionManager's behavior. This commit changes the PartitionManager to take in an interface instead.
2023-10-11Merge branch 'update-onboarding-template-adding-gcp-host-profiles-sg' into ↵Andras Horvath
'master' Update Team Member Onboarding.md to inlcude how to request gcp-host-profiles-sg group access See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6417 Merged-by: Andras Horvath <ahorvath@gitlab.com> Approved-by: Andras Horvath <ahorvath@gitlab.com> Reviewed-by: karthik nayak <knayak@gitlab.com> Reviewed-by: Eric Ju <eju@gitlab.com> Co-authored-by: Eric Ju <eju@gitlab.com>
2023-10-11Update VERSION filesv16.5.0-rc1GitLab Release Tools Bot
2023-10-11STYLE.md: Update recommendations about context-aware loggingPatrick Steinhardt
Update our STYLE.md to reflect modern best practices around context-aware logging. Most importantly, we don't use the ctxlogrus package anymore and instead use context-aware logging functions like `DebugContext()` and related functions.
2023-10-11go: Update module google.golang.org/grpc to v1.58.3GitLab Renovate Bot
2023-10-11Merge branch 'smh-tx-mw-test-preparation' into 'master'James Liu
Prepare tests for plugging in transactions See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6461 Merged-by: James Liu <jliu@gitlab.com> Approved-by: James Liu <jliu@gitlab.com> Reviewed-by: Sami Hiltunen <shiltunen@gitlab.com> Co-authored-by: Sami Hiltunen <shiltunen@gitlab.com>
2023-10-11log: Unexport ctxlogrus-based functionalityPatrick Steinhardt
We have replaced all external users of the ctxlogrus-based functions `log.FromContext()` and `log.LgorusLogger.ToContext()` to instead use logging functions like `DebugContext()` and related. Let's thus make the ctxlogrus-based functionality private.
2023-10-11git/housekeeping: Replace use of ctxlogrus with injected loggerPatrick Steinhardt
The ctxlogrus package is going away with the replacement being log fields extracted from the context via `log.DebugContext()` et al. Refactor the code to stop using ctxlogrus by injecting a logger and using the new context-based logging methods.
2023-10-11tempdir: Replace use of ctxlogrus with injected loggerPatrick Steinhardt
The ctxlogrus package is going away with the replacement being log fields extracted from the context via `log.DebugContext()` et al. Refactor the code to stop using ctxlogrus by injecting a logger and using the new context-based logging methods.
2023-10-11git/localrepo: Replace use of ctxlogrus with injected loggerPatrick Steinhardt
The ctxlogrus package is going away with the replacement being log fields extracted from the context via `log.DebugContext()` et al. Refactor the code to stop using ctxlogrus by injecting a logger and using the new context-based logging methods.
2023-10-11git/objectpool: Replace use of ctxlogrus with injected loggerPatrick Steinhardt
The ctxlogrus package is going away with the replacement being log fields extracted from the context via `log.DebugContext()` et al. Refactor the code to stop using ctxlogrus by injecting a logger and using the new context-based logging methods.
2023-10-11service/cleanup: Replace use of ctxlogrus with injected loggerPatrick Steinhardt
The ctxlogrus package is going away with the replacement being log fields extracted from the context via `log.DebugContext()` et al. Refactor the code to stop using ctxlogrus by injecting a logger and using the new context-based logging methods.