Skip to content

Praefect: testing strategy

The testing strategy for Praefect is extremely important to ensure its introduction doesn't degrade the existing Gitaly experience.

Some things we need to figure out:

  • How do we test the praefect proxy functionality?
    • Praefect doesn't care about the specific gRPC service, only the metadata regarding RPC methods (e.g. accessor vs mutator)
    • Perhaps simplify testing by only unit testing the the functionality Praefect is concerned with
  • How do we handle integration testing?
    • There are many integration tests already being used for Gitaly and Praefect is designed to be a transparent drop in replacement. We should be able to reuse existing tests.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information