Start with the README quickstart to install
dependencies and build the service. With air installed, run make dev to
rebuild and restart the server automatically using the development config.
Run make help for the full command list.
make format
make lint
To apply automatic lint fixes where available, run make fix-lint.
make specs
make specs requires gotestsum.
The Ruby harness uses test/nonnative.yml and writes
logs, coverage, and reports under test/reports/. It starts and stops
../standort server -config file:.config/server.yaml from test/. Leave
ports 11000 and 12000 free before running it.
make features
make benchmarks
For focused runs, pass paths relative to test/.
make features feature=features/v2/transport/grpc/api.feature tags=@grpc
make benchmarks feature=features/v2/transport/http/benchmark.feature
Run make sec to run both govulncheck -show verbose -test ./... and the
Trivy repository scan. Run make trivy-repo for the Trivy scan alone.
After initializing submodules, run the main validation sequence locally.
make dep
make lint
make proto-breaking
make proto-stale
make sec
make features
make benchmarks
make analyse
make coverage
Use make specs for focused Go testing. The main CircleCI build also uploads
coverage to Codecov. See the CircleCI workflow.
The service definitions live in v1 and v2. Edit the source definitions and use Buf to lint, format, and regenerate the Go and Ruby protobuf and gRPC files.
make proto-lint
make proto-format
make proto-generate
The generation config writes Go files alongside the
schemas and Ruby files under test/lib/. When renaming or deleting a
.proto file, remove the orphaned Go and Ruby outputs in the same change.
make proto-breaking
make proto-stale
make proto-breaking requires network access to compare against the
master branch on GitHub. make proto-stale regenerates the outputs and
fails if any tracked file in the repository has unstaged changes. Generation uses
Buf remote plugins, so make proto-generate and make proto-stale may
require network access.
vendor/ holds vendored Go dependencies.