Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

2.7 KB
Raw Blame

1. Package groups

  • 1.1 Add a test-group-packages group recipe to backend/Justfile, following design decisions 2 and 3. For physical it prints go list ./internal/features/tests/physical/..., and for logical it prints go list ./internal/features/tests/logical/.... For other it prints go list ./internal/... without import paths matching /internal/features/tests/(physical|logical)(/|$). Any other name prints an error to stderr and exits non-zero. A comment above the recipe says that CI runs one group per runner. Verify in backend/ that diff <(go list ./internal/... | sort) <(for group in physical logical other; do just test-group-packages "$group"; done | sort) prints nothing and exits 0, that just test-group-packages physical prints only packages under internal/features/tests/physical/, that just test-group-packages unknown exits non-zero, and that just --justfile backend/Justfile --fmt --check --unstable passes at the repository root.

2. CI workflow

  • 2.1 In .github/workflows/ci-release.yml, follow design decision 4. Remove needs: [lint-backend] from test-backend and add strategy with fail-fast: false and matrix.group: [physical, logical, other]. In the "Run Go tests" step, pass the group through a TEST_GROUP env entry. After the step's existing cd backend, run go test with the same flags as today on the output of just test-group-packages "$TEST_GROUP". Update the comment above the command so it still describes the worker count correctly. Verify that go run github.com/rhysd/actionlint/cmd/[email protected] -shellcheck= .github/workflows/ci-release.yml passes at the repository root. Then verify the shape of the job with repository searches. grep -n -A12 '^ test-backend:' .github/workflows/ci-release.yml shows fail-fast: false and group: [physical, logical, other] and no needs line with lint-backend. grep -nF 'test-group-packages "$TEST_GROUP"' .github/workflows/ci-release.yml finds the call in the "Run Go tests" step. grep -n 'go test -p=8.*\./internal/\.\.\.' .github/workflows/ci-release.yml finds nothing. The pattern keeps the -p=8 flag so it skips the verification agent's own go test ./internal/... call.
  • 2.2 Add lint-backend to the needs of determine-version, following design decision 1. Verify that the actionlint command from 2.1 passes. Also verify that grep -n -A3 '^ determine-version:' .github/workflows/ci-release.yml shows a needs list that contains both lint-backend and test-backend.

3. Specs and review

  • 3.1 Verify that openspec validate parallelize-backend-ci-tests --strict passes.
  • 3.2 Run the mandatory full implementation review from AGENTS.md and resolve its blocking findings. Then rerun the checks from 1.1 and 2.1.