feat: harden small PR timeout proof and truthful partial reviews #154
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: pgvector/pgvector:pg17 | |
| env: | |
| POSTGRES_DB: kodiai | |
| POSTGRES_USER: kodiai | |
| POSTGRES_PASSWORD: kodiai | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd "pg_isready -U kodiai -d kodiai" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| env: | |
| DATABASE_URL: postgresql://kodiai:kodiai@localhost:5432/kodiai | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - run: bun install | |
| # Bun has been unstable on GitHub runners with one monolithic test process. | |
| # Keep DB-backed tests on a low concurrency cap and split the suite into | |
| # two shorter invocations to avoid cross-file schema interference and runner crashes. | |
| - run: bun test --max-concurrency=2 scripts src/contributor src/enforcement src/execution src/feedback src/handlers src/jobs src/lib src/review-audit src/review-graph src/routes src/slack src/structural-impact src/telemetry src/triage | |
| - run: bun test --max-concurrency=2 src/knowledge | |
| - run: bunx tsc --noEmit |