Add CI quality gates and GitHub templates#5
Conversation
|
CI failure root cause and fix:
Pushed fix commit: Local validation after the fix:
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6e81dc5. Configure here.
| run: go vet ./... | ||
|
|
||
| - name: Run unit tests | ||
| run: go test -mod=readonly ./... |
There was a problem hiding this comment.
Backend CI fails due to workspace including desktop embed
High Severity
The repository root has a go.work file that includes both . and ./clients/desktop. In workspace mode, go test ./... and go vet ./... from the root match packages across all workspace modules, including clients/desktop. That module's main.go has //go:embed all:frontend/dist, which requires built frontend assets. The backend, backend-race, backend-integration, and backend-e2e CI jobs never build the frontend, so on a fresh checkout frontend/dist won't exist and the embed directive will cause a compilation error. Only the desktop-go job builds frontend assets first. The backend jobs likely need GOWORK=off (or equivalent) to restrict ./... to the root module only.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit 6e81dc5. Configure here.


Summary
Linked Issue
Fixes #4
Scope Control
doc/, ordocs/files are included.Proof Semantics
.tdproof,.tdgproof,.tdanchor-result,.sproof, and.tdbackupformats are unchanged.Storage, Recovery, and Scale
Validation
go test ./...go vet ./...go test -race ./...go test -count=1 -tags=integration ./...go test -count=1 -tags=e2e ./...cd clients/desktop && go test ./...cd clients/desktop && go vet ./...cd clients/desktop && go test -race ./...cd clients/desktop/frontend && npm run buildcd clients/desktop && wails buildChecks not run:
wails build: not part of this CI/template change and not added to CI because it needs desktop packaging prerequisites beyond the lightweight quality gate.Risk / Rollback
go.mod; the workflow intentionally usesgo-version-fileso it tracks the repository version source of truth.Note
Low Risk
Low runtime risk since changes are CI/configuration/docs plus test timeout adjustments; primary risk is CI false-failures due to environment/version differences on GitHub runners.
Overview
Adds GitHub repo process tooling: new Issue templates (bug/feature/task), a TrustDB-specific PR template, and disables blank Issues with a link to
CONTRIBUTING.md.Introduces a GitHub Actions CI workflow (
.github/workflows/ci.yml) that enforces hygiene checks (whitespace, nodoc//docs/commits) and runs backend unit/race/integration/e2e tests plus desktop Go tests and frontend builds.Updates
README.md/CONTRIBUTING.mdto reference the CI quality gates and required Issue/PR workflow, and increases async proof polling timeouts in batch/replay tests to reduce flakiness.Reviewed by Cursor Bugbot for commit 6e81dc5. Bugbot is set up for automated code reviews on this repo. Configure here.