[QR-05] Establish Go and PostgreSQL 18 development foundation #2

Open
opened 2026-10-23 21:25:57 +02:00 by amiryahaya · 2 comments
Owner

Outcome

Create the smallest runnable Go service and repeatable PostgreSQL 18 test environment for TDD.

Acceptance

  • Add Go module, clear top-level module layout, formatter/linter conventions, and sample configuration without secrets.
  • Add versioned SQL migrations and a PostgreSQL 18 integration test setup runnable from the repository root.
  • Expose root commands for go test ./..., go vet ./..., and overall Go statement coverage; enforce at least 80% once the suite has real behavior.
  • Add a smoke test for service startup, migration application, and clean shutdown.
  • Update AGENTS.md with commands that actually run.

Requirements: QR-05. SRS scenario 9. Reference: docs/SRS.md, docs/ARCHITECTURE.md.

## Outcome Create the smallest runnable Go service and repeatable PostgreSQL 18 test environment for TDD. ## Acceptance - Add Go module, clear top-level module layout, formatter/linter conventions, and sample configuration without secrets. - Add versioned SQL migrations and a PostgreSQL 18 integration test setup runnable from the repository root. - Expose root commands for `go test ./...`, `go vet ./...`, and overall Go statement coverage; enforce at least 80% once the suite has real behavior. - Add a smoke test for service startup, migration application, and clean shutdown. - Update `AGENTS.md` with commands that actually run. Requirements: QR-05. SRS scenario 9. Reference: `docs/SRS.md`, `docs/ARCHITECTURE.md`.
amiryahaya changed title from Establish Go and PostgreSQL 18 development foundation to [QR-05] Establish Go and PostgreSQL 18 development foundation 2026-10-23 21:31:10 +02:00
Author
Owner
Issue #2 implementation plan: https://forgejo.primatekun.tech/primatekuntech/raisin-mem/src/branch/feat/2-foundation/docs/superpowers/plans/2026-10-24-issue-2-foundation.md
Author
Owner

Issue #2 foundation is pushed on feat/2-foundation at 97c2447. Local PostgreSQL 18 tests, vet, format check, and the 80.5% coverage gate pass; the separate Security run 12 is green. CI run 11 is blocked by the ubuntu-latest runner using container.network=bridge: PostgreSQL becomes healthy but the job cannot resolve the service hostname postgres. Forgejo documents that services require an empty container.network setting. The issue remains open pending that runner change and a green CI rerun.

Issue #2 foundation is pushed on feat/2-foundation at 97c2447. Local PostgreSQL 18 tests, vet, format check, and the 80.5% coverage gate pass; the separate Security run 12 is green. CI run 11 is blocked by the ubuntu-latest runner using container.network=bridge: PostgreSQL becomes healthy but the job cannot resolve the service hostname postgres. Forgejo documents that services require an empty container.network setting. The issue remains open pending that runner change and a green CI rerun.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
primatekuntech/raisin-mem#2
No description provided.