Some checks failed
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
Mirror Thin Bundle Sign & Verify / mirror-sign (push) Has been cancelled
Concelier Attestation Tests / attestation-tests (push) Has been cancelled
Export Center CI / export-ci (push) Has been cancelled
- Implement unit tests for RichGraphPublisher to verify graph publishing to CAS. - Implement unit tests for RichGraphWriter to ensure correct writing of canonical graphs and metadata. feat: Implement AOC Guard validation logic - Add AOC Guard validation logic to enforce document structure and field constraints. - Introduce violation codes for various validation errors. - Implement tests for AOC Guard to validate expected behavior. feat: Create Console Status API client and service - Implement ConsoleStatusClient for fetching console status and streaming run events. - Create ConsoleStatusService to manage console status polling and event subscriptions. - Add tests for ConsoleStatusClient to verify API interactions. feat: Develop Console Status component - Create ConsoleStatusComponent for displaying console status and run events. - Implement UI for showing status metrics and handling user interactions. - Add styles for console status display. test: Add tests for Console Status store - Implement tests for ConsoleStatusStore to verify event handling and state management.
50 lines
1.7 KiB
Markdown
50 lines
1.7 KiB
Markdown
# Local PostgreSQL for StellaOps (Scheduler focus)
|
|
|
|
This doc describes how to bring up a local PostgreSQL 17 instance for Scheduler development and tests.
|
|
|
|
## Quick start (Docker)
|
|
|
|
```bash
|
|
# from repo root
|
|
docker compose -f ops/devops/local-postgres/docker-compose.yml up -d
|
|
```
|
|
|
|
Defaults:
|
|
- Host/Port: `localhost:5432`
|
|
- User: `stella`
|
|
- Password: `stella`
|
|
- Database: `stella`
|
|
|
|
Verify:
|
|
```bash
|
|
docker ps --filter name=stella-postgres
|
|
docker exec -it stella-postgres psql -U stella -d stella -c 'select version();'
|
|
```
|
|
|
|
Stop/cleanup:
|
|
```bash
|
|
docker compose -f ops/devops/local-postgres/docker-compose.yml down
|
|
# keep data
|
|
docker volume ls | grep stella-postgres-data
|
|
# remove data volume if you want a clean slate
|
|
docker volume rm stella-postgres-data
|
|
```
|
|
|
|
## Connection strings
|
|
- ADO.NET: `Host=localhost;Port=5432;Username=stella;Password=stella;Database=stella;Include Error Detail=true`
|
|
- Npgsql env example:
|
|
- `PGHOST=localhost`
|
|
- `PGPORT=5432`
|
|
- `PGUSER=stella`
|
|
- `PGPASSWORD=stella`
|
|
- `PGDATABASE=stella`
|
|
|
|
## Using with Scheduler Postgres storage
|
|
- Scheduler Postgres repositories connect via `SchedulerDataSource` using tenant-aware connections; for local work set your appsettings or environment to the connection string above.
|
|
- Integration tests currently rely on Testcontainers; if Docker is available the tests will spin up their own isolated container. When Docker is unavailable, run against this local instance by exporting the variables above and disabling Testcontainers in your local run configuration if supported.
|
|
|
|
## Notes
|
|
- Image: `postgres:17` (latest GA at time of writing).
|
|
- Healthcheck is built into the compose service; wait for `healthy` before running tests.
|
|
- Keep volumes deterministic: the compose file names the volume `stella-postgres-data`.
|