standort

๐Ÿ› ๏ธ Development

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.

๐ŸŽจ Formatting and linting

make format
make lint

To apply automatic lint fixes where available, run make fix-lint.

๐Ÿงช Go tests

make specs

make specs requires gotestsum.

๐Ÿงฉ Feature tests and benchmarks

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

๐Ÿ›ก๏ธ Security checks

Run make sec to run both govulncheck -show verbose -test ./... and the Trivy repository scan. Run make trivy-repo for the Trivy scan alone.

โœ… CI parity

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.

๐Ÿงฌ Protobuf generation

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.

๐Ÿ—‚๏ธ Repository layout