Age | Commit message (Collapse) | Author |
|
Many packages fail to call `TestMain` as part of their tests, which is
required to invoke our goroutine leak detector. Create a new
`testhelper_test.go` file and include a `TestMain` function that
executes `testhelper.Run`.
|
|
The implementation of ps is object hash agnostic.
|
|
We're about to add the ability to test with SHA256 hashes. We assume
none of the tests work with this object format.
With this change we add the build constraint to not run any test when
the tag 'gitaly_test_sha256' is set.
|
|
We recently switched to using Golang version 1.17 or higher, so we can
drop the old-style build tags.
|
|
With Go 1.17, new syntax was introduced for build tags which has the
intent to be much easier to use compared to the previous `+build` ones.
To ease the migration, Go 1.17 supports both old-style and new-style
build tags, where the recommended migration path is to have both as long
as projects support older Go versions which don't yet know about the new
syntax.
Migrate our codebase to use both both styles. While we don't yet support
Go 1.17 officially, it doesn't hurt to be prepared, and furthermore it
fixes linting issues I have been observing on my machine.
|
|
The goal of this change is to relieve pressure on forkExec mutex on platforms where this is supported.
Changelog: performance
|
|
|