Each check below is a script or a build step that CI runs as a job of its own, on each push and
pull request. The benchmarks run on each tag instead (decision 44), and
performance.md describes them. tools/ci.sh runs them all, as CI does, and writes a report.
zig build testruns the lint, every module's tests, and the examples. Each check in the library was broken on purpose to prove a test catches it. The examples run a client against the server in memory over h11, h2, and h3.tools/line_coverage_check.shruns each module's tests under kcov (decision 43). On CI's run 160 they ran 97.7% of the library's 8604 lines. That run came before theprotovalidatemodule.tools/conformance_check.shruns the connectrpc conformance suite v1.0.7, as CI's run 160 did on colibri v0.17.3. The server passes all 3714 cases, over h11 and h2. The client passes all 10711, over h11, h2, and h3, in cleartext and over TLS. No case is listed as known to fail or as flaky. Each half's job summary holds a table of its cases by HTTP version, protocol, TLS, and reference peer.tools/protobuf_conformance_check.shruns Google's protobuf conformance suite in binary and JSON, for proto3, proto2, and edition 2023. 5707 cases pass, andconformance/protobuf_known_failing.txtlists each of the 35 that fail, with its reason.- protovalidate's conformance suite, a Lean model of the CEL syntax, a comparison with cel-go on
random rules, the compiler's time, and a fuzzer check the
protovalidatemodule. protovalidate.md, "How it is checked", says what each one does. tools/coverage_check.shconverts every protobuf type with connect-zig and with Go's runtime, between binary and JSON both ways, and requires the same message.tools/interop_languages_check.shcalls the server from clients in Go, TypeScript, Python, and Rust, 758 calls.tools/interop_servers_check.shcalls their servers with connect-zig's client, 831 calls. Each covers every protocol, codec, stream shape, and error.tools/interop_check.shcalls the example server withbuf curland curl, and with OpenTelemetry's Go SDK, which exports spans to the example trace receiver.tools/package_check.shbuildsexamples/quickstartagainst connect-zig aszig fetchkeeps it, and calls it over TLS on h11, h2, and h3.tools/perf_check.shcounts each benchmark operation's instructions under callgrind, and fails past 2% abovebench/instructions.txt. Counts do not move with a shared runner's load.tools/scripts_check.shlints each Python and shell script of the tree. It runs ruff's lint and format check underruff.toml, and ShellCheck under.shellcheckrc. It skips the code that other projects or a generator wrote. It downloads ruff and ShellCheck, each pinned by version and SHA-256, unlessRUFFandSHELLCHECKname installed ones.ruff formatrewrites a file that the format check refuses. Then it runstools/scripts_test.sh: the unit tests of the scripts, each a file<script>_test.pybeside its script, under Python'sunittest. They cover the climbs, the steps, and the reports of the full stack, the benchmark's median, and the reading of each chart. A test of a shell script sources it in sh: production.sh's climbs run there against a stub step. Each chart's test also draws it, from a log that GitHub wrote too, andtools/chart_text.pyfinds what a reader would see wrong: a text past an edge, over another text, or over a bar, two tick labels closer than the chart allows, or a mark on a label that the subtitle does not explain. Each rule a test covers was broken on purpose to prove the test catches it.tools/complexity_check.shholds each function of the Python, Go, Rust, and JavaScript ofbench/andtools/to cognitive complexity 15, aszig build lintholds the Zig. It also refuses control flow at a Python module's top level, where no function's score counts it.
Each job writes its results to its summary. The tests and the comparison with Go and Rust run a second time on an arm64 runner.
Each script names what it needs: buf, Go, Node.js, Python, cargo, or valgrind.
tools/ci.sh # every check below, as CI runs them
zig build test # the lint, every module's tests and the examples
tools/package_check.sh # a project that fetches connect-zig builds against it
tools/generate_check.sh # buf generate still writes each gen/
tools/interop_check.sh # buf curl, curl and OpenTelemetry's SDK against the example server
tools/coverage_check.sh # every protobuf type against Go's runtime
tools/conformance_check.sh # the connectrpc conformance suite against the server and client
tools/protovalidate_conformance_check.sh # protovalidate's conformance harness
tools/interop_languages_check.sh # Go, TypeScript, Python and Rust clients against the server
tools/interop_servers_check.sh # the client against Go, TypeScript, Python and Rust servers
tools/perf_check.sh # instructions of each benchmark operation against the baseline
tools/bench_check.sh # the benchmark beside Go's and Rust's
tools/scripts_check.sh # ruff and ShellCheck over the Python and shell scripts, then their tests
tools/scripts_test.sh # the unit tests of the Python and shell scripts alone
tools/complexity_check.sh # cognitive complexity 15 over the Python, Go, Rust and JavaScript