Skip to the page
gužvadocs
Menu

Engineering

CI

What GitHub Actions checks on every push, and the failure each check exists to catch.

Continuous integration means every push is built and tested by a machine that isn't yours, so "works on my laptop" can't sneak through. guzva uses GitHub Actions: the file .github/workflows/ci.yml describes two jobs that run in parallel on fresh Ubuntu machines on every push to master and every pull request. Pushes that change only docs skip it.

Job go (about 6 min)

StepCatches
gofmtUnformatted code (style drift makes diffs noisy)
go vetSuspicious code the compiler accepts: wrong printf verbs, copied locks
go test ./...Every unit test, including the privacy tests
qa suitesA real binary on a local port, tested over HTTP: ingest, caching, the public page
go test -race -shortData races between goroutines
CSS freshness and budgetsA stylesheet that doesn't match its source, or one that grew past its size budget

Why the qa suites: they existed for weeks without running anywhere and fell 13 checks behind the real page (found 2026-11-04). A test that doesn't run is not a test, so now CI runs them.

Job firmware (about 2 min)

StepCatches
pio runCamera firmware that doesn't compile
TLS grep gateCertificate checking switched off in a production build
Privacy testsRe-run separately because this gate must never be skipped

The real settings.h holds Wi-Fi passwords and is never committed; CI copies the example file so the build works.

Rules

  • make test locally is the gate before every commit; CI is the second check.
  • A red CI is fixed before starting anything else.
  • Read the exit status, not a filtered log: on 2026-11-07 a grep FAIL hid a gofmt failure.

Planned (O2)

  • govulncheck (known vulnerabilities in the code paths we actually call) and staticcheck.
  • Actions pinned to exact commits instead of tags, which their authors can move. CI currently warns that checkout@v4, cache@v4 and setup-go@v5 run on deprecated Node 20.
  • Dependabot pull requests for action and Go module updates.
  • A release job that builds the deployable binary on each tag.