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
2021-06-15Extract typed environment variable helpersJames Fargher
These helpers should make parsing typed environment variables more consistent.
2021-05-27Create module v14 gitaly versionPavlo Strokov
The new "v14" version of the Gitaly module is named to match the next GitLab release. The module versioning is needed in order to pull gitaly as a dependency in other projects. The change updates all imports to include v14 version. The go.mod file was modified as well after go mod tidy execution. And the changes in dependency licenses are reflected in the NOTICE file. Part of: https://gitlab.com/gitlab-org/gitaly/-/issues/3177
2021-04-19gitaly-wrapper: Use `exec.CommandContext()` to autokill processPatrick Steinhardt
We're currently explicitly killing the spawned test process in `TestStolenPid()`. Convert this to instead use `exec.CommandContext()`, which will automatically kill the child process in case the context gets canceled. This allows us to get rid of one more linter ignore rule.
2021-04-14tests: Check errors returned by some `os` package functionsPatrick Steinhardt
There are several code sites where we do not check the error code of various functions of the `os` pakcage. Fix this by using `require.NoError()`, which also uncovers that we're trying to remove a directory in `RebaseInProgress()` tests which has already been removed via its parent repository.
2021-02-13Ignore SIGURG in gitaly-wrapperStan Hu
In go1.14+, the go runtime issues SIGURG as an interrupt to support pre-emptible system calls on Linux. We ignore this signal since it's not relevant to the Gitaly process. This reduces a significant amount of log noise. Relates to https://gitlab.com/gitlab-org/gitaly/-/issues/3454
2021-02-11Standardize Praefect and Gitaly log formatsStan Hu
Praefect was generating timestamps in the form of `2021-02-11T17:18:09Z`, while Gitaly included millisecond precision in `2021-02-11T17:26:53.011Z`. Closes https://gitlab.com/gitlab-org/gitaly/-/issues/3427
2020-09-13Use filepath package to manipulate file pathsMikhail Mazurskiy
Package path should be used to manipulate abstract slash-delimited paths only, not real file paths.
2020-02-26Handle malformed PID file in gitaly-wrapperMateusz Nowotyński
When the gitaly PID file is malformed log warning and ignore it. Malformed the file will be overwritten when the new gitaly process starts. relates #2453 Signed-off-by: Mateusz Nowotyński <maxmati4@gmail.com>
2019-12-06Merge branch 'jc-change-praefect-boostrap-env-vars' into 'master'Jacob Vosmaer
Move bootstrap env vars into bootstrap constructor See merge request gitlab-org/gitaly!1670
2019-12-04Move bootstrap env vars into bootstrap constructorjramsay
Both Gitaly and Praefect use the bootstrap package and need to play well with gitaly-wrapper. This changes praefect to use the same env vars as gitaly. It also moves the env var retrieval inside the bootstrap constructor.
2019-12-04Add README.md for gitaly-wrapperJohn Cai
2019-10-16Add go brace whitespace formatterJacob Vosmaer
2019-05-21Restore FreeBSD compatibilityAlessio Caiazza
2019-05-17Check children path during wrapper bootAlessio Caiazza
pidfile content may be a reassigned to a new process and gitaly-wrapper will not start a new gitaly instance. This commit checks if the process path includes gitaly before adopting a child process.
2019-04-05Zero downtime deploymentAlessio Caiazza